/* Variables globales */
:root {
    --dark: #1A1A1A;
    --dark-purple: #2D1B4E;
    --purple: #6B2FBF;
    --orange: #FF7F2D;
    --orange-light: #FFA666;
    --yellow: #FFD700;
    --text-light: #FFFFFF;
}

/* Reset y configuración general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Chakra Petch', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--dark), var(--dark-purple));
}

/* Contenedor principal */
.fullscreen-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Imagen de fondo: esta sí se anima siempre */
.image-layer.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: zoom-in 2s ease-out forwards;
}

/* Imagen de título: animación solo si tiene .animar */
.image-layer.top-center {
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    opacity: 0;
}
.image-layer.top-center.animar {
    animation: fade-in 1s ease-out forwards;
    animation-delay: 1s;
}

/* Imagen izquierda 2 */
.image-layer.left-sweep {
    position: absolute;
    top: 10%;
    left: -100%;
    width: 20%;
    opacity: 0;
}
.image-layer.left-sweep.animar {
    animation: sweep-left-to-right 1s ease-out forwards;
    animation-delay: 0.5s;
}

/* Imagen izquierda 1 */
.image-layer.grow-and-fall {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 10%;
    opacity: 0;
}
.image-layer.grow-and-fall.animar {
    animation: grow-and-fall-animation 2s ease-out forwards;
    animation-delay: 1.5s;
}

/* Imagen derecha 2 */
.image-layer.top-right {
    position: absolute;
    top: 5%;
    right: 10%;
    width: 20%;
    opacity: 0;
}
.image-layer.top-right.animar {
    animation: fade-in 1s ease-out forwards;
    animation-delay: 2s;
}

/* Imagen derecha 1 */
.image-layer.right-slide-in {
    position: absolute;
    top: 50%;
    right: -100%;
    width: 25%;
    opacity: 0;
}
.image-layer.right-slide-in.delay-2.animar {
    animation: slide-right-to-left 1s ease-out forwards;
    animation-delay: 2s;
}
.image-layer.right-slide-in.delay-3.animar {
    animation: slide-right-to-left 1s ease-out forwards;
    animation-delay: 4s;
}

/* Botón central */
.center-button {
    position: absolute;
    z-index: 10;
    padding: 15px 30px;
    font-size: 18px;
    color: var(--text-light);
    background: linear-gradient(45deg, var(--orange), var(--yellow));
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(255, 127, 45, 0.4);
}

.center-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 127, 45, 0.6);
}

/* Animaciones */
@keyframes zoom-in {
    from {
        transform: scale(1.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes sweep-left-to-right {
    from {
        left: -100%;
        opacity: 0;
    }
    to {
        left: 10%;
        opacity: 1;
    }
}

@keyframes grow-and-fall-animation {
    from {
        top: 10%;
        left: 10%;
        width: 10%;
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        top: 50%;
        left: 25%;
        width: 10%;
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slide-right-to-left {
    from {
        right: -100%;
        opacity: 0;
    }
    to {
        right: 10%;
        opacity: 1;
    }
}

/* Modal (puedes moverlo a un CSS separado si prefieres) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Negro con transparencia */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px); /* opcional, para efecto más suave */
}

.modal-content {
    background: rgba(0, 0, 0, 0.85);
    padding: 40px 50px;
    border-radius: 20px;
    text-align: center;
    color: var(--text-light);
    font-family: 'Chakra Petch', sans-serif;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    max-width: 600px;
}

.modal-content h2 {
    margin-bottom: 15px;
    font-size: 28px;
    color: var(--yellow);
}

.modal-content p {
    margin: 8px 0;
    font-size: 18px;
}

.modal-content button {
    padding: 12px 24px;
    font-size: 18px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, var(--orange), var(--yellow));
    color: var(--text-light);
    cursor: pointer;
    margin-top: 25px;
    box-shadow: 0 6px 20px rgba(255, 127, 45, 0.5);
    transition: transform 0.3s ease;
}

.modal-content button:hover {
    transform: scale(1.05);
}

.modal.hidden {
    display: none;
}
