/* =========================================
   CONFIGURACIÓN GENERAL
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #fff5f8;
    color: #333;
}


/* =========================================
   SECCIONES
========================================= */

.seccion {
    min-height: 100vh;
    padding: 80px 20px;
}

.contenedor {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
}


/* =========================================
   INICIO
========================================= */

.inicio {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.45)
        ),
        url("../img/portada.jpg");

    background-size: cover;
    background-position: center;

    color: white;
}

.inicio-contenido {
    max-width: 800px;
}

.pequeno-texto {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.inicio h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.frase-inicio {
    font-size: 1.4rem;
    margin-bottom: 35px;
}

button {
    border: none;
    cursor: pointer;
}

#btnEntrar,
#btnReiniciar {
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1rem;
}


/* =========================================
   CONTADOR
========================================= */

#contador {
    text-align: center;
}

#contador-tiempo {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.tiempo {
    min-width: 100px;
    padding: 20px;
    background: white;
    border-radius: 15px;
}

.tiempo span {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.tiempo small {
    display: block;
    margin-top: 5px;
}

.frase-contador {
    font-size: 1.2rem;
}


/* =========================================
   LÍNEA DEL TIEMPO ANIMADA
========================================= */

.linea-tiempo {
    max-width: 800px;
    margin: auto;
    position: relative;
}

/* Línea vertical */

.linea-tiempo::before {
    content: "";

    position: absolute;

    left: 20px;
    top: 0;
    bottom: 0;

    width: 3px;

    background: #e8a8b8;
}


/* Cada evento */

.evento {
    display: flex;

    gap: 25px;

    margin-bottom: 50px;

    position: relative;

    opacity: 0;

    transform: translateY(50px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}


/* Evento visible */

.evento.visible {
    opacity: 1;

    transform: translateY(0);
}


/* Punto de la línea */

.evento-punto {
    width: 45px;
    height: 45px;

    min-width: 45px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: white;

    border: 3px solid #e8a8b8;

    border-radius: 50%;

    font-size: 1.3rem;

    z-index: 2;
}


/* Contenido */

.evento-contenido {
    background: white;

    padding: 25px;

    border-radius: 15px;

    flex: 1;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* Efecto al pasar el mouse */

.evento-contenido:hover {
    transform: translateY(-5px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12);
}


/* Título */

.evento-contenido h3 {
    margin-bottom: 10px;
}


/* Texto */

.evento-contenido p {
    line-height: 1.6;
}


/* Fotografías */

.evento-contenido img {
    width: 100%;

    margin-top: 20px;

    border-radius: 10px;

    display: block;

    max-height: 400px;

    object-fit: cover;
}

/* =========================================
   GALERÍA DE RECUERDOS
========================================= */

#recuerdos {
    background: #fff;
}

.descripcion-seccion {
    text-align: center;

    max-width: 600px;

    margin: -20px auto 40px;

    line-height: 1.6;
}


/* Galería */

.galeria {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 30px;
}


/* Tarjeta */

.recuerdo {
    background: white;

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;

    cursor: pointer;
}


/* Movimiento de la tarjeta */

.recuerdo:hover {
    transform: translateY(-8px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.15);
}


/* Contenedor de imagen */

.foto {
    position: relative;

    overflow: hidden;
}


/* Imagen */

.foto img {
    width: 100%;

    height: 350px;

    object-fit: cover;

    display: block;

    transition:
        transform 0.5s ease;
}


/* Zoom de la imagen */

.recuerdo:hover .foto img {
    transform: scale(1.08);
}


/* Capa sobre la imagen */

.foto-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(0, 0, 0, 0.45);

    display: flex;

    justify-content: center;

    align-items: center;

    opacity: 0;

    transition:
        opacity 0.3s ease;
}


/* Mostrar overlay */

.recuerdo:hover .foto-overlay {
    opacity: 1;
}


/* Texto del overlay */

.foto-overlay span {
    color: white;

    font-size: 1.2rem;

    font-weight: bold;
}


/* Información */

.recuerdo-info {
    padding: 20px;
}

.recuerdo-info h3 {
    margin-bottom: 10px;
}

.recuerdo-info p {
    line-height: 1.5;
}


/* Imagen dentro del modal */

.modal-recuerdo-contenido {
    max-width: 850px;
}

#imagen-modal-recuerdo {
    width: 100%;

    max-height: 500px;

    object-fit: contain;

    border-radius: 12px;

    margin-bottom: 20px;
}


/* =========================================
   TARJETAS DE AMOR
========================================= */

#cosas-que-amo {
    background: #fff5f8;
}

.tarjetas-amor {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 30px;

    max-width: 900px;

    margin: 0 auto;
}


/* Tarjeta */

.tarjeta-amor {

    background: white;

    padding: 40px 30px;

    border-radius: 20px;

    text-align: center;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.07);

    position: relative;

    overflow: hidden;

    cursor: pointer;

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}


/* Línea decorativa */

.tarjeta-amor::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: #e8a8b8;
}


/* Efecto al pasar el mouse */

.tarjeta-amor:hover {

    transform:
        translateY(-10px);

    box-shadow:
        0 15px 35px
        rgba(0, 0, 0, 0.12);
}


/* Icono */

.icono-tarjeta {

    font-size: 3rem;

    margin-bottom: 20px;

    transition:
        transform 0.4s ease;
}


/* Animar icono */

.tarjeta-amor:hover
.icono-tarjeta {

    transform:
        scale(1.2)
        rotate(5deg);
}


/* Título */

.tarjeta-amor h3 {

    margin-bottom: 15px;

    font-size: 1.4rem;
}


/* Texto */

.tarjeta-amor p {

    line-height: 1.7;

    font-size: 1.05rem;
}


/* Animación al tocar */

.tarjeta-amor:active {

    transform:
        scale(0.96);
}
/* =========================================
   ANIMACIÓN DE TARJETAS DE AMOR
========================================= */

.tarjeta-amor {

    opacity: 0;

    transform:
        translateY(40px);
}

.tarjeta-amor.visible {

    opacity: 1;

    transform:
        translateY(0);
}


/* Cada tarjeta aparece con un pequeño retraso */

.tarjeta-amor:nth-child(1) {
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.tarjeta-amor:nth-child(2) {
    transition:
        opacity 0.7s ease 0.15s,
        transform 0.7s ease 0.15s;
}

.tarjeta-amor:nth-child(3) {
    transition:
        opacity 0.7s ease 0.30s,
        transform 0.7s ease 0.30s;
}

.tarjeta-amor:nth-child(4) {
    transition:
        opacity 0.7s ease 0.45s,
        transform 0.7s ease 0.45s;
}
/* =========================
   JUEGO
========================= */

#quiz {
    max-width: 700px;
    margin: 40px auto 0;
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

#progreso-quiz {
    text-align: center;
    color: #888;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

#pregunta {
    text-align: center;
    margin-bottom: 30px;
}

#texto-pregunta {
    font-size: 1.4rem;
    margin: 0;
}

#respuestas {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.respuesta {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #f1d5df;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.respuesta:hover {
    transform: translateY(-3px);
    background: #fff5f8;
}

.respuesta.correcta {
    background: #dff7e8;
    border-color: #72c992;
}

.respuesta.incorrecta {
    background: #ffe1e1;
    border-color: #e58a8a;
}

#resultado-juego {
    max-width: 700px;
    margin: 40px auto 0;
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

#resultado-juego h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

#puntuacion {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.resultado-final {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 25px;
}

#btn-reiniciar-quiz {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
}

/* Quiz en celular */

@media (max-width: 700px) {

    #quiz {
        padding: 25px 18px;
    }

    #texto-pregunta {
        font-size: 1.2rem;
    }

    .respuesta {
        padding: 14px;
    }
}


/* =========================
   CÓDIGO DE NUESTRO AMOR
========================= */

.editor-codigo {
    max-width: 800px;
    margin: 40px auto 25px;
    background: #1e1e1e;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(30px);
    opacity: 0;
    transition: 0.8s ease;
}

.editor-codigo.visible {
    transform: translateY(0);
    opacity: 1;
}

.barra-editor {
    height: 40px;
    background: #2d2d2d;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 15px;
}

.barra-editor span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #777;
}

.editor-codigo pre {
    margin: 0;
    padding: 25px;
    overflow-x: auto;
    text-align: left;
}

.editor-codigo code {
    color: #f5f5f5;
    font-family: Consolas, "Courier New", monospace;
    font-size: 1rem;
    line-height: 1.7;
}

.resultado-codigo {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 25px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease 0.3s;
}

.resultado-codigo.visible {
    opacity: 1;
    transform: translateY(0);
}

.resultado-codigo p {
    margin: 8px 0;
    font-family: Consolas, "Courier New", monospace;
}

/* Celular */

@media (max-width: 700px) {

    .editor-codigo pre {
        padding: 18px;
    }

    .editor-codigo code {
        font-size: 0.85rem;
    }

    .resultado-codigo {
        padding: 18px;
    }

    .resultado-codigo p {
        font-size: 0.85rem;
    }
}


/* =========================
   NUESTRA CANCIÓN
========================= */

.cancion-contenido {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: center;
    background: white;
    padding: 40px 30px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.cancion-contenido.visible {
    opacity: 1;
    transform: translateY(0);
}

.disco-musical {
    width: 130px;
    height: 130px;
    margin: 0 auto 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #f8dce5;

    font-size: 4rem;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);

    animation: girarDisco 5s linear infinite;
    animation-play-state: paused;
}

.cancion-contenido.reproduciendo .disco-musical {
    animation-play-state: running;
}

@keyframes girarDisco {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

.cancion-contenido h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

#reproductor {
    width: 100%;
    max-width: 500px;
}

/* Celular */

@media (max-width: 700px) {

    .cancion-contenido {
        padding: 30px 20px;
    }

    .disco-musical {
        width: 110px;
        height: 110px;
        font-size: 3.2rem;
    }

    .cancion-contenido h3 {
        font-size: 1.05rem;
    }

}


/* =========================
   ABRE CUANDO...
========================= */

.sobres {
    max-width: 900px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.sobre {
    min-height: 160px;
    padding: 25px;

    border: none;
    border-radius: 20px;

    background: white;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;

    cursor: pointer;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sobre:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.sobre:active {
    transform: scale(0.96);
}

.emoji-sobre {
    font-size: 3.5rem;
    transition: transform 0.3s ease;
}

.sobre:hover .emoji-sobre {
    transform: scale(1.15) rotate(5deg);
}

.sobre span:last-child {
    font-size: 1rem;
    font-weight: bold;
    color: #444;
}


/* Carta dentro del modal */

.carta-modal {
    background: #fff;
    max-width: 600px;
    width: 90%;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);

    animation: aparecerCarta 0.4s ease;
}

@keyframes aparecerCarta {

    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

}

.emoji-carta {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

#titulo-modal {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

#texto-modal {
    line-height: 1.8;
    font-size: 1.05rem;
    white-space: pre-line;
}


/* Celular */

@media (max-width: 700px) {

    .sobres {
        grid-template-columns: 1fr;
    }

    .sobre {
        min-height: 140px;
    }

    .carta-modal {
        padding: 30px 20px;
    }

    #texto-modal {
        font-size: 1rem;
    }

}

/* Corrección modal Abre cuando */

#modal-mensaje {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.65);
}

#modal-mensaje .modal-contenido {
    position: relative;
    width: 100%;
    max-width: 600px;
}

#modal-mensaje .cerrar-modal {
    position: absolute;
    top: 10px;
    right: 15px;

    z-index: 2;

    border: none;
    background: transparent;

    font-size: 2rem;
    cursor: pointer;

    color: #555;
}

#modal-mensaje .carta-modal {
    position: relative;

    background: white;
    width: 100%;
    box-sizing: border-box;

    padding: 45px 30px 35px;

    border-radius: 20px;

    text-align: center;
}

#modal-mensaje .emoji-carta {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

#modal-mensaje #titulo-modal {
    margin-bottom: 20px;
}

#modal-mensaje #texto-modal {
    line-height: 1.8;
    white-space: pre-line;
}

@media (max-width: 700px) {

    #modal-mensaje {
        padding: 15px;
    }

    #modal-mensaje .carta-modal {
        padding: 40px 20px 30px;
    }

}


/* =========================================
   FINAL
========================================= */

#final {
    text-align: center;
    background: linear-gradient(
        180deg,
        #fff5f8 0%,
        #ffe9f0 100%
    );

    display: flex;
    align-items: center;
}

#final .contenedor {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#final h2 {
    font-size: 2.3rem;
    margin-bottom: 30px;
}

.foto-final {
    display: block;

    width: 100%;
    max-width: 600px;

    height: 500px;

    object-fit: cover;

    margin: 10px auto 30px;

    border-radius: 25px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.15);

    transition:
        transform 0.5s ease,
        box-shadow 0.5s ease;
}

.foto-final:hover {
    transform: scale(1.02);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.2);
}

.frase-final {
    max-width: 700px;

    margin: 10px auto 30px;

    font-size: 1.4rem;

    line-height: 1.7;
}

#btnReiniciar {
    background: #e8a8b8;
    color: white;

    padding: 15px 30px;

    border-radius: 30px;

    font-size: 1rem;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

#btnReiniciar:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.15);
}

#btnReiniciar:active {
    transform: scale(0.95);
}


/* =========================================
   EASTER EGG
========================================= */

#easter-egg {
    text-align: center;

    display: none;

    min-height: 70vh;

    background:
        linear-gradient(
            rgba(255, 245, 248, 0.95),
            rgba(255, 233, 240, 0.95)
        );

    animation: aparecerEasterEgg 1s ease;
}

#easter-egg h2 {
    font-size: 2rem;

    margin-bottom: 20px;
}

#easter-egg > .contenedor > p {
    font-size: 1.1rem;

    margin-bottom: 30px;
}

.mensaje-easter-egg {
    max-width: 700px;

    margin: auto;

    background: white;

    padding: 40px;

    border-radius: 25px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.1);

    line-height: 1.8;

    transform: scale(0.95);

    animation: aparecerMensajeEaster 1s ease 0.3s forwards;

    opacity: 0;
}

@keyframes aparecerEasterEgg {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

@keyframes aparecerMensajeEaster {

    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

}


/* =========================================
   MODAL
========================================= */

.modal {
    display: none;

    position: fixed;
    z-index: 1000;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.7);

    justify-content: center;
    align-items: center;

    padding: 20px;
}

.modal-contenido {
    position: relative;

    background: white;

    max-width: 600px;
    width: 100%;

    padding: 40px;

    border-radius: 20px;

    text-align: center;
}

.cerrar-modal {
    position: absolute;

    top: 15px;
    right: 20px;

    font-size: 2rem;

    background: none;
}


/* =========================================
   CELULAR
========================================= */

@media (max-width: 700px) {

    .inicio h1 {
        font-size: 2.5rem;
    }

    .frase-inicio {
        font-size: 1.1rem;
    }

    .galeria {
        grid-template-columns: 1fr;
    }

    .tarjetas-amor {
        grid-template-columns: 1fr;
    }

    .sobres {
        grid-template-columns: 1fr;
    }

    .foto img {
        height: 300px;
    }

    #final h2 {
    font-size: 1.8rem;
}

.foto-final {
    height: 380px;
    border-radius: 20px;
}

.frase-final {
    font-size: 1.15rem;
}

.mensaje-easter-egg {
    padding: 30px 20px;
}

}


/* =========================================
   FINAL PERSONALIZADO
========================================= */

.final-corazon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: latidoFinal 1.8s infinite;
}

#final .frase-final {
    white-space: normal;
    text-align: center;
}

.firma-final {
    color: #a64d70;
    font-size: 1.15rem;
    font-style: italic;
    margin: 0 0 30px;
}

@keyframes latidoFinal {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Foto final completa y de tamaño reducido */
#final img {
    display: block;
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
    margin: 20px auto;
    border-radius: 15px;
}
/* =========================================
   EASTER EGG - VISIBILIDAD Y DISEÑO
========================================= */

#easter-egg {
    display: none;
    min-height: 70vh;
    text-align: center;
    background: linear-gradient(
        180deg,
        #fff5f8 0%,
        #ffe6ee 100%
    );
    opacity: 1;
    visibility: visible;
}

/* Se muestra cuando JavaScript lo activa */
#easter-egg.visible {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Evitar que las animaciones generales lo oculten */
#easter-egg .contenedor,
#easter-egg .mensaje-easter-egg {
    opacity: 1;
    visibility: visible;
}

.secreto-icono {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: flotarSecreto 3s ease-in-out infinite;
}

#easter-egg h2 {
    color: #a64d70;
    font-size: 2rem;
    margin-bottom: 20px;
}

.subtitulo-secreto {
    max-width: 650px;
    margin: 0 auto 30px;
    color: #777;
    line-height: 1.8;
}

.mensaje-easter-egg {
    max-width: 720px;
    margin: auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #f4d5df;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(190, 100, 130, 0.15);
    color: #555;
    font-size: 1.05rem;
    line-height: 2;
    text-align: left;
    overflow-wrap: anywhere;
    animation: aparecerCartaSecreta 1s ease;
}

.saludo-secreto {
    color: #a64d70;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

.mensaje-easter-egg p {
    margin-bottom: 22px;
}

.mensaje-easter-egg .promesa-secreta {
    color: #a64d70;
    font-weight: bold;
    text-align: center;
    margin-top: 30px;
}

.mensaje-easter-egg .cierre-secreto {
    text-align: center;
    font-size: 1.2rem;
    color: #a64d70;
    margin-top: 30px;
}

.corazones-secreto {
    text-align: center;
    font-size: 1.4rem;
    letter-spacing: 5px;
    margin-top: 25px;
}

@keyframes flotarSecreto {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes aparecerCartaSecreta {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   ADAPTACIÓN PARA CELULARES
========================================= */

@media (max-width: 600px) {
    #final h2 {
        font-size: 1.8rem;
    }

    .foto-final {
        height: 380px;
    }

    #final .frase-final {
        font-size: 1.1rem;
        line-height: 1.8;
    }

    #easter-egg h2 {
        font-size: 1.65rem;
    }

    .mensaje-easter-egg {
        padding: 28px 20px;
        font-size: 0.98rem;
        line-height: 1.85;
    }

    .saludo-secreto {
        font-size: 1.15rem;
    }
}

/* =========================================
   NUESTRA LISTA DE PENDIENTES
========================================= */

#pendientes {
    background: linear-gradient(
        180deg,
        #fff8fa 0%,
        #ffedf2 100%
    );
    text-align: center;
}

.pendientes-corazon {
    font-size: 3rem;
    margin-bottom: 12px;
}

#pendientes h2 {
    color: #a64d70;
    margin-bottom: 15px;
}

.lista-pendientes {
    max-width: 650px;
    margin: 35px auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.actividad-pendiente {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 17px 20px;
    background: #ffffff;
    border: 1px solid #f4d5df;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(166, 77, 112, 0.07);
}

.actividad-pendiente span {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.actividad-pendiente p {
    margin: 0;
    color: #5d4b52;
    line-height: 1.6;
}

.frase-pendientes {
    max-width: 550px;
    margin: 35px auto 0;
    color: #a64d70;
    font-style: italic;
    line-height: 1.8;
}

@media (max-width: 600px) {
    .actividad-pendiente {
        padding: 14px;
        gap: 12px;
    }

    .actividad-pendiente span {
        font-size: 1.4rem;
    }

    #pendientes h2 {
        font-size: 1.7rem;
    }
    
}

/* =========================================
   BIENVENIDA CON IMAGEN DE FONDO
========================================= */

#bienvenida {
    min-height: 100vh;
    background-image:
        linear-gradient(
            rgba(30, 15, 25, 0.45),
            rgba(30, 15, 25, 0.60)
        ),
        url("../img/portada.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    box-sizing: border-box;
}

#bienvenida h1,
#bienvenida h2,
#bienvenida p {
    color: white;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

#bienvenida button {
    position: relative;
    z-index: 2;
}

@media (max-width: 600px) {
    #bienvenida {
        background-position: center;
        min-height: 100svh;
    }
}


/* =========================================
   VERSÍCULO BÍBLICO ❤️
========================================== */

#versiculo {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 20px 18px 5px;
    margin: 25px auto;
    max-width: 900px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff0f5, #fce4ec, #fff7f9);
    border: 1px solid rgba(214, 107, 141, 0.25);
    box-shadow: 0 10px 30px rgba(180, 80, 120, 0.12);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

/* Aparece al llegar a la sección */
#versiculo.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Decoración superior */
#versiculo::before {
    content: "♥";
    display: block;
    color: #d66b8d;
    font-size: 30px;
    margin-bottom: 15px;
    animation: latidoVersiculo 1.8s infinite;
}

#versiculo h2 {
    color: #b54770;
    font-family: Georgia, serif;
    font-size: clamp(25px, 4vw, 34px);
    margin-bottom: 25px;
}

#versiculo p {
    max-width: 700px;
    margin: 0 auto;
    color: #684451;
    font-family: Georgia, serif;
    font-size: clamp(17px, 2.5vw, 21px);
    font-style: italic;
    line-height: 1.5;
}

/* Corazón latiendo */
@keyframes latidoVersiculo {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Adaptación para celulares */
@media (max-width: 600px) {
    #versiculo {
        margin: 25px 15px;
        padding: 45px 20px;
        border-radius: 20px;
    }

    #versiculo p {
        line-height: 1.8;
    }
}

/* Respeta la preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    #versiculo,
    #versiculo::before {
        animation: none;
        transition: none;
    }

    #versiculo {
        opacity: 1;
        transform: none;
    }
}
