
/* =========================================
   CONFIGURACIÓN GENERAL
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    overflow: hidden;
    font-family: Georgia, "Times New Roman", serif;
    background: #090304;
    color: white;
}


/* =========================================
   PANTALLA DE INICIO
========================================= */

.pantalla-inicio {
    position: fixed;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 28%,
            rgba(120, 12, 28, 0.45),
            transparent 32%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(120, 0, 20, 0.35),
            transparent 40%
        ),
        linear-gradient(
            180deg,
            #170607 0%,
            #090304 100%
        );

    z-index: 10;

    transition:
        opacity 1.4s ease,
        transform 1.4s ease;
}


/* =========================================
   LUCES DEL FONDO
========================================= */

.luz {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;

    filter: blur(50px);
    opacity: 0.35;
}

.luz-1 {
    width: 300px;
    height: 300px;

    top: 5%;
    left: 20%;

    background: #8d1325;
}

.luz-2 {
    width: 250px;
    height: 250px;

    top: 35%;
    right: 10%;

    background: #5e0b17;
}

.luz-3 {
    width: 350px;
    height: 200px;

    bottom: -50px;
    left: 30%;

    background: #a10e27;
}


/* =========================================
   CONTENIDO
========================================= */

.contenido {
    position: relative;

    width: min(90%, 600px);

    text-align: center;

    z-index: 5;

    animation: aparecer 2s ease forwards;
}

@keyframes aparecer {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================
   ROSA
========================================= */

.rosa-contenedor {
    position: relative;

    width: 190px;
    height: 250px;

    margin: 0 auto 10px;
}

.resplandor-rosa {
    position: absolute;

    width: 180px;
    height: 180px;

    top: 10px;
    left: 5px;

    border-radius: 50%;

    background: rgba(180, 10, 35, 0.45);

    filter: blur(45px);

    animation: respirar 3s ease-in-out infinite;
}

@keyframes respirar {

    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.45;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

}


/* =========================================
   FLOR
========================================= */

.rosa {
    position: absolute;

    width: 150px;
    height: 150px;

    top: 15px;
    left: 20px;

    transform: rotate(-5deg);

    animation: flotar 4s ease-in-out infinite;

    z-index: 3;
}

@keyframes flotar {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-8px) rotate(-2deg);
    }

}


/* Pétalos de la rosa */

.petalo {
    position: absolute;

    width: 80px;
    height: 105px;

    border-radius: 80% 20% 70% 30%;

    background:
        radial-gradient(
            circle at 35% 25%,
            #ff5267,
            #bd102b 45%,
            #53040e 100%
        );

    box-shadow:
        inset -8px -10px 15px rgba(0, 0, 0, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.5);
}


/* pétalos externos */

.p1 {
    top: 25px;
    left: 10px;
    transform: rotate(-35deg);
}

.p2 {
    top: 15px;
    right: 5px;
    transform: rotate(35deg) scaleX(-1);
}

.p3 {
    top: 45px;
    left: 35px;
    transform: rotate(-10deg);
}

.p4 {
    top: 42px;
    right: 28px;
    transform: rotate(25deg) scaleX(-1);
}

.p5 {
    top: 62px;
    left: 35px;
    transform: rotate(55deg);
    width: 70px;
    height: 90px;
}

.p6 {
    top: 62px;
    left: 48px;
    transform: rotate(-40deg);
    width: 65px;
    height: 85px;
}


/* Centro */

.centro-rosa {
    position: absolute;

    width: 45px;
    height: 65px;

    left: 52px;
    top: 50px;

    border-radius: 70% 30% 60% 40%;

    background:
        radial-gradient(
            circle at 40% 30%,
            #ff6375,
            #8e071d 65%,
            #39020a
        );

    transform: rotate(15deg);

    box-shadow:
        inset -5px -8px 10px rgba(0, 0, 0, 0.5);
}


/* =========================================
   TALLO
========================================= */

.tallo {
    position: absolute;

    width: 10px;
    height: 110px;

    left: 91px;
    top: 145px;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            #142b16,
            #4b783c,
            #152b16
        );

    transform: rotate(3deg);
}

.hoja {
    position: absolute;

    width: 65px;
    height: 30px;

    background:
        linear-gradient(
            135deg,
            #517a42,
            #152b16
        );

    border-radius: 100% 0 100% 0;
}

.hoja-1 {
    left: -48px;
    top: 30px;

    transform: rotate(-15deg);
}

.hoja-2 {
    left: -3px;
    top: 60px;

    transform: rotate(40deg) scaleX(-1);
}


/* =========================================
   TEXTOS
========================================= */

.texto-superior {
    font-size: clamp(1.8rem, 5vw, 2.7rem);

    font-style: italic;

    color: #f4d7d7;

    margin-top: -10px;

    text-shadow:
        0 0 10px rgba(255, 100, 120, 0.3);
}

h1 {
    margin-top: 8px;

    font-size: clamp(1.2rem, 4vw, 1.6rem);

    letter-spacing: 0.5rem;

    color: #f6e6e6;
}

h1 span {
    color: #d51c3c;

    font-size: 0.8em;

    margin: 0 8px;
}


/* =========================================
   SEPARADOR
========================================= */

.separador {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 10px;

    margin: 12px 0;

    color: #e45a6e;

    font-size: 1.1rem;
}


/* =========================================
   MENSAJE
========================================= */

.mensaje {
    font-family: Arial, sans-serif;

    color: #e6b7bd;

    font-size: clamp(0.9rem, 3vw, 1.05rem);

    line-height: 1.6;
}

.mensaje strong {
    display: block;

    font-family: Georgia, serif;

    font-size: 1.35rem;

    font-style: italic;

    color: #ef9aa6;
}

.corazon {
    margin-top: 8px;

    color: #e82b4d;

    font-size: 1.3rem;

    animation: latido 1.5s infinite;
}

@keyframes latido {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
    }

}


/* =========================================
   BOTÓN ENTRAR
========================================= */

.btn-entrar {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 25px;

    width: min(90%, 380px);

    margin: 20px auto 0;

    padding: 17px 30px;

    border: 2px solid #ff536b;

    border-radius: 50px;

    background:
        linear-gradient(
            180deg,
            rgba(135, 12, 32, 0.8),
            rgba(50, 3, 10, 0.9)
        );

    color: #fff;

    font-family: Georgia, serif;

    font-size: 1.25rem;

    letter-spacing: 0.35rem;

    cursor: pointer;

    box-shadow:
        0 0 12px rgba(255, 50, 80, 0.5),
        inset 0 0 15px rgba(255, 50, 80, 0.1);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.btn-entrar span {
    color: #ff8b9b;
}

.btn-entrar:hover {
    transform: translateY(-3px) scale(1.02);

    box-shadow:
        0 0 25px rgba(255, 50, 80, 0.8),
        inset 0 0 20px rgba(255, 50, 80, 0.2);
}

.btn-entrar:active {
    transform: scale(0.96);
}


/* =========================================
   INSTRUCCIÓN
========================================= */

.instruccion {
    margin-top: 15px;

    font-family: Arial, sans-serif;

    font-size: 0.85rem;

    color: #c78d94;

    animation: parpadear 2s infinite;
}

.instruccion span {
    margin: 0 5px;

    color: #ef8191;
}

@keyframes parpadear {

    0%,
    100% {
        opacity: 0.55;
    }

    50% {
        opacity: 1;
    }

}


/* =========================================
   DESTELLOS
========================================= */

.destellos {
    position: absolute;

    inset: 0;

    pointer-events: none;
}

.destellos span {
    position: absolute;

    color: #ffd6dc;

    opacity: 0;

    animation: destello 3s infinite;
}

.destellos span:nth-child(1) {
    top: 15%;
    left: 18%;
}

.destellos span:nth-child(2) {
    top: 20%;
    right: 20%;
    animation-delay: 1s;
}

.destellos span:nth-child(3) {
    top: 40%;
    left: 10%;
    animation-delay: 1.8s;
}

.destellos span:nth-child(4) {
    top: 45%;
    right: 12%;
    animation-delay: 0.5s;
}

.destellos span:nth-child(5) {
    top: 65%;
    left: 22%;
    animation-delay: 2s;
}

.destellos span:nth-child(6) {
    top: 70%;
    right: 25%;
    animation-delay: 1.2s;
}

@keyframes destello {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }

}


/* =========================================
   PÉTALOS QUE CAEN
========================================= */

#petalos {
    position: absolute;

    inset: 0;

    pointer-events: none;

    overflow: hidden;
}

.petalo-caida {
    position: absolute;

    top: -50px;

    width: 18px;
    height: 28px;

    border-radius: 80% 20% 80% 20%;

    background:
        linear-gradient(
            135deg,
            #ff526a,
            #9b071e
        );

    box-shadow:
        0 0 8px rgba(255, 40, 65, 0.3);

    opacity: 0.8;

    animation:
        caer linear forwards,
        girar ease-in-out infinite alternate;
}

@keyframes caer {

    from {
        transform:
            translateY(-60px)
            translateX(0)
            rotate(0deg);
    }

    to {
        transform:
            translateY(110vh)
            translateX(var(--movimiento))
            rotate(720deg);
    }

}

@keyframes girar {

    from {
        margin-left: -15px;
    }

    to {
        margin-left: 15px;
    }

}


/* =========================================
   PANTALLA SIGUIENTE
========================================= */

.pantalla-siguiente {
    position: fixed;

    inset: 0;

    display: flex;

    justify-content: center;
    align-items: center;

    background:
        radial-gradient(
            circle,
            #4d0712,
            #100204 70%
        );

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 1s ease,
        visibility 1s ease;
}

.pantalla-siguiente.mostrar {
    opacity: 1;

    visibility: visible;
}

.siguiente-contenido {
    text-align: center;

    padding: 30px;
}

.corazon-grande {
    font-size: 5rem;

    color: #3b82f6;

    text-shadow:
        0 0 10px rgba(59, 130, 246, 0.7),
        0 0 30px rgba(59, 130, 246, 0.5);

    animation: latido 1.5s infinite;
}

.siguiente-contenido h2 {
    font-size: 2rem;

    margin: 15px 0;

    color: #fff;
}

.siguiente-contenido p {
    color: #e6b4bb;

    font-family: Arial, sans-serif;
}


/* =========================================
   TRANSICIÓN DE SALIDA
========================================= */

.pantalla-inicio.salir {
    opacity: 0;

    transform: scale(1.08);

    pointer-events: none;
}


/* =========================================
   CELULAR
========================================= */

@media (max-width: 600px) {

    .contenido {
        width: 92%;
    }

    .rosa-contenedor {
        transform: scale(0.82);

        margin-top: -20px;

        margin-bottom: -25px;
    }

    .texto-superior {
        font-size: 1.7rem;
    }

    h1 {
        font-size: 1.05rem;

        letter-spacing: 0.35rem;
    }

    .mensaje {
        font-size: 0.85rem;
    }

    .mensaje strong {
        font-size: 1.15rem;
    }

    .btn-entrar {
        width: 85%;

        padding: 15px 20px;

        font-size: 1rem;

        gap: 15px;
    }

    .instruccion {
        font-size: 0.75rem;
    }

}


/* =========================================
   PANTALLAS MUY PEQUEÑAS
========================================= */

@media (max-height: 650px) {

    .rosa-contenedor {
        transform: scale(0.65);

        margin-top: -55px;

        margin-bottom: -55px;
    }

    .texto-superior {
        font-size: 1.5rem;
    }

    .mensaje {
        line-height: 1.3;
    }

    .btn-entrar {
        margin-top: 12px;
    }

}
/* =====================================================
   MENÚ PRINCIPAL - PASO 2
   ===================================================== */

.menu-principal {
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(circle at 50% 20%, rgba(35, 91, 170, 0.25), transparent 35%),
        radial-gradient(circle at 20% 80%, rgba(20, 65, 130, 0.20), transparent 35%),
        linear-gradient(145deg, #020817, #06152d 50%, #020611);

    color: white;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;

    z-index: 20;
}


/* =====================================================
   ESTRELLAS DEL FONDO
   ===================================================== */

.estrellas-menu {
    position: absolute;
    inset: 0;

    pointer-events: none;
    overflow: hidden;
}

.estrellas-menu span {
    position: absolute;

    color: rgba(120, 190, 255, 0.7);

    font-size: 14px;

    animation:
        estrellaBrilla 3s ease-in-out infinite;
}


/* Posiciones */

.estrellas-menu span:nth-child(1) {
    top: 12%;
    left: 12%;
    animation-delay: 0s;
}

.estrellas-menu span:nth-child(2) {
    top: 20%;
    left: 82%;
    animation-delay: 1s;
}

.estrellas-menu span:nth-child(3) {
    top: 35%;
    left: 7%;
    animation-delay: 2s;
}

.estrellas-menu span:nth-child(4) {
    top: 8%;
    left: 58%;
    animation-delay: 1.5s;
}

.estrellas-menu span:nth-child(5) {
    top: 46%;
    left: 91%;
    animation-delay: 0.5s;
}

.estrellas-menu span:nth-child(6) {
    top: 68%;
    left: 8%;
    animation-delay: 2.5s;
}

.estrellas-menu span:nth-child(7) {
    top: 78%;
    left: 86%;
    animation-delay: 1s;
}

.estrellas-menu span:nth-child(8) {
    top: 88%;
    left: 30%;
    animation-delay: 2s;
}

.estrellas-menu span:nth-child(9) {
    top: 58%;
    left: 96%;
    animation-delay: 1.5s;
}

.estrellas-menu span:nth-child(10) {
    top: 75%;
    left: 55%;
    animation-delay: 0.3s;
}

.estrellas-menu span:nth-child(11) {
    top: 30%;
    left: 45%;
    animation-delay: 2.2s;
}

.estrellas-menu span:nth-child(12) {
    top: 92%;
    left: 72%;
    animation-delay: 1.2s;
}


@keyframes estrellaBrilla {

    0%,
    100% {
        opacity: 0.25;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.4);
        text-shadow:
            0 0 8px rgba(80, 170, 255, 0.9),
            0 0 18px rgba(40, 130, 255, 0.6);
    }
}


/* =====================================================
   CONTENIDO DEL MENÚ
   ===================================================== */

.menu-contenido {
    position: relative;

    width: min(92%, 560px);

    max-height: 94vh;
    max-height: 94dvh;

    overflow-y: auto;

    padding: 30px 20px;

    text-align: center;

    z-index: 2;

    scrollbar-width: none;
}

.menu-contenido::-webkit-scrollbar {
    display: none;
}


/* =====================================================
   ENCABEZADO
   ===================================================== */

.menu-encabezado {
    margin-bottom: 24px;
}


.corazon-menu {
    width: 58px;
    height: 58px;

    margin: 0 auto 12px;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 30px;

    border-radius: 50%;

    background: rgba(20, 85, 170, 0.18);

    border: 1px solid rgba(100, 190, 255, 0.25);

    box-shadow:
        0 0 20px rgba(30, 130, 255, 0.18);

    animation: corazonFlota 3s ease-in-out infinite;
}


@keyframes corazonFlota {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}


.menu-subtitulo {
    margin: 0 0 5px;

    font-size: 14px;

    letter-spacing: 2px;

    color: rgba(150, 205, 255, 0.8);
}


.menu-encabezado h2 {
    margin: 0;

    font-size: clamp(25px, 6vw, 34px);

    font-weight: 600;

    color: #ffffff;

    text-shadow:
        0 0 15px rgba(80, 170, 255, 0.35);
}


.menu-linea {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 10px;

    margin-top: 12px;

    color: rgba(90, 175, 255, 0.65);

    font-size: 13px;
}


/* =====================================================
   TARJETAS
   ===================================================== */

.opciones-menu {
    display: flex;

    flex-direction: column;

    gap: 13px;
}


.tarjeta-menu {
    position: relative;

    width: 100%;
    min-height: 78px;

    display: flex;
    align-items: center;

    padding: 13px 16px;

    border: 1px solid rgba(100, 180, 255, 0.16);

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(18, 53, 100, 0.58),
            rgba(5, 22, 48, 0.75)
        );

    color: white;

    cursor: pointer;

    text-align: left;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25);

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}


/* Brillo interno */

.tarjeta-menu::before {
    content: "";

    position: absolute;

    inset: 0;

    border-radius: inherit;

    background:
        linear-gradient(
            120deg,
            transparent 20%,
            rgba(100, 190, 255, 0.08),
            transparent 80%
        );

    opacity: 0;

    transition: opacity 0.3s ease;

    pointer-events: none;
}


/* Hover PC */

.tarjeta-menu:hover {
    transform: translateY(-5px) scale(1.015);

    border-color: rgba(80, 175, 255, 0.55);

    background:
        linear-gradient(
            135deg,
            rgba(25, 75, 140, 0.65),
            rgba(6, 27, 58, 0.85)
        );

    box-shadow:
        0 12px 30px rgba(0, 80, 180, 0.22),
        0 0 18px rgba(60, 160, 255, 0.12);
}


.tarjeta-menu:hover::before {
    opacity: 1;
}


/* =====================================================
   ICONOS
   ===================================================== */

.icono-menu {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 15px;

    background: rgba(50, 130, 220, 0.12);

    border: 1px solid rgba(100, 190, 255, 0.12);

    font-size: 27px;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}


.tarjeta-menu:hover .icono-menu {
    transform: scale(1.12) rotate(-3deg);

    background: rgba(50, 140, 240, 0.2);
}


/* =====================================================
   TEXTO
   ===================================================== */

.texto-menu {
    display: flex;

    flex-direction: column;

    flex: 1;

    min-width: 0;

    margin-left: 14px;

    gap: 4px;
}


.texto-menu strong {
    font-size: 17px;

    font-weight: 600;

    color: #ffffff;
}


.texto-menu small {
    font-size: 12px;

    line-height: 1.4;

    color: rgba(190, 215, 240, 0.65);
}


/* =====================================================
   FLECHA
   ===================================================== */

.flecha-menu {
    margin-left: 10px;

    font-size: 28px;

    line-height: 1;

    color: rgba(120, 195, 255, 0.5);

    transition:
        transform 0.3s ease,
        color 0.3s ease;
}


.tarjeta-menu:hover .flecha-menu {
    transform: translateX(5px);

    color: rgba(150, 215, 255, 0.95);
}


/* =====================================================
   EFECTO AL TOCAR EN CELULAR
   ===================================================== */

.tarjeta-menu:active {
    transform: scale(0.97);

    box-shadow:
        0 5px 18px rgba(0, 80, 180, 0.25);
}


.tarjeta-menu:active .icono-menu {
    transform: scale(0.92);
}


/* =====================================================
   RESPONSIVE - CELULAR
   ===================================================== */

@media (max-width: 600px) {

    .menu-contenido {
        width: 94%;

        padding: 22px 10px;
    }


    .menu-encabezado {
        margin-bottom: 20px;
    }


    .corazon-menu {
        width: 52px;
        height: 52px;

        font-size: 27px;
    }


    .menu-subtitulo {
        font-size: 12px;

        letter-spacing: 1.5px;
    }


    .menu-encabezado h2 {
        font-size: 26px;
    }


    .opciones-menu {
        gap: 11px;
    }


    .tarjeta-menu {
        min-height: 72px;

        padding: 10px 12px;

        border-radius: 17px;
    }


    .icono-menu {
        width: 46px;
        height: 46px;

        border-radius: 13px;

        font-size: 24px;
    }


    .texto-menu {
        margin-left: 11px;
    }


    .texto-menu strong {
        font-size: 15px;
    }


    .texto-menu small {
        font-size: 11px;
    }


    .flecha-menu {
        font-size: 24px;
    }

}


/* =====================================================
   CELULARES MUY PEQUEÑOS
   ===================================================== */

@media (max-height: 650px) and (max-width: 600px) {

    .menu-contenido {
        padding-top: 12px;
        padding-bottom: 12px;
    }


    .corazon-menu {
        width: 44px;
        height: 44px;

        margin-bottom: 7px;

        font-size: 23px;
    }


    .menu-encabezado {
        margin-bottom: 13px;
    }


    .menu-linea {
        margin-top: 7px;
    }


    .tarjeta-menu {
        min-height: 62px;
    }


    .icono-menu {
        width: 40px;
        height: 40px;

        font-size: 21px;
    }

}
/* =====================================================
   TRANSICIÓN DEL MENÚ
   ===================================================== */

.menu-principal.mostrar {
    opacity: 1;
    visibility: visible;
}


/* La pantalla inicial desaparece */

.pantalla-inicio.salir {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);

    transition:
        opacity 0.8s ease,
        transform 1s ease,
        visibility 0.8s ease;
}


/* Entrada del contenido */

.menu-principal.mostrar .menu-contenido {
    animation: aparecerMenu 0.9s ease forwards;
}


@keyframes aparecerMenu {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}
/* =====================================================
   SECCIÓN "QUIERO REÍRME"
   ===================================================== */

.seccion-reir {
    position: fixed;
    inset: 0;

    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    overflow-y: auto;

    background:
        radial-gradient(
            circle at 50% 10%,
            rgba(35, 100, 190, 0.25),
            transparent 35%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(20, 70, 150, 0.18),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #020817,
            #06152d 50%,
            #020611
        );

    color: white;

    opacity: 0;
    visibility: hidden;

    transform: translateX(30px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease,
        visibility 0.6s ease;

    z-index: 30;
}


/* Cuando JavaScript active la sección */

.seccion-reir.mostrar {
    opacity: 1;
    visibility: visible;

    transform: translateX(0);
}


/* =====================================================
   CONTENIDO
   ===================================================== */

.reir-contenido {
    position: relative;

    width: min(92%, 650px);

    margin: 0 auto;

    padding: 40px 20px 50px;

    text-align: center;
}


/* =====================================================
   ENCABEZADO
   ===================================================== */

.reir-encabezado {
    margin-bottom: 25px;

    animation: aparecerReir 0.8s ease both;
}


.reir-icono {
    width: 64px;
    height: 64px;

    margin: 0 auto 12px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;

    background:
        rgba(40, 120, 220, 0.13);

    border:
        1px solid rgba(100, 190, 255, 0.22);

    font-size: 32px;

    box-shadow:
        0 0 25px rgba(40, 140, 255, 0.12);
}


.reir-subtitulo {
    margin: 0 0 5px;

    font-size: 13px;

    letter-spacing: 1.5px;

    color:
        rgba(160, 210, 255, 0.75);
}


.reir-encabezado h2 {
    margin: 0;

    font-size: clamp(28px, 7vw, 38px);

    font-weight: 600;

    text-shadow:
        0 0 18px rgba(70, 170, 255, 0.3);
}


.reir-descripcion {
    max-width: 500px;

    margin: 10px auto 0;

    font-size: 14px;

    line-height: 1.6;

    color:
        rgba(200, 220, 240, 0.68);
}


@keyframes aparecerReir {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =====================================================
   CONTENEDOR DEL VIDEO
   ===================================================== */

.video-contenedor {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 22px;

    background:
        #01040a;

    border:
        1px solid rgba(90, 175, 255, 0.2);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(40, 130, 255, 0.08);

    animation:
        aparecerVideo 0.9s ease 0.2s both;
}


@keyframes aparecerVideo {

    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}


/* =====================================================
   PORTADA DEL VIDEO
   ===================================================== */

.video-portada {
    position: absolute;

    inset: 0;

    z-index: 2;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    padding: 20px;

    background:
        radial-gradient(
            circle,
            rgba(20, 65, 125, 0.35),
            rgba(1, 5, 12, 0.98)
        );

    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
}


.video-portada.ocultar {
    opacity: 0;
    visibility: hidden;

    pointer-events: none;
}


.video-icono {
    width: 70px;
    height: 70px;

    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 12px;

    border-radius: 50%;

    background:
        rgba(60, 150, 240, 0.12);

    border:
        1px solid rgba(100, 190, 255, 0.3);

    color:
        rgba(170, 220, 255, 0.95);

    font-size: 25px;

    padding-left: 4px;

    box-shadow:
        0 0 25px rgba(50, 150, 255, 0.15);

    animation:
        pulsarVideo 2.2s ease-in-out infinite;
}


@keyframes pulsarVideo {

    0%,
    100% {
        transform: scale(1);

        box-shadow:
            0 0 20px rgba(50, 150, 255, 0.12);
    }

    50% {
        transform: scale(1.08);

        box-shadow:
            0 0 30px rgba(50, 150, 255, 0.25);
    }

}


.video-portada p {
    margin: 0 0 15px;

    color:
        rgba(210, 230, 250, 0.75);

    font-size: 14px;
}


/* =====================================================
   BOTÓN VER VIDEO
   ===================================================== */

.btn-ver-video {
    padding: 11px 22px;

    border: 1px solid rgba(100, 195, 255, 0.35);

    border-radius: 30px;

    background:
        rgba(30, 100, 190, 0.22);

    color: white;

    font-size: 14px;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.btn-ver-video:hover {
    transform: translateY(-3px);

    background:
        rgba(40, 125, 220, 0.35);

    box-shadow:
        0 0 20px rgba(50, 160, 255, 0.2);
}


.btn-ver-video:active {
    transform: scale(0.95);
}


/* =====================================================
   VIDEO REAL
   ===================================================== */

.video-reir {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    background: #000;
}


/* =====================================================
   NOTAS
   ===================================================== */

.notas-reir {
    display: flex;

    flex-direction: column;

    gap: 15px;

    margin-top: 28px;
}


.nota-reir {
    display: flex;

    align-items: flex-start;

    gap: 14px;

    padding: 18px;

    text-align: left;

    border-radius: 18px;

    border:
        1px solid rgba(100, 180, 255, 0.14);

    background:
        linear-gradient(
            135deg,
            rgba(18, 53, 100, 0.48),
            rgba(5, 22, 48, 0.7)
        );

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.2);

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}


.nota-reir:hover {
    transform: translateY(-3px);

    border-color:
        rgba(90, 180, 255, 0.35);
}


.nota-icono {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 12px;

    background:
        rgba(50, 130, 220, 0.12);

    font-size: 21px;
}


.nota-texto {
    flex: 1;

    min-width: 0;
}


.nota-texto h3 {
    margin: 0 0 7px;

    font-size: 16px;

    font-weight: 600;

    color: white;
}


.texto-escritura {
    min-height: 24px;

    margin: 0;

    font-size: 13px;

    line-height: 1.7;

    color:
        rgba(205, 225, 245, 0.72);
}


/* Cursor de máquina de escribir */

.texto-escritura::after {
    content: "|";

    margin-left: 2px;

    color:
        rgba(120, 200, 255, 0.8);

    animation:
        cursorParpadea 0.8s infinite;
}


@keyframes cursorParpadea {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }

}


/* =====================================================
   BOTÓN VOLVER
   ===================================================== */

.btn-volver-menu {
    margin-top: 30px;

    padding: 11px 22px;

    border:
        1px solid rgba(100, 180, 255, 0.2);

    border-radius: 30px;

    background:
        rgba(10, 35, 70, 0.6);

    color:
        rgba(210, 230, 250, 0.85);

    cursor: pointer;

    font-size: 13px;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}


.btn-volver-menu:hover {
    transform: translateY(-2px);

    background:
        rgba(30, 90, 160, 0.35);

    border-color:
        rgba(100, 190, 255, 0.4);
}


.btn-volver-menu:active {
    transform: scale(0.96);
}


/* =====================================================
   CELULAR
   ===================================================== */

@media (max-width: 600px) {

    .reir-contenido {
        width: 94%;

        padding:
            25px 8px 40px;
    }


    .reir-icono {
        width: 54px;
        height: 54px;

        font-size: 27px;
    }


    .reir-subtitulo {
        font-size: 11px;

        letter-spacing: 1px;
    }


    .reir-descripcion {
        font-size: 13px;

        line-height: 1.5;
    }


    .video-contenedor {
        border-radius: 17px;
    }


    .video-icono {
        width: 58px;
        height: 58px;

        font-size: 21px;
    }


    .video-portada p {
        font-size: 12px;
    }


    .btn-ver-video {
        padding: 10px 18px;

        font-size: 13px;
    }


    .nota-reir {
        padding: 14px;

        gap: 11px;

        border-radius: 16px;
    }


    .nota-icono {
        width: 38px;
        height: 38px;

        font-size: 19px;
    }


    .nota-texto h3 {
        font-size: 15px;
    }


    .texto-escritura {
        font-size: 12px;

        line-height: 1.65;
    }

}


/* =====================================================
   CELULARES PEQUEÑOS
   ===================================================== */

@media (max-height: 650px) and (max-width: 600px) {

    .reir-contenido {
        padding-top: 15px;
    }


    .reir-encabezado {
        margin-bottom: 17px;
    }


    .reir-icono {
        width: 45px;
        height: 45px;

        font-size: 23px;
    }


    .video-contenedor {
        border-radius: 14px;
    }

}
/* =====================================================
   SECCIÓN "ESQUIVA METEORITOS"
   ===================================================== */

.seccion-jugar {
    position: fixed;
    inset: 0;

    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    overflow-y: auto;

    background:
        radial-gradient(
            circle at 50% 10%,
            rgba(35, 100, 190, 0.25),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #010611,
            #04142b 50%,
            #01050d
        );

    color: white;

    opacity: 0;
    visibility: hidden;

    transform: translateX(30px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease,
        visibility 0.6s ease;

    z-index: 30;
}


/* Mostrar juego */

.seccion-jugar.mostrar {
    opacity: 1;
    visibility: visible;

    transform: translateX(0);
}


/* =====================================================
   CONTENIDO
   ===================================================== */

.juego-contenido {
    position: relative;

    width: min(94%, 650px);

    margin: 0 auto;

    padding: 30px 10px 45px;

    text-align: center;
}


/* =====================================================
   ENCABEZADO
   ===================================================== */

.juego-encabezado {
    margin-bottom: 18px;

    animation:
        aparecerJuego 0.8s ease both;
}


.juego-icono {
    width: 58px;
    height: 58px;

    margin: 0 auto 9px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;

    background:
        rgba(40, 120, 220, 0.13);

    border:
        1px solid rgba(100, 190, 255, 0.22);

    font-size: 28px;

    box-shadow:
        0 0 25px rgba(40, 140, 255, 0.12);
}


.juego-subtitulo {
    margin: 0 0 4px;

    font-size: 12px;

    letter-spacing: 1.3px;

    color:
        rgba(160, 210, 255, 0.75);
}


.juego-encabezado h2 {
    margin: 0;

    font-size: clamp(25px, 6vw, 36px);

    text-transform: uppercase;

    letter-spacing: 1px;

    text-shadow:
        0 0 18px rgba(70, 170, 255, 0.3);
}


.juego-descripcion {
    margin: 7px 0 0;

    font-size: 13px;

    color:
        rgba(200, 220, 240, 0.65);
}


@keyframes aparecerJuego {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =====================================================
   INFORMACIÓN DEL JUEGO
   ===================================================== */

.juego-info {
    width: 100%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 8px;

    margin-bottom: 10px;
}


.dato-juego {
    flex: 1;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 6px;

    min-height: 38px;

    padding: 6px 10px;

    border-radius: 12px;

    background:
        rgba(20, 60, 110, 0.35);

    border:
        1px solid rgba(100, 180, 255, 0.14);

    font-size: 14px;

    font-weight: 600;
}


.dato-icono {
    font-size: 16px;
}


.puntuacion {
    font-variant-numeric: tabular-nums;
}


/* =====================================================
   ÁREA PRINCIPAL DEL JUEGO
   ===================================================== */

.area-juego {
    position: relative;

    width: 100%;

    height: min(70vh, 620px);

    min-height: 430px;

    overflow: hidden;

    border-radius: 20px;

    background:
        radial-gradient(
            circle at 50% 70%,
            rgba(15, 75, 145, 0.22),
            transparent 45%
        ),
        linear-gradient(
            180deg,
            #020817,
            #01040c
        );

    border:
        1px solid rgba(80, 170, 255, 0.2);

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.45),
        inset 0 0 40px rgba(20, 100, 190, 0.05);
}


/* =====================================================
   ESTRELLAS
   ===================================================== */

.espacio-fondo {
    position: absolute;

    inset: 0;

    pointer-events: none;

    overflow: hidden;
}


.espacio-fondo span {
    position: absolute;

    color:
        rgba(180, 220, 255, 0.7);

    font-size: 12px;

    animation:
        estrellaParpadea 2s ease-in-out infinite;
}


/* Posiciones */

.espacio-fondo span:nth-child(1) {
    top: 8%;
    left: 12%;
}

.espacio-fondo span:nth-child(2) {
    top: 17%;
    left: 30%;
}

.espacio-fondo span:nth-child(3) {
    top: 7%;
    right: 18%;
}

.espacio-fondo span:nth-child(4) {
    top: 31%;
    left: 8%;
}

.espacio-fondo span:nth-child(5) {
    top: 27%;
    right: 10%;
}

.espacio-fondo span:nth-child(6) {
    top: 43%;
    left: 23%;
}

.espacio-fondo span:nth-child(7) {
    top: 48%;
    right: 25%;
}

.espacio-fondo span:nth-child(8) {
    top: 60%;
    left: 8%;
}

.espacio-fondo span:nth-child(9) {
    top: 65%;
    right: 12%;
}

.espacio-fondo span:nth-child(10) {
    top: 78%;
    left: 30%;
}


@keyframes estrellaParpadea {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

}


/* =====================================================
   JUGADOR
   ===================================================== */

.jugador {
    position: absolute;

    left: 50%;

    bottom: 25px;

    width: 55px;
    height: 55px;

    display: flex;

    justify-content: center;
    align-items: center;

    transform:
        translateX(-50%);

    font-size: 42px;

    z-index: 10;

    user-select: none;

    filter:
        drop-shadow(
            0 0 10px rgba(70, 170, 255, 0.6)
        );

    transition:
        left 0.08s linear;
}


/* =====================================================
   METEORITOS
   ===================================================== */

.contenedor-meteoritos {
    position: absolute;

    inset: 0;

    pointer-events: none;

    z-index: 8;
}


.meteorito {
    position: absolute;

    top: -60px;

    width: 45px;
    height: 45px;

    display: flex;

    justify-content: center;
    align-items: center;

    font-size: 34px;

    user-select: none;

    filter:
        drop-shadow(
            0 0 8px rgba(255, 120, 40, 0.35)
        );
}
/* =========================================
   CAÍDA DE METEORITOS
========================================= */

@keyframes caerMeteorito {

    from {

        top: -60px;

        transform:
            translateY(0)
            rotate(0deg);

    }

    to {

        top: calc(100% + 60px);

        transform:
            translateY(0)
            rotate(var(--rotacion));

    }

}


/* =====================================================
   MENSAJE INICIAL
   ===================================================== */

.mensaje-juego {
    position: absolute;

    inset: 0;

    z-index: 20;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    padding: 30px;

    background:
        rgba(1, 7, 17, 0.72);

    backdrop-filter:
        blur(5px);

    -webkit-backdrop-filter:
        blur(5px);

    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
}


.mensaje-juego.ocultar {
    opacity: 0;

    visibility: hidden;

    pointer-events: none;
}


.mensaje-juego-icono {
    font-size: 45px;

    margin-bottom: 8px;

    animation:
        meteoritoFlota 2s ease-in-out infinite;
}


@keyframes meteoritoFlota {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-8px) rotate(5deg);
    }

}


.mensaje-juego h3 {
    margin: 0 0 7px;

    font-size: 24px;
}


.mensaje-juego p {
    max-width: 300px;

    margin: 0 0 18px;

    font-size: 13px;

    line-height: 1.6;

    color:
        rgba(210, 230, 250, 0.7);
}


/* =====================================================
   BOTÓN INICIAR
   ===================================================== */

.btn-iniciar-juego,
.btn-reiniciar-juego {
    padding: 11px 22px;

    border:
        1px solid rgba(100, 190, 255, 0.35);

    border-radius: 30px;

    background:
        rgba(35, 110, 200, 0.25);

    color: white;

    font-size: 14px;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.btn-iniciar-juego:hover,
.btn-reiniciar-juego:hover {
    transform: translateY(-3px);

    background:
        rgba(45, 130, 220, 0.4);

    box-shadow:
        0 0 20px rgba(50, 160, 255, 0.2);
}


.btn-iniciar-juego:active,
.btn-reiniciar-juego:active {
    transform: scale(0.95);
}


/* =====================================================
   PANTALLA FINAL
   ===================================================== */

.pantalla-final-juego {
    position: absolute;

    inset: 0;

    z-index: 25;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    padding: 25px;

    background:
        rgba(1, 7, 17, 0.9);

    backdrop-filter:
        blur(7px);

    -webkit-backdrop-filter:
        blur(7px);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
}


.pantalla-final-juego.mostrar {
    opacity: 1;

    visibility: visible;
}


.final-icono {
    font-size: 42px;

    margin-bottom: 7px;
}


.pantalla-final-juego h3 {
    margin: 0 0 5px;

    font-size: 23px;
}


.pantalla-final-juego p {
    margin: 5px 0;

    color:
        rgba(205, 225, 245, 0.7);

    font-size: 13px;
}


#puntuacionFinal {
    display: block;

    margin: 5px 0 8px;

    font-size: 38px;

    letter-spacing: 3px;

    text-shadow:
        0 0 20px rgba(80, 180, 255, 0.45);
}


/* =====================================================
   CONTROLES PARA CELULAR
   ===================================================== */

.controles-juego {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 18px;

    margin-top: 15px;
}


.control-juego {
    width: 62px;
    height: 48px;

    border:
        1px solid rgba(100, 190, 255, 0.25);

    border-radius: 15px;

    background:
        rgba(25, 80, 145, 0.3);

    color: white;

    font-size: 22px;

    cursor: pointer;

    touch-action: none;

    transition:
        transform 0.15s ease,
        background 0.15s ease;
}


.control-juego:hover {
    background:
        rgba(40, 110, 190, 0.4);
}


.control-juego:active {
    transform: scale(0.9);

    background:
        rgba(50, 135, 220, 0.5);
}


.indicador-control {
    color:
        rgba(170, 205, 235, 0.55);

    font-size: 11px;
}


/* =====================================================
   INSTRUCCIONES
   ===================================================== */

.instrucciones-juego {
    margin-top: 12px;

    color:
        rgba(170, 205, 235, 0.55);

    font-size: 11px;

    line-height: 1.5;
}


.instrucciones-juego p {
    margin: 3px 0;
}


.instrucciones-juego strong {
    color:
        rgba(210, 230, 250, 0.8);
}


/* =====================================================
   VOLVER AL MENÚ
   ===================================================== */

.btn-volver-menu-juego {
    margin-top: 22px;

    padding: 10px 21px;

    border:
        1px solid rgba(100, 180, 255, 0.2);

    border-radius: 30px;

    background:
        rgba(10, 35, 70, 0.6);

    color:
        rgba(210, 230, 250, 0.85);

    cursor: pointer;

    font-size: 13px;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}


.btn-volver-menu-juego:hover {
    transform: translateY(-2px);

    background:
        rgba(30, 90, 160, 0.35);

    border-color:
        rgba(100, 190, 255, 0.4);
}


/* =====================================================
   CELULAR
   ===================================================== */

@media (max-width: 600px) {

    .juego-contenido {
        width: 94%;

        padding:
            20px 4px 35px;
    }


    .juego-icono {
        width: 50px;
        height: 50px;

        font-size: 25px;
    }


    .juego-subtitulo {
        font-size: 10px;
    }


    .juego-descripcion {
        font-size: 12px;
    }


    .juego-info {
        gap: 5px;
    }


    .dato-juego {
        min-height: 35px;

        padding: 5px;

        font-size: 12px;
    }


    .dato-icono {
        font-size: 14px;
    }


    .area-juego {
        height: 62vh;

        min-height: 390px;

        border-radius: 17px;
    }


    .jugador {
        width: 48px;
        height: 48px;

        font-size: 36px;

        bottom: 18px;
    }


    .meteorito {
        width: 40px;
        height: 40px;

        font-size: 30px;
    }


    .controles-juego {
        gap: 14px;
    }


    .control-juego {
        width: 70px;
        height: 50px;

        font-size: 21px;
    }


    .indicador-control {
        font-size: 10px;
    }


    .instrucciones-juego {
        font-size: 10px;
    }

}


/* =====================================================
   CELULARES PEQUEÑOS
   ===================================================== */

@media (max-height: 650px) and (max-width: 600px) {

    .juego-contenido {
        padding-top: 12px;
    }


    .juego-encabezado {
        margin-bottom: 10px;
    }


    .juego-icono {
        width: 42px;
        height: 42px;

        font-size: 21px;
    }


    .area-juego {
        height: 58vh;

        min-height: 340px;
    }


    .controles-juego {
        margin-top: 9px;
    }

}
/* =========================================
   GOLPE DEL JUGADOR
========================================= */

.jugador.golpe {

    animation:
        jugadorGolpe 0.4s ease;

}


@keyframes jugadorGolpe {

    0% {
        transform:
            translateX(-50%)
            scale(1);
    }

    25% {
        transform:
            translateX(-50%)
            scale(1.35)
            rotate(-8deg);
    }

    50% {
        transform:
            translateX(-50%)
            scale(0.8)
            rotate(8deg);
    }

    75% {
        transform:
            translateX(-50%)
            scale(1.2)
            rotate(-5deg);
    }

    100% {
        transform:
            translateX(-50%)
            scale(1)
            rotate(0);
    }

}
/* =========================================
   CORAZONES DE VIDAS
========================================= */

.corazones-juego {
    display: flex;
    gap: 5px;
    align-items: center;
}

.corazones-juego span {
    display: inline-block;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.corazones-juego span.perdido {
    opacity: 0.15;
    filter: grayscale(1);
    transform: scale(0.7);
}


/* =========================================
   EXPLOSIÓN
========================================= */

.explosion {

    position: absolute;

    font-size: 2.8rem;

    pointer-events: none;

    z-index: 20;

    animation:
        explosionAnim 0.7s ease-out
        forwards;

}


@keyframes explosionAnim {

    0% {

        opacity: 1;

        transform:
            translate(-50%, -50%)
            scale(0.3)
            rotate(0deg);

    }

    40% {

        opacity: 1;

        transform:
            translate(-50%, -50%)
            scale(1.4)
            rotate(15deg);

    }

    100% {

        opacity: 0;

        transform:
            translate(-50%, -50%)
            scale(2.2)
            rotate(-20deg);

    }

}


/* =========================================
   DESTELLO DEL JUGADOR
========================================= */

.jugador.golpe {

    animation:
        jugadorGolpe 0.4s ease;

}


@keyframes jugadorGolpe {

    0% {

        transform:
            translateX(-50%)
            scale(1);

        filter: brightness(1);

    }

    25% {

        transform:
            translateX(-50%)
            scale(1.3)
            rotate(-8deg);

        filter: brightness(2);

    }

    50% {

        transform:
            translateX(-50%)
            scale(0.8)
            rotate(8deg);

        filter: brightness(1.5);

    }

    75% {

        transform:
            translateX(-50%)
            scale(1.15)
            rotate(-5deg);

        filter: brightness(2);

    }

    100% {

        transform:
            translateX(-50%)
            scale(1)
            rotate(0);

        filter: brightness(1);

    }

}


/* =========================================
   ANIMACIÓN DE PUNTUACIÓN
========================================= */

.puntuacion-subida {

    animation:
        puntuacionSubida 0.3s ease;

}


@keyframes puntuacionSubida {

    0% {

        transform: scale(1);

    }

    50% {

        transform: scale(1.25);

    }

    100% {

        transform: scale(1);

    }

}
/* =========================================
   SORPRESA
========================================= */

.seccion-sorpresa {
    position: fixed;
    inset: 0;
    z-index: 100;

    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 100vh;
    padding: 30px 20px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(255, 255, 255, 0.95),
            rgba(210, 235, 255, 0.95) 35%,
            rgba(120, 170, 255, 0.95) 70%,
            rgba(75, 100, 190, 1)
        );

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: scale(1.05);

    transition:
        opacity 0.5s ease,
        transform 0.5s ease,
        visibility 0.5s;
}


/* Mostrar sección */

.seccion-sorpresa.mostrar {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: scale(1);
}


/* =========================================
   FONDO DECORATIVO
========================================= */

.sorpresa-fondo {
    position: absolute;
    inset: 0;

    overflow: hidden;

    pointer-events: none;
}


/* Estrellitas */

.sorpresa-fondo span {
    position: absolute;

    color: white;

    font-size: 25px;

    opacity: 0.7;

    animation:
        flotarSorpresa
        4s ease-in-out infinite;
}


/* Posiciones */

.sorpresa-fondo span:nth-child(1) {
    top: 12%;
    left: 12%;
    animation-delay: 0s;
}

.sorpresa-fondo span:nth-child(2) {
    top: 22%;
    right: 15%;
    animation-delay: 0.8s;
}

.sorpresa-fondo span:nth-child(3) {
    top: 45%;
    left: 6%;
    animation-delay: 1.4s;
}

.sorpresa-fondo span:nth-child(4) {
    top: 70%;
    right: 10%;
    animation-delay: 2s;
}

.sorpresa-fondo span:nth-child(5) {
    top: 78%;
    left: 15%;
    animation-delay: 0.5s;
}

.sorpresa-fondo span:nth-child(6) {
    top: 10%;
    right: 35%;
    animation-delay: 1.8s;
}

.sorpresa-fondo span:nth-child(7) {
    top: 55%;
    right: 5%;
    animation-delay: 2.5s;
}

.sorpresa-fondo span:nth-child(8) {
    top: 85%;
    left: 45%;
    animation-delay: 1s;
}

.sorpresa-fondo span:nth-child(9) {
    top: 35%;
    left: 20%;
    animation-delay: 3s;
}


/* =========================================
   CONTENIDO
========================================= */

.sorpresa-contenido {
    position: relative;

    z-index: 5;

    width: min(700px, 100%);

    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* =========================================
   ENCABEZADO
========================================= */

.sorpresa-encabezado {
    animation:
        aparecerSorpresa
        0.8s ease both;
}


.sorpresa-icono {
    font-size: 50px;

    margin-bottom: 5px;

    filter:
        drop-shadow(
            0 5px 10px
            rgba(0, 0, 0, 0.18)
        );

    animation:
        flotarRegalo
        3s ease-in-out infinite;
}


.sorpresa-subtitulo {
    margin: 5px 0;

    font-size: 0.95rem;

    color: #3856a8;

    font-weight: 600;

    letter-spacing: 1px;
}


.sorpresa-encabezado h2 {
    margin: 8px 0;

    color: #172b72;

    font-size: clamp(
        1.8rem,
        5vw,
        2.8rem
    );

    text-shadow:
        0 3px 10px
        rgba(255,255,255,0.6);
}


.sorpresa-encabezado > p:last-child {
    margin: 5px 0;

    color: #394d83;

    font-size: 1rem;
}


/* =========================================
   CONTENEDOR DEL REGALO
========================================= */

.regalo-contenedor {
    position: relative;

    width: 300px;
    height: 290px;

    margin: 10px auto 0;

    display: flex;

    justify-content: center;

    align-items: center;
}


/* =========================================
   DESTELLOS DEL REGALO
========================================= */

.destellos-regalo {
    position: absolute;

    inset: 0;

    pointer-events: none;
}


.destellos-regalo span {
    position: absolute;

    color: white;

    font-size: 25px;

    animation:
        destelloRegalo
        2s ease-in-out infinite;
}


.destellos-regalo span:nth-child(1) {
    top: 20px;
    left: 45px;
}

.destellos-regalo span:nth-child(2) {
    top: 50px;
    right: 35px;

    animation-delay: .4s;
}

.destellos-regalo span:nth-child(3) {
    bottom: 60px;
    left: 25px;

    animation-delay: .8s;
}

.destellos-regalo span:nth-child(4) {
    bottom: 40px;
    right: 20px;

    animation-delay: 1.2s;
}

.destellos-regalo span:nth-child(5) {
    top: 5px;
    right: 110px;

    animation-delay: 1.6s;
}


/* =========================================
   REGALO
========================================= */

.regalo {
    position: relative;

    width: 180px;
    height: 150px;

    border: none;

    background: transparent;

    cursor: pointer;

    padding: 0;

    transform-origin: center bottom;

    animation:
        regaloFlotando
        2.5s ease-in-out infinite;

    filter:
        drop-shadow(
            0 15px 15px
            rgba(25, 45, 120, 0.25)
        );

    transition:
        transform 0.3s ease;
}


.regalo:hover {
    transform:
        scale(1.08)
        rotate(-2deg);
}


/* =========================================
   CAJA
========================================= */

.caja-regalo {
    position: absolute;

    left: 15px;
    bottom: 5px;

    width: 150px;
    height: 105px;

    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            #ff5d7d,
            #e52e58
        );

    box-shadow:
        inset 0 -8px 0
        rgba(150, 0, 40, 0.18);

    overflow: hidden;
}


/* =========================================
   TAPA
========================================= */

.tapa-regalo {
    position: absolute;

    z-index: 3;

    left: 5px;
    top: 22px;

    width: 170px;
    height: 35px;

    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            #ff7995,
            #ef315c
        );

    box-shadow:
        0 5px 8px
        rgba(100, 0, 30, 0.2);

    transform-origin: left center;

    transition:
        transform 0.8s
        cubic-bezier(.2,.8,.2,1),
        top 0.8s
        cubic-bezier(.2,.8,.2,1);
}


/* =========================================
   CINTA
========================================= */

.cinta-vertical {
    position: absolute;

    left: 50%;
    top: 0;

    transform: translateX(-50%);

    width: 25px;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #ffd84d,
            #fff09a,
            #ffc928
        );
}


.cinta-horizontal {
    position: absolute;

    left: 0;
    top: 40px;

    width: 100%;
    height: 22px;

    background:
        linear-gradient(
            90deg,
            #ffd84d,
            #fff09a,
            #ffc928
        );
}


/* =========================================
   LAZO
========================================= */

.lazo {
    position: absolute;

    z-index: 5;

    left: 50%;
    top: 0;

    width: 75px;
    height: 45px;

    transform:
        translateX(-50%);
}


.lazo span {
    position: absolute;

    width: 40px;
    height: 30px;

    background:
        linear-gradient(
            135deg,
            #ffd84d,
            #ffb900
        );

    border-radius:
        50% 50% 50% 10%;

    top: 0;
}


.lazo span:first-child {
    left: 0;

    transform:
        rotate(25deg);
}


.lazo span:last-child {
    right: 0;

    transform:
        scaleX(-1)
        rotate(25deg);
}


.lazo::after {
    content: "";

    position: absolute;

    left: 50%;
    top: 12px;

    width: 20px;
    height: 20px;

    transform: translateX(-50%);

    border-radius: 50%;

    background: #ffc928;
}


/* =========================================
   INSTRUCCIÓN
========================================= */

.instruccion-sorpresa {
    margin: -5px 0 15px;

    color: #263d87;

    font-weight: 600;

    animation:
        parpadeoSorpresa
        1.8s ease-in-out infinite;
}


/* =========================================
   MENSAJE
========================================= */

.mensaje-sorpresa {
    position: absolute;

    width: min(500px, 90vw);

    padding: 28px 25px;

    border-radius: 25px;

    background:
        rgba(255,255,255,0.96);

    box-shadow:
        0 20px 60px
        rgba(35, 65, 150, 0.25);

    opacity: 0;

    transform:
        translateY(30px)
        scale(.8);

    pointer-events: none;

    transition:
        opacity .7s ease,
        transform .7s
        cubic-bezier(.2,.8,.2,1);
}


/* Mensaje visible */

.mensaje-sorpresa.mostrar {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);

    pointer-events: auto;
}


.mensaje-sorpresa-corazon {
    font-size: 55px;

    animation:
        latidoSorpresa
        1.2s ease-in-out infinite;
}


.mensaje-sorpresa h3 {
    margin: 5px 0 12px;

    color: #e52e58;

    font-size: 2rem;
}


.mensaje-sorpresa p {
    margin: 8px auto;

    max-width: 420px;

    color: #46557f;

    line-height: 1.6;
}


.mensaje-final-sorpresa {
    font-weight: 600;

    color: #3655a5 !important;
}


/* =========================================
   CONFETI
========================================= */

.confeti-sorpresa {
    position: absolute;

    inset: 0;

    pointer-events: none;

    overflow: visible;
}


.confeti {
    position: absolute;

    width: 9px;
    height: 15px;

    top: 45%;

    animation:
        caerConfeti
        2.5s ease-out
        forwards;
}


/* =========================================
   BOTÓN VOLVER
========================================= */

.btn-volver-menu-sorpresa {
    margin-top: 10px;

    padding: 12px 25px;

    border: none;

    border-radius: 25px;

    background:
        rgba(255,255,255,0.85);

    color: #3856a8;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 5px 15px
        rgba(30,50,120,.15);

    transition:
        transform .25s ease,
        background .25s ease;
}


.btn-volver-menu-sorpresa:hover {
    transform: translateY(-3px);

    background: white;
}


/* =========================================
   ANIMACIONES
========================================= */

@keyframes flotarSorpresa {

    0%,100% {
        transform:
            translateY(0)
            rotate(0deg);

        opacity: .45;
    }

    50% {
        transform:
            translateY(-18px)
            rotate(15deg);

        opacity: 1;
    }

}


@keyframes flotarRegalo {

    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

}


@keyframes regaloFlotando {

    0%,100% {
        transform:
            translateY(0)
            rotate(0deg);
    }

    50% {
        transform:
            translateY(-10px)
            rotate(1deg);
    }

}


@keyframes aparecerSorpresa {

    from {
        opacity: 0;

        transform:
            translateY(-20px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


@keyframes destelloRegalo {

    0%,100% {
        opacity: .25;

        transform:
            scale(.7)
            rotate(0deg);
    }

    50% {
        opacity: 1;

        transform:
            scale(1.3)
            rotate(20deg);
    }

}


@keyframes parpadeoSorpresa {

    0%,100% {
        opacity: .65;
    }

    50% {
        opacity: 1;
    }

}


@keyframes latidoSorpresa {

    0%,100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

}


@keyframes caerConfeti {

    0% {
        transform:
            translate(0, 0)
            rotate(0deg);

        opacity: 1;
    }

    100% {
        transform:
            translate(
                var(--x),
                420px
            )
            rotate(
                var(--rotacion)
            );

        opacity: 0;
    }

}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 600px) {

    .seccion-sorpresa {
        padding:
            20px 15px;
    }


    .sorpresa-icono {
        font-size: 42px;
    }


    .sorpresa-encabezado h2 {
        font-size: 1.8rem;
    }


    .sorpresa-encabezado > p:last-child {
        font-size: .9rem;
    }


    .regalo-contenedor {
        width: 270px;
        height: 260px;
    }


    .mensaje-sorpresa {
        padding: 25px 20px;
    }


    .mensaje-sorpresa h3 {
        font-size: 1.7rem;
    }

}
/* =========================================
   REGALO ABIERTO
========================================= */

.regalo.abierto {
    animation: none;

    transform:
        translateY(5px)
        scale(1.03);
}


.regalo.abierto .lazo {
    animation:
        lazoAbierto
        .6s ease forwards;
}


@keyframes lazoAbierto {

    0% {
        transform:
            translateX(-50%)
            scale(1);
    }

    50% {
        transform:
            translateX(-50%)
            scale(1.2)
            rotate(-8deg);
    }

    100% {
        transform:
            translateX(-50%)
            scale(1);
    }

}
/* =========================================
   QUIERO CURIOSEAR
========================================= */

.seccion-curiosear {

    position: fixed;

    inset: 0;

    z-index: 100;

    display: flex;

    justify-content: center;

    align-items: center;

    min-height: 100vh;

    padding: 30px 20px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 40%,
            #ffffff 0%,
            #edf5ff 30%,
            #c8dcff 65%,
            #8da9e8 100%
        );

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform: scale(1.05);

    transition:
        opacity .5s ease,
        transform .5s ease,
        visibility .5s;
}


/* =========================================
   MOSTRAR
========================================= */

.seccion-curiosear.mostrar {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: scale(1);

}


/* =========================================
   FONDO
========================================= */

.curiosear-fondo {

    position: absolute;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

}


/* =========================================
   BRILLOS
========================================= */

.brillo-curioso {

    position: absolute;

    width: 350px;

    height: 350px;

    border-radius: 50%;

    filter: blur(70px);

    opacity: .35;

    animation:
        moverBrillo
        8s ease-in-out infinite;
}


.brillo-1 {

    top: -120px;

    left: -100px;

    background: #8db8ff;

}


.brillo-2 {

    right: -120px;

    bottom: -100px;

    background: #b89cff;

    animation-delay: 2s;

}


.brillo-3 {

    top: 40%;

    left: 40%;

    background: #9de7ff;

    animation-delay: 4s;

}


/* =========================================
   ESTRELLAS
========================================= */

.estrellas-curiosas {

    position: absolute;

    inset: 0;

}


.estrellas-curiosas span {

    position: absolute;

    color: white;

    font-size: 24px;

    opacity: .65;

    animation:
        estrellaCuriosa
        4s ease-in-out infinite;

}


.estrellas-curiosas span:nth-child(1) {

    top: 12%;

    left: 10%;

}


.estrellas-curiosas span:nth-child(2) {

    top: 20%;

    right: 15%;

    animation-delay: .5s;

}


.estrellas-curiosas span:nth-child(3) {

    top: 45%;

    left: 5%;

    animation-delay: 1s;

}


.estrellas-curiosas span:nth-child(4) {

    bottom: 20%;

    right: 8%;

    animation-delay: 1.5s;

}


.estrellas-curiosas span:nth-child(5) {

    bottom: 12%;

    left: 15%;

    animation-delay: 2s;

}


.estrellas-curiosas span:nth-child(6) {

    top: 8%;

    right: 40%;

    animation-delay: 2.5s;

}


.estrellas-curiosas span:nth-child(7) {

    top: 60%;

    right: 20%;

    animation-delay: 3s;

}


.estrellas-curiosas span:nth-child(8) {

    bottom: 30%;

    left: 25%;

    animation-delay: 1.2s;

}


.estrellas-curiosas span:nth-child(9) {

    top: 30%;

    left: 20%;

    animation-delay: 1.8s;

}


.estrellas-curiosas span:nth-child(10) {

    bottom: 8%;

    right: 35%;

    animation-delay: 2.7s;

}


/* =========================================
   CONTENIDO
========================================= */

.curiosear-contenido {

    position: relative;

    z-index: 5;

    width: min(700px, 100%);

    text-align: center;

    display: flex;

    flex-direction: column;

    align-items: center;

}


/* =========================================
   ENCABEZADO
========================================= */

.curiosear-encabezado {

    animation:
        aparecerCurioso
        .8s ease both;

}


.curiosear-icono {

    font-size: 48px;

    margin-bottom: 3px;

    filter:
        drop-shadow(
            0 5px 10px
            rgba(30,60,130,.2)
        );

    animation:
        flotarCurioso
        3s ease-in-out infinite;

}


.curiosear-subtitulo {

    margin: 4px 0;

    color: #4262ad;

    font-size: .95rem;

    font-weight: 600;

    letter-spacing: .8px;

}


.curiosear-encabezado h2 {

    margin: 7px 0;

    color: #203b82;

    font-size:
        clamp(
            1.8rem,
            5vw,
            2.7rem
        );

}


.curiosear-descripcion {

    margin: 5px 0;

    color: #50618c;

}


/* =========================================
   ZONA FRASE
========================================= */

.frase-zona {

    position: relative;

    width: min(570px, 95vw);

    margin-top: 25px;

    display: flex;

    justify-content: center;

    align-items: center;

}


/* =========================================
   DESTELLOS
========================================= */

.destellos-frase {

    position: absolute;

    inset: -30px;

    pointer-events: none;

}


.destellos-frase span {

    position: absolute;

    color: white;

    font-size: 25px;

    animation:
        destelloFrase
        2.5s ease-in-out infinite;

}


.destellos-frase span:nth-child(1) {

    top: 10px;

    left: 25px;

}


.destellos-frase span:nth-child(2) {

    top: 30px;

    right: 20px;

    animation-delay: .6s;

}


.destellos-frase span:nth-child(3) {

    bottom: 15px;

    left: 15px;

    animation-delay: 1.2s;

}


.destellos-frase span:nth-child(4) {

    bottom: 25px;

    right: 25px;

    animation-delay: 1.8s;

}


/* =========================================
   TARJETA
========================================= */

.tarjeta-frase {

    position: relative;

    width: 100%;

    min-height: 260px;

    padding: 40px 35px 30px;

    border: 1px solid
        rgba(255,255,255,.7);

    border-radius: 30px;

    background:
        rgba(255,255,255,.55);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    box-shadow:
        0 25px 60px
        rgba(45,75,150,.18),

        inset 0 1px 0
        rgba(255,255,255,.8);

    cursor: pointer;

    color: inherit;

    transition:
        transform .3s ease,
        box-shadow .3s ease;

    overflow: hidden;

}


.tarjeta-frase:hover {

    transform:
        translateY(-5px)
        scale(1.01);

    box-shadow:
        0 30px 70px
        rgba(45,75,150,.25);

}


.tarjeta-frase:active {

    transform:
        scale(.98);

}


/* =========================================
   CORAZÓN
========================================= */

.frase-corazon {

    font-size: 40px;

    margin-bottom: 10px;

    animation:
        latidoCurioso
        1.8s ease-in-out infinite;

}


/* =========================================
   FRASE
========================================= */

.frase-curiosa {

    min-height: 80px;

    margin: 0 auto;

    max-width: 470px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #30467d;

    font-size:
        clamp(
            1.1rem,
            3vw,
            1.45rem
        );

    line-height: 1.65;

    font-weight: 500;

}


/* Animación cuando cambia */

.frase-curiosa.cambiar {

    animation:
        cambiarFrase
        .6s ease;

}


/* =========================================
   LÍNEA
========================================= */

.frase-linea {

    margin: 15px 0 8px;

    color: #6681c6;

    font-size: .8rem;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 8px;

}


/* =========================================
   INDICACIÓN
========================================= */

.tocar-frase {

    display: block;

    color: #5570b2;

    font-size: .82rem;

    font-weight: 600;

    opacity: .8;

}


/* =========================================
   ESQUINAS
========================================= */

.frase-esquina {

    position: absolute;

    color: white;

    font-size: 25px;

    opacity: .7;

}


.esquina-1 {

    top: 18px;

    left: 20px;

}


.esquina-2 {

    bottom: 18px;

    right: 20px;

}


/* =========================================
   CONTADOR
========================================= */

.contador-curioso {

    margin-top: 18px;

    padding: 8px 18px;

    border-radius: 30px;

    background:
        rgba(255,255,255,.5);

    color: #4d639d;

    font-size: .85rem;

    box-shadow:
        0 5px 15px
        rgba(40,70,130,.08);

}


.contador-curioso strong {

    color: #e04c70;

    margin: 0 4px;

    font-size: 1rem;

}


/* =========================================
   PISTA
========================================= */

.curiosear-pista {

    margin: 10px 0;

    color: #50618d;

    font-size: .85rem;

    animation:
        parpadeoCurioso
        2s ease-in-out infinite;

}


/* =========================================
   BOTÓN VOLVER
========================================= */

.btn-volver-menu-curiosear {

    margin-top: 5px;

    padding: 11px 24px;

    border: none;

    border-radius: 25px;

    background:
        rgba(255,255,255,.8);

    color: #4262a9;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 5px 15px
        rgba(40,60,120,.12);

    transition:
        transform .25s ease,
        background .25s ease;

}


.btn-volver-menu-curiosear:hover {

    transform:
        translateY(-3px);

    background: white;

}


/* =========================================
   ANIMACIONES
========================================= */

@keyframes moverBrillo {

    0%,100% {

        transform:
            translate(0,0)
            scale(1);

    }

    50% {

        transform:
            translate(80px,-40px)
            scale(1.15);

    }

}


@keyframes estrellaCuriosa {

    0%,100% {

        transform:
            translateY(0)
            scale(.8);

        opacity: .4;

    }

    50% {

        transform:
            translateY(-15px)
            scale(1.2);

        opacity: 1;

    }

}


@keyframes aparecerCurioso {

    from {

        opacity: 0;

        transform:
            translateY(-20px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


@keyframes flotarCurioso {

    0%,100% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(-8px);

    }

}


@keyframes destelloFrase {

    0%,100% {

        transform:
            scale(.7)
            rotate(0deg);

        opacity: .3;

    }

    50% {

        transform:
            scale(1.3)
            rotate(15deg);

        opacity: 1;

    }

}


@keyframes latidoCurioso {

    0%,100% {

        transform:
            scale(1);

    }

    50% {

        transform:
            scale(1.12);

    }

}


@keyframes cambiarFrase {

    0% {

        opacity: 0;

        transform:
            translateY(15px)
            scale(.96);

        filter:
            blur(4px);

    }

    50% {

        opacity: .4;

        transform:
            translateY(-5px)
            scale(1.01);

        filter:
            blur(1px);

    }

    100% {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

        filter:
            blur(0);

    }

}


@keyframes parpadeoCurioso {

    0%,100% {

        opacity: .55;

    }

    50% {

        opacity: 1;

    }

}


/* =========================================
   CELULAR
========================================= */

@media (max-width: 600px) {

    .seccion-curiosear {

        padding:
            20px 15px;

    }


    .curiosear-icono {

        font-size: 40px;

    }


    .curiosear-encabezado h2 {

        font-size: 1.8rem;

    }


    .curiosear-descripcion {

        font-size: .9rem;

    }


    .frase-zona {

        margin-top: 18px;

    }


    .tarjeta-frase {

        min-height: 250px;

        padding:
            35px 22px 25px;

        border-radius: 25px;

    }


    .frase-curiosa {

        font-size: 1.05rem;

        line-height: 1.55;

    }


    .frase-corazon {

        font-size: 34px;

    }

}
/* =========================================================
   CURIOSEAR
========================================================= */

.seccion-curiosear {
    position: fixed;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 25px;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(77, 171, 247, 0.18),
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(155, 93, 229, 0.16),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #07152f,
            #102b55,
            #07152f
        );

    opacity: 0;
    visibility: hidden;

    transform: scale(0.96);

    transition:
        opacity 0.5s ease,
        transform 0.5s ease,
        visibility 0.5s;

    z-index: 100;
}


.seccion-curiosear.mostrar {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}


/* Contenido */

.curiosear-contenido {
    width: min(700px, 100%);

    text-align: center;

    color: white;
}


/* Icono */

.curiosear-icono {
    font-size: 4rem;

    margin-bottom: 10px;

    animation:
        flotarCuriosear 3s ease-in-out infinite;
}


@keyframes flotarCuriosear {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

}


/* Subtítulo */

.curiosear-subtitulo {
    color: #9fd7ff;

    font-size: 0.95rem;

    letter-spacing: 1px;

    margin-bottom: 8px;
}


/* Título */

.curiosear-contenido h2 {
    font-size: clamp(2rem, 6vw, 3.2rem);

    margin: 0 0 35px;

    text-shadow:
        0 0 15px rgba(100, 190, 255, 0.5);
}


/* Frase */

.frase-curiosear {
    position: relative;

    min-height: 180px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;

    padding: 35px;

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.12),
            rgba(255,255,255,0.04)
        );

    border: 1px solid rgba(255,255,255,0.18);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.35),
        inset 0 0 30px rgba(255,255,255,0.03);

    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.frase-curiosear:hover {
    transform: translateY(-6px) scale(1.01);

    box-shadow:
        0 25px 60px rgba(0,0,0,0.4),
        0 0 25px rgba(77,171,247,0.18);
}


.frase-curiosear:active {
    transform: scale(0.97);
}


.frase-curiosear span {
    color: #8ed8ff;

    font-size: 1.4rem;

    animation:
        brilloCuriosear 2s ease-in-out infinite;
}


.frase-curiosear p {
    max-width: 500px;

    margin: 0;

    font-size: clamp(1.1rem, 3vw, 1.5rem);

    line-height: 1.7;

    color: #ffffff;
}


/* Animación nueva frase */

.frase-nueva {
    animation:
        aparecerFrase 0.6s ease;
}


.frase-saliendo {
    animation:
        desaparecerFrase 0.25s ease forwards;
}


@keyframes aparecerFrase {

    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


@keyframes desaparecerFrase {

    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-12px);
    }

}


@keyframes brilloCuriosear {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

}


/* Botón */

.btn-frase-curiosear {
    margin-top: 25px;

    padding: 14px 25px;

    border: none;
    border-radius: 50px;

    background:
        linear-gradient(
            135deg,
            #4dabf7,
            #7b61ff
        );

    color: white;

    font-size: 1rem;
    font-weight: bold;

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(77,171,247,0.3);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.btn-frase-curiosear:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(77,171,247,0.45);
}


.btn-frase-curiosear:active {
    transform: scale(0.95);
}


/* Volver */

.seccion-curiosear
.btn-volver-menu {
    display: block;

    margin: 20px auto 0;

    background: transparent;

    border: none;

    color: rgba(255,255,255,0.75);

    cursor: pointer;

    font-size: 0.95rem;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


.seccion-curiosear
.btn-volver-menu:hover {
    color: white;

    transform: translateX(-4px);
}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 600px) {

    .seccion-curiosear {
        padding: 18px;
    }

    .curiosear-icono {
        font-size: 3.2rem;
    }

    .curiosear-contenido h2 {
        margin-bottom: 25px;
    }

    .frase-curiosear {
        min-height: 200px;

        padding: 25px 18px;

        gap: 8px;
    }

    .frase-curiosear p {
        font-size: 1.05rem;
    }

    .frase-curiosear span {
        font-size: 1rem;
    }

}
/* =========================================
   SECCIÓN DE AUDIOS
========================================= */

.seccion-audios {
    min-height: 100vh;
    padding: 70px 20px;
    background:
        radial-gradient(circle at 20% 20%, rgba(120, 170, 255, .25), transparent 35%),
        radial-gradient(circle at 80% 80%, rgba(170, 130, 255, .20), transparent 35%),
        linear-gradient(135deg, #eef5ff, #f8f5ff);

    display: none;
    justify-content: center;
    align-items: center;
}

.seccion-audios.mostrar {
    display: flex;
}

.audios-contenido {
    width: min(700px, 100%);
    text-align: center;
    animation: aparecerAudios .8s ease;
}

/* ENCABEZADO */

.audios-icono {
    font-size: 55px;
    margin-bottom: 10px;

    filter: drop-shadow(0 6px 10px rgba(50, 80, 150, .20));

    animation: flotarAudios 3s ease-in-out infinite;
}

.audios-subtitulo {
    margin: 0 0 5px;
    color: #6682b8;
    font-size: 14px;
    letter-spacing: 1px;
}

.audios-contenido h2 {
    margin: 0;
    color: #294c87;
    font-size: clamp(30px, 6vw, 44px);
}

.audios-descripcion {
    margin: 10px auto 35px;
    max-width: 500px;
    color: #667085;
    line-height: 1.6;
}


/* TARJETAS DE AUDIO */

.lista-audios {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.audio-card {
    position: relative;

    background: rgba(255, 255, 255, .85);
    border: 1px solid rgba(120, 150, 210, .20);

    border-radius: 22px;
    padding: 20px;

    display: flex;
    align-items: center;
    gap: 18px;

    text-align: left;

    box-shadow:
        0 10px 30px rgba(60, 90, 150, .12);

    backdrop-filter: blur(10px);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.audio-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 16px 35px rgba(60, 90, 150, .18);
}


/* ICONO */

.audio-icono {
    min-width: 55px;
    height: 55px;

    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    background: linear-gradient(
        135deg,
        #5d8fe8,
        #8b72d8
    );

    color: white;
    font-size: 25px;

    box-shadow:
        0 7px 18px rgba(80, 110, 190, .25);
}


/* INFORMACIÓN */

.audio-info {
    flex: 1;
}

.audio-info h3 {
    margin: 0 0 5px;

    color: #304f85;
    font-size: 18px;
}

.audio-info p {
    margin: 0 0 10px;

    color: #7a8498;
    font-size: 14px;
}


/* REPRODUCTOR */

.audio-card audio {
    width: 100%;
    height: 38px;
}


/* BOTÓN VOLVER */

.btn-volver-menu-audios {
    margin-top: 30px;

    padding: 12px 25px;

    border: none;
    border-radius: 30px;

    background: #4f78c4;
    color: white;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(60, 100, 180, .20);

    transition:
        transform .25s ease,
        background .25s ease;
}

.btn-volver-menu-audios:hover {
    transform: translateY(-2px);
    background: #3e65ad;
}


/* ANIMACIONES */

@keyframes aparecerAudios {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flotarAudios {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


/* =========================================
   CELULAR
========================================= */

@media (max-width: 600px) {

    .seccion-audios {
        padding: 50px 15px;
    }

    .audios-icono {
        font-size: 45px;
    }

    .audio-card {
        padding: 16px;
        gap: 12px;

        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .audio-icono {
        align-self: center;
    }

    .audio-info h3 {
        font-size: 17px;
    }

    .audio-card audio {
        width: 100%;
    }
}