/* =====================================================
   PARA LAURA ❤️
   ESTILO COMPLETO DEL CUADERNO
===================================================== */

/* =========================
   CONFIGURACIÓN GENERAL
========================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    min-height: 100vh;

    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255, 213, 229, 0.9),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(221, 207, 255, 0.9),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #fff1f7,
            #eee9ff,
            #fff7f2
        );
}


/* =====================================================
   DECORACIONES FLOTANTES
   ESTÁN FUERA DEL CUADERNO
===================================================== */

.decoracion-flotante {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    z-index: 1;

    overflow: hidden;
}

.decoracion-flotante span {
    position: absolute;

    font-size: 28px;

    opacity: 0.75;

    animation:
        flotar 6s ease-in-out infinite;
}

.decoracion-flotante span:nth-child(1) {
    left: 5%;
    top: 15%;
    animation-delay: 0s;
}

.decoracion-flotante span:nth-child(2) {
    left: 14%;
    top: 78%;
    animation-delay: 1s;
}

.decoracion-flotante span:nth-child(3) {
    left: 28%;
    top: 8%;
    animation-delay: 2s;
}

.decoracion-flotante span:nth-child(4) {
    left: 86%;
    top: 18%;
    animation-delay: 1.5s;
}

.decoracion-flotante span:nth-child(5) {
    left: 93%;
    top: 72%;
    animation-delay: 3s;
}

.decoracion-flotante span:nth-child(6) {
    left: 76%;
    top: 7%;
    animation-delay: 2.5s;
}

.decoracion-flotante span:nth-child(7) {
    left: 3%;
    top: 50%;
    animation-delay: 1.2s;
}

.decoracion-flotante span:nth-child(8) {
    left: 20%;
    top: 91%;
    animation-delay: 3s;
}

.decoracion-flotante span:nth-child(9) {
    left: 90%;
    top: 45%;
    animation-delay: 2s;
}

.decoracion-flotante span:nth-child(10) {
    left: 70%;
    top: 92%;
    animation-delay: 4s;
}

.decoracion-flotante span:nth-child(11) {
    left: 46%;
    top: 4%;
    animation-delay: 2s;
}

.decoracion-flotante span:nth-child(12) {
    left: 52%;
    top: 94%;
    animation-delay: 3s;
}

.decoracion-flotante span:nth-child(13) {
    left: 8%;
    top: 32%;
    animation-delay: 2.2s;
}

.decoracion-flotante span:nth-child(14) {
    left: 82%;
    top: 58%;
    animation-delay: 1.4s;
}

.decoracion-flotante span:nth-child(15) {
    left: 38%;
    top: 88%;
    animation-delay: 3.4s;
}

.decoracion-flotante span:nth-child(16) {
    left: 62%;
    top: 12%;
    animation-delay: 0.8s;
}

.decoracion-flotante span:nth-child(17) {
    left: 10%;
    top: 62%;
}

.decoracion-flotante span:nth-child(18) {
    left: 88%;
    top: 28%;
}

.decoracion-flotante span:nth-child(19) {
    left: 72%;
    top: 78%;
}

@keyframes flotar {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(0deg);
    }

    50% {
        transform:
            translateY(-25px)
            rotate(8deg);
    }
}


/* =====================================================
   CUADERNO
===================================================== */

.cuaderno {
    position: relative;

    width: 92vw;
    max-width: 1200px;

    height: 88vh;
    min-height: 620px;

    padding: 18px;

    background:
        linear-gradient(
            135deg,
            #633522,
            #985b3f,
            #713c27
        );

    border-radius: 18px;

    box-shadow:
        0 25px 60px rgba(65, 35, 25, 0.35),
        inset 0 0 25px rgba(255, 255, 255, 0.12);

    perspective: 1800px;

    z-index: 10;
}


/* =====================================================
   ESPIRAL DEL CUADERNO
===================================================== */

.espiral {
    position: absolute;

    left: -6px;
    top: 25px;
    bottom: 25px;

    width: 38px;

    display: flex;
    flex-direction: column;
    justify-content: space-around;

    z-index: 100;
}

.espiral span {
    width: 29px;
    height: 14px;

    border: 4px solid #d5d5d5;

    border-radius: 50%;

    background: #858585;

    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.35);
}


/* =====================================================
   HOJAS
===================================================== */

.hoja {
    position: absolute;

    left: 30px;
    top: 18px;

    width: calc(100% - 30px);
    height: calc(100% - 36px);

    transform-origin: left center;

    transform-style: preserve-3d;

    transition:
        transform 1.25s ease;

    overflow: visible;

    backface-visibility: hidden;
}


/* Orden de las hojas */

.hoja-final {
    z-index: 10;
}

.hoja-3 {
    z-index: 20;
}

.hoja-2 {
    z-index: 30;
}

.hoja-1 {
    z-index: 40;
}


/* Página volteada */

.hoja.pasada {
    transform: rotateY(-180deg);
    pointer-events: none;
}

.hoja.detras {
    z-index: 6 !important;
}

.hoja-final.al-frente {
    z-index: 80 !important;
    pointer-events: auto;
}


/* =====================================================
   PÁGINAS
===================================================== */

.pagina {
    position: relative;

    width: 100%;
    height: 100%;

    padding: 55px 65px;

    text-align: center;

    overflow-y: auto;

    border-radius:
        5px
        14px
        14px
        5px;

    background:
        repeating-linear-gradient(
            to bottom,
            rgba(255, 253, 248, 0.92) 0px,
            rgba(255, 253, 248, 0.92) 31px,
            rgba(232, 220, 214, 0.55) 32px
        ),
        radial-gradient(
            ellipse at 12% 8%,
            rgba(255, 236, 220, 0.55),
            transparent 42%
        ),
        linear-gradient(
            180deg,
            #fffaf3,
            #f7efe6
        );

    box-shadow:
        inset 8px 0 15px rgba(0, 0, 0, 0.06),
        5px 5px 15px rgba(0, 0, 0, 0.14);

    backface-visibility: hidden;
}

.pagina::before {
    content: "";
    position: absolute;
    inset: 12px;
    pointer-events: none;
    z-index: 1;
    border: 1px dashed rgba(176, 128, 148, 0.42);
    border-radius: 10px 20px 20px 10px;
    box-shadow:
        inset 0 0 0 6px rgba(255, 248, 242, 0.35);
}

.pagina::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* =====================================================
   SCROLL DE LAS PÁGINAS
===================================================== */

.pagina::-webkit-scrollbar {
    width: 7px;
}

.pagina::-webkit-scrollbar-track {
    background: transparent;
}

.pagina::-webkit-scrollbar-thumb {
    background: #d5b3c9;

    border-radius: 20px;
}

.pagina::-webkit-scrollbar-thumb:hover {
    background: #b78bab;
}


/* =====================================================
   TÍTULOS
===================================================== */

.pagina h1 {
    margin-top: 5px;
    margin-bottom: 12px;

    font-family: "Great Vibes", "Segoe Script", cursive;
    font-size: 58px;
    font-weight: 400;

    background:
        linear-gradient(
            90deg,
            #c84f86,
            #845ec7,
            #d35c91,
            #845ec7,
            #c84f86
        );

    background-size: 250% auto;

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    animation:
        brilloTexto 5s linear infinite;

    text-shadow:
        0 3px 10px rgba(160, 90, 150, 0.12);
}

@keyframes brilloTexto {

    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 250% center;
    }
}


.pagina h2 {
    margin-top: 5px;
    margin-bottom: 22px;

    font-family: "Caveat", "Segoe Script", cursive;
    color: #7953a0;

    font-size: 30px;
    font-weight: 600;
}


.pagina p {
    color: #5f5363;

    font-size: 18px;

    line-height: 1.7;
}


/* =====================================================
   MENSAJE INICIAL
===================================================== */

#mensajeInicio {
    max-width: 760px;

    margin:
        30px
        auto;

    color: #bd4d7d;

    font-size: 21px;

    line-height: 1.7;
}


.versiculo-inicio {
    max-width: 760px;

    margin: 25px auto;

    padding: 19px 26px;

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.78);

    border: 2px solid #e4c9df;

    color: #67576e;

    line-height: 1.7;

    box-shadow:
        0 8px 22px rgba(140, 90, 140, 0.12);
}


/* =====================================================
   BOTONES GENERALES
===================================================== */

button {
    border: none;

    cursor: pointer;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

button:hover {
    transform:
        translateY(-4px)
        scale(1.03);

    filter: brightness(1.04);

    box-shadow:
        0 10px 25px
        rgba(120, 75, 140, 0.25);
}

button:active {
    transform: scale(0.96);
}


/* =====================================================
   BOTÓN ABRIR CUADERNO
===================================================== */

.pagina > button {
    margin-top: 18px;

    padding:
        15px
        32px;

    border-radius: 30px;

    color: white;

    font-size: 18px;

    font-weight: bold;

    background:
        linear-gradient(
            135deg,
            #df6195,
            #9168cf
        );

    box-shadow:
        0 8px 20px
        rgba(160, 80, 140, 0.28);
}


/* =====================================================
   SELECCIÓN DE FLORES
===================================================== */

.flores-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

    width: 90%;

    max-width: 920px;

    margin:
        30px
        auto;
}


/* =====================================================
   BOTÓN DE CADA FLOR
===================================================== */

.flor-btn {
    min-height: 145px;

    padding:
        18px
        10px;

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fff0f7
        );

    border: 2px solid #e4bfd6;

    color: #745177;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 10px;

    font-size: 17px;

    font-weight: bold;

    cursor: pointer;

    box-shadow:
        0 7px 16px
        rgba(130, 80, 130, 0.15);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}


/* Emoji de la flor */

.flor-btn span:first-child {
    font-size: 52px;

    line-height: 1;

    filter:
        drop-shadow(
            0 4px 5px
            rgba(0, 0, 0, 0.15)
        );

    transition:
        transform 0.3s ease;
}


/* Nombre */

.flor-btn span:last-child {
    color: #76517c;

    font-size: 17px;
}


/* Hover */

.flor-btn:hover {
    transform:
        translateY(-7px)
        scale(1.04);

    background:
        linear-gradient(
            145deg,
            #ffe4f0,
            #eee5ff
        );

    border-color: #d493bc;

    box-shadow:
        0 14px 27px
        rgba(130, 80, 140, 0.25);
}


/* Movimiento de la flor */

.flor-btn:hover span:first-child {
    transform:
        scale(1.18)
        rotate(5deg);
}


/* Click */

.flor-btn:active {
    transform: scale(0.96);
}


/* =====================================================
   FLOR SELECCIONADA
===================================================== */

.flor-grande {
    font-size: 88px;

    margin: 15px;

    filter:
        drop-shadow(
            0 8px 8px
            rgba(0, 0, 0, 0.15)
        );

    animation:
        entradaFlor 1s ease;
}

@keyframes entradaFlor {

    from {
        opacity: 0;

        transform:
            scale(0.5)
            rotate(-15deg);
    }

    to {
        opacity: 1;

        transform:
            scale(1)
            rotate(0);
    }
}


#mensajeSeleccionado h1 {
    color: #c75388;
}

#mensajeSeleccionado h2 {
    color: #8059a7;
}

#mensajeSeleccionado p {
    color: #625369;
}

.frase-flor {
    max-width: 640px;
    margin: 8px auto 12px !important;
    font-family: "Great Vibes", "Segoe Script", cursive;
    font-size: 28px !important;
    line-height: 1.3 !important;
    color: #b54470 !important;
}

.carta-flor {
    max-width: 680px;
    margin: 0 auto 8px !important;
    text-align: justify;
    text-align-last: center;
    font-size: 17px !important;
    line-height: 1.75 !important;
    color: #5a4450 !important;
}

#mensajeSeleccionado .flor-grande {
    font-size: 64px;
    margin: 4px;
}

#mensajeSeleccionado h1 {
    margin-bottom: 4px;
    font-size: 46px;
}


/* =====================================================
   VERSÍCULO DE LA FLOR
===================================================== */

.versiculo-flor {
    max-width: 780px;

    margin: 25px auto;

    padding:
        20px
        28px;

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.85);

    border:
        2px solid #e2c7df;

    color: #625369;

    line-height: 1.7;

    box-shadow:
        0 8px 22px
        rgba(130, 90, 140, 0.12);
}


.versiculo-flor strong {
    color: #a05080;

    font-size: 17px;
}


/* =====================================================
   BOTÓN MENSAJE FINAL
===================================================== */

#mensajeSeleccionado button {
    margin-top: 18px;

    padding:
        14px
        30px;

    border-radius: 30px;

    color: white;

    font-size: 17px;

    font-weight: bold;

    background:
        linear-gradient(
            135deg,
            #d65d92,
            #8265c7
        );

    box-shadow:
        0 8px 20px
        rgba(130, 80, 150, 0.25);
}


/* =====================================================
   PÁGINA FINAL
===================================================== */

.pagina-final h1 {
    color: #b35b88;
}


/* =====================================================
   CARTA BLANCA
===================================================== */

.carta-blanca {
    width: 215px;

    height: 135px;

    margin:
        20px
        auto;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f7f7ff
        );

    border-radius: 8px;

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 58px;

    box-shadow:
        0 12px 27px
        rgba(0, 0, 0, 0.15);

    transform:
        rotate(-2deg);

    transition:
        transform 0.3s ease;
}

.carta-blanca:hover {
    transform:
        rotate(0deg)
        scale(1.03);
}


/* =====================================================
   PALABRAS BONITAS
===================================================== */

.palabras-bonitas {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 10px;

    max-width: 800px;

    margin:
        25px
        auto;
}


.palabras-bonitas span {
    padding:
        9px
        17px;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            #ffe3ee,
            #eee5ff
        );

    color: #805678;

    font-size: 15px;

    box-shadow:
        0 4px 11px
        rgba(130, 90, 140, 0.1);
}


/* =====================================================
   MENSAJE DE JOSUÉ
===================================================== */

.mensaje-josue {
    max-width: 750px;

    margin:
        22px
        auto;

    color: #68566d !important;

    font-size: 18px !important;

    font-weight: normal !important;

    line-height: 1.7;
}


/* =====================================================
   BOTÓN VOLVER AL INICIO
===================================================== */

#botonVolverInicio {
    margin-top: 18px;

    padding:
        14px
        30px;

    border-radius: 30px;

    color: white;

    font-size: 17px;

    font-weight: bold;

    background:
        linear-gradient(
            135deg,
            #8d6bd1,
            #d65f95
        );

    box-shadow:
        0 8px 20px
        rgba(120, 80, 150, 0.25);
}


/* =====================================================
   RESPONSIVE - TABLET
===================================================== */

@media (max-width: 1000px) {

    .cuaderno {
        width: 94vw;

        height: 88vh;
    }

    .pagina {
        padding:
            45px
            45px;
    }

    .pagina h1 {
        font-size: 48px;
    }

    .flores-grid {
        grid-template-columns:
            repeat(3, 1fr);

        gap: 16px;
    }

    .flor-btn {
        min-height: 135px;
    }
}


/* =====================================================
   RESPONSIVE - CELULAR
===================================================== */

@media (max-width: 650px) {

    body {
        overflow: hidden;
    }

    .cuaderno {
        width: 96vw;

        height: 90vh;

        min-height: 550px;

        padding: 12px;
    }

    .pagina {
        padding:
            35px
            24px;
    }

    .pagina h1 {
        font-size: 30px;
    }

    .pagina h2 {
        font-size: 21px;
    }

    .pagina p {
        font-size: 16px;
    }

    #mensajeInicio {
        font-size: 18px;
    }

    .flores-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;

        width: 96%;
    }

    .flor-btn {
        min-height: 120px;

        padding:
            12px
            6px;

        border-radius: 18px;
    }

    .flor-btn span:first-child {
        font-size: 42px;
    }

    .flor-btn span:last-child {
        font-size: 15px;
    }

    .flor-grande {
        font-size: 70px;
    }

    .carta-blanca {
        width: 180px;
        height: 115px;

        font-size: 48px;
    }

    .palabras-bonitas span {
        font-size: 14px;
    }
}
/* =====================================================
   CORRECCIÓN DEFINITIVA DE LAS FLORES
===================================================== */

.flores-grid {
    display: grid !important;

    grid-template-columns: repeat(4, minmax(150px, 1fr)) !important;

    gap: 22px !important;

    width: 90% !important;

    max-width: 950px !important;

    margin: 35px auto !important;

    align-items: stretch !important;
}


/* TODOS los botones dentro de flores */

.flores-grid button {
    width: 100% !important;

    min-width: 0 !important;

    min-height: 145px !important;

    height: 145px !important;

    padding: 15px !important;

    margin: 0 !important;

    border-radius: 999px !important;

    border: 1.5px solid #f0c0d2 !important;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fff0f6 55%,
            #ffdceb 100%
        ) !important;

    color: #6d456e !important;

    font-family: "Caveat", "Segoe Script", cursive !important;

    font-size: 22px !important;

    font-weight: 600 !important;

    cursor: pointer !important;

    display: flex !important;

    flex-direction: column !important;

    justify-content: center !important;

    align-items: center !important;

    gap: 10px !important;

    box-shadow:
        0 7px 18px
        rgba(130, 80, 130, 0.15) !important;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease !important;
}


/* Emoji de la flor */

.flores-grid button {
    line-height: 1.5 !important;
}


/* Efecto al pasar el mouse */

.flores-grid button:hover {
    transform:
        translateY(-8px)
        scale(1.04) !important;

    background:
        linear-gradient(
            145deg,
            #ffe3ef,
            #eee5ff
        ) !important;

    border-color: #d18ab6 !important;

    box-shadow:
        0 15px 30px
        rgba(130, 80, 140, 0.25) !important;
}


/* =====================================================
   QUE EL EMOJI SEA GRANDE
===================================================== */

.flores-grid button .flor {
    font-size: 46px !important;
    line-height: 1 !important;
    filter: drop-shadow(0 4px 6px rgba(120, 60, 90, 0.18));
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    .flores-grid {
        grid-template-columns:
            repeat(3, minmax(140px, 1fr)) !important;

        gap: 16px !important;
    }

    .flores-grid button {
        height: 135px !important;

        min-height: 135px !important;
    }
}


/* =====================================================
   CELULAR
===================================================== */

@media (max-width: 650px) {

    .flores-grid {
        grid-template-columns:
            repeat(2, minmax(120px, 1fr)) !important;

        gap: 12px !important;

        width: 95% !important;
    }

    .flores-grid button {
        height: 120px !important;

        min-height: 120px !important;

        font-size: 15px !important;
    }

    .sobre {
        width: min(92vw, 340px);
        height: 220px;
    }

    .sobre-sello {
        font-size: 36px;
    }

    .pagina h1 {
        font-size: 42px;
    }
}

/* =====================================================
   SOBRE DE APERTURA
===================================================== */

.sobre-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(circle at 50% 40%, rgba(255, 244, 236, 0.55), transparent 45%),
        rgba(62, 38, 48, 0.38);

    backdrop-filter: blur(6px);
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.sobre-overlay.oculto {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.sobre {
    position: relative;
    width: min(86vw, 420px);
    height: 260px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    perspective: 900px;
    filter: drop-shadow(0 22px 40px rgba(70, 30, 40, 0.35));
}

.sobre-solapa {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 48%;
    background: linear-gradient(180deg, #c9897a, #b36b63);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    z-index: 2;
    transform-origin: top center;
    transition: transform 0.8s ease;
}

.sobre.abierto .sobre-solapa {
    transform: rotateX(180deg);
}

.sobre-frente {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 22px;
    gap: 10px;
    border-radius: 8px;
    background:
        linear-gradient(160deg, #f4e2c8, #e8c9a8 55%, #d9b08a);
    box-shadow: inset 0 0 0 8px rgba(255, 248, 236, 0.28);
    z-index: 1;
}

.sobre-sello {
    position: absolute;
    left: 50%;
    top: 42%;
    z-index: 3;
    font-family: "Great Vibes", "Segoe Script", cursive;
    font-size: 36px;
    color: #7a3148;
    background: radial-gradient(circle, #f7e8c8 40%, #e8c07a);
    border: 3px solid #b4534a;
    border-radius: 50%;
    width: 148px;
    height: 148px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.05;
    padding: 12px;
    box-shadow: 0 8px 18px rgba(120, 40, 40, 0.25);
    transform: translate(-50%, -50%) rotate(-8deg);
}

.sobre-pista {
    font-family: "Caveat", cursive;
    font-size: 22px;
    color: #6d4a3a;
}

/* =====================================================
   PÉTALOS AL PASAR PÁGINA
===================================================== */

.petalos-caida {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 180;
    overflow: hidden;
}

.petalo {
    position: absolute;
    top: -40px;
    font-size: 22px;
    animation: caerPetalo linear forwards;
}

@keyframes caerPetalo {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.9;
    }
    100% {
        transform: translateY(110vh) rotate(220deg);
        opacity: 0;
    }
}

/* =====================================================
   FLORES PRENSADAS
===================================================== */

.flor-prensada {
    position: absolute;
    font-size: 28px;
    opacity: 0.55;
    pointer-events: none;
    filter: grayscale(0.15) saturate(0.85);
    z-index: 2;
}

.flor-prensada.arriba-derecha {
    top: 14px;
    right: 18px;
    transform: rotate(18deg);
}

.flor-prensada.abajo-izquierda {
    bottom: 14px;
    left: 22px;
    transform: rotate(-16deg);
}

.cursor-escritura {
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 3px;
    background: #c84f86;
    animation: parpadeo 0.8s step-end infinite;
    vertical-align: -2px;
}

@keyframes parpadeo {
    50% {
        opacity: 0;
    }
}

.pagina > *:not(.flor-prensada) {
    position: relative;
    z-index: 2;
}

.flor-prensada.centro-izquierda {
    top: 46%;
    left: 10px;
    transform: rotate(-28deg);
}

.flor-prensada.centro-derecha {
    top: 58%;
    right: 12px;
    transform: rotate(22deg);
}

/* =====================================================
   BOTONES FEMENINOS — PERLA Y ROSA
===================================================== */

button.boton-principal,
#mensajeSeleccionado button.boton-principal,
#botonVolverInicio.boton-principal,
.pagina > button.boton-principal {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 13px 34px;
    min-width: 240px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
    outline: 1px solid rgba(232, 160, 186, 0.65);
    outline-offset: 3px;
    color: #8a3d5c !important;
    font-family: "Great Vibes", "Segoe Script", cursive !important;
    font-size: 30px !important;
    font-weight: 400 !important;
    letter-spacing: 0.04em;
    background:
        radial-gradient(circle at 20% 20%, #fff 0 12%, transparent 13%),
        linear-gradient(180deg, #fff7fb 0%, #ffd6e7 48%, #f4b7d2 100%) !important;
    box-shadow:
        0 12px 24px rgba(196, 110, 150, 0.28),
        inset 0 2px 0 rgba(255, 255, 255, 0.95),
        inset 0 -8px 14px rgba(215, 120, 160, 0.18) !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

button.boton-principal::before,
button.boton-principal::after {
    content: "♡";
    font-family: "Great Vibes", cursive;
    font-size: 16px;
    color: #d37a9c;
    opacity: 0.9;
}

button.boton-principal .perla {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, #f3d4e4 55%, #e8a8c0);
    box-shadow: 0 1px 3px rgba(160, 80, 110, 0.25);
    flex: 0 0 auto;
}

button.boton-principal:hover,
#mensajeSeleccionado button.boton-principal:hover,
#botonVolverInicio.boton-principal:hover {
    transform: translateY(-4px) scale(1.04);
    filter: none;
    background:
        linear-gradient(180deg, #ffffff 0%, #ffdcec 45%, #f0a8c6 100%) !important;
    box-shadow:
        0 16px 30px rgba(196, 110, 150, 0.34),
        inset 0 2px 0 #fff !important;
}

button.boton-principal:active {
    transform: translateY(1px) scale(0.98);
}

/* =====================================================
   ÚLTIMA PÁGINA — CARTA FEMENINA
===================================================== */

.pagina-final {
    display: block;
    overflow-y: auto;
    align-items: stretch;
    padding: 28px 36px 24px !important;
}
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(255, 250, 252, 0.94) 0px,
            rgba(255, 250, 252, 0.94) 31px,
            rgba(236, 214, 224, 0.4) 32px
        ) !important;
}

.cierre-carta {
    position: relative;
    width: min(680px, 94%);
    margin: 0 auto 8px;
    padding: 28px 28px 20px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 214, 230, 0.55), transparent 42%),
        linear-gradient(180deg, #fffafc 0%, #fff 38%, #ffe9f2 100%);
    border: 1px solid #f0c3d4;
    box-shadow:
        0 22px 48px rgba(150, 70, 110, 0.18),
        inset 0 0 0 10px rgba(255, 255, 255, 0.55),
        inset 0 0 0 12px rgba(232, 176, 196, 0.45);
}

.encaje-carta {
    position: absolute;
    inset: 7px;
    z-index: 0;
    border-radius: 22px;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 8px 8px, #e8a8c0 1.4px, transparent 1.6px);
    background-size: 16px 16px;
    opacity: 0.28;
    mask-image: linear-gradient(#000, #000),
        linear-gradient(#000, #000);
}

.esquina-filigrana {
    position: absolute;
    width: 54px;
    height: 54px;
    pointer-events: none;
    border: 2px solid rgba(214, 140, 170, 0.45);
}

.esquina-filigrana.izq {
    top: 16px;
    left: 16px;
    border-right: none;
    border-bottom: none;
    border-radius: 18px 0 0 0;
}

.esquina-filigrana.der {
    top: 16px;
    right: 16px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 18px 0 0;
}

.lazo-carta {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    margin-bottom: 6px;
}

.lazo-nudo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, #e46b96);
    box-shadow: 0 4px 8px rgba(160, 50, 90, 0.25);
    z-index: 1;
}

.lazo-ala {
    width: 42px;
    height: 22px;
    background: linear-gradient(180deg, #ffc1d8, #e56b98);
    box-shadow: 0 5px 10px rgba(160, 50, 90, 0.18);
}

.lazo-ala.izquierda {
    border-radius: 40% 60% 60% 40%;
    transform: rotate(-18deg);
    margin-right: -6px;
}

.lazo-ala.derecha {
    border-radius: 60% 40% 40% 60%;
    transform: rotate(18deg);
    margin-left: -6px;
}

.cierre-dedicatoria {
    margin: 4px 0 0 !important;
    font-family: "Caveat", cursive;
    font-size: 20px !important;
    color: #c56b8c !important;
    letter-spacing: 0.12em;
    text-transform: lowercase;
}

.pagina-final .palabras-bonitas {
    display: none;
}

.pagina-final h1 {
    font-size: 44px;
    margin: 2px 0 6px;
}

.texto-final {
    max-width: 500px;
    margin: 6px auto 10px !important;
    color: #7a5a66;
    font-size: 16px;
    font-style: italic;
}

.mensaje-valor {
    max-width: 560px;
    margin: 10px auto 12px !important;
    padding: 14px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(232, 176, 196, 0.75);
    color: #6a3d50 !important;
    font-size: 16.5px !important;
    font-style: normal;
    line-height: 1.7 !important;
    text-align: center;
}

.marco-cita {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px auto 12px;
    padding: 18px 16px 14px;
    max-width: 560px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95), rgba(255, 232, 242, 0.7));
    border: 1px solid rgba(232, 170, 194, 0.7);
    box-shadow:
        0 10px 24px rgba(180, 90, 130, 0.12),
        inset 0 0 0 4px rgba(255, 255, 255, 0.7);
}

.rosa-marco {
    font-size: 22px;
    opacity: 0.85;
}

.cita-josue {
    position: relative;
    margin: 0;
    max-width: 420px;
    padding: 0 6px;
}

.cita-josue p {
    margin: 0;
    font-family: "Great Vibes", "Segoe Script", cursive;
    font-size: 34px;
    line-height: 1.2;
    color: #8a3458;
}

.cita-josue em {
    font-style: normal;
    color: #d45080;
    text-decoration: underline;
    text-decoration-color: rgba(232, 160, 186, 0.7);
    text-underline-offset: 6px;
}

.cita-josue cite {
    display: block;
    margin-top: 8px;
    font-family: "Caveat", cursive;
    font-size: 18px;
    font-style: normal;
    color: #b07a90;
}

.bendicion-final {
    max-width: 460px;
    margin: 4px auto 8px !important;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px dashed rgba(220, 160, 184, 0.8);
    color: #6d5360;
    font-size: 15px;
    line-height: 1.55;
}

.palabras-bonitas {
    margin: 10px auto 4px !important;
}

.palabras-bonitas span {
    font-family: "Caveat", cursive;
    font-size: 16px;
    color: #9a4d6e;
    background: linear-gradient(180deg, #fff, #ffe4f0) !important;
    border: 1px solid rgba(232, 176, 196, 0.8);
    border-radius: 999px;
    box-shadow: 0 4px 0 rgba(232, 176, 196, 0.35);
}

.pista-relicario,
.pista-flor {
    margin: 8px auto 4px !important;
    font-family: "Caveat", cursive;
    font-size: 20px !important;
    color: #c56b8c !important;
}

button.relicario:hover,
button.relicario:active {
    transform: none;
    filter: none;
    box-shadow: none !important;
    background: transparent !important;
}

.relicario {
    position: relative;
    display: block;
    width: 168px;
    height: 148px;
    margin: 6px auto 4px !important;
    padding: 0 !important;
    min-width: 0 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    perspective: 900px;
    cursor: pointer;
}

.relicario::before,
.relicario::after {
    content: none !important;
}

.relicario-brillo {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 210, 230, 0.7), transparent 68%);
    animation: pulsoRelicario 2.4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulsoRelicario {
    0%, 100% { opacity: 0.45; transform: scale(0.92); }
    50% { opacity: 1; transform: scale(1.05); }
}

.relicario-interior {
    position: absolute;
    left: 50%;
    top: 52%;
    width: 118px;
    height: 96px;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 10px 8px 8px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #ffe6f0);
    color: #8a3458;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
    transition: opacity 0.35s ease 0.15s, transform 0.45s ease;
    z-index: 1;
}

.relicario-interior #relicarioEmoji {
    font-size: 22px;
    line-height: 1;
}

.relicario-interior strong {
    font-family: "Great Vibes", cursive;
    font-size: 20px;
    font-weight: 400;
}

.relicario-interior p {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 11.5px;
    line-height: 1.25;
    color: #7a4a5c;
}

.relicario-tapa {
    position: absolute;
    top: 18px;
    width: 78px;
    height: 86px;
    background:
        radial-gradient(circle at 30% 25%, #ffd2e4, #e45d8a 58%, #b83b66);
    box-shadow: 0 10px 18px rgba(150, 40, 80, 0.28);
    transition: transform 0.7s ease;
    z-index: 3;
}

.relicario-tapa.izquierda {
    left: 12px;
    border-radius: 70px 12px 8px 70px;
    transform-origin: right center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.relicario-tapa.derecha {
    right: 12px;
    border-radius: 12px 70px 70px 8px;
    transform-origin: left center;
}

.relicario-l {
    color: #fff6ea;
    font-family: "Great Vibes", cursive;
    font-size: 34px;
    text-shadow: 0 2px 0 rgba(90, 20, 40, 0.25);
}

.relicario-bloque.abierto .relicario-tapa.izquierda {
    transform: rotateY(-158deg);
}

.relicario-bloque.abierto .relicario-tapa.derecha {
    transform: rotateY(158deg);
}

.relicario-bloque.abierto .relicario-brillo {
    opacity: 0.2;
}

.secreto-caja {
    display: none;
    width: min(520px, 94%);
    margin: 8px auto 6px;
    padding: 16px 18px;
    border-radius: 22px;
    background: #fff;
    border: 2px solid #e8a8c0;
    box-shadow: 0 10px 24px rgba(150, 60, 100, 0.16);
    color: #6a2d45;
}

.secreto-caja #relicarioEmoji {
    font-size: 28px;
}

.secreto-caja strong {
    display: block;
    margin: 4px 0 8px;
    font-family: "Great Vibes", cursive;
    font-size: 28px;
    font-weight: 400;
    color: #b54470;
}

.secreto-caja p,
.secreto-caja #secretoRelicario {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: 20px !important;
    line-height: 1.45 !important;
    color: #5c3344 !important;
}

.relicario-bloque.abierto .secreto-caja {
    display: block;
}

@media (max-width: 650px) {
    .cierre-carta {
        padding: 40px 14px 20px;
        width: 96%;
    }

    .marco-cita {
        border-radius: 28px;
        flex-direction: column;
        gap: 2px;
    }

    .cita-josue p {
        font-size: 28px;
    }

    button.boton-principal,
    #botonVolverInicio.boton-principal {
        min-width: 0;
        width: 92%;
        font-size: 26px !important;
    }
}

.mariposa {
    font-size: 22px !important;
    animation: volarMariposa 9s ease-in-out infinite !important;
    filter: drop-shadow(0 4px 6px rgba(160, 80, 120, 0.25));
}

@keyframes volarMariposa {
    0%, 100% { transform: translate(0, 0) rotate(-8deg); }
    25% { transform: translate(18px, -22px) rotate(12deg); }
    50% { transform: translate(-10px, -36px) rotate(-6deg); }
    75% { transform: translate(14px, -14px) rotate(10deg); }
}

.cinta-washi {
    position: absolute;
    top: 58px;
    left: -10px;
    z-index: 3;
    width: 78px;
    height: 16px;
    background:
        repeating-linear-gradient(
            90deg,
            #ffb7d0 0 10px,
            #fff6fb 10px 16px,
            #e8c4ff 16px 26px
        );
    transform: rotate(-22deg);
    box-shadow: 0 4px 8px rgba(140, 60, 90, 0.18);
    opacity: 0.92;
}

.brillo-carta {
    position: absolute;
    z-index: 3;
    color: #e8c36a;
    font-size: 14px;
    opacity: 0.85;
    animation: destello 2.6s ease-in-out infinite;
    pointer-events: none;
}

.brillo-carta.uno { top: 22px; right: 28px; }
.brillo-carta.dos { top: 48%; left: 18px; animation-delay: 0.8s; }
.brillo-carta.tres { bottom: 22px; right: 36px; animation-delay: 1.4s; }

@keyframes destello {
    0%, 100% { opacity: 0.25; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.15) rotate(18deg); }
}

.cadena {
    width: 132px;
    height: 26px;
    margin: 0 auto -10px;
    border: none;
    border-bottom: 3px dotted #e6c56a;
    border-radius: 0 0 70% 70%;
    box-shadow: 0 6px 0 -3px rgba(230, 197, 106, 0.35);
}