/* =========================================================
   RESET
========================================================= */

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

html {
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100%;
    background: #050b16;
    color: white;
    overflow: hidden;
}

button {
    font: inherit;
}


/* =========================================================
   INTRO
========================================================= */

.intro {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100vh;
    height: 100svh;

    overflow: hidden;

    background: #020812;

    color: white;

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

    z-index: 100;
}


/* =========================================================
   FONDO INTRO
========================================================= */

.intro-bg {
    position: absolute;
    inset: 0;

    background-image:
        url("../assets/images/intro-bg.jpg");

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

    transform: scale(1.02);

    animation:
        introBackground 13s ease-out forwards;

    z-index: 0;
}


/* =========================================================
   OSCURECER
========================================================= */

.overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 7, 16, .30),
            rgba(0, 8, 18, .20),
            rgba(0, 5, 12, .78)
        );

    z-index: 1;
}


/* =========================================================
   ESTRELLAS INTRO
========================================================= */

.stars {
    position: absolute;
    inset: 0;

    z-index: 2;

    pointer-events: none;
}

.stars span {
    position: absolute;

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: #f2d486;

    box-shadow:
        0 0 12px #f2d486;

    animation:
        twinkle 2.5s ease-in-out infinite alternate;
}

.stars span:nth-child(1) {
    top: 18%;
    left: 18%;
}

.stars span:nth-child(2) {
    top: 28%;
    left: 78%;
    animation-delay: .5s;
}

.stars span:nth-child(3) {
    top: 44%;
    left: 12%;
    animation-delay: 1s;
}

.stars span:nth-child(4) {
    top: 16%;
    left: 58%;
    animation-delay: 1.5s;
}

.stars span:nth-child(5) {
    top: 70%;
    left: 20%;
    animation-delay: .7s;
}

.stars span:nth-child(6) {
    top: 62%;
    left: 84%;
    animation-delay: 1.2s;
}

.stars span:nth-child(7) {
    top: 78%;
    left: 65%;
    animation-delay: .3s;
}

.stars span:nth-child(8) {
    top: 35%;
    left: 92%;
    animation-delay: 1.7s;
}


/* =========================================================
   CONTENIDO INTRO
========================================================= */

.content {
    position: relative;

    z-index: 5;

    width: min(900px, 90vw);

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    margin-top: -35px;
}

 .eyebrow {
    font-size: 12px !important;
    letter-spacing: .30em;
}

.subtitle {
    font-size: 12px !important;
    letter-spacing: .22em;
}

.content h1 {
    font-size: clamp(82px, 24vw, 120px) !important;
}

.occasion {
    font-size: 12px !important;
    letter-spacing: .32em;
}

.date {
    font-size: 10px !important;
    letter-spacing: .22em;
}

#enterButton {
    font-size: 11px !important;
}

.subtitle {
    color: #f0d795;

    font-family: Arial, sans-serif;

    font-size: 12px;

    letter-spacing: .4em;

    margin-bottom: 8px;

    opacity: 0;

    animation:
        fadeUp 1s 1s ease forwards;
}

.content h1 {
    color: #fffaf0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(90px, 12vw, 160px);

    font-weight: 400;

    line-height: .9;

    letter-spacing: -.06em;

    text-shadow:
        0 10px 35px rgba(0,0,0,.55);

    opacity: 0;

    animation:
        nameIn 1.4s 1.6s ease forwards;
}

.line {
    width: 70px;
    height: 1px;

    background: #d8b766;

    margin: 28px 0 18px;

    opacity: 0;

    animation:
        fadeIn 1s 2.8s ease forwards;
}

.occasion {
    color: #e5c276;

    font-family: Arial, sans-serif;

    font-size: 13px;

    letter-spacing: .5em;

    opacity: 0;

    animation:
        fadeUp 1s 3s ease forwards;
}

.date {
    color: rgba(255,255,255,.9);

    font-family: Arial, sans-serif;

    font-size: 11px;

    letter-spacing: .35em;

    margin-top: 14px;

    opacity: 0;

    animation:
        fadeUp 1s 3.2s ease forwards;
}


/* =========================================================
   BOTÓN
========================================================= */

#enterButton {
    width: 275px;
    height: 60px;

    margin-top: 38px;

    border: 1px solid #d8b766;

    background:
        rgba(2, 13, 20, .60);

    color: #f0d48d;

    display: flex;

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

    gap: 25px;

    font-family: Arial, sans-serif;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: .22em;

    cursor: pointer;

    backdrop-filter: blur(8px);

    opacity: 0;

    animation:
        fadeUp 1s 3.7s ease forwards;

    transition:
        background .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
}

#enterButton:hover {
    background:
        rgba(216,183,102,.15);

    transform:
        translateY(-3px);

    box-shadow:
        0 10px 35px rgba(0,0,0,.25);
}

#enterButton b {
    font-size: 21px;

    font-weight: 400;

    transition:
        transform .3s ease;
}

#enterButton:hover b {
    transform:
        translateX(6px);
}


/* =========================================================
   MANZANA
========================================================= */

.apple {
    position: absolute;

    z-index: 5;

    left: 50%;
    bottom: 8%;

    width: 65px;
    height: 60px;

    transform:
        translateX(-50%);

    animation:
        appleFloat 3s ease-in-out infinite;
}

.apple-body {
    position: absolute;

    left: 5px;
    bottom: 0;

    width: 55px;
    height: 50px;

    border-radius:
        48% 48% 50% 50%;

    background:
        radial-gradient(
            circle at 30% 25%,
            #ff8585,
            #e73543 45%,
            #9e1422 100%
        );

    box-shadow:
        0 10px 20px rgba(0,0,0,.45);
}

.apple-stem {
    position: absolute;

    left: 34px;
    top: -8px;

    width: 5px;
    height: 15px;

    background: #55321e;

    border-radius: 10px;

    transform:
        rotate(12deg);
}

.apple-leaf {
    position: absolute;

    left: 38px;
    top: -7px;

    width: 20px;
    height: 10px;

    background: #759544;

    border-radius:
        100% 0;

    transform:
        rotate(-15deg);
}


/* =========================================================
   DESCUBRE
========================================================= */

.discover {
    position: absolute;

    z-index: 5;

    bottom: 14px;
    left: 50%;

    transform:
        translateX(-50%);

    color:
        rgba(255,255,255,.75);

    font-family: Arial, sans-serif;

    font-size: 8px;

    letter-spacing: .3em;

    text-align: center;

    transition: opacity .5s;
}

.discover small {
    display: block;

    color: #d9b766;

    font-size: 14px;

    margin-top: 6px;
}


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

.counter {
    position: absolute;

    top: 20px;
    right: 25px;

    z-index: 10;

    width: 38px;
    height: 38px;

    border:
        1px solid
        rgba(216,183,102,.6);

    border-radius: 50%;

    display: flex;

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

    color: #e5c276;

    font-family: Arial, sans-serif;

    font-size: 11px;

    opacity: 0;

    transition: opacity .4s;
}

.intro.playing .counter {
    opacity: 1;
}


/* =========================================================
   ANIMACIÓN DURANTE INTRO
========================================================= */

.intro.playing .content {
    animation:
        contentExit 13s linear forwards;
}

.intro.playing .apple {
    animation:
        appleExit 13s linear forwards;
}

.intro.playing .discover {
    animation:
        discoverExit 13s linear forwards;
}


/* =========================================================
   SALIDA INTRO
========================================================= */

.intro.exit {
    animation:
        introExit 1.2s cubic-bezier(.77,0,.18,1) forwards;
}


/* =========================================================
   ========================================================
   INVITACIÓN
   ========================================================
========================================================= */

.invitation {
    position: relative;

    width: 100%;

    height: 100vh;
    height: 100svh;

    min-height: 680px;

    overflow: hidden;

    background:
        #06142b;

    color: #fffaf0;

    isolation: isolate;
}


/* =========================================================
   FONDO AZUL
========================================================= */

.invitation-bg {
    position: absolute;
    inset: 0;

    z-index: 0;

    background:
        radial-gradient(
            circle at 50% 50%,
            #173c6a 0%,
            #0b2547 38%,
            #06152e 72%,
            #020b1b 100%
        );
}


/* =========================================================
   FOTOGRAFÍA
========================================================= */

.photo-wrapper {
    position: absolute;

    inset: 0;

    z-index: 1;

    overflow: hidden;

    opacity: 0;

    animation:
        photoReveal 1.6s
        cubic-bezier(.22,.61,.36,1)
        .15s
        forwards;
}

.photo-wrapper img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center center;

    transform:
        scale(1.08);

    filter:
        brightness(.72)
        contrast(1.08)
        saturate(.90);

    animation:
        photoZoom 18s
        ease-out
        .3s
        forwards;
}


/* =========================================================
   CAPAS SOBRE LA FOTO
========================================================= */

.photo-overlay {
    position: absolute;

    inset: 0;

    z-index: 2;

    background:

        linear-gradient(
            to bottom,
            rgba(3,15,38,.76) 0%,
            rgba(4,19,43,.28) 24%,
            rgba(4,19,43,.05) 48%,
            rgba(3,13,34,.30) 68%,
            rgba(2,9,24,.88) 100%
        ),

        radial-gradient(
            circle at 50% 45%,
            transparent 20%,
            rgba(0,5,18,.48) 100%
        );

    pointer-events: none;
}


/* =========================================================
   DESTELLO
========================================================= */

.light-sweep {
    position: absolute;

    top: -30%;
    left: -40%;

    width: 22%;
    height: 160%;

    z-index: 5;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,240,190,.20),
            transparent
        );

    transform:
        rotate(12deg)
        translateX(-150%);

    animation:
        lightSweep
        4.5s
        ease-in-out
        1.1s
        forwards;
}


/* =========================================================
   MARCO DORADO
========================================================= */

.gold-frame {
    position: absolute;

    inset: 28px;

    z-index: 8;

    border:
        1px solid
        rgba(232,194,94,.70);

    opacity: 0;

    animation:
        frameReveal
        1.4s
        ease
        .8s
        forwards;

    pointer-events: none;
}


/* =========================================================
   ESQUINAS
========================================================= */

.corner {
    position: absolute;

    width: 65px;
    height: 65px;

    z-index: 9;

    border-color: #e6bd58;

    opacity: 0;

    animation:
        cornerReveal
        1s
        ease
        1s
        forwards;

    pointer-events: none;
}

.corner-tl {
    top: 28px;
    left: 28px;

    border-top: 2px solid;
    border-left: 2px solid;
}

.corner-tr {
    top: 28px;
    right: 28px;

    border-top: 2px solid;
    border-right: 2px solid;
}

.corner-bl {
    bottom: 28px;
    left: 28px;

    border-bottom: 2px solid;
    border-left: 2px solid;
}

.corner-br {
    bottom: 28px;
    right: 28px;

    border-bottom: 2px solid;
    border-right: 2px solid;
}


/* =========================================================
   DESTELLOS
========================================================= */

.magic-sparkles {
    position: absolute;

    inset: 0;

    z-index: 7;

    pointer-events: none;
}

.magic-sparkles span {
    position: absolute;

    color: #f1ce72;

    font-family: Georgia, serif;

    text-shadow:
        0 0 15px
        rgba(240,205,111,.9);

    opacity: 0;

    animation:
        sparkleAppear
        1s
        ease
        forwards,
        sparkleFloat
        4s
        ease-in-out
        infinite;
}

.magic-sparkles span:nth-child(1) {
    top: 15%;
    left: 15%;
    font-size: 17px;
    animation-delay: 1.2s, 2.2s;
}

.magic-sparkles span:nth-child(2) {
    top: 22%;
    right: 18%;
    font-size: 10px;
    animation-delay: 1.5s, 2.8s;
}

.magic-sparkles span:nth-child(3) {
    top: 42%;
    left: 9%;
    font-size: 13px;
    animation-delay: 1.8s, 3.1s;
}

.magic-sparkles span:nth-child(4) {
    top: 48%;
    right: 10%;
    font-size: 9px;
    animation-delay: 2s, 3.5s;
}

.magic-sparkles span:nth-child(5) {
    bottom: 20%;
    left: 19%;
    font-size: 14px;
    animation-delay: 2.2s, 3s;
}

.magic-sparkles span:nth-child(6) {
    bottom: 27%;
    right: 18%;
    font-size: 18px;
    animation-delay: 2.4s, 3.7s;
}

.magic-sparkles span:nth-child(7) {
    top: 12%;
    right: 37%;
    font-size: 8px;
    animation-delay: 1.3s, 2.6s;
}

.magic-sparkles span:nth-child(8) {
    bottom: 16%;
    right: 8%;
    font-size: 11px;
    animation-delay: 2.7s, 4s;
}

.magic-sparkles span:nth-child(9) {
    top: 66%;
    left: 30%;
    font-size: 8px;
    animation-delay: 2.5s, 3.4s;
}

.magic-sparkles span:nth-child(10) {
    top: 34%;
    right: 29%;
    font-size: 7px;
    animation-delay: 1.7s, 2.9s;
}


/* =========================================================
   CONTENIDO INVITACIÓN
========================================================= */

.invitation-content {
    position: relative;

    z-index: 10;

    width: 100%;
    height: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding:
        70px 25px
        100px;
}


/* =========================================================
   ETIQUETA
========================================================= */

.invitation-label {
    color: #e8c365;

    font-family: Arial, sans-serif;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .5em;

    opacity: 0;

    transform:
        translateY(20px);

    animation:
        textReveal
        .9s
        ease
        1.1s
        forwards;
}


/* =========================================================
   ORNAMENTO
========================================================= */

.ornament {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    margin:
        18px 0 18px;

    opacity: 0;

    animation:
        textReveal
        .9s
        ease
        1.3s
        forwards;
}

.ornament span {
    width: 55px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #e0b957
        );
}

.ornament span:last-child {
    background:
        linear-gradient(
            90deg,
            #e0b957,
            transparent
        );
}

.ornament b {
    color: #f1ce72;

    font-size: 15px;

    font-weight: 400;

    animation:
        starPulse
        2s
        ease-in-out
        infinite;
}


/* =========================================================
   NOMBRE
========================================================= */

.invitation-content h2 {
    color: #fffaf0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(90px, 14vw, 190px);

    font-weight: 400;

    line-height: .82;

    letter-spacing: -.055em;

    text-shadow:
        0 10px 40px
        rgba(0,0,0,.55);

    opacity: 0;

    transform:
        translateY(40px)
        scale(.94);

    animation:
        nameReveal
        1.4s
        cubic-bezier(.22,.61,.36,1)
        1.5s
        forwards;
}


/* =========================================================
   FECHA
========================================================= */

.date-main {
    margin-top: 30px;

    color: #f2ddb0;

    font-family: Arial, sans-serif;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: .45em;

    opacity: 0;

    transform:
        translateY(15px);

    animation:
        textReveal
        .9s
        ease
        2.1s
        forwards;
}


/* =========================================================
   DETALLE ROJO
========================================================= */

.red-accent {
    width: 36px;
    height: 2px;

    margin-top: 25px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #b72832,
            transparent
        );

    box-shadow:
        0 0 15px
        rgba(183,40,50,.45);

    opacity: 0;

    animation:
        accentReveal
        1s
        ease
        2.4s
        forwards;
}


/* =========================================================
   FRASE
========================================================= */

.invitation-message {
    margin-top: 26px;

    color:
        rgba(255,250,240,.94);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(17px, 2vw, 22px);

    line-height: 1.55;

    font-style: italic;

    text-shadow:
        0 3px 18px
        rgba(0,0,0,.55);

    opacity: 0;

    transform:
        translateY(18px);

    animation:
        textReveal
        1s
        ease
        2.6s
        forwards;
}


/* =========================================================
   PARTE INFERIOR
========================================================= */

.invitation-bottom {
    position: absolute;

    bottom: 28px;

    left: 50%;

    transform:
        translateX(-50%);

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 7px;

    color:
        rgba(255,250,240,.78);

    font-family: Arial, sans-serif;

    font-size: 8px;

    font-weight: 600;

    letter-spacing: .35em;

    white-space: nowrap;

    opacity: 0;

    animation:
    invitationBottomReveal
    1s
    ease
    3.1s
    forwards;
}

.scroll-arrow {
    color: #e4bd5c;

    font-size: 20px;

    animation:
        arrowFloat
        1.8s
        ease-in-out
        infinite;
}


/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes introBackground {

    from {
        transform: scale(1.02);
    }

    to {
        transform: scale(1.10);
    }

}

@keyframes fadeUp {

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

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

}

@keyframes nameIn {

    from {
        opacity: 0;

        transform:
            translateY(35px)
            scale(.96);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}

@keyframes fadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

@keyframes twinkle {

    from {
        opacity: .2;
        transform: scale(.6);
    }

    to {
        opacity: 1;
        transform: scale(1.5);
    }

}

@keyframes appleFloat {

    0%,
    100% {
        transform:
            translateX(-50%)
            translateY(0);
    }

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

}

@keyframes contentExit {

    0% {
        opacity: 1;
        transform: scale(1);
    }

    72% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform:
            scale(1.04)
            translateY(-15px);
    }

}

@keyframes appleExit {

    0% {
        opacity: 1;
    }

    72% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform:
            translateX(-50%)
            translateY(30px);
    }

}

@keyframes discoverExit {

    0% {
        opacity: 1;
    }

    72% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }

}

@keyframes introExit {

    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        visibility: hidden;
        transform: scale(1.025);
    }

}


/* =========================================================
   INVITACIÓN
========================================================= */

@keyframes photoReveal {

    from {
        opacity: 0;
        transform: scale(1.04);
    }

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

}

@keyframes photoZoom {

    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1.02);
    }

}

@keyframes lightSweep {

    0% {
        transform:
            rotate(12deg)
            translateX(-150%);
    }

    100% {
        transform:
            rotate(12deg)
            translateX(700%);
    }

}

@keyframes frameReveal {

    from {
        opacity: 0;
        transform: scale(.97);
    }

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

}

@keyframes cornerReveal {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

@keyframes textReveal {

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

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

}

@keyframes nameReveal {

    from {
        opacity: 0;

        transform:
            translateY(40px)
            scale(.94);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}

@keyframes accentReveal {

    from {
        opacity: 0;
        width: 0;
    }

    to {
        opacity: 1;
        width: 36px;
    }

}

@keyframes sparkleAppear {

    from {
        opacity: 0;
        transform: scale(.2);
    }

    to {
        opacity: .85;
        transform: scale(1);
    }

}

@keyframes sparkleFloat {

    0%,
    100% {
        margin-top: 0;
        transform: rotate(0deg);
    }

    50% {
        margin-top: -9px;
        transform: rotate(12deg);
    }

}

@keyframes starPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: .7;
    }

    50% {
        transform: scale(1.35);
        opacity: 1;
    }

}

@keyframes arrowFloat {

    0%,
    100% {
        transform: translateY(0);
        opacity: .55;
    }

    50% {
        transform: translateY(7px);
        opacity: 1;
    }

}


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

@media (max-width: 600px) {

    .intro-bg {
        background-position:
            center center;
    }

    .content {
        width: 92vw;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: .3em;
    }

    .subtitle {
        font-size: 9px;
        letter-spacing: .22em;
    }

    .content h1 {
        font-size:
            clamp(75px, 23vw, 110px);
    }

    .occasion {
        font-size: 9px;
        letter-spacing: .32em;
    }

    .date {
        font-size: 8px;
        letter-spacing: .22em;
    }

    #enterButton {
        width: 235px;
        height: 55px;

        font-size: 9px;

        gap: 17px;
    }

    .apple {
        bottom: 8%;
    }

    .discover {
        font-size: 6px;
    }


    /* ==============================
       INVITACIÓN
    ============================== */

    .invitation {
        min-height: 100svh;
    }

    .photo-wrapper img {
        object-position:
            center center;

        filter:
            brightness(.66)
            contrast(1.06)
            saturate(.88);
    }

    .gold-frame {
        inset: 14px;
    }

    .corner {
        width: 38px;
        height: 38px;
    }

    .corner-tl,
    .corner-tr {
        top: 14px;
    }

    .corner-bl,
    .corner-br {
        bottom: 14px;
    }

    .corner-tl,
    .corner-bl {
        left: 14px;
    }

    .corner-tr,
    .corner-br {
        right: 14px;
    }

    .invitation-content {
        padding:
            55px 20px
            90px;
    }

    .invitation-label {
        font-size: 9px;
        letter-spacing: .34em;
    }

    .ornament span {
        width: 38px;
    }

    .invitation-content h2 {
        font-size:
            clamp(72px, 22vw, 115px);
    }

    .date-main {
        font-size: 9px;
        letter-spacing: .30em;
        margin-top: 23px;
    }

    .invitation-message {
        font-size: 16px;
        line-height: 1.55;
        margin-top: 23px;
    }

    .invitation-bottom {
        bottom: 20px;
        font-size: 7px;
    }

}


/* =========================================================
   REDUCIR MOVIMIENTO
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

}

/* =========================================================
   CORRECCIÓN — ACTIVACIÓN DE LA INVITACIÓN
   La invitación NO anima hasta terminar la intro.
========================================================= */

.invitation {
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 1s ease,
        visibility 0s linear 1s;
}


/* =========================================================
   CUANDO TERMINA LA INTRO
========================================================= */

body.invitation-active .invitation {
    opacity: 1;
    visibility: visible;

    transition:
        opacity 1s ease,
        visibility 0s linear 0s;
}


/* =========================================================
   PAUSAR ANIMACIONES DE LA INVITACIÓN
   Evita que se reproduzcan mientras está escondida.
========================================================= */

.invitation .photo-wrapper,
.invitation .gold-frame,
.invitation .corner,
.invitation .magic-sparkles span,
.invitation .invitation-label,
.invitation .ornament,
.invitation-content h2,
.invitation .date-main,
.invitation .red-accent,
.invitation .invitation-message,
.invitation .invitation-bottom,
.invitation .light-sweep {
    animation-play-state: paused;
}


/* =========================================================
   ACTIVAR TODAS LAS ANIMACIONES AL ENTRAR
========================================================= */

body.invitation-active .invitation .photo-wrapper,
body.invitation-active .invitation .gold-frame,
body.invitation-active .invitation .corner,
body.invitation-active .invitation .magic-sparkles span,
body.invitation-active .invitation .invitation-label,
body.invitation-active .invitation .ornament,
body.invitation-active .invitation-content h2,
body.invitation-active .invitation .date-main,
body.invitation-active .invitation .red-accent,
body.invitation-active .invitation .invitation-message,
body.invitation-active .invitation .invitation-bottom,
body.invitation-active .invitation .light-sweep {
    animation-play-state: running;
}


/* =========================================================
   FOTO — ENTRADA CINEMATOGRÁFICA
========================================================= */

.photo-wrapper {
    will-change: opacity, transform;
}

.photo-wrapper img {
    will-change: transform;
}


/* =========================================================
   TONO BLANCA NIEVES
========================================================= */

.invitation-bg {
    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(32, 69, 117, .95) 0%,
            rgba(13, 39, 77, .98) 38%,
            rgba(5, 20, 44, 1) 72%,
            rgba(1, 8, 20, 1) 100%
        );
}


/* =========================================================
   FOTO MÁS CINEMATOGRÁFICA
========================================================= */

.photo-wrapper img {
    filter:
        brightness(.68)
        contrast(1.10)
        saturate(.95);

    transform: scale(1.10);
}


/* =========================================================
   OVERLAY — AZUL NOCTURNO
========================================================= */

.photo-overlay {
    background:

        linear-gradient(
            to bottom,
            rgba(2, 13, 34, .80) 0%,
            rgba(5, 24, 54, .38) 25%,
            rgba(5, 20, 48, .08) 48%,
            rgba(5, 15, 35, .38) 72%,
            rgba(1, 7, 19, .94) 100%
        ),

        radial-gradient(
            circle at 50% 42%,
            transparent 12%,
            rgba(0, 5, 18, .58) 100%
        );
}


/* =========================================================
   BRILLO DORADO
========================================================= */

.light-sweep {
    opacity: .8;
}


/* =========================================================
   MARCO MÁS ELEGANTE
========================================================= */

.gold-frame {
    border-color:
        rgba(232, 194, 94, .78);

    box-shadow:
        inset 0 0 35px rgba(226, 186, 79, .035),
        0 0 35px rgba(0, 0, 0, .18);
}


/* =========================================================
   TEXTO PRINCIPAL
========================================================= */

.invitation-content h2 {
    text-shadow:
        0 8px 30px rgba(0, 0, 0, .70),
        0 0 45px rgba(255, 255, 255, .08);
}


/* =========================================================
   DETALLE ROJO — REFERENCIA A LA MANZANA
========================================================= */

.red-accent {
    background:
        linear-gradient(
            90deg,
            transparent,
            #c52f3a,
            #e05258,
            #c52f3a,
            transparent
        );

    box-shadow:
        0 0 18px rgba(197, 47, 58, .60);
}


/* =========================================================
   DESTELLOS
========================================================= */

.magic-sparkles span {
    color: #f3cf72;

    text-shadow:
        0 0 8px rgba(243, 207, 114, .8),
        0 0 20px rgba(243, 207, 114, .35);
}


/* =========================================================
   HOVER / INTERACCIÓN
========================================================= */

.invitation {
    cursor: default;
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 600px) {

    .photo-wrapper img {
        object-position: center center;

        filter:
            brightness(.64)
            contrast(1.08)
            saturate(.92);
    }

}

/* =========================================================
   MÓDULO 3 · CUENTA REGRESIVA
========================================================= */

.countdown-section {

    position: relative;

    width: 100%;

    min-height: 100vh;
    min-height: 100svh;

    overflow: hidden;

    background: #031126;

    color: #fffaf0;

    display: flex;

    align-items: center;

    justify-content: center;

    isolation: isolate;

}


/* =========================================================
   FONDO
========================================================= */

.countdown-bg {

    position: absolute;

    inset: 0;

    z-index: 0;

    background:

        radial-gradient(
            circle at 50% 35%,
            #173b68 0%,
            #0b2648 30%,
            #061832 58%,
            #020b1c 100%
        );

}


.countdown-bg::before {

    content: "";

    position: absolute;

    inset: 0;

    background:

        radial-gradient(
            circle at 20% 30%,
            rgba(216, 183, 102, .10),
            transparent 25%
        ),

        radial-gradient(
            circle at 80% 70%,
            rgba(197, 47, 58, .08),
            transparent 25%
        );

}


/* =========================================================
   BORDE DORADO
========================================================= */

.countdown-section::before {

    content: "";

    position: absolute;

    inset: 24px;

    z-index: 3;

    border: 1px solid rgba(232, 194, 94, .32);

    pointer-events: none;

}


.countdown-section::after {

    content: "";

    position: absolute;

    inset: 34px;

    z-index: 3;

    border: 1px solid rgba(232, 194, 94, .10);

    pointer-events: none;

}


/* =========================================================
   ESTRELLAS
========================================================= */

.countdown-stars {

    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

}


.countdown-stars span {

    position: absolute;

    color: #f3cf72;

    font-family: Georgia, serif;

    text-shadow:
        0 0 8px rgba(243, 207, 114, .8),
        0 0 22px rgba(243, 207, 114, .35);

    animation:
        countdownStarFloat
        3.5s
        ease-in-out
        infinite alternate;

}


.countdown-stars span:nth-child(1) {

    top: 15%;
    left: 13%;

    font-size: 18px;

}


.countdown-stars span:nth-child(2) {

    top: 24%;
    right: 17%;

    font-size: 10px;

    animation-delay: .8s;

}


.countdown-stars span:nth-child(3) {

    top: 48%;
    left: 7%;

    font-size: 11px;

    animation-delay: 1.4s;

}


.countdown-stars span:nth-child(4) {

    top: 58%;
    right: 9%;

    font-size: 17px;

    animation-delay: .5s;

}


.countdown-stars span:nth-child(5) {

    bottom: 18%;
    left: 18%;

    font-size: 12px;

    animation-delay: 1.8s;

}


.countdown-stars span:nth-child(6) {

    bottom: 13%;
    right: 22%;

    font-size: 20px;

    animation-delay: .9s;

}


.countdown-stars span:nth-child(7) {

    top: 12%;
    left: 48%;

    font-size: 8px;

    animation-delay: 2s;

}


.countdown-stars span:nth-child(8) {

    bottom: 27%;
    right: 39%;

    font-size: 9px;

    animation-delay: 1.2s;

}


/* =========================================================
   CONTENIDO
========================================================= */

.countdown-content {

    position: relative;

    z-index: 5;

    width: min(900px, 90vw);

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

}


/* =========================================================
   EYEBROW
========================================================= */

.countdown-eyebrow {

    color: #e8c365;

    font-family: Arial, sans-serif;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .48em;

    margin-bottom: 20px;

}


/* =========================================================
   ORNAMENTO
========================================================= */

.countdown-ornament {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    margin-bottom: 18px;

}


.countdown-ornament span {

    width: 60px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #dcb75f
        );

}


.countdown-ornament span:last-child {

    background:
        linear-gradient(
            90deg,
            #dcb75f,
            transparent
        );

}


.countdown-ornament b {

    color: #f1ce72;

    font-size: 15px;

    font-weight: 400;

    animation:
        countdownPulse
        2s
        ease-in-out
        infinite;

}


/* =========================================================
   TÍTULO
========================================================= */

.countdown-content h2 {

    margin: 0;

    color: #fffaf0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(58px, 8vw, 100px);

    font-weight: 400;

    line-height: .9;

    letter-spacing: -.04em;

    text-shadow:
        0 10px 35px rgba(0,0,0,.55);

}


/* =========================================================
   TEXTO
========================================================= */

.countdown-intro {

    margin-top: 22px;

    color:
        rgba(255,250,240,.78);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(16px, 2vw, 20px);

    line-height: 1.5;

    font-style: italic;

}


/* =========================================================
   GRID DEL CONTADOR
========================================================= */

.countdown-grid {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 4px;

    margin-top: 30px;

}


.countdown-item {

    min-width:
        clamp(62px, 9vw, 105px);

    display: flex;

    flex-direction: column;

    align-items: center;

}


.countdown-item strong {

    color: #f7dda0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(42px, 6vw, 72px);

    font-weight: 400;

    line-height: .9;

    font-variant-numeric: tabular-nums;

    text-shadow:
        0 5px 20px rgba(0,0,0,.45);

}


.countdown-item span {

    margin-top: 12px;

    color:
        rgba(255,250,240,.55);

    font-family: Arial, sans-serif;

    font-size: 8px;

    font-weight: 600;

    letter-spacing: .28em;

}


.countdown-separator {

    color: #bd8f35;

    font-family:
        Georgia,
        serif;

    font-size:
        clamp(25px, 4vw, 42px);

    margin-top: -17px;

    opacity: .75;

}


/* =========================================================
   FECHA
========================================================= */

.countdown-date {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    margin-top: 48px;

    padding-top: 20px;

    border-top:
        1px solid
        rgba(232,194,94,.28);

}


.countdown-date > span {

    color: #c72e3a;

    font-family:
        Georgia,
        serif;

    font-size: 42px;

    line-height: 1;

}


.countdown-date div {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

}


.countdown-date strong {

    color: #f2ddb0;

    font-family: Arial, sans-serif;

    font-size: 11px;

    letter-spacing: .38em;

}


.countdown-date small {

    margin-top: 5px;

    color:
        rgba(255,250,240,.55);

    font-family: Arial, sans-serif;

    font-size: 9px;

    letter-spacing: .25em;

}


/* =========================================================
   PARTE INFERIOR
========================================================= */

.countdown-bottom {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 32px;

    color:
        rgba(255,250,240,.48);

    font-family: Arial, sans-serif;

    font-size: 7px;

    font-weight: 600;

    letter-spacing: .34em;

}


.countdown-bottom b {

    color: #e5c276;

    font-size: 11px;

}


/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes countdownStarFloat {

    from {

        opacity: .25;

        transform:
            translateY(0)
            scale(.8);

    }

    to {

        opacity: .95;

        transform:
            translateY(-9px)
            scale(1.2);

    }

}


@keyframes countdownPulse {

    0%,
    100% {

        opacity: .55;

        transform: scale(1);

    }

    50% {

        opacity: 1;

        transform: scale(1.3);

    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 600px) {

    .countdown-section::before {

        inset: 14px;

    }


    .countdown-section::after {

        inset: 22px;

    }


    .countdown-eyebrow {

        font-size: 8px;

        letter-spacing: .30em;

    }


    .countdown-ornament span {

        width: 38px;

    }


    .countdown-content h2 {

        font-size:
            clamp(52px, 17vw, 82px);

    }


    .countdown-intro {

        font-size: 15px;

        margin-top: 18px;

    }


    .countdown-grid {

        gap: 4px;

        margin-top: 38px;

    }


    .countdown-item {

        min-width: 65px;

    }


    .countdown-item strong {

        font-size:
            clamp(34px, 11vw, 55px);

    }


    .countdown-item span {

        font-size: 6px;

        letter-spacing: .18em;

        margin-top: 9px;

    }


    .countdown-separator {

        font-size: 25px;

        margin-top: -14px;

    }


    .countdown-date {

        margin-top: 28px;

    }


    .countdown-date > span {

        font-size: 34px;

    }


    .countdown-date strong {

        font-size: 9px;

        letter-spacing: .28em;

    }


    .countdown-bottom {

        font-size: 6px;

        letter-spacing: .22em;

    }

}

/* =========================================================
   MÓDULO 4 · HISTORIA
========================================================= */

.story-section {

    position: relative;

    width: 100%;

    min-height: 100vh;
    min-height: 100svh;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    isolation: isolate;

    color: #fffaf0;

}


/* =========================================================
   FONDO
========================================================= */

.story-bg {

    position: absolute;

    inset: 0;

    z-index: 0;

    background:
        linear-gradient(
            180deg,
            #020b1c 0%,
            #071b38 45%,
            #06152c 100%
        );

}


.story-bg::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            ellipse at center 45%,
            rgba(34, 73, 119, .48),
            transparent 58%
        );

}


.story-bg::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 20% 80%,
            rgba(199, 47, 58, .07),
            transparent 28%
        ),

        radial-gradient(
            circle at 80% 20%,
            rgba(232, 194, 94, .06),
            transparent 25%
        );

}


/* =========================================================
   BRILLO CENTRAL
========================================================= */

.story-glow {

    position: absolute;

    width: 650px;
    height: 650px;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    z-index: 1;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(52, 91, 137, .18) 0%,
            rgba(52, 91, 137, .06) 35%,
            transparent 70%
        );

    filter: blur(15px);

    pointer-events: none;

}


/* =========================================================
   MARCO SUTIL
========================================================= */

.story-section::before {

    content: "";

    position: absolute;

    inset: 24px;

    z-index: 5;

    border:
        1px solid
        rgba(232, 194, 94, .25);

    pointer-events: none;

}


.story-section::after {

    content: "";

    position: absolute;

    inset: 34px;

    z-index: 5;

    border:
        1px solid
        rgba(232, 194, 94, .08);

    pointer-events: none;

}


/* =========================================================
   ESTRELLAS
========================================================= */

.story-stars {

    position: absolute;

    inset: 0;

    z-index: 2;

    pointer-events: none;

}


.story-stars span {

    position: absolute;

    color: #e9c96c;

    font-family: Georgia, serif;

    text-shadow:
        0 0 8px rgba(233, 201, 108, .8),
        0 0 25px rgba(233, 201, 108, .25);

    animation:
        storyTwinkle
        4s
        ease-in-out
        infinite alternate;

}


.story-stars span:nth-child(1) {

    top: 14%;
    left: 14%;

    font-size: 17px;

}


.story-stars span:nth-child(2) {

    top: 21%;
    right: 18%;

    font-size: 9px;

    animation-delay: .7s;

}


.story-stars span:nth-child(3) {

    top: 42%;
    left: 8%;

    font-size: 10px;

    animation-delay: 1.4s;

}


.story-stars span:nth-child(4) {

    top: 49%;
    right: 9%;

    font-size: 18px;

    animation-delay: 2s;

}


.story-stars span:nth-child(5) {

    bottom: 18%;
    left: 17%;

    font-size: 11px;

    animation-delay: .4s;

}


.story-stars span:nth-child(6) {

    bottom: 12%;
    right: 20%;

    font-size: 16px;

    animation-delay: 1.2s;

}


.story-stars span:nth-child(7) {

    top: 10%;
    left: 50%;

    font-size: 7px;

    animation-delay: 1.8s;

}


.story-stars span:nth-child(8) {

    bottom: 25%;
    right: 43%;

    font-size: 8px;

    animation-delay: 2.5s;

}


/* =========================================================
   DECORACIÓN LATERAL
========================================================= */

.story-vine {

    position: absolute;

    z-index: 2;

    width: 150px;
    height: 400px;

    opacity: .16;

    pointer-events: none;

}


.story-vine-left {

    left: -105px;

    top: 50%;

    transform:
        translateY(-50%)
        rotate(-12deg);

    border-right:
        1px solid
        rgba(232,194,94,.7);

    border-radius: 50%;

}


.story-vine-right {

    right: -105px;

    top: 50%;

    transform:
        translateY(-50%)
        rotate(12deg);

    border-left:
        1px solid
        rgba(232,194,94,.7);

    border-radius: 50%;

}


/* =========================================================
   CONTENIDO
========================================================= */

.story-content {

    position: relative;

    z-index: 4;

    width:
        min(850px, 90vw);

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    padding: 100px 20px;

}


/* =========================================================
   EYEBROW
========================================================= */

.story-eyebrow {

    color: #e5c26a;

    font-family: Arial, sans-serif;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .48em;

    margin-bottom: 22px;

}


/* =========================================================
   ORNAMENTO
========================================================= */

.story-ornament {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 30px;

}


.story-ornament span {

    width: 70px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #d9b65e
        );

}


.story-ornament span:last-child {

    background:
        linear-gradient(
            90deg,
            #d9b65e,
            transparent
        );

}


.story-ornament b {

    color: #f0ce72;

    font-size: 15px;

    font-weight: 400;

    animation:
        storyPulse
        2.5s
        ease-in-out
        infinite;

}


/* =========================================================
   TÍTULO
========================================================= */

.story-title {

    margin: 0;

    color: #fffaf0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(42px, 6vw, 72px);

    font-weight: 400;

    line-height: 1.08;

    letter-spacing: -.035em;

    text-shadow:
        0 12px 35px rgba(0,0,0,.5);

}


.story-title em {

    color: #d9c7a0;

    font-size: .72em;

    font-weight: 400;

}


/* =========================================================
   NOMBRE
========================================================= */

.story-name {

    margin-top: 34px;

    color: #f2d487;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(42px, 6vw, 68px);

    font-weight: 400;

    font-style: italic;

    letter-spacing: -.03em;

    text-shadow:
        0 5px 25px rgba(0,0,0,.45);

}


/* =========================================================
   TEXTO
========================================================= */

.story-text {

    margin: 30px 0 0;

    color:
        rgba(255,250,240,.78);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(16px, 2vw, 20px);

    line-height: 1.7;

}


.story-text-secondary {

    margin-top: 15px;

    color:
        rgba(255,250,240,.55);

    font-style: italic;

}


/* =========================================================
   MANZANA
========================================================= */

.story-apple {

    position: relative;

    width: 48px;

    height: 55px;

    margin-top: 35px;

    filter:
        drop-shadow(
            0 8px 20px
            rgba(190, 25, 40, .25)
        );

}


.story-apple-body {

    position: absolute;

    left: 7px;

    top: 12px;

    width: 38px;

    height: 39px;

    background:
        radial-gradient(
            circle at 35% 25%,
            #ed6971 0%,
            #c52f3a 38%,
            #7c1823 100%
        );

    border-radius:
        47%
        47%
        45%
        45% /
        42%
        42%
        58%
        58%;

    transform:
        rotate(-2deg);

}


.story-apple-body::before {

    content: "";

    position: absolute;

    left: 17px;

    top: -3px;

    width: 5px;

    height: 10px;

    background: #582d1e;

    border-radius: 5px;

    transform:
        rotate(13deg);

}


.story-apple-highlight {

    position: absolute;

    left: 13px;

    top: 18px;

    width: 7px;

    height: 10px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.45);

    filter: blur(1px);

}


.story-apple-stem {

    position: absolute;

    left: 24px;

    top: 4px;

    width: 5px;

    height: 12px;

    background: #4b2b1e;

    border-radius: 5px;

    transform:
        rotate(12deg);

}


.story-apple-leaf {

    position: absolute;

    left: 27px;

    top: 2px;

    width: 15px;

    height: 8px;

    background: #6b8d46;

    border-radius:
        100%
        0
        100%
        0;

    transform:
        rotate(-22deg);

}


/* =========================================================
   PARTE INFERIOR
========================================================= */

.story-bottom {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 12px;

    margin-top: 40px;

}


.story-bottom span {

    color:
        rgba(255,250,240,.42);

    font-family: Arial, sans-serif;

    font-size: 7px;

    font-weight: 600;

    letter-spacing: .32em;

}


.story-bottom i {

    color: #e4c16b;

    font-size: 18px;

    font-style: normal;

    animation:
        storyArrow
        1.8s
        ease-in-out
        infinite;

}


/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes storyTwinkle {

    from {

        opacity: .25;

        transform:
            scale(.8)
            translateY(0);

    }

    to {

        opacity: .95;

        transform:
            scale(1.2)
            translateY(-8px);

    }

}


@keyframes storyPulse {

    0%,
    100% {

        opacity: .55;

        transform: scale(1);

    }

    50% {

        opacity: 1;

        transform: scale(1.25);

    }

}


@keyframes storyArrow {

    0%,
    100% {

        transform: translateY(0);

        opacity: .45;

    }

    50% {

        transform: translateY(8px);

        opacity: 1;

    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 600px) {

    .story-section::before {

        inset: 14px;

    }


    .story-section::after {

        inset: 22px;

    }


    .story-content {

        padding:
            80px
            15px;

    }


    .story-eyebrow {

        font-size: 8px;

        letter-spacing: .32em;

    }


    .story-ornament span {

        width: 40px;

    }


    .story-title {

        font-size:
            clamp(37px, 11vw, 55px);

    }


    .story-name {

        font-size:
            clamp(40px, 13vw, 58px);

        margin-top: 28px;

    }


    .story-text {

        font-size: 15px;

        line-height: 1.65;

    }


    .desktop-break {

        display: none;

    }


    .story-bottom span {

        font-size: 5.5px;

        letter-spacing: .22em;

    }

}

/* =========================================================
   ENTRADA DE HISTORIA
========================================================= */

.story-content > * {

    opacity: 0;

    transform:
        translateY(25px);

    transition:
        opacity .9s ease,
        transform 1s cubic-bezier(.2,.7,.2,1);

}


.story-visible .story-eyebrow {

    opacity: 1;

    transform: translateY(0);

    transition-delay: .05s;

}


.story-visible .story-ornament {

    opacity: 1;

    transform: translateY(0);

    transition-delay: .18s;

}


.story-visible .story-title {

    opacity: 1;

    transform: translateY(0);

    transition-delay: .3s;

}


.story-visible .story-name {

    opacity: 1;

    transform: translateY(0);

    transition-delay: .45s;

}


.story-visible .story-text {

    opacity: 1;

    transform: translateY(0);

    transition-delay: .6s;

}


.story-visible .story-text-secondary {

    opacity: 1;

    transform: translateY(0);

    transition-delay: .72s;

}


.story-visible .story-apple {

    opacity: 1;

    transform: translateY(0);

    transition-delay: .85s;

}


.story-visible .story-bottom {

    opacity: 1;

    transform: translateY(0);

    transition-delay: 1s;

}

/* =========================================================
   REFINAMIENTO · FLUJO VERTICAL CONTINUO
   ========================================================= */

/*
   El contador y la historia dejan de sentirse
   como dos pantallas independientes.
*/

.countdown-section,
.story-section {
    min-height: auto;
    height: auto;
}


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

.countdown-section {
        padding: 90px 20px 105px;
    
    background:
        linear-gradient(
            180deg,
            #020b1c 0%,
            #071b38 48%,
            #06152c 100%
        );
}


/*
   El fondo interno ya no crea una segunda pantalla.
*/

.countdown-bg {
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(23, 59, 104, .92) 0%,
            rgba(11, 38, 72, .78) 30%,
            rgba(6, 24, 50, .92) 58%,
            rgba(2, 11, 28, 1) 100%
        );
}


/*
   Eliminamos el marco rectangular.
*/

.countdown-section::before,
.countdown-section::after {
    display: none;
}


/*
   El contenido respira más.
*/

.countdown-content {
    padding: 20px 0;
}


/* =========================================================
   TRANSICIÓN CONTADOR → HISTORIA
   ========================================================= */

.countdown-section {
    margin-bottom: 0;
}

.story-section {
    margin-top: 0;
}


/*
   Mismo lenguaje visual.
   La transición deja de parecer un cambio de página.
*/

.story-bg {
    background:
        linear-gradient(
            180deg,
            #06152c 0%,
            #071b38 45%,
            #020b1c 100%
        );
}


/* =========================================================
   HISTORIA
   ========================================================= */

.story-section {
    padding: 160px 20px 180px;
}


/*
   Fuera el doble marco.
*/

.story-section::before,
.story-section::after {
    display: none;
}


/*
   El contenido conserva su animación,
   pero tiene más aire vertical.
*/

.story-content {
    padding: 20px;
}


/* =========================================================
   PUENTE VISUAL ENTRE SECCIONES
   ========================================================= */

.countdown-section::after {
    display: block;
    content: "";
    position: absolute;

    left: 50%;
    bottom: 0;

    width: min(420px, 70vw);
    height: 1px;

    transform: translateX(-50%);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(232,194,94,.35),
            transparent
        );

    box-shadow:
        0 0 18px rgba(232,194,94,.12);

    pointer-events: none;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .countdown-section {
        padding:
            105px
            15px
            120px;
    }

    .countdown-content {
        width: min(92vw, 500px);
    }

    .story-section {
        padding:
            115px
            15px
            135px;
    }

    .story-content {
        padding: 10px 5px;
    }

}
/* =========================================================
   MÓDULO 5 · DATOS DEL EVENTO
========================================================= */

.event-section {

    position: relative;

    width: 100%;

    min-height: 100vh;
    min-height: 100svh;

    padding: 150px 20px 170px;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    isolation: isolate;

    color: #fffaf0;

}


/* =========================================================
   FONDO CONTINUO
========================================================= */

.event-bg {

    position: absolute;

    inset: 0;

    z-index: 0;

    background:

        linear-gradient(
            180deg,
            #020b1c 0%,
            #071b38 50%,
            #06152c 100%
        );

}


.event-bg::before {

    content: "";

    position: absolute;

    inset: 0;

    background:

        radial-gradient(
            circle at 50% 35%,
            rgba(34, 73, 119, .34),
            transparent 55%
        ),

        radial-gradient(
            circle at 20% 75%,
            rgba(197, 47, 58, .06),
            transparent 25%
        );

}


/* =========================================================
   ESTRELLAS
========================================================= */

.event-stars {

    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

}


.event-stars span {

    position: absolute;

    color: #e7c66d;

    font-family: Georgia, serif;

    text-shadow:
        0 0 10px rgba(231,198,109,.75);

    animation:
        eventTwinkle
        4s
        ease-in-out
        infinite alternate;

}


.event-stars span:nth-child(1) {
    top: 15%;
    left: 12%;
    font-size: 17px;
}

.event-stars span:nth-child(2) {
    top: 28%;
    right: 15%;
    font-size: 9px;
    animation-delay: .8s;
}

.event-stars span:nth-child(3) {
    top: 52%;
    left: 7%;
    font-size: 11px;
    animation-delay: 1.5s;
}

.event-stars span:nth-child(4) {
    top: 63%;
    right: 9%;
    font-size: 16px;
    animation-delay: 2s;
}

.event-stars span:nth-child(5) {
    bottom: 15%;
    left: 20%;
    font-size: 10px;
    animation-delay: .4s;
}

.event-stars span:nth-child(6) {
    bottom: 21%;
    right: 23%;
    font-size: 18px;
    animation-delay: 1.2s;
}


/* =========================================================
   CONTENIDO
========================================================= */

.event-content {

    position: relative;

    z-index: 3;

    width: min(760px, 92vw);

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

}


/* =========================================================
   ENCABEZADO
========================================================= */

.event-eyebrow {

    color: #e7c66d;

    font-family: Arial, sans-serif;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .48em;

    margin-bottom: 20px;

}


.event-ornament {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 24px;

}


.event-ornament span {

    width: 65px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #dcb75f
        );

}


.event-ornament span:last-child {

    background:
        linear-gradient(
            90deg,
            #dcb75f,
            transparent
        );

}


.event-ornament b {

    color: #f1ce72;

    font-size: 14px;

    font-weight: 400;

}


/* =========================================================
   FECHA
========================================================= */

.event-content h2 {

    margin: 0;

    color: #f5d98b;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(110px, 18vw, 190px);

    font-weight: 400;

    line-height: .72;

    letter-spacing: -.07em;

    text-shadow:
        0 12px 40px rgba(0,0,0,.45);

}


.event-month {

    margin-top: 28px;

    color: #fffaf0;

    font-family: Arial, sans-serif;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: .55em;

}


.event-month span {

    display: block;

    margin-top: 9px;

    color:
        rgba(255,250,240,.52);

    font-size: 9px;

    letter-spacing: .35em;

}


/* =========================================================
   SEPARADOR
========================================================= */

.event-divider {

    width: min(440px, 75vw);

    height: 1px;

    margin: 48px auto 42px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(232,194,94,.42),
            transparent
        );

}


/* =========================================================
   DETALLES
========================================================= */

.event-details {

    width: min(620px, 100%);

    display: grid;

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

    gap: 60px;

}


.event-detail {

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

}


.event-icon {

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 17px;

    color: #d8b65e;

    font-size: 14px;

}


.event-detail-text {

    display: flex;

    flex-direction: column;

    align-items: center;

}


.event-detail-text > span {

    color:
        rgba(255,250,240,.48);

    font-family: Arial, sans-serif;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: .35em;

}


.event-detail-text strong {

    margin-top: 10px;

    color: #f1dca4;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 20px;

    font-weight: 400;

}


.event-detail-text small {

    max-width: 220px;

    margin-top: 10px;

    color:
        rgba(255,250,240,.45);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 13px;

    line-height: 1.5;

    font-style: italic;

}


/* =========================================================
   MENSAJE
========================================================= */

.event-message {

    margin: 55px 0 0;

    color:
        rgba(255,250,240,.68);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(16px, 2vw, 19px);

    line-height: 1.7;

    font-style: italic;

}


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

.event-scroll {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 10px;

    margin-top: 55px;

}


.event-scroll span {

    color:
        rgba(255,250,240,.38);

    font-family: Arial, sans-serif;

    font-size: 6px;

    font-weight: 700;

    letter-spacing: .34em;

}


.event-scroll i {

    color: #e3c16c;

    font-size: 17px;

    font-style: normal;

    animation:
        eventArrow
        1.8s
        ease-in-out
        infinite;

}


/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes eventTwinkle {

    from {

        opacity: .25;

        transform:
            scale(.8)
            translateY(0);

    }

    to {

        opacity: .9;

        transform:
            scale(1.15)
            translateY(-7px);

    }

}


@keyframes eventArrow {

    0%,
    100% {

        opacity: .4;

        transform: translateY(0);

    }

    50% {

        opacity: 1;

        transform: translateY(7px);

    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 600px) {

    .event-section {

        padding:
            110px
            15px
            125px;

    }


    .event-eyebrow {

        font-size: 8px;

        letter-spacing: .32em;

    }


    .event-ornament span {

        width: 42px;

    }


    .event-content h2 {

        font-size:
            clamp(100px, 30vw, 145px);

    }


    .event-month {

        font-size: 10px;

        letter-spacing: .38em;

    }


    .event-details {

        grid-template-columns: 1fr;

        gap: 42px;

    }


    .event-divider {

        margin:
            42px auto
            38px;

    }


    .event-message {

        margin-top: 45px;

        font-size: 15px;

    }

}

/* =========================================================
   EVENTO · CEREMONIA + RECEPCIÓN
========================================================= */

.event-details {

    width: min(900px, 94vw);

    display: grid;

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

    gap: 55px;

}


/* =========================================================
   LUGAR
========================================================= */

.event-place {

    position: relative;

    text-align: center;

}


/* =========================================================
   FOTOGRAFÍA
========================================================= */

.event-photo {

    position: relative;

    width: 100%;

    aspect-ratio: 3 / 2;

    overflow: hidden;

    background: #06152c;

    border:
        1px solid
        rgba(226,190,94,.45);

    box-shadow:
        0 20px 50px
        rgba(0,0,0,.32);

}


.event-photo img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transform: scale(1.01);

    transition:
        transform 1.2s
        cubic-bezier(.2,.7,.2,1);

}


.event-place:hover .event-photo img {

    transform: scale(1.06);

}


/* =========================================================
   OVERLAY
========================================================= */

.event-photo-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 45%,
            rgba(2,11,28,.58) 100%
        );

    pointer-events: none;

}


/* =========================================================
   DESTELLO
========================================================= */

.event-photo-sparkle {

    position: absolute;

    right: 18px;
    bottom: 14px;

    color: #efd078;

    font-size: 15px;

    text-shadow:
        0 0 12px
        rgba(239,208,120,.8);

    animation:
        eventPhotoSparkle
        3s
        ease-in-out
        infinite alternate;

}


/* =========================================================
   INFORMACIÓN
========================================================= */

.event-place-info {

    display: flex;

    flex-direction: column;

    align-items: center;

    padding-top: 25px;

}


.event-place-type {

    color:
        rgba(255,250,240,.48);

    font-family: Arial, sans-serif;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: .42em;

}


.event-place-info h3 {

    margin:
        10px
        0
        5px;

    color: #f1d78c;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 28px;

    font-weight: 400;

}


.event-place-info p {

    margin: 0;

    color:
        rgba(255,250,240,.48);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 13px;

    font-style: italic;

}


/* =========================================================
   ANIMACIÓN
========================================================= */

@keyframes eventPhotoSparkle {

    from {

        opacity: .35;

        transform:
            scale(.8)
            rotate(0deg);

    }

    to {

        opacity: 1;

        transform:
            scale(1.2)
            rotate(12deg);

    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 600px) {

    .event-details {

        grid-template-columns: 1fr;

        gap: 60px;

        width: min(500px, 92vw);

    }


    .event-photo {

        aspect-ratio: 3 / 2;

    }


    .event-place-info {

        padding-top: 20px;

    }


    .event-place-info h3 {

        font-size: 25px;

    }

}

/* =========================================================
   MÓDULO 6 · GALERÍA
========================================================= */

.gallery-section {

    position: relative;

    width: 100%;

    min-height: 100vh;
    min-height: 100svh;

    padding: 150px 20px 180px;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    isolation: isolate;

    color: #fffaf0;

}


/* =========================================================
   FONDO
========================================================= */

.gallery-bg {

    position: absolute;

    inset: 0;

    z-index: 0;

    background:

        linear-gradient(
            180deg,
            #020b1c 0%,
            #071b38 45%,
            #06152c 100%
        );

}


.gallery-bg::before {

    content: "";

    position: absolute;

    inset: 0;

    background:

        radial-gradient(
            circle at 50% 30%,
            rgba(31,69,112,.38),
            transparent 55%
        );

}


/* =========================================================
   ESTRELLAS
========================================================= */

.gallery-stars {

    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

}


.gallery-stars span {

    position: absolute;

    color: #e7c66d;

    text-shadow:
        0 0 12px
        rgba(231,198,109,.75);

    animation:
        galleryTwinkle
        4s
        ease-in-out
        infinite alternate;

}


.gallery-stars span:nth-child(1) {
    top: 13%;
    left: 10%;
    font-size: 16px;
}

.gallery-stars span:nth-child(2) {
    top: 25%;
    right: 12%;
    font-size: 9px;
    animation-delay: .8s;
}

.gallery-stars span:nth-child(3) {
    bottom: 24%;
    left: 8%;
    font-size: 11px;
    animation-delay: 1.4s;
}

.gallery-stars span:nth-child(4) {
    bottom: 15%;
    right: 13%;
    font-size: 17px;
    animation-delay: 2s;
}

.gallery-stars span:nth-child(5) {
    top: 48%;
    left: 4%;
    font-size: 8px;
    animation-delay: .4s;
}

.gallery-stars span:nth-child(6) {
    top: 58%;
    right: 5%;
    font-size: 10px;
    animation-delay: 1.7s;
}


/* =========================================================
   CONTENIDO
========================================================= */

.gallery-content {

    position: relative;

    z-index: 3;

    width: min(920px, 94vw);

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

}


.gallery-eyebrow {

    color: #e7c66d;

    font-family: Arial, sans-serif;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .45em;

}


.gallery-ornament {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-top: 20px;

}


.gallery-ornament span {

    width: 65px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #dcb75f
        );

}


.gallery-ornament span:last-child {

    background:
        linear-gradient(
            90deg,
            #dcb75f,
            transparent
        );

}


.gallery-ornament b {

    color: #f1ce72;

    font-size: 14px;

    font-weight: 400;

}


.gallery-content h2 {

    margin-top: 25px;

    color: #f5d98b;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(55px, 8vw, 88px);

    font-weight: 400;

    line-height: 1;

}


.gallery-intro {

    margin-top: 20px;

    color:
        rgba(255,250,240,.57);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 16px;

    line-height: 1.7;

    font-style: italic;

}


/* =========================================================
   GRID
========================================================= */

.gallery-grid {

    width: min(820px, 100%);

    margin-top: 65px;

    display: grid;

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

    grid-template-rows:
        auto auto;

    gap: 14px;

}


/* =========================================================
   FOTOS
========================================================= */

.gallery-photo {

    position: relative;

    margin: 0;

    overflow: hidden;

    background: #06152c;

    border:
        1px solid
        rgba(226,190,94,.35);

    box-shadow:
        0 18px 45px
        rgba(0,0,0,.28);

}


.gallery-photo img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transform: scale(1.01);

    transition:
        transform 1.3s
        cubic-bezier(.2,.7,.2,1);

}


.gallery-photo:hover img {

    transform: scale(1.06);

}


/* FOTO PRINCIPAL */

.gallery-photo-main {

    grid-column:
        1 / -1;

    aspect-ratio: 16 / 9;

}


/* FOTOS PEQUEÑAS */

.gallery-photo-small {

    aspect-ratio: 1 / 1;

}


/* FOTO INFERIOR */

.gallery-photo-wide {

    grid-column:
        1 / -1;

    aspect-ratio: 16 / 8;

}


/* =========================================================
   OVERLAY
========================================================= */

.gallery-photo-overlay {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            180deg,
            transparent 50%,
            rgba(2,11,28,.65) 100%
        );

    pointer-events: none;

}


/* =========================================================
   TEXTO SOBRE FOTO
========================================================= */

.gallery-photo figcaption {

    position: absolute;

    left: 25px;

    bottom: 22px;

    z-index: 2;

    color: #f5d98b;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 20px;

    font-style: italic;

}


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

.gallery-bottom {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 12px;

    margin-top: 55px;

}


.gallery-bottom span {

    color:
        rgba(255,250,240,.32);

    font-family: Arial, sans-serif;

    font-size: 6px;

    font-weight: 700;

    letter-spacing: .32em;

}


.gallery-bottom b {

    color: #e3c16c;

    font-size: 13px;

    font-weight: 400;

}


/* =========================================================
   ANIMACIÓN
========================================================= */

@keyframes galleryTwinkle {

    from {

        opacity: .25;

        transform: scale(.8);

    }

    to {

        opacity: .9;

        transform: scale(1.15);

    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 600px) {

    .gallery-section {

        padding:
            110px
            15px
            135px;

    }


    .gallery-eyebrow {

        font-size: 7px;

        letter-spacing: .32em;

    }


    .gallery-ornament span {

        width: 42px;

    }


    .gallery-content h2 {

        font-size:
            clamp(48px, 15vw, 68px);

    }


    .gallery-intro {

        font-size: 14px;

    }


    .gallery-grid {

        margin-top: 50px;

        gap: 9px;

    }


    .gallery-photo-main {

        aspect-ratio: 4 / 5;

    }


    .gallery-photo-small {

        aspect-ratio: 1 / 1;

    }


    .gallery-photo-wide {

        aspect-ratio: 4 / 5;

    }


    .gallery-photo figcaption {

        left: 17px;

        bottom: 17px;

        font-size: 17px;

    }

}

/* =========================================================
   MÓDULO 7 · DETALLES · ACORDEÓN
========================================================= */

.details-section {

    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    padding: 145px 24px 165px;

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

    overflow: hidden;
    isolation: isolate;

    color: #fffaf0;
}


/* =========================================================
   FONDO
========================================================= */

.details-bg {

    position: absolute;
    inset: 0;
    z-index: 0;

    background:
        linear-gradient(
            180deg,
            #06152c 0%,
            #071b38 48%,
            #020b1c 100%
        );
}


.details-bg::before {

    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(35, 76, 122, .28),
            transparent 58%
        );
}


/* =========================================================
   DESTELLOS
========================================================= */

.details-stars {

    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;
}


.details-stars span {

    position: absolute;

    color: #e7c66d;

    text-shadow:
        0 0 14px rgba(231,198,109,.7);

    animation:
        detailsTwinkle
        4s
        ease-in-out
        infinite alternate;
}


.details-stars span:nth-child(1) {
    top: 17%;
    left: 10%;
    font-size: 13px;
}

.details-stars span:nth-child(2) {
    top: 28%;
    right: 11%;
    font-size: 8px;
    animation-delay: .7s;
}

.details-stars span:nth-child(3) {
    top: 58%;
    left: 5%;
    font-size: 9px;
    animation-delay: 1.3s;
}

.details-stars span:nth-child(4) {
    bottom: 19%;
    right: 10%;
    font-size: 14px;
    animation-delay: 1.8s;
}

.details-stars span:nth-child(5) {
    bottom: 13%;
    left: 17%;
    font-size: 7px;
    animation-delay: 2.4s;
}


/* =========================================================
   CONTENIDO
========================================================= */

.details-content {

    position: relative;
    z-index: 3;

    width: min(850px, 94vw);

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.details-eyebrow {

    color: #e7c66d;

    font-family: Arial, sans-serif;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: .42em;
}


.details-ornament {

    display: flex;
    align-items: center;

    gap: 14px;

    margin-top: 19px;
}


.details-ornament span {

    width: 62px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #dcb75f
        );
}


.details-ornament span:last-child {

    background:
        linear-gradient(
            90deg,
            #dcb75f,
            transparent
        );
}


.details-ornament b {

    color: #f1ce72;

    font-size: 13px;
    font-weight: 400;
}


.details-content h2 {

    margin-top: 25px;

    color: #f5d98b;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(55px, 8vw, 88px);

    font-weight: 400;

    line-height: .95;

    letter-spacing: -.03em;
}


.details-intro {

    margin-top: 22px;

    color:
        rgba(255,250,240,.55);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 15px;

    line-height: 1.7;

    font-style: italic;
}


/* =========================================================
   ACORDEÓN
========================================================= */

.details-list {

    width: min(720px, 100%);

    margin-top: 70px;

    border-top:
        1px solid
        rgba(226,190,94,.22);
}


.detail-item {

    border-bottom:
        1px solid
        rgba(226,190,94,.16);
}


/* =========================================================
   BOTÓN / FILA
========================================================= */

.detail-trigger {

    width: 100%;

    min-height: 125px;

    padding: 25px 0;

    display: grid;

    grid-template-columns:
        105px
        1fr
        40px;

    gap: 28px;

    align-items: center;

    border: 0;

    background: transparent;

    color: inherit;

    text-align: left;

    cursor: pointer;

    font: inherit;
}


.detail-trigger:hover .detail-number {

    color: #f5d98b;

}


.detail-number {

    color:
        rgba(231,198,109,.7);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 52px;

    font-weight: 400;

    line-height: 1;

    letter-spacing: -.06em;

    transition:
        color .3s ease;
}


.detail-heading {

    display: flex;

    flex-direction: column;

}


.detail-heading small {

    color:
        rgba(255,250,240,.38);

    font-family: Arial, sans-serif;

    font-size: 7px;

    font-weight: 700;

    letter-spacing: .34em;
}


.detail-heading strong {

    margin-top: 8px;

    color: #f2d58a;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 29px;

    font-weight: 400;

    line-height: 1.1;
}


/* =========================================================
   + / -
========================================================= */

.detail-plus {

    width: 32px;
    height: 32px;

    display: flex;

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

    border:
        1px solid
        rgba(226,190,94,.35);

    border-radius: 50%;

    color: #e7c66d;

    font-family: Arial, sans-serif;

    font-size: 18px;
    font-weight: 300;

    transition:
        transform .4s ease,
        background .4s ease;
}


.detail-trigger[aria-expanded="true"]
.detail-plus {

    transform: rotate(45deg);

    background:
        rgba(226,190,94,.08);
}


/* =========================================================
   PANEL DESPLEGABLE
========================================================= */

.detail-panel {

    display: grid;

    grid-template-rows: 0fr;

    transition:
        grid-template-rows .45s ease;
}


.detail-item.is-open .detail-panel {

    grid-template-rows: 1fr;
}


.detail-panel-inner {

    min-height: 0;

    overflow: hidden;

    padding-left: 133px;

    padding-right: 45px;

    color:
        rgba(255,250,240,.52);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 14px;

    line-height: 1.7;

    font-style: italic;

    opacity: 0;

    transition:
        opacity .35s ease,
        padding-bottom .45s ease;
}


.detail-item.is-open
.detail-panel-inner {

    padding-bottom: 30px;

    opacity: 1;
}


/* =========================================================
   INFORMACIÓN INTERNA
========================================================= */

.detail-info {

    margin-top: 20px;

    display: flex;

    align-items: center;

    gap: 14px;

    font-style: normal;
}


.detail-info > span {

    width: 30px;
    height: 30px;

    display: flex;

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

    border:
        1px solid
        rgba(226,190,94,.25);

    border-radius: 50%;

    font-size: 12px;
}


.detail-info div {

    display: flex;

    flex-direction: column;
}


.detail-info small {

    color:
        rgba(255,250,240,.32);

    font-family: Arial, sans-serif;

    font-size: 6px;

    font-weight: 700;

    letter-spacing: .28em;
}


.detail-info strong {

    margin-top: 3px;

    color:
        rgba(255,250,240,.72);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 13px;

    font-weight: 400;
}


/* =========================================================
   BOTÓN MAPA
========================================================= */

.detail-map {

    margin-top: 22px;

    padding:
        11px
        18px;

    border:
        1px solid
        rgba(226,190,94,.3);

    background: transparent;

    color:
        rgba(231,198,109,.7);

    font-family: Arial, sans-serif;

    font-size: 7px;

    font-weight: 700;

    letter-spacing: .2em;

    cursor: default;
}


.detail-map:disabled {

    opacity: .55;
}


/* =========================================================
   NOTA
========================================================= */

.details-note {

    margin-top: 65px;

    max-width: 470px;
}


.details-note span {

    color:
        rgba(255,250,240,.32);

    font-family: Arial, sans-serif;

    font-size: 6px;

    font-weight: 700;

    letter-spacing: .34em;
}


.details-note p {

    margin-top: 14px;

    color:
        rgba(255,250,240,.58);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 15px;

    line-height: 1.7;

    font-style: italic;
}


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

.details-bottom {

    margin-top: 70px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 12px;
}


.details-bottom span {

    color:
        rgba(255,250,240,.28);

    font-family: Arial, sans-serif;

    font-size: 6px;

    font-weight: 700;

    letter-spacing: .32em;
}


.details-bottom i {

    color: #e3c16c;

    font-size: 16px;

    font-style: normal;

    animation:
        detailsArrow
        1.8s
        ease-in-out
        infinite;
}


/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes detailsTwinkle {

    from {
        opacity: .25;
        transform: scale(.8);
    }

    to {
        opacity: .9;
        transform: scale(1.15);
    }
}


@keyframes detailsArrow {

    0%,
    100% {
        opacity: .3;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(7px);
    }
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 600px) {

    .details-section {

        padding:
            110px
            18px
            135px;
    }


    .details-eyebrow {

        font-size: 7px;

        letter-spacing: .3em;
    }


    .details-ornament span {

        width: 42px;
    }


    .details-content h2 {

        font-size:
            clamp(50px, 15vw, 70px);
    }


    .details-intro {

        font-size: 14px;
    }


    .details-list {

        margin-top: 52px;
    }


    .detail-trigger {

        min-height: 105px;

        grid-template-columns:
            65px
            1fr
            34px;

        gap: 15px;

        padding: 22px 0;
    }


    .detail-number {

        font-size: 40px;
    }


    .detail-heading small {

        font-size: 6px;

        letter-spacing: .24em;
    }


    .detail-heading strong {

        font-size: 23px;
    }


    .detail-plus {

        width: 29px;
        height: 29px;

        font-size: 16px;
    }


    .detail-panel-inner {

        padding-left: 80px;

        padding-right: 10px;

        font-size: 13px;
    }


    .detail-item.is-open
    .detail-panel-inner {

        padding-bottom: 25px;
    }


    .details-note {

        margin-top: 52px;

        max-width: 320px;
    }


    .details-note p {

        font-size: 14px;
    }

}

/* =========================================================
   MÓDULO 8 · MESA DE REGALOS
========================================================= */

.gifts-section {

    position: relative;

    width: 100%;
    min-height: 75vh;
    min-height: 75svh;

    padding: 130px 20px;

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

    overflow: hidden;
    isolation: isolate;

    color: #fffaf0;
}


.gifts-bg {

    position: absolute;
    inset: 0;

    z-index: 0;

    background:
        linear-gradient(
            180deg,
            #020b1c,
            #071b38,
            #06152c
        );
}


.gifts-bg::before {

    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(35,76,122,.28),
            transparent 60%
        );
}


.gifts-content {

    position: relative;
    z-index: 2;

    width: min(650px, 92vw);

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}


.gifts-eyebrow {

    color: #e7c66d;

    font-family: Arial, sans-serif;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: .4em;
}


.gifts-ornament {

    display: flex;
    align-items: center;

    gap: 14px;

    margin-top: 20px;
}


.gifts-ornament span {

    width: 55px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #dcb75f
        );
}


.gifts-ornament span:last-child {

    background:
        linear-gradient(
            90deg,
            #dcb75f,
            transparent
        );
}


.gifts-ornament b {

    color: #f1ce72;

    font-size: 13px;
    font-weight: 400;
}


.gifts-content h2 {

    margin-top: 25px;

    color: #f5d98b;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(48px, 7vw, 75px);

    font-weight: 400;

    line-height: 1;
}


.gifts-intro {

    margin-top: 22px;

    color:
        rgba(255,250,240,.55);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 15px;

    line-height: 1.7;

    font-style: italic;
}


.gifts-button {

    margin-top: 42px;

    padding: 14px 25px;

    border:
        1px solid
        rgba(226,190,94,.45);

    background:
        rgba(226,190,94,.04);

    color:
        rgba(255,250,240,.8);

    font-family: Arial, sans-serif;

    font-size: 7px;
    font-weight: 700;

    letter-spacing: .25em;

    cursor: pointer;

    transition:
        background .3s ease,
        border-color .3s ease,
        transform .3s ease;
}


.gifts-button span {

    margin-left: 10px;

    color: #e7c66d;
}


.gifts-button:hover {

    background:
        rgba(226,190,94,.1);

    border-color:
        rgba(226,190,94,.8);

    transform:
        translateY(-2px);
}


.gifts-bottom {

    margin-top: 55px;
}


.gifts-bottom span {

    color:
        rgba(255,250,240,.25);

    font-family: Arial, sans-serif;

    font-size: 6px;
    font-weight: 700;

    letter-spacing: .3em;
}


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

.gift-modal {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

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

    padding: 20px;

    visibility: hidden;
    opacity: 0;

    pointer-events: none;

    transition:
        opacity .35s ease,
        visibility .35s ease;
}


.gift-modal.is-open {

    visibility: visible;

    opacity: 1;

    pointer-events: auto;
}


.gift-modal-backdrop {

    position: absolute;

    inset: 0;

    background:
        rgba(0, 5, 15, .78);

    backdrop-filter:
        blur(8px);
}


.gift-modal-card {

    position: relative;

    z-index: 2;

    width: min(460px, 92vw);

    max-height: 90vh;

    overflow-y: auto;

    padding: 45px 35px 35px;

    border:
        1px solid
        rgba(226,190,94,.38);

    background:
        linear-gradient(
            145deg,
            #091e3c,
            #030d20
        );

    box-shadow:
        0 30px 80px
        rgba(0,0,0,.55);

    text-align: center;

    transform:
        translateY(20px)
        scale(.97);

    transition:
        transform .4s ease;
}


.gift-modal.is-open
.gift-modal-card {

    transform:
        translateY(0)
        scale(1);
}


.gift-modal-card::before {

    content: "";

    position: absolute;

    inset: 8px;

    border:
        1px solid
        rgba(226,190,94,.1);

    pointer-events: none;
}


.gift-modal-close {

    position: absolute;

    top: 15px;
    right: 18px;

    width: 32px;
    height: 32px;

    border: 0;

    background: transparent;

    color:
        rgba(255,250,240,.65);

    font-size: 25px;
    font-weight: 200;

    cursor: pointer;
}


.gift-modal-symbol {

    color: #e7c66d;

    font-size: 18px;

    text-shadow:
        0 0 15px
        rgba(231,198,109,.5);
}


.gift-modal-eyebrow {

    display: block;

    margin-top: 14px;

    color:
        rgba(231,198,109,.65);

    font-family: Arial, sans-serif;

    font-size: 7px;
    font-weight: 700;

    letter-spacing: .35em;
}


.gift-modal-card h3 {

    margin-top: 15px;

    color: #f5d98b;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 30px;

    font-weight: 400;
}


.gift-modal-intro {

    margin-top: 12px;

    color:
        rgba(255,250,240,.5);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 13px;

    line-height: 1.6;

    font-style: italic;
}


/* =========================================================
   DATOS BANCARIOS
========================================================= */

.bank-data {

    margin-top: 28px;

    border-top:
        1px solid
        rgba(226,190,94,.16);
}


.bank-row {

    padding: 15px 0;

    display: flex;

    flex-direction: column;

    gap: 5px;

    border-bottom:
        1px solid
        rgba(226,190,94,.1);
}


.bank-row span {

    color:
        rgba(255,250,240,.32);

    font-family: Arial, sans-serif;

    font-size: 6px;
    font-weight: 700;

    letter-spacing: .3em;
}


.bank-row strong {

    color:
        rgba(255,250,240,.82);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 14px;

    font-weight: 400;

    word-break: break-all;
}


.copy-clabe {

    margin-top: 25px;

    padding: 12px 20px;

    border:
        1px solid
        rgba(226,190,94,.42);

    background:
        rgba(226,190,94,.05);

    color: #e7c66d;

    font-family: Arial, sans-serif;

    font-size: 7px;
    font-weight: 700;

    letter-spacing: .22em;

    cursor: pointer;
}


.copy-clabe:hover {

    background:
        rgba(226,190,94,.1);
}


.copy-message {

    display: block;

    min-height: 16px;

    margin-top: 10px;

    color:
        rgba(231,198,109,.7);

    font-family: Arial, sans-serif;

    font-size: 7px;
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 600px) {

    .gifts-section {

        min-height: 65vh;

        padding:
            100px
            18px;
    }


    .gifts-content h2 {

        font-size:
            clamp(43px, 13vw, 62px);
    }


    .gift-modal-card {

        padding:
            42px
            22px
            28px;
    }


    .gift-modal-card h3 {

        font-size: 26px;
    }

}

/* =========================================================
   MÓDULO 9 · RSVP
========================================================= */

.rsvp-section {

    position: relative;

    width: 100%;

    min-height: 100vh;
    min-height: 100svh;

    padding: 140px 20px 165px;

    display: flex;

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

    overflow: hidden;

    isolation: isolate;

    color: #fffaf0;
}


/* =========================================================
   FONDO
========================================================= */

.rsvp-bg {

    position: absolute;

    inset: 0;

    z-index: 0;

    background:
        linear-gradient(
            180deg,
            #06152c 0%,
            #071b38 50%,
            #020b1c 100%
        );
}


.rsvp-bg::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(35,76,122,.30),
            transparent 60%
        );
}


/* =========================================================
   DESTELLOS
========================================================= */

.rsvp-stars {

    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;
}


.rsvp-stars span {

    position: absolute;

    color: #e7c66d;

    text-shadow:
        0 0 14px
        rgba(231,198,109,.7);

    animation:
        rsvpTwinkle
        4s
        ease-in-out
        infinite alternate;
}


.rsvp-stars span:nth-child(1) {
    top: 17%;
    left: 10%;
    font-size: 14px;
}


.rsvp-stars span:nth-child(2) {
    top: 28%;
    right: 11%;
    font-size: 8px;
    animation-delay: .8s;
}


.rsvp-stars span:nth-child(3) {
    bottom: 22%;
    left: 12%;
    font-size: 10px;
    animation-delay: 1.5s;
}


.rsvp-stars span:nth-child(4) {
    bottom: 15%;
    right: 13%;
    font-size: 15px;
    animation-delay: 2s;
}


/* =========================================================
   CONTENIDO
========================================================= */

.rsvp-content {

    position: relative;

    z-index: 3;

    width: min(620px, 92vw);

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.rsvp-eyebrow {

    color: #e7c66d;

    font-family: Arial, sans-serif;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: .42em;
}


.rsvp-ornament {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-top: 20px;
}


.rsvp-ornament span {

    width: 58px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #dcb75f
        );
}


.rsvp-ornament span:last-child {

    background:
        linear-gradient(
            90deg,
            #dcb75f,
            transparent
        );
}


.rsvp-ornament b {

    color: #f1ce72;

    font-size: 13px;

    font-weight: 400;
}


.rsvp-content h2 {

    margin-top: 27px;

    color: #f5d98b;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(45px, 7vw, 72px);

    font-weight: 400;

    line-height: 1;
}


.rsvp-intro {

    margin-top: 22px;

    color:
        rgba(255,250,240,.55);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 15px;

    line-height: 1.7;

    font-style: italic;
}


/* =========================================================
   PASOS
========================================================= */

.rsvp-step {

    width: 100%;

    margin-top: 48px;
}


/* =========================================================
   BÚSQUEDA
========================================================= */

.rsvp-step-search {

    width: min(470px, 100%);
}


.rsvp-step-search > label {

    display: block;

    margin-bottom: 10px;

    color:
        rgba(255,250,240,.4);

    font-family: Arial, sans-serif;

    font-size: 7px;

    font-weight: 700;

    letter-spacing: .3em;
}


.rsvp-search {

    display: grid;

    grid-template-columns: 1fr auto;

    border:
        1px solid
        rgba(226,190,94,.28);

    background:
        rgba(2,11,28,.35);
}


.rsvp-search input {

    width: 100%;

    height: 50px;

    padding:
        0 16px;

    border: 0;

    outline: none;

    background: transparent;

    color:
        rgba(255,250,240,.88);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 15px;
}


.rsvp-search input::placeholder {

    color:
        rgba(255,250,240,.25);
}


.rsvp-search button {

    padding:
        0 19px;

    border: 0;

    border-left:
        1px solid
        rgba(226,190,94,.2);

    background:
        rgba(226,190,94,.05);

    color:
        rgba(255,250,240,.78);

    font-family: Arial, sans-serif;

    font-size: 7px;

    font-weight: 700;

    letter-spacing: .18em;

    cursor: pointer;
}


.rsvp-search button span {

    margin-left: 7px;

    color: #e7c66d;
}


.rsvp-error {

    min-height: 20px;

    margin-top: 12px;

    color:
        #d9a8a8;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 12px;

    font-style: italic;
}


/* =========================================================
   RESULTADO
========================================================= */

.rsvp-result {

    display: none;

    flex-direction: column;

    align-items: center;

    animation:
        rsvpReveal
        .5s
        ease both;
}


.rsvp-result.is-visible {

    display: flex;
}


.result-eyebrow {

    color:
        rgba(231,198,109,.7);

    font-family: Arial, sans-serif;

    font-size: 7px;

    font-weight: 700;

    letter-spacing: .3em;
}


.rsvp-result h3 {

    margin-top: 14px;

    color: #f5d98b;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 34px;

    font-weight: 400;
}


.result-description {

    margin-top: 15px;

    color:
        rgba(255,250,240,.5);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 14px;

    font-style: italic;
}


/* =========================================================
   BOLETOS
========================================================= */

.ticket-count {

    margin-top: 20px;

    display: flex;

    flex-direction: column;

    align-items: center;
}


.ticket-count strong {

    color: #f1ce72;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 72px;

    font-weight: 400;

    line-height: .9;
}


.ticket-count span {

    margin-top: 8px;

    color:
        rgba(255,250,240,.35);

    font-family: Arial, sans-serif;

    font-size: 7px;

    font-weight: 700;

    letter-spacing: .35em;
}


/* =========================================================
   ACLARACIÓN DE BOLETOS
========================================================= */

.rsvp-ticket-note {

    width: min(430px, 100%);

    margin-top: 20px;

    padding:
        16px 20px;

    border:
        1px solid
        rgba(226,190,94,.14);

    background:
        rgba(226,190,94,.025);

    text-align: center;
}


.rsvp-ticket-note p {

    color:
        rgba(255,250,240,.62);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 13px;

    line-height: 1.5;
}


.rsvp-ticket-note p strong {

    color: #f1ce72;

    font-size: 16px;

    font-weight: 400;
}


.rsvp-ticket-note small {

    display: block;

    margin-top: 7px;

    color:
        rgba(255,250,240,.32);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 11px;

    line-height: 1.5;

    font-style: italic;
}


/* =========================================================
   SELECTOR DE PERSONAS
========================================================= */

.guest-selector {

    margin-top: 38px;

    display: flex;

    flex-direction: column;

    align-items: center;
}


.guest-selector > span {

    color:
        rgba(255,250,240,.4);

    font-family: Arial, sans-serif;

    font-size: 7px;

    font-weight: 700;

    letter-spacing: .25em;
}


.guest-controls {

    margin-top: 15px;

    display: flex;

    align-items: center;

    gap: 25px;
}


.guest-controls button {

    width: 38px;

    height: 38px;

    border:
        1px solid
        rgba(226,190,94,.35);

    border-radius: 50%;

    background: transparent;

    color: #e7c66d;

    font-size: 20px;

    font-weight: 300;

    cursor: pointer;
}


.guest-controls button:hover {

    background:
        rgba(226,190,94,.08);
}


.guest-controls strong {

    min-width: 35px;

    color: #f5d98b;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 32px;

    font-weight: 400;
}


.guest-selector > small {

    margin-top: 9px;

    color:
        rgba(255,250,240,.28);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 11px;

    font-style: italic;
}


/* =========================================================
   MENSAJE DINÁMICO
========================================================= */

.rsvp-selected-note {

    min-height: 36px;

    max-width: 420px;

    margin-top: 13px;

    color:
        rgba(231,198,109,.62);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 11px;

    line-height: 1.5;

    font-style: italic;
}


/* =========================================================
   CONFIRMAR
========================================================= */

.rsvp-confirm {

    margin-top: 25px;

    min-width: 270px;

    height: 50px;

    padding:
        0 22px;

    border:
        1px solid
        rgba(226,190,94,.5);

    background:
        rgba(226,190,94,.06);

    color:
        rgba(255,250,240,.85);

    font-family: Arial, sans-serif;

    font-size: 7px;

    font-weight: 700;

    letter-spacing: .23em;

    cursor: pointer;
}


.rsvp-confirm:hover {

    background:
        rgba(226,190,94,.12);
}


.rsvp-confirm span {

    margin-left: 10px;

    color: #e7c66d;
}


.rsvp-reset {

    margin-top: 18px;

    border: 0;

    background: transparent;

    color:
        rgba(255,250,240,.28);

    font-family: Arial, sans-serif;

    font-size: 6px;

    font-weight: 700;

    letter-spacing: .2em;

    cursor: pointer;
}


/* =========================================================
   ÉXITO
========================================================= */

.rsvp-success {

    display: none;

    flex-direction: column;

    align-items: center;

    animation:
        rsvpReveal
        .6s
        ease both;
}


.rsvp-success.is-visible {

    display: flex;
}


.success-symbol {

    color: #e7c66d;

    font-size: 24px;

    text-shadow:
        0 0 18px
        rgba(231,198,109,.6);
}


.rsvp-success > span {

    margin-top: 18px;

    color:
        rgba(231,198,109,.7);

    font-family: Arial, sans-serif;

    font-size: 7px;

    font-weight: 700;

    letter-spacing: .35em;
}


.rsvp-success h3 {

    margin-top: 13px;

    color: #f5d98b;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 34px;

    font-weight: 400;
}


.rsvp-success p {

    margin-top: 14px;

    color:
        rgba(255,250,240,.5);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 14px;

    font-style: italic;
}


.rsvp-success p strong {

    color: #f1ce72;

    font-size: 18px;

    font-weight: 400;
}


.success-date {

    margin-top: 28px;

    color:
        rgba(255,250,240,.35);

    font-family: Arial, sans-serif;

    font-size: 7px;

    font-weight: 700;

    letter-spacing: .3em;
}


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

.rsvp-bottom {

    margin-top: 65px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 12px;
}


.rsvp-bottom span {

    color:
        rgba(255,250,240,.25);

    font-family: Arial, sans-serif;

    font-size: 6px;

    font-weight: 700;

    letter-spacing: .3em;
}


.rsvp-bottom b {

    color: #e3c16c;

    font-size: 13px;

    font-weight: 400;
}


/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes rsvpTwinkle {

    from {
        opacity: .25;
        transform: scale(.8);
    }

    to {
        opacity: .9;
        transform: scale(1.15);
    }
}


@keyframes rsvpReveal {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

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


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 600px) {

    .rsvp-section {

        padding:
            105px
            18px
            130px;
    }


    .rsvp-eyebrow {

        font-size: 7px;

        letter-spacing: .3em;
    }


    .rsvp-ornament span {

        width: 42px;
    }


    .rsvp-content h2 {

        font-size:
            clamp(42px, 13vw, 60px);
    }


    .rsvp-intro {

        font-size: 14px;
    }


    .rsvp-step {

        margin-top: 40px;
    }


    .rsvp-search {

        grid-template-columns: 1fr;
    }


    .rsvp-search button {

        width: 100%;

        height: 45px;

        border-left: 0;

        border-top:
            1px solid
            rgba(226,190,94,.2);
    }


    .rsvp-result h3,
    .rsvp-success h3 {

        font-size: 29px;
    }


    .ticket-count strong {

        font-size: 62px;
    }


    .rsvp-ticket-note {

        padding:
            15px 16px;
    }


    .rsvp-confirm {

        width: 100%;
    }

}

/* =========================================================
   MÓDULO FINAL · CIERRE
========================================================= */

.final-section {

    position: relative;

    width: 100%;

    min-height: 100vh;
    min-height: 100svh;

    padding: 130px 20px;

    display: flex;

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

    overflow: hidden;

    isolation: isolate;

    color: #fffaf0;
}


/* =========================================================
   FONDO
========================================================= */

.final-bg {

    position: absolute;

    inset: 0;

    z-index: 0;

    background:
        linear-gradient(
            180deg,
            #020b1c 0%,
            #06152c 50%,
            #020812 100%
        );
}


.final-bg::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(35,76,122,.32),
            transparent 62%
        );
}


/* =========================================================
   DESTELLOS
========================================================= */

.final-stars {

    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;
}


.final-stars span {

    position: absolute;

    color: #e7c66d;

    text-shadow:
        0 0 16px
        rgba(231,198,109,.7);

    animation:
        finalTwinkle
        4s
        ease-in-out
        infinite alternate;
}


.final-stars span:nth-child(1) {

    top: 16%;
    left: 12%;

    font-size: 13px;
}


.final-stars span:nth-child(2) {

    top: 28%;
    right: 13%;

    font-size: 8px;

    animation-delay: .8s;
}


.final-stars span:nth-child(3) {

    bottom: 25%;
    left: 8%;

    font-size: 9px;

    animation-delay: 1.4s;
}


.final-stars span:nth-child(4) {

    bottom: 16%;
    right: 11%;

    font-size: 15px;

    animation-delay: 2s;
}


.final-stars span:nth-child(5) {

    top: 53%;
    right: 5%;

    font-size: 7px;

    animation-delay: 2.5s;
}


/* =========================================================
   CONTENIDO
========================================================= */

.final-content {

    position: relative;

    z-index: 3;

    width: min(700px, 92vw);

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.final-eyebrow {

    color: #e7c66d;

    font-family: Arial, sans-serif;

    font-size: 7px;

    font-weight: 700;

    letter-spacing: .4em;
}


.final-ornament {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-top: 22px;
}


.final-ornament span {

    width: 60px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #dcb75f
        );
}


.final-ornament span:last-child {

    background:
        linear-gradient(
            90deg,
            #dcb75f,
            transparent
        );
}


.final-ornament b {

    color: #f1ce72;

    font-size: 14px;

    font-weight: 400;
}


/* =========================================================
   NOMBRE
========================================================= */

.final-content h2 {

    margin-top: 30px;

    color: #f5d98b;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(70px, 12vw, 120px);

    font-weight: 400;

    line-height: .9;

    letter-spacing: -.04em;

    text-shadow:
        0 0 35px
        rgba(231,198,109,.08);
}


.final-occasion {

    margin-top: 22px;

    color:
        rgba(255,250,240,.72);

    font-family: Arial, sans-serif;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: .45em;
}


.final-date {

    margin-top: 13px;

    color:
        rgba(255,250,240,.4);

    font-family: Arial, sans-serif;

    font-size: 7px;

    font-weight: 600;

    letter-spacing: .3em;
}


.final-line {

    width: 70px;

    height: 1px;

    margin-top: 35px;

    background:
        #dcb75f;

    opacity: .5;
}


/* =========================================================
   MENSAJE
========================================================= */

.final-message {

    margin-top: 32px;

    color:
        rgba(255,250,240,.55);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 16px;

    line-height: 1.75;

    font-style: italic;
}


/* =========================================================
   SÍMBOLO
========================================================= */

.final-symbol {

    margin-top: 38px;

    color: #e7c66d;

    font-size: 18px;

    text-shadow:
        0 0 18px
        rgba(231,198,109,.6);

    animation:
        finalGlow
        3s
        ease-in-out
        infinite alternate;
}


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

.final-bottom {

    margin-top: 48px;
}


.final-bottom span {

    color:
        rgba(255,250,240,.25);

    font-family: Arial, sans-serif;

    font-size: 6px;

    font-weight: 700;

    letter-spacing: .35em;
}


/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes finalTwinkle {

    from {

        opacity: .2;

        transform: scale(.8);

    }

    to {

        opacity: .9;

        transform: scale(1.15);

    }

}


@keyframes finalGlow {

    from {

        opacity: .45;

        transform: scale(.9);

    }

    to {

        opacity: 1;

        transform: scale(1.12);

    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 600px) {

    .final-section {

        padding:
            105px
            18px
            120px;
    }


    .final-eyebrow {

        font-size: 6px;

        letter-spacing: .3em;
    }


    .final-ornament span {

        width: 42px;
    }


    .final-content h2 {

        font-size:
            clamp(65px, 20vw, 90px);
    }


    .final-occasion {

        font-size: 7px;

        letter-spacing: .35em;
    }


    .final-date {

        font-size: 6px;
    }


    .final-message {

        font-size: 14px;
    }

}

/* =========================================================
   CIERRE FINAL · XIMENA
   SECCIÓN CINEMATOGRÁFICA
========================================================= */

.final-section {

    position: relative;

    width: 100%;
    min-height: 100svh;

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

    overflow: hidden;
    isolation: isolate;

    padding: 90px 24px;

    color: #fffaf0;
}


/* =========================================================
   FONDO BASE
========================================================= */

.final-bg {

    position: absolute;
    inset: 0;

    z-index: -5;

    background:
        radial-gradient(
            circle at 50% 35%,
            #17355d 0%,
            #0b2341 35%,
            #031127 72%,
            #020917 100%
        );
}


/* =========================================================
   FOTO
========================================================= */

.final-photo {

    position: absolute;
    inset: 0;

    z-index: -4;

    overflow: hidden;
}


.final-photo img {

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;

    transform: scale(1.04);

    filter:
        saturate(.82)
        contrast(1.04)
        brightness(.78);

    animation:
        finalPhotoZoom
        14s
        ease-out
        forwards;
}


/* =========================================================
   OSCURECIMIENTO CINEMATOGRÁFICO
========================================================= */

.final-overlay {

    position: absolute;
    inset: 0;

    z-index: -3;

    background:

        linear-gradient(
            180deg,
            rgba(2,9,23,.88) 0%,
            rgba(3,14,32,.46) 25%,
            rgba(3,12,28,.18) 45%,
            rgba(2,10,24,.55) 72%,
            rgba(1,6,17,.96) 100%
        ),

        radial-gradient(
            ellipse at center,
            transparent 20%,
            rgba(0,5,16,.72) 100%
        );
}


/* =========================================================
   BRILLO CENTRAL
========================================================= */

.final-section::before {

    content: "";

    position: absolute;

    width: 70%;
    height: 70%;

    top: 15%;
    left: 15%;

    z-index: -2;

    background:
        radial-gradient(
            ellipse,
            rgba(224,190,98,.10),
            transparent 68%
        );

    pointer-events: none;
}


/* =========================================================
   MARCO
========================================================= */

.final-frame {

    position: absolute;

    inset: 24px;

    z-index: 4;

    border:
        1px solid
        rgba(225,190,101,.46);

    pointer-events: none;
}


.final-frame::before {

    content: "";

    position: absolute;

    inset: 7px;

    border:
        1px solid
        rgba(225,190,101,.12);
}


/* =========================================================
   ESQUINAS
========================================================= */

.final-corner {

    position: absolute;

    z-index: 5;

    width: 75px;
    height: 75px;

    pointer-events: none;
}


.final-corner::before,
.final-corner::after {

    content: "";

    position: absolute;

    background:
        linear-gradient(
            90deg,
            #e7c66d,
            transparent
        );
}


/* superior izquierdo */

.final-corner-tl {

    top: 24px;
    left: 24px;
}


.final-corner-tl::before {

    top: 0;
    left: 0;

    width: 48px;
    height: 1px;
}


.final-corner-tl::after {

    top: 0;
    left: 0;

    width: 1px;
    height: 48px;

    background:
        linear-gradient(
            180deg,
            #e7c66d,
            transparent
        );
}


/* superior derecho */

.final-corner-tr {

    top: 24px;
    right: 24px;
}


.final-corner-tr::before {

    top: 0;
    right: 0;

    width: 48px;
    height: 1px;

    background:
        linear-gradient(
            270deg,
            #e7c66d,
            transparent
        );
}


.final-corner-tr::after {

    top: 0;
    right: 0;

    width: 1px;
    height: 48px;

    background:
        linear-gradient(
            180deg,
            #e7c66d,
            transparent
        );
}


/* inferior izquierdo */

.final-corner-bl {

    bottom: 24px;
    left: 24px;
}


.final-corner-bl::before {

    bottom: 0;
    left: 0;

    width: 48px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            #e7c66d,
            transparent
        );
}


.final-corner-bl::after {

    bottom: 0;
    left: 0;

    width: 1px;
    height: 48px;

    background:
        linear-gradient(
            0deg,
            #e7c66d,
            transparent
        );
}


/* inferior derecho */

.final-corner-br {

    bottom: 24px;
    right: 24px;
}


.final-corner-br::before {

    bottom: 0;
    right: 0;

    width: 48px;
    height: 1px;

    background:
        linear-gradient(
            270deg,
            #e7c66d,
            transparent
        );
}


.final-corner-br::after {

    bottom: 0;
    right: 0;

    width: 1px;
    height: 48px;

    background:
        linear-gradient(
            0deg,
            #e7c66d,
            transparent
        );
}


/* =========================================================
   DESTELLOS
========================================================= */

.final-stars {

    position: absolute;

    inset: 0;

    z-index: 2;

    pointer-events: none;
}


.final-stars span {

    position: absolute;

    color: #f0cd70;

    text-shadow:
        0 0 12px
        rgba(240,205,112,.75);

    opacity: .65;

    animation:
        finalSparkle
        4s
        ease-in-out
        infinite alternate;
}


.final-stars span:nth-child(1) {
    top: 17%;
    left: 12%;
    font-size: 12px;
}

.final-stars span:nth-child(2) {
    top: 24%;
    right: 14%;
    font-size: 7px;
    animation-delay: .8s;
}

.final-stars span:nth-child(3) {
    top: 51%;
    left: 8%;
    font-size: 8px;
    animation-delay: 1.4s;
}

.final-stars span:nth-child(4) {
    bottom: 22%;
    right: 11%;
    font-size: 14px;
    animation-delay: 2s;
}

.final-stars span:nth-child(5) {
    bottom: 14%;
    left: 17%;
    font-size: 7px;
    animation-delay: 2.7s;
}

.final-stars span:nth-child(6) {
    top: 40%;
    right: 7%;
    font-size: 6px;
    animation-delay: 1.1s;
}

.final-stars span:nth-child(7) {
    bottom: 35%;
    left: 10%;
    font-size: 6px;
    animation-delay: 3s;
}

.final-stars span:nth-child(8) {
    top: 13%;
    right: 29%;
    font-size: 5px;
    animation-delay: 1.8s;
}


/* =========================================================
   CONTENIDO
========================================================= */

.final-content {

    position: relative;

    z-index: 6;

    width: min(700px, 90vw);

    min-height: 80vh;

    display: flex;
    flex-direction: column;

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

    text-align: center;

    padding:
        70px 20px 55px;
}


/* =========================================================
   TEXTO SUPERIOR
========================================================= */

.final-eyebrow {

    color: #e7c66d;

    font-family:
        Arial,
        sans-serif;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: .42em;

    text-shadow:
        0 1px 10px
        rgba(0,0,0,.5);
}


.final-ornament {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-top: 19px;
}


.final-ornament span {

    width: 55px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(231,198,109,.75)
        );
}


.final-ornament span:last-child {

    background:
        linear-gradient(
            90deg,
            rgba(231,198,109,.75),
            transparent
        );
}


.final-ornament b {

    color: #f1ce72;

    font-size: 12px;

    font-weight: 400;

    text-shadow:
        0 0 12px
        rgba(241,206,114,.7);
}


.final-small-title {

    margin-top: 18px;

    color:
        rgba(255,250,240,.72);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 15px;

    font-style: italic;

    letter-spacing: .03em;
}


/* =========================================================
   XIMENA
========================================================= */

.final-content h2 {

    margin: 17px 0 0;

    color: #f4d27b;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(76px, 12vw, 128px);

    font-weight: 400;

    line-height: .82;

    letter-spacing: -.045em;

    text-shadow:
        0 3px 30px
        rgba(0,0,0,.55),

        0 0 40px
        rgba(226,188,87,.10);
}


/* =========================================================
   OCASIÓN
========================================================= */

.final-occasion {

    margin-top: 25px;

    color:
        rgba(255,250,240,.94);

    font-family:
        Arial,
        sans-serif;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .52em;

    padding-left: .52em;
}


.final-date {

    margin-top: 12px;

    color:
        rgba(255,250,240,.57);

    font-family:
        Arial,
        sans-serif;

    font-size: 8px;

    font-weight: 600;

    letter-spacing: .35em;

    padding-left: .35em;
}


/* =========================================================
   SEPARADOR
========================================================= */

.final-line {

    position: relative;

    width: 120px;

    height: 1px;

    margin-top: 30px;

    background:
        rgba(231,198,109,.45);
}


.final-line::before {

    content: "✦";

    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    padding: 0 12px;

    color: #e7c66d;

    background:
        transparent;

    font-size: 9px;
}


/* =========================================================
   MENSAJE
========================================================= */

.final-message {

    margin-top: 31px;

    color:
        rgba(255,250,240,.78);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(15px, 2vw, 18px);

    line-height: 1.75;

    font-style: italic;

    text-shadow:
        0 2px 10px
        rgba(0,0,0,.55);
}


/* =========================================================
   CORAZÓN
========================================================= */

.final-heart {

    margin-top: 27px;

    color: #e7c66d;

    font-family:
        Georgia,
        serif;

    font-size: 27px;

    font-weight: 400;

    text-shadow:
        0 0 18px
        rgba(231,198,109,.6);

    animation:
        finalHeart
        3s
        ease-in-out
        infinite;
}


/* =========================================================
   BOTÓN
========================================================= */

.final-home {

    margin-top: 27px;

    min-width: 215px;

    height: 48px;

    padding:
        0 25px;

    border:
        1px solid
        rgba(231,198,109,.48);

    background:
        rgba(2,8,20,.38);

    color:
        rgba(255,250,240,.83);

    backdrop-filter:
        blur(5px);

    font-family:
        Arial,
        sans-serif;

    font-size: 7px;

    font-weight: 700;

    letter-spacing: .27em;

    cursor: pointer;

    transition:
        background .3s ease,
        border-color .3s ease,
        transform .3s ease;
}


.final-home span {

    margin-right: 10px;

    color: #e7c66d;

    font-size: 13px;
}


.final-home:hover {

    background:
        rgba(231,198,109,.09);

    border-color:
        rgba(231,198,109,.75);

    transform:
        translateY(-2px);
}


/* =========================================================
   FIRMA
========================================================= */

.final-signature {

    margin-top: 32px;

    color:
        rgba(255,250,240,.30);

    font-family:
        Arial,
        sans-serif;

    font-size: 6px;

    font-weight: 700;

    letter-spacing: .38em;

    padding-left: .38em;
}


/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes finalPhotoZoom {

    from {
        transform: scale(1.04);
    }

    to {
        transform: scale(1.10);
    }

}


@keyframes finalSparkle {

    from {
        opacity: .22;
        transform: scale(.75);
    }

    to {
        opacity: .9;
        transform: scale(1.18);
    }

}


@keyframes finalHeart {

    0%,
    100% {
        transform: scale(1);
        opacity: .7;
    }

    50% {
        transform: scale(1.12);
        opacity: 1;
    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 600px) {

    .final-section {

        min-height: 100svh;

        padding:
            60px 16px;
    }


    .final-frame {

        inset: 14px;
    }


    .final-corner {

        width: 48px;
        height: 48px;
    }


    .final-corner-tl,
    .final-corner-tr {

        top: 14px;
    }


    .final-corner-bl,
    .final-corner-br {

        bottom: 14px;
    }


    .final-corner-tl,
    .final-corner-bl {

        left: 14px;
    }


    .final-corner-tr,
    .final-corner-br {

        right: 14px;
    }


    .final-corner-tl::before,
    .final-corner-tr::before,
    .final-corner-bl::before,
    .final-corner-br::before {

        width: 32px;
    }


    .final-corner-tl::after,
    .final-corner-tr::after,
    .final-corner-bl::after,
    .final-corner-br::after {

        height: 32px;
    }


    .final-content {

        min-height: 90svh;

        padding:
            55px 12px 45px;
    }


    .final-eyebrow {

        font-size: 6px;

        letter-spacing: .32em;
    }


    .final-ornament {

        margin-top: 15px;

        gap: 10px;
    }


    .final-ornament span {

        width: 38px;
    }


    .final-small-title {

        font-size: 13px;
    }


    .final-content h2 {

        margin-top: 15px;

        font-size:
            clamp(67px, 22vw, 100px);
    }


    .final-occasion {

        margin-top: 22px;

        font-size: 7px;

        letter-spacing: .38em;

        padding-left: .38em;
    }


    .final-date {

        font-size: 6px;

        letter-spacing: .28em;

        padding-left: .28em;
    }


    .final-message {

        margin-top: 25px;

        font-size: 14px;

        line-height: 1.7;
    }


    .final-heart {

        margin-top: 22px;

        font-size: 23px;
    }


    .final-home {

        margin-top: 22px;

        min-width: 190px;

        height: 45px;

        font-size: 6px;
    }


    .final-signature {

        margin-top: 25px;

        font-size: 5px;

        letter-spacing: .3em;

        padding-left: .3em;
    }

}

/* =========================================================
   CORRECCIÓN · CENTRADO DE "DESCUBRE LA HISTORIA"
========================================================= */

.invitation .invitation-bottom {
    position: absolute;
    left: 50%;
    right: auto;
    width: max-content;
    max-width: calc(100% - 40px);

    transform: translateX(-50%);
    text-align: center;
    align-items: center;
}

/* =========================================================
   CORRECCIÓN DEFINITIVA
   CENTRADO DEL DESCUBRE LA HISTORIA
========================================================= */

@keyframes invitationBottomReveal {

    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

}

/* =========================================================
   AJUSTE FINAL · CONTADOR MÁS COMPACTO
========================================================= */

.countdown-section {
    min-height: auto !important;
    height: auto !important;

    padding: 55px 20px 65px !important;

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

.countdown-content {
    width: min(92vw, 500px);
    padding: 0 !important;
}

.countdown-grid {
    margin-top: 25px !important;
}

.countdown-date {
    margin-top: 22px !important;
}

.countdown-bottom {
    margin-top: 28px !important;
}

@media (max-width: 600px) {

    .countdown-section {
        padding: 50px 18px 55px !important;
    }

    .countdown-grid {
        margin-top: 25px !important;
    }

    .countdown-date {
        margin-top: 20px !important;
    }

    .countdown-bottom {
        margin-top: 25px !important;
    }

}

/* =========================================================
   AJUSTE VISUAL · HISTORIA
========================================================= */

.story-section {
    min-height: auto !important;
    height: auto !important;

    padding: 75px 20px 60px !important;
}

.story-content {
    padding: 0 !important;
}

/* Reducimos el aire entre los elementos */

.story-content h2 {
    margin-bottom: 18px;
}

.story-content p {
    margin-top: 0;
}

.story-content .story-intro {
    margin-top: 20px !important;
}

.story-content .story-note {
    margin-top: 18px !important;
}

/* Manzana */

.story-content .story-apple {
    margin-top: 28px !important;
}

/* Indicador inferior */

.story-bottom {
    margin-top: 32px !important;
}

@media (max-width: 600px) {

    .story-section {
        padding: 60px 18px 48px !important;
    }

    .story-content h2 {
        margin-bottom: 16px;
    }

    .story-content .story-intro {
        margin-top: 17px !important;
    }

    .story-content .story-note {
        margin-top: 15px !important;
    }

    .story-content .story-apple {
        margin-top: 22px !important;
    }

    .story-bottom {
        margin-top: 25px !important;
    }

}

/* =========================================================
   CORRECCIÓN FUERTE · HISTORIA → CONTADOR
========================================================= */

.story-section {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.countdown-section {
    padding-top: 0 !important;
    margin-top: -75px !important;
}

@media (max-width: 600px) {

    .story-section {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .countdown-section {
        padding-top: 0 !important;
        margin-top: -85px !important;
    }

}

/* =========================================================
   AJUSTE · HISTORIA / UN NUEVO CAPÍTULO
========================================================= */

.story-section {
    margin-top: -55px !important;
    padding-top: 35px !important;
    padding-bottom: 55px !important;
}

.story-content {
    padding-top: 0 !important;
}

@media (max-width: 600px) {

    .story-section {
        margin-top: -70px !important;
        padding-top: 30px !important;
        padding-bottom: 45px !important;
    }

}

/* =========================================================
   LIMPIEZA FINAL DE ESPACIADOS
   XIMENA XV
========================================================= */

/* ---------------------------------------------------------
   1. PORTADA → CONTADOR
--------------------------------------------------------- */

.invitation {
    margin-bottom: 0 !important;
}

.countdown-section {
    margin-top: 0 !important;
}


/* ---------------------------------------------------------
   2. HISTORIA
--------------------------------------------------------- */

.story-section {
    min-height: auto !important;
    height: auto !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 55px !important;
    padding-bottom: 35px !important;
}


/* ---------------------------------------------------------
   3. CONTADOR
--------------------------------------------------------- */

.countdown-section {
    min-height: auto !important;
    height: auto !important;

    padding-top: 45px !important;
    padding-bottom: 60px !important;
}


/* ---------------------------------------------------------
   4. EVENTO
--------------------------------------------------------- */

.event-section {
    min-height: auto !important;
    height: auto !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 40px !important;
    padding-bottom: 55px !important;
}


/* ---------------------------------------------------------
   5. GALERÍA
--------------------------------------------------------- */

.gallery-section {
    min-height: auto !important;
    height: auto !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 55px !important;
    padding-bottom: 35px !important;
}


/* ---------------------------------------------------------
   6. DETALLES
--------------------------------------------------------- */

.details-section {
    min-height: auto !important;
    height: auto !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 45px !important;
    padding-bottom: 55px !important;
}


/* ---------------------------------------------------------
   7. QUITAR FLECHA DE HISTORIA
--------------------------------------------------------- */

.story-bottom .scroll-arrow {
    display: none !important;
}


/* ---------------------------------------------------------
   8. MÓVIL
--------------------------------------------------------- */

@media (max-width: 600px) {

    .story-section {
        padding-top: 45px !important;
        padding-bottom: 25px !important;
    }

    .countdown-section {
        padding-top: 35px !important;
        padding-bottom: 45px !important;
    }

    .event-section {
        padding-top: 30px !important;
        padding-bottom: 45px !important;
    }

    .gallery-section {
        padding-top: 40px !important;
        padding-bottom: 25px !important;
    }

    .details-section {
        padding-top: 35px !important;
        padding-bottom: 45px !important;
    }

}

/* =========================================================
   AJUSTE FINAL · REGALOS / RSVP / CIERRE
========================================================= */

/* Mesa de regalos */
/* =========================================================
   MESA DE REGALOS
========================================================= */

.gifts-section {
    position: relative;

    width: 100%;
    min-height: auto !important;
    height: auto !important;

    padding: 70px 20px 55px !important;

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

    overflow: hidden;
    isolation: isolate;

    color: #fffaf0;
}

.gifts-content {
    position: relative;
    z-index: 2;

    width: min(100%, 520px);

    margin: 0 auto;
    padding: 0;
}

.gifts-bottom {
    margin-top: 45px !important;
}


/* =========================================================
   RSVP
========================================================= */

.rsvp-section {
    position: relative;

    width: 100%;

    min-height: auto !important;
    height: auto !important;

    margin: 0 !important;

    padding: 65px 20px 60px !important;

    overflow: hidden;
}

.rsvp-content {
    position: relative;
    z-index: 2;

    width: min(100%, 520px);

    margin: 0 auto;
}


/* =========================================================
   ESTADOS RSVP
========================================================= */

.rsvp-result,
.rsvp-success {
    display: none;
}

.rsvp-result.is-visible,
.rsvp-success.is-visible {
    display: block;
}


/* =========================================================
   ESPACIADO INTERNO RSVP
========================================================= */

.rsvp-step {
    margin-top: 35px;
}

.rsvp-result {
    margin-top: 35px;
}

.rsvp-success {
    margin-top: 35px;
}

.rsvp-bottom {
    margin-top: 55px !important;
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 600px) {

    .gifts-section {
        padding: 55px 18px 45px !important;
    }

    .gifts-bottom {
        margin-top: 35px !important;
    }

    .rsvp-section {
        padding: 55px 18px 50px !important;
    }

    .rsvp-step {
        margin-top: 30px;
    }

    .rsvp-bottom {
        margin-top: 45px !important;
    }

}

/* Cierre */
.final-section {
    min-height: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 45px 20px 60px !important;
}

/* Evitar que elementos internos metan márgenes gigantes */
.gifts-section > *,
.rsvp-section > *,
.final-section > * {
    margin-bottom: 0;
}

/* En móvil */
@media (max-width: 600px) {

    .gifts-section {
        padding: 45px 18px 35px !important;
    }

    .rsvp-section {
        padding: 45px 18px 35px !important;
    }

    .final-section {
        padding: 35px 18px 45px !important;
    }

}

/* =========================================================
   MODAL · MESA DE REGALOS
========================================================= */

.gifts-modal {
    position: fixed;
    inset: 0;

    z-index: 99999;

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

    padding: 20px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.gifts-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.gifts-modal-overlay {
    position: absolute;
    inset: 0;

    background:
        rgba(2, 8, 20, .82);

    backdrop-filter: blur(8px);
}

.gifts-modal-box {
    position: relative;
    z-index: 2;

    width: min(100%, 440px);

    max-height: 90vh;
    overflow-y: auto;

    padding: 45px 28px 30px;

    background:
        linear-gradient(
            160deg,
            #0c2344,
            #071a35 55%,
            #041226
        );

    border: 1px solid rgba(218, 175, 82, .55);

    box-shadow:
        0 25px 80px rgba(0,0,0,.5);

    text-align: center;

    transform: translateY(20px) scale(.98);

    transition:
        transform .35s ease;
}

.gifts-modal.is-open .gifts-modal-box {
    transform: translateY(0) scale(1);
}

.gifts-modal-close {
    position: absolute;

    top: 12px;
    right: 16px;

    width: 35px;
    height: 35px;

    border: 0;

    background: transparent;

    color: #f4d27a;

    font-size: 28px;

    cursor: pointer;
}

.gifts-modal-eyebrow {
    display: block;

    margin-bottom: 15px;

    color: #d9b75e;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .28em;
}

.gifts-modal-ornament {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    margin-bottom: 18px;
}

.gifts-modal-ornament span {
    width: 45px;
    height: 1px;

    background:
        rgba(218, 175, 82, .5);
}

.gifts-modal-ornament b {
    color: #f4d27a;
    font-size: 16px;
}

.gifts-modal-box h3 {
    margin: 0 0 18px;

    color: #f4d27a;

    font-family: Georgia, serif;

    font-size: clamp(30px, 8vw, 42px);

    font-weight: 400;
}

.gifts-modal-intro {
    margin: 0 auto 28px;

    max-width: 340px;

    color: rgba(255,250,240,.75);

    font-family: Georgia, serif;

    font-size: 15px;

    line-height: 1.7;
}

.bank-data {
    margin: 25px 0;

    border-top:
        1px solid rgba(218,175,82,.25);

    border-bottom:
        1px solid rgba(218,175,82,.25);
}

.bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 15px 0;

    border-bottom:
        1px solid rgba(218,175,82,.14);

    text-align: left;
}

.bank-row:last-child {
    border-bottom: 0;
}

.bank-row span {
    color: rgba(255,250,240,.45);

    font-size: 8px;

    font-weight: 700;

    letter-spacing: .2em;
}

.bank-row strong {
    color: #f4d27a;

    font-size: 12px;

    text-align: right;
}

.gifts-modal-note {
    margin: 20px 0 25px;

    color: rgba(255,250,240,.5);

    font-family: Georgia, serif;

    font-size: 13px;

    line-height: 1.6;
}

.gifts-modal-action {
    min-width: 150px;

    padding: 13px 25px;

    border: 1px solid rgba(218,175,82,.65);

    background: transparent;

    color: #f4d27a;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .2em;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease;
}

.gifts-modal-action:hover {
    background: #f4d27a;
    color: #071a35;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {

    .gifts-modal {
        padding: 14px;
    }

    .gifts-modal-box {
        padding: 40px 20px 25px;
    }

    .bank-row {
        gap: 12px;
    }

    .bank-row strong {
        max-width: 190px;
        word-break: break-word;
    }

}