/* =========================
   INTRO — PORTADA
   ========================= */

.intro {
    position: relative;

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

    overflow: hidden;

    background:
        linear-gradient(to bottom,
            rgba(251, 248, 243, 0.72),
            rgba(251, 248, 243, 0.35) 45%,
            rgba(90, 58, 62, 0.18) 100%),
        url("../assets/images/intro-bg.png") center center / cover no-repeat;

    color: var(--color-charcoal);
}


/* =========================
   CONTENEDOR
   ========================= */

.intro-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 100%;
    margin: 0 auto;

    container-type: inline-size;
}

/* =========================
   NOMBRE — INGRID MADAI
   ========================= */

.intro-name {
    position: absolute;

    z-index: 5;

    top: 6%;

    left: 50%;

    transform: translateX(-50%);

    width: 100%;

    margin: 0;

    font-family: "Parisienne", cursive;

    font-size: clamp(4rem, 15cqw, 6rem);

    font-weight: 400;

    line-height: 0.82;

    letter-spacing: 0;

    text-align: center;

    white-space: nowrap;

    color: var(--color-rose);
}


/* =========================
   XV AÑOS
   ========================= */

.intro-xv {
    position: absolute;

    z-index: 5;

    top: 25%;

    left: 50%;

    transform: translateX(-50%);

    margin: 0;

    font-family: var(--font-display);

    font-size: clamp(1.55rem, 6vw, 2.5rem);

    font-weight: 500;

    line-height: 1;

    letter-spacing: 0.28em;

    white-space: nowrap;

    color: var(--color-rose);
}


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

.intro-divider {
    position: absolute;

    z-index: 5;

    top: 32%;

    left: 50%;

    transform: translateX(-50%);

    width: min(46vw, 190px);

    display: flex;

    align-items: center;

    color: var(--color-gold);
}

.intro-divider::before,
.intro-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: currentColor;
}

.intro-divider span {
    margin-inline: 0.75rem;

    font-size: 1.15rem;

    line-height: 1;
}


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

.intro-date {
    position: absolute;

    z-index: 5;

    top: 36%;

    left: 50%;

    transform: translateX(-50%);

    margin: 0;

    font-family: var(--font-display);

    font-size: clamp(1.4rem, 4vw, 1.45rem);

    font-weight: 500;

    letter-spacing: 0.32em;

    white-space: nowrap;

    color: var(--color-rose);
}

/* =========================
   IMAGEN PRINCIPAL
   ========================= */

.intro-silhouette {
    position: absolute;

    z-index: 1;

    left: 50%;
    bottom: 0;

    transform: translateX(-50%);

    width: min(100%, 520px);
    height: 70%;

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

    pointer-events: none;

    /* Permite que la sombra se extienda */
    overflow: visible;
}


/* =========================
   SOMBRA — INTEGRACIÓN CON PISO
   ========================= */

.intro-silhouette::before {
    content: "";

    position: absolute;

    z-index: 0;

    left: 50%;
    bottom: 0;

    width: 72%;
    height: 13%;

    transform: translateX(-50%);

    background:
        radial-gradient(ellipse at center,
            rgba(90, 58, 62, 0.28) 0%,
            rgba(90, 58, 62, 0.14) 38%,
            rgba(90, 58, 62, 0) 72%);

    filter: blur(10px);
}


/* =========================
   SILUETA
   ========================= */

.intro-silhouette img {
    position: relative;

    z-index: 1;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center bottom;

    filter:
        drop-shadow(0 8px 14px rgba(90, 58, 62, 0.12));
}


/* =========================
   FRASE SOBRE LA IMAGEN
   ========================= */

.intro-phrase {
    position: absolute;

    z-index: 3;

    left: 50%;
    bottom: 11%;

    transform: translateX(-50%);

    width: 85%;

    margin: 0;

    font-family: var(--font-display);

    font-size: clamp(1.5rem, 3.8vw, 1.35rem);

    font-weight: 500;

    line-height: 1.45;

    font-style: normal;

    letter-spacing: 0.18em;

    text-align: center;

    text-transform: uppercase;

    color: var(--color-white);

    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.35),
        0 2px 10px rgba(0, 0, 0, 0.20);
}

/* =========================
   DESLIZA
   ========================= */

.scroll-indicator {
    position: absolute;

    z-index: 5;

    left: 50%;
    bottom: 4.6rem;

    transform: translateX(-50%);

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

    gap: 0.45rem;

    font-family: var(--font-body);
    color: var(--color-white);
}


/* Línea vertical */

.scroll-line {
    position: relative;

    width: 1px;
    height: 38px;

    background: rgba(255, 255, 255, 0.85);
}


/* Punto */

.scroll-line::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -3px;

    width: 6px;
    height: 6px;

    transform: translateX(-50%);

    border-radius: 50%;

    background: var(--color-white);
}


/* Texto */

.scroll-label {
    font-family: var(--font-body);

    font-size: 0.55rem;
    font-weight: 400;

    letter-spacing: 0.35em;

    text-transform: uppercase;
    white-space: nowrap;
}

/* =========================
   PÉTALOS — AMBIENTE
   ========================= */

.intro-petals {
    position: absolute;

    inset: 0;

    z-index: 2;

    overflow: hidden;

    pointer-events: none;
}


/* =========================
   PÉTALO BASE
   ========================= */

.petal {
    position: absolute;

    display: block;

    width: 22px;
    height: 34px;

    border-radius: 70% 30% 70% 30%;

    background:
        linear-gradient(135deg,
            rgba(255, 214, 220, 0.95),
            rgba(213, 139, 153, 0.72));

    opacity: 0;

    filter: blur(0.2px);

    box-shadow:
        0 2px 8px rgba(120, 70, 80, 0.12);

    animation:
        petal-fall 10s linear infinite;
}


/* =========================
   PÉTALOS INDIVIDUALES
   ========================= */

.petal-1 {
    left: 8%;
    top: -8%;

    width: 20px;
    height: 31px;

    transform: rotate(25deg);

    animation-duration: 9s;
    animation-delay: -2s;
}


.petal-2 {
    left: 28%;
    top: -12%;

    width: 15px;
    height: 25px;

    transform: rotate(-35deg);

    animation-duration: 11s;
    animation-delay: -7s;
}


.petal-3 {
    left: 52%;
    top: -10%;

    width: 24px;
    height: 36px;

    transform: rotate(65deg);

    animation-duration: 12s;
    animation-delay: -4s;
}


.petal-4 {
    left: 78%;
    top: -15%;

    width: 18px;
    height: 29px;

    transform: rotate(-20deg);

    animation-duration: 10s;
    animation-delay: -8s;
}


.petal-5 {
    left: 92%;
    top: 18%;

    width: 24px;
    height: 36px;

    transform: rotate(45deg);

    animation-duration: 13s;
    animation-delay: -3s;
}


.petal-6 {
    left: 2%;
    top: 35%;

    width: 18px;
    height: 28px;

    transform: rotate(-50deg);

    animation-duration: 11s;
    animation-delay: -6s;
}


.petal-7 {
    left: 84%;
    top: 58%;

    width: 20px;
    height: 31px;

    transform: rotate(30deg);

    animation-duration: 12s;
    animation-delay: -10s;
}


.petal-8 {
    left: 15%;
    top: 68%;

    width: 26px;
    height: 39px;

    transform: rotate(-25deg);

    animation-duration: 14s;
    animation-delay: -5s;
}


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

@keyframes petal-fall {

    0% {
        opacity: 0;
        transform:
            translate3d(0, -30px, 0) rotate(0deg);
    }

    10% {
        opacity: 0.75;
    }

    50% {
        opacity: 0.9;
    }

    90% {
        opacity: 0.65;
    }

    100% {
        opacity: 0;
        transform:
            translate3d(35px,
                110vh,
                0) rotate(360deg);
    }
}

/* =========================================================
   02 — EMOCIÓN
   ========================================================= */

.emotion {
    position: relative;

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

    overflow: hidden;

    background:
        url("../assets/images/emotion-bg.png") center center / cover no-repeat;

    color: var(--color-chocolate);
}


/* =========================================================
   CONTENEDOR
   ========================================================= */

.emotion-content {
    position: relative;

    width: 100%;
    max-width: 520px;
    height: 100%;

    margin: 0 auto;
}


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

.emotion-phrase {
    position: absolute;

    z-index: 4;

    top: clamp(5rem, 11vh, 7rem);

    left: 50%;

    transform: translateX(-50%);

    width: 88%;

    margin: 0;

    font-family: var(--font-display);

    font-size: clamp(1.7rem, 6.5vw, 2.45rem);

    font-weight: 400;

    line-height: 1.42;

    font-style: italic;

    letter-spacing: 0.01em;

    text-align: center;

    color: var(--color-chocolate);
}


/* =========================================================
   MONOGRAMA
   ========================================================= */

.emotion-monogram {
    position: absolute;

    z-index: 3;

    top: clamp(18rem, 36vh, 23rem);

    left: 50%;

    transform: translateX(-50%);

    width: min(66vw, 290px);
    aspect-ratio: 1 / 1;

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


/* Marco circular */

.monogram-frame {
    position: relative;

    width: 100%;
    height: 100%;

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

    border: 1px solid rgba(201, 164, 92, 0.85);

    border-radius: 50%;
}


/* =========================================================
   LOGO IM
   ========================================================= */

.monogram-frame img {
    display: block;

    width: 68%;
    max-width: 210px;

    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(0 4px 8px rgba(90, 58, 62, 0.10));
}


/* =========================================================
   ESTRELLAS DEL MONOGRAMA
   ========================================================= */

.monogram-star {
    position: absolute;

    left: 50%;

    transform: translateX(-50%);

    color: var(--color-gold);

    font-size: 0.95rem;

    line-height: 1;
}

.monogram-star-top {
    top: -0.55rem;
}

.monogram-star-bottom {
    bottom: -0.55rem;
}


/* =========================================================
   XV AÑOS
   ========================================================= */

.emotion-xv {
    position: absolute;
    z-index: 4;

    left: 50%;
    bottom: clamp(7.5rem, 13vh, 9.5rem);

    transform: translateX(-50%);

    margin: 0;

    font-family: var(--font-display);
    font-size: clamp(1.05rem, 4.2vw, 1.45rem);

    font-weight: 500;

    letter-spacing: 0.48em;

    white-space: nowrap;
    text-align: center;

    color: var(--color-white);

    text-shadow:
        0 1px 5px rgba(90, 58, 62, 0.38);
}




/* =========================================================
   PETALOS / AMBIENTE
   ========================================================= */

.emotion::before,
.emotion::after {
    content: "";

    position: absolute;

    z-index: 1;

    pointer-events: none;

    border-radius: 50%;

    filter: blur(35px);
}

.emotion::before {
    width: 180px;
    height: 180px;

    left: -70px;
    top: 15%;

    background: rgba(232, 200, 207, 0.28);
}

.emotion::after {
    width: 220px;
    height: 220px;

    right: -90px;
    bottom: 8%;

    background: rgba(201, 164, 92, 0.10);
}


/* =========================================================
   RESPONSIVE — PANTALLAS MUY BAJAS
   ========================================================= */

@media (max-height: 700px) {

    .emotion-phrase {
        top: 3.5rem;

        font-size: clamp(1.45rem,
                6vw,
                2rem);
    }

    .emotion-monogram {
        top: 15rem;

        width: min(58vw, 230px);
    }

    .emotion-xv {
        bottom: 6.5rem;
    }

}


/* =========================================================
   RESPONSIVE — PANTALLAS MUY ALTAS
   ========================================================= */

@media (min-height: 850px) {

    .emotion-phrase {
        top: 7rem;
    }

    .emotion-monogram {
        top: 20rem;
    }

    .emotion-xv {
        bottom: 9rem;
    }

}

/* =========================================================
   DESLIZA — SECCIÓN 2
   Ajuste independiente
   ========================================================= */

#emotion .scroll-indicator {
    bottom: 3.2rem;
}

/* =========================================================
   XV AÑOS — SECCIÓN 2
   ========================================================= */

#emotion .emotion-xv {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
}

#emotion .emotion-xv-line {
    display: block !important;

    width: 60px !important;
    height: 3px !important;

    background: #C9A45C !important;

    opacity: 1 !important;

    flex: 0 0 60px !important;
}

#emotion .emotion-xv-text {
    white-space: nowrap;

    color: var(--color-white);

    font-family: var(--font-display);
    font-size: clamp(1rem, 4vw, 1.35rem);
    font-weight: 500;

    letter-spacing: 0.42em;

    text-shadow:
        0 1px 5px rgba(90, 58, 62, 0.45);
}

.emotion .scroll-indicator {
    position: absolute;
    z-index: 5;

    left: 50%;
    bottom: 2.2rem;

    transform: translateX(-50%);

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

    gap: 0.35rem;

    color: var(--color-white);
}

.emotion .scroll-line {
    position: relative;

    width: 1px;
    height: 34px;

    background: rgba(255, 255, 255, 0.9);
}

.emotion .scroll-line::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -3px;

    width: 5px;
    height: 5px;

    transform: translateX(-50%);

    border-radius: 50%;

    background: var(--color-white);
}

.emotion .scroll-label {
    font-family: var(--font-body);

    font-size: 0.55rem;
    font-weight: 400;

    letter-spacing: 0.35em;

    text-transform: uppercase;
    white-space: nowrap;

    color: var(--color-white);
}

/* =========================================================
   PÉTALOS — EMOTION
   ========================================================= */

.emotion-petals {
    position: absolute;

    inset: 0;

    z-index: 2;

    overflow: hidden;

    pointer-events: none;
}

/* =========================================================
   03 — FECHA + CONTADOR
   ========================================================= */

.date {
    position: relative;

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

    overflow: hidden;

    background:
        url("../assets/images/date-bg.png") center center / cover no-repeat;

    color: var(--color-chocolate);
}


/* =========================================================
   CONTENEDOR
   ========================================================= */

.date-content {
    position: relative;

    width: 100%;
    max-width: 520px;
    height: 100%;

    margin: 0 auto;
}


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

.date-numbers {
    position: absolute;

    z-index: 3;

    top: 17%;
    left: 50%;

    transform: translateX(-50%);

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

    gap: 0.15rem;

    font-family: var(--font-display);

    color: var(--color-chocolate);
}

.date-numbers span {
    display: block;

    font-size: clamp(4rem, 17vw, 6rem);

    font-weight: 400;

    line-height: 0.95;

    letter-spacing: 0.02em;
}


/* =========================================================
   DETALLE CENTRAL
   ========================================================= */

.date-divider {
    position: absolute;

    z-index: 3;

    top: 52%;

    left: 50%;

    transform: translateX(-50%);

    display: flex;

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

.date-divider span {
    font-family: var(--font-display);

    font-size: 0.8rem;

    color: var(--color-gold);
}


/* =========================================================
   PÉTALOS — FECHA
   ========================================================= */

.date-petals {
    position: absolute;

    inset: 0;

    z-index: 2;

    overflow: hidden;

    pointer-events: none;
}

/* =========================================================
   CONTADOR — PANTALLA 03
   ========================================================= */

.countdown {
    position: absolute;

    z-index: 3;

    left: 50%;
    bottom: 23%;

    transform: translateX(-50%);

    width: min(92%, 360px);

    padding: 0.9rem 1rem 1rem;

    text-align: center;

    background: rgba(255, 255, 255, 0.38);

    border: 1px solid rgba(255, 255, 255, 0.65);

    border-radius: 999px;

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

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    box-sizing: border-box;
}


.countdown-label {
    margin-bottom: 0.65rem;

    font-family: var(--font-display);

    font-size: 0.85rem;

    letter-spacing: 0.35em;

    text-transform: uppercase;

    color: #4A3034;

    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.45);
}


.countdown-values {
    display: flex;

    align-items: flex-start;

    justify-content: center;

    gap: clamp(0.55rem, 3vw, 1rem);
}


.countdown-item {
    display: flex;

    flex-direction: column;

    align-items: center;

    min-width: 0;
}


.countdown-number {
    font-family: var(--font-display);

    font-size: clamp(1.45rem, 6vw, 2rem);

    font-weight: 400;

    line-height: 1;

    color: #4A3034;

    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}


.countdown-unit {
    margin-top: 0.35rem;

    font-family: var(--font-body);

    font-size: 0.42rem;

    letter-spacing: 0.1em;

    text-transform: uppercase;

    color: #4A3034;

    white-space: nowrap;

    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}


/* =========================================================
   MENSAJE DEL CONTADOR
   ========================================================= */

.countdown-message {
    position: absolute;

    z-index: 3;

    left: 50%;
    bottom: 10%;

    transform: translateX(-50%);

    width: 100%;

    margin: 0;

    font-family: var(--font-display);

    font-size: clamp(1.8rem, 3.2vw, 1.1rem);

    font-weight: 400;

    line-height: 1.6;

    letter-spacing: 0.32em;

    text-align: center;
    text-transform: uppercase;

    color: #4A3034;

    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}


/* =========================================================
   DESLIZA — FECHA
   ========================================================= */

.date .scroll-indicator {
    position: absolute;

    z-index: 5;

    left: 50%;
    bottom: 3.2rem;

    transform: translateX(-50%);

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

    gap: 0.35rem;

    color: var(--color-white);
}

.date .scroll-line {
    position: relative;

    width: 1px;
    height: 34px;

    background: rgba(255, 255, 255, 0.9);
}

.date .scroll-line::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -3px;

    width: 5px;
    height: 5px;

    transform: translateX(-50%);

    border-radius: 50%;

    background: var(--color-white);
}

.date .scroll-label {
    font-family: var(--font-body);

    font-size: 0.55rem;
    font-weight: 400;

    letter-spacing: 0.35em;

    text-transform: uppercase;
    white-space: nowrap;

    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(90, 58, 62, 0.35);

}

/* =========================================================
   AJUSTE MÓVIL — VIEWPORT DINÁMICO
   ========================================================= */

@media (max-width: 767px) {

    .date {
        height: 100dvh;
        min-height: 100dvh;
    }

}

/* =========================================================
   04 — PADRES + PADRINOS
   ========================================================= */

.people {
    position: relative;

    min-height: 100vh;

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

    overflow: hidden;

    background:
        linear-gradient(
            rgba(244, 229, 232, 0.35),
            rgba(244, 229, 232, 0.35)
        ),
        url("../assets/images/parents-bg.png") center center / cover no-repeat;
}


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

.people-content {
    position: relative;
    z-index: 2;

    width: min(88%, 420px);

    margin: 0 auto;

    text-align: center;

    transform: translateY(-3%);
}


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

.people-intro {
    margin-bottom: 1.4rem;
}

.people-intro p {
    margin: 0;

    font-family: var(--font-display);

    font-size: clamp(1.15rem, 4.5vw, 1.35rem);

    font-weight: 400;

    line-height: 1.55;

    letter-spacing: 0.22em;

    text-transform: uppercase;

    color: var(--color-chocolate);
}


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

.people-divider {
    margin: 1rem 0;

    font-family: var(--font-display);

    font-size: 0.8rem;

    line-height: 1;

    color: var(--color-gold);
}


/* =========================================================
   GRUPOS
   ========================================================= */

.people-group {
    display: flex;

    flex-direction: column;

    align-items: center;

    width: 100%;
}


/* =========================================================
   TÍTULOS
   ========================================================= */

.people-label {
    margin-bottom: 0.7rem;

    font-family: var(--font-body);

    font-size: 0.9rem;

    font-weight: 400;

    letter-spacing: 0.38em;

    text-transform: uppercase;

    color: var(--color-chocolate);
}


/* =========================================================
   CÁPSULA DE NOMBRES
   ========================================================= */

.people-names {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 0.25rem;

    width: 100%;

    padding: 0.8rem 1rem;

    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.32);

    border: 1px solid rgba(255, 255, 255, 0.7);

    border-radius: 999px;

    box-shadow:
        0 6px 20px rgba(74, 48, 52, 0.06);

    backdrop-filter: blur(5px);

    -webkit-backdrop-filter: blur(5px);
}


.people-names span {
    font-family: var(--font-display);

    font-size: clamp(1.15rem, 4.5vw, 1.4rem);

    font-weight: 400;

    line-height: 1.25;

    color: var(--color-chocolate);

    white-space: nowrap;
}


/* =========================================================
   CIERRE
   ========================================================= */

.people-closing {
    display: none;
}


/* =========================================================
   SCROLL
   ========================================================= */

.people .scroll-indicator {
    position: absolute;

    z-index: 5;

    left: 50%;
    bottom: 2.2rem;

    transform: translateX(-50%);

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

    gap: 0.35rem;

    color: var(--color-chocolate);
}

.people .scroll-line {
    background: rgba(255, 255, 255, 0.9);
}

.people .scroll-line::after {
    background: var(--color-white);
}

.people .scroll-label {
    color: var(--color-white);
}

/* =========================================================
   PÉTALOS — PEOPLE
   ========================================================= */

.people-petals {
    position: absolute;

    inset: 0;

    z-index: 2;

    overflow: hidden;

    pointer-events: none;
}


/* =========================================================
   05 — EL GRAN DÍA
   ========================================================= */

.events {
    position: relative;

    min-height: 100vh;

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

    overflow: hidden;

    background:
        linear-gradient(rgba(244, 229, 232, 0.22),
            rgba(244, 229, 232, 0.22)),
        url("../assets/images/events-bg.png") center center / cover no-repeat;
}


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

.events-content {
    position: relative;
    z-index: 2;

    width: min(88%, 420px);

    margin: 0 auto;

    text-align: center;

    padding: 3rem 0 4.5rem;
}


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

.events-intro {
    margin-bottom: 1.8rem;
}

.events-intro h2 {
    margin: 0 0 0.8rem;

    font-family: var(--font-display);

    font-size: clamp(2rem, 8vw, 2.5rem);

    font-weight: 400;

    letter-spacing: 0.12em;

    color: var(--color-chocolate);
}

.events-intro p {
    margin: 0;

    font-family: var(--font-display);

    font-size: clamp(2rem, 5vw, 1.5rem);

    font-style: italic;

    line-height: 1.45;

    color: var(--color-chocolate);
}


/* =========================================================
   EVENTO
   ========================================================= */

.event-block {
    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;
}


/* =========================================================
   DETALLE DORADO
   ========================================================= */

.event-icon {
    margin-bottom: 0.9rem;

    font-family: var(--font-display);

    font-size: 1.8rem;

    line-height: 1;

    color: var(--color-gold);
}


/* =========================================================
   HORA
   ========================================================= */

.event-time {
    margin-bottom: 0.2rem;

    font-family: var(--font-display);

    font-size: clamp(2rem, 8vw, 2.7rem);

    font-weight: 400;

    line-height: 1;

    color: var(--color-chocolate);
}


/* =========================================================
   TIPO DE EVENTO
   ========================================================= */

.event-title {
    margin-bottom: 0.4rem;

    font-family: var(--font-display);

    font-size: clamp(2rem, 5vw, 1.70rem);

    letter-spacing: 0.14em;

    color: var(--color-chocolate);
}


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

.event-place {
    margin-bottom: 1rem;

    font-family: var(--font-display);

    font-size: clamp(1.8rem, 6vw, 1.35rem);

    font-style: italic;

    line-height: 1.4;

    color: var(--color-chocolate);
}


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

.location-button {
    display: inline-flex;

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

    gap: 0.5rem;

    min-width: 190px;

    padding: 0.7rem 1.3rem;

    border: 1px solid rgba(201, 164, 92, 0.65);

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.78);

    box-shadow:
        0 4px 15px rgba(90, 58, 62, 0.12);

    font-family: var(--font-body);

    font-size: 0.62rem;

    font-weight: 500;

    letter-spacing: 0.18em;

    text-decoration: none;

    color: var(--color-chocolate);

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

.location-button span {
    font-size: 0.9rem;

    color: var(--color-gold);
}

.location-button:active {
    transform: scale(0.96);
}


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

.events-divider {
    display: flex;

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

    gap: 0.8rem;

    margin: 1.7rem 0;
}

.events-divider::before,
.events-divider::after {
    content: "";

    width: 45px;

    height: 1px;

    background: rgba(201, 164, 92, 0.6);
}

.events-divider span {
    font-family: var(--font-display);

    font-size: 0.8rem;

    color: var(--color-gold);
}


/* =========================================================
   CIERRE
   ========================================================= */



.events-closing {
    margin-top: 34px;
}

.events-closing p {
    margin: 0;

    font-family: "Cormorant Garamond", serif;
    font-size: 1.8rem;

    letter-spacing: 0.14em;
    line-height: 1.45;

    color: var(--color-chocolate);
}


/* =========================================================
   DESLIZA
   ========================================================= */

.events .scroll-indicator {
    position: absolute;

    z-index: 5;

    left: 50%;
    bottom: 2rem;

    transform: translateX(-50%);

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 0.35rem;

    color: var(--color-white);
}

.events .scroll-line {
    background: rgba(255, 255, 255, 0.85);
}

.events .scroll-line::after {
    background: var(--color-white);
}

.events .scroll-label {
    color: var(--color-white);
}

/* =========================================================
   EVENTS — PEOPLE
   ========================================================= */

.events-petals {
    position: absolute;

    inset: 0;

    z-index: 2;

    overflow: hidden;

    pointer-events: none;
}

/* =========================================================
   06 — LA NOCHE
   ========================================================= */

.night {
    position: relative;

    min-height: 100svh;

    overflow: hidden;

    background:
        url("../assets/images/night-bg.png") center center / cover no-repeat;
}


/* =========================================================
   CONTENIDO — LA NOCHE
   ========================================================= */

.night-content {
    position: relative;
    z-index: 2;

    width: min(88%, 430px);
    margin: 0 auto;

    min-height: 100svh;
    box-sizing: border-box;

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

    text-align: center;

    padding: 0 0 4vh;
}


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

.night-intro h2 {
    margin: 0;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 400;

    letter-spacing: 0.08em;

    color: var(--color-chocolate);
}

.night-ornament {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin: 8px 0 12px;
}

.night-ornament span {
    width: 45px;
    height: 1px;

    background: var(--color-gold);
}

.night-ornament i {
    font-style: normal;

    color: var(--color-gold);

    font-size: 1rem;
}

.night-intro p {
    margin: 0;

    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    font-style: italic;

    line-height: 1.25;

    color: var(--color-chocolate);
}


/* =========================================================
   ITINERARIO
   ========================================================= */

.night-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;

    margin-top: 20px;

    gap: 0;
}


/* =========================================================
   EVENTO
   ========================================================= */

.night-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
}


/* =========================================================
   IMAGEN DEL EVENTO
   ========================================================= */

.night-item img {
    display: block;

    width: 74px;
    height: auto;

    object-fit: contain;
}


/* =========================================================
   TÍTULO DEL EVENTO
   ========================================================= */

.night-label {
    display: block;

    margin-top: 2px;

    font-family: "Cormorant Garamond", serif;
    font-size: 1.8rem;
    font-weight: 400;

    letter-spacing: 0.18em;

    color: var(--color-chocolate);
}


/* =========================================================
   SEPARADORES
   ========================================================= */

.night-divider {
    margin: 3px 0;

    font-family: "Cormorant Garamond", serif;
    font-size: 0.75rem;

    color: var(--color-gold);
}


/* =========================================================
   CIERRE
   ========================================================= */

.night-closing {
    margin-top: 34px;
}

.night-closing p {
    margin: 0;

    font-family: "Cormorant Garamond", serif;
    font-size: 1.15rem;

    letter-spacing: 0.14em;
    line-height: 1.45;

    color: var(--color-chocolate);
}


/* =========================================================
   DESLIZA
   ========================================================= */

.night .scroll-indicator {
    z-index: 3;
}

.night .scroll-line {
    background: var(--color-white);
}

.night .scroll-label {
    color: var(--color-white);
}


/* =========================================================
   07 — DRESS CODE
   ========================================================= */

.dress-code {
    position: relative;

    min-height: 100vh;

    overflow: hidden;

    background:
        url("../assets/images/dress-code-bg.png") center center / cover no-repeat;
}


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

.dress-code-content {
    position: relative;
    z-index: 2;

    width: min(88%, 430px);
    min-height: 100vh;

    margin: 0 auto;

    box-sizing: border-box;

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

    text-align: center;
}


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

.dress-code-intro {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-top: 40vh;
}


/* =========================================================
   KICKER
   ========================================================= */

.dress-code-kicker {
    font-family: "Cormorant Garamond", serif;

    font-size: 1.7rem;
    font-weight: 400;

    letter-spacing: 0.08em;

    color: var(--color-chocolate);
}


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

.dress-code h2 {
    display: inline-block;

    margin: 22px 0 0;
    padding: 0.45rem 2.2rem 0.55rem;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(2.4rem, 9vw, 3.6rem);
    font-weight: 400;

    line-height: 1;

    letter-spacing: 0.04em;

    color: var(--color-chocolate);

    background: rgba(255, 255, 255, 0.28);

    border: 1px solid rgba(255, 255, 255, 0.8);

    border-radius: 999px;

    box-shadow:
        0 2px 10px rgba(90, 50, 55, 0.08);

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* =========================================================
   AJUSTE DESKTOP — DRESS CODE
   ========================================================= */

@media (min-width: 768px) {

    .dress-code-intro {
        transform: translateY(-4vh);
    }

}


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

.dress-code-ornament {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin: 24px 0 28px;
}

.dress-code-ornament span {
    width: 42px;
    height: 1px;

    background: var(--color-gold);
}

.dress-code-ornament i {
    font-style: normal;

    font-size: 1rem;

    color: var(--color-gold);
}


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

.dress-code-intro p {
    margin: 0;

    font-family: "Cormorant Garamond", serif;

    font-size: 1.7rem;
    font-weight: 400;

    letter-spacing: 0.12em;
    line-height: 1.55;

    color: var(--color-chocolate);
}

/* =========================================================
   08 — CONFIRMACIÓN
   ========================================================= */

.confirmation {
    position: relative;

    min-height: 100vh;

    overflow: hidden;

    background:
        url("../assets/images/confirmation-bg.png") center center / cover no-repeat;
}


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

.confirmation-content {
    position: relative;
    z-index: 2;

    width: min(88%, 430px);
    min-height: 100vh;

    margin: 0 auto;

    box-sizing: border-box;

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

    text-align: center;
}


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

.confirmation-intro {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-top: 58vh;
}

/* =========================================================
   AJUSTE DESKTOP — CONFIRMACIÓN
   ========================================================= */

@media (min-width: 768px) {

    .confirmation-intro {
        transform: translateY(-4vh);
    }

}


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

.confirmation h2 {
    margin: 0;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(2.1rem, 8vw, 3.4rem);
    font-weight: 400;

    line-height: 1.05;

    letter-spacing: 0.03em;

    color: var(--color-chocolate);
}


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

.confirmation-intro p {
    margin: 24px 0 28px;

    font-family: "Cormorant Garamond", serif;

    font-size: 1.55rem;
    font-style: italic;
    font-weight: 400;

    line-height: 1.45;

    color: var(--color-chocolate);
}


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

.confirmation-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    min-width: 250px;
    padding: 14px 24px;

    box-sizing: border-box;

    border-radius: 40px;

    background: var(--color-chocolate);

    color: var(--color-white);

    font-family: "Montserrat", sans-serif;

    font-size: 0.78rem;
    font-weight: 500;

    letter-spacing: 0.08em;

    text-decoration: none;

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

.confirmation-button span {
    font-size: 1.1rem;

    line-height: 1;
}

.confirmation-button:active {
    transform: scale(0.97);
}

.confirmation-button:hover {
    opacity: 0.9;
}


/* =========================================================
   DESLIZA
   ========================================================= */

.confirmation .scroll-indicator {
    z-index: 3;
}

.confirmation .scroll-line {
    background: var(--color-white);
}

.confirmation .scroll-label {
    color: var(--color-white);
}

/* =========================================================
   08 — GALERÍA
   ========================================================= */

.gallery {
    position: relative;
    min-height: auto;
    height: 100vh;
    overflow: hidden;

    background:
        url("../assets/images/gallery-bg.png") center center / cover no-repeat;
}


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

.gallery-content {
    position: relative;
    z-index: 2;

    width: min(88%, 430px);
    min-height: 100vh;

    margin: 0 auto;

    box-sizing: border-box;

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

    text-align: center;
}


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

.gallery-intro {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-top: 8vh;
}


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

.gallery-intro h2 {
    margin: 0;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(1.8rem, 6vw, 2.6rem);
    font-weight: 400;

    line-height: 1.15;

    letter-spacing: 0.08em;

    color: var(--color-chocolate);
}


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

.gallery-intro .confirmation-button {
    margin-top: 28px;
}

/* =========================================================
   09 — GALERÍA DE FOTOS
   ========================================================= */

.gallery-view {
    position: relative;

    min-height: 100vh;

    padding: 80px 0 60px;

    background: var(--color-ivory);

    overflow: hidden;
}


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

.gallery-view-content {
    width: min(90%, 430px);

    margin: 0 auto;

    text-align: center;
}


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

.gallery-view-intro {
    margin-bottom: 35px;
}

.gallery-view-kicker {
    display: block;

    font-family: "Cormorant Garamond", serif;

    font-size: 1rem;

    letter-spacing: 0.12em;

    color: var(--color-chocolate);
}

.gallery-view h2 {
    margin: 5px 0 0;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(2rem, 8vw, 3rem);

    font-weight: 400;

    line-height: 1.05;

    letter-spacing: 0.05em;

    color: var(--color-chocolate);
}


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

.gallery-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

    width: 100%;
}

.gallery-grid img {
    width: 100%;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    border-radius: 2px;

    display: block;
}


/* =========================================================
   VOLVER
   ========================================================= */

.gallery-back {
    display: inline-block;

    margin-top: 40px;

    font-family: "Montserrat", sans-serif;

    font-size: 0.72rem;

    letter-spacing: 0.12em;

    color: var(--color-chocolate);

    text-decoration: none;
}

/* =========================================================
   COMPARTIR MOMENTOS
   ========================================================= */

.gallery-upload {
    position: absolute;

    left: 50%;
    bottom: 90px;

    transform: translateX(-50%);

    width: 100%;
    padding: 0 20px;

    box-sizing: border-box;

    text-align: center;

    z-index: 5;
}


.gallery-upload-kicker {
    display: block;

    margin-bottom: 10px;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(1.8rem, 6vw, 2.6rem);

    font-weight: 400;

    line-height: 1.15;

    letter-spacing: 0.08em;

    color: var(--color-chocolate);
}


.gallery-upload p {
    max-width: 320px;

    margin: 0 auto 22px;

    font-family: "Montserrat", sans-serif;

    font-size: 0.75rem;

    line-height: 1.7;

    color: var(--color-chocolate);

    opacity: 0.8;
}


/* =========================================================
   GALERÍA — VISOR
   ========================================================= */

.gallery-modal {
    position: fixed;
    inset: 0;

    z-index: 9999;

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

    padding: 20px;

    box-sizing: border-box;

    background: rgba(41, 39, 42, 0.35);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.gallery-modal.is-open {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   VISOR
   ========================================================= */

.gallery-viewer {
    position: relative;

    width: min(88vw, 420px);
    height: min(78vh, 680px);

    overflow: hidden;

    border-radius: 4px;

    background: transparent;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.30);
}


/* =========================================================
   TRACK
   ========================================================= */

.gallery-track {
    display: flex;

    width: 100%;
    height: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

/* =========================================================
   CADA SLIDE
   ========================================================= */

.gallery-slide {
    position: relative;

    flex: 0 0 100%;

    width: 100%;
    height: 100%;

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

    overflow: hidden;

    scroll-snap-align: center;

    background: transparent;
}


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

.gallery-slide .gallery-bg {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter: blur(25px);

    transform: scale(1.08);

    opacity: 0.55;

    z-index: 0;

    pointer-events: none;
}


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

.gallery-slide .gallery-photo {
    position: relative;

    z-index: 1;

    /*
     * ESTE ES EL TAMAÑO MÁXIMO COMÚN
     */
    width: 88%;
    height: 78%;

    object-fit: contain;

    display: block;

    user-select: none;
    -webkit-user-drag: none;
}



/* =========================================================
   MARCO DE LA FOTO
   ========================================================= */

.gallery-photo-frame {
    position: relative;

    z-index: 1;

    width: 88%;
    max-width: 380px;

    aspect-ratio: 4 / 5;

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

    overflow: hidden;
}


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

.gallery-close {
    position: absolute;

    top: 18px;
    right: 18px;

    width: 40px;
    height: 40px;

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

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.90);

    color: var(--color-chocolate);

    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    z-index: 20;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.gallery-close:active {
    transform: scale(0.92);
}


/* =========================================================
   INDICADORES
   ========================================================= */

.gallery-indicators {
    position: absolute;

    bottom: 18px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 7px;

    z-index: 20;
}

.gallery-indicators span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.55);

    transition:
        width 0.25s ease,
        background 0.25s ease;
}

.gallery-indicators span.active {
    width: 18px;

    border-radius: 10px;

    background: var(--color-white);
}


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

@media (max-width: 600px) {

    .gallery-modal {
        padding: 16px;
    }

    .gallery-viewer {
        width: min(92vw, 390px);

        /*
         * IMPORTANTE:
         * NO usamos 100%.
         * El visor NO debe ocupar toda la pantalla.
         */
        height: min(78vh, 680px);

        border-radius: 4px;

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

    .gallery-photo-frame {
        width: 88%;

        aspect-ratio: 4 / 5;
    }

    .gallery-close {
        top: 16px;
        right: 16px;

        width: 38px;
        height: 38px;

        font-size: 24px;
    }

    .gallery-indicators {
        bottom: 18px;
    }
}

/* =========================================================
   10 — INSTAGRAM
   ========================================================= */

.instagram {
    position: relative;

    min-height: 100vh;

    overflow: hidden;

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

    background:
        url("../assets/images/gallery-bg.png") center center / cover no-repeat;
}


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

.instagram-content {
    position: relative;
    z-index: 2;

    height: 100%;

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

    text-align: center;

    justify-content: flex-start;

    padding-top: 42%;
    box-sizing: border-box;
}

.instagram-content h2 {
    margin: 0;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(2rem, 7vw, 3rem);

    font-weight: 400;

    letter-spacing: 0.08em;

    line-height: 1.1;

    color: var(--color-chocolate);
}

.instagram-content .confirmation-button {
    margin-top: 200px;
}


/* =========================================================
   ICONO
   ========================================================= */

.instagram-icon {
    width: 58px;
    height: 58px;

    margin-bottom: 26px;

    color: var(--color-chocolate);
}

.instagram-icon svg {
    width: 100%;
    height: 100%;

    display: block;
}

.instagram-icon span {
    transform: translateY(-1px);
}

/* =========================================================
   AJUSTE DESKTOP — INSTAGRAM
   ========================================================= */

@media (min-width: 768px) {

    .instagram-content {
        transform: translateY(-4vh);
    }

}


/* =========================================================
   KICKER
   ========================================================= */

.instagram-kicker {
    display: block;

    margin-bottom: 6px;

    font-family: "Cormorant Garamond", serif;

    font-size: 1.2rem;

    letter-spacing: 0.28em;

    color: var(--color-chocolate);
}


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

.instagram h2 {
    margin: 0;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(2.2rem, 9vw, 3.2rem);

    font-weight: 400;

    line-height: 1;

    letter-spacing: 0.08em;

    color: var(--color-chocolate);
}


/* =========================================================
   LINK
   ========================================================= */

.instagram-link {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 24px;

    margin-top: 38px;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(1.5rem, 6vw, 2rem);

    color: var(--color-chocolate);

    text-decoration: none;
}


/* =========================================================
   FLECHA
   ========================================================= */

.instagram-arrow {
    font-family: Arial, sans-serif;

    font-size: 2rem;

    line-height: 1;

    transition:
        transform 0.25s ease;
}

.instagram-link:hover .instagram-arrow {
    transform: translateX(6px);
}


/* =========================================================
   PÉTALOS
   ========================================================= */

.instagram .night-petals {
    pointer-events: none;
}

/* =========================================================
   CIERRE
   ========================================================= */

.closing {
    position: relative;

    width: 100%;
    height: 100vh;

    min-height: 700px;

    overflow: hidden;

    background: var(--color-chocolate);
}


/* =========================================================
   FOTO DE INGRID
   ========================================================= */

.closing-bg {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

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

    z-index: 0;
}

.closing-photo {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    z-index: 1;
}


/* =========================================================
   CAPA SUTIL
   ========================================================= */

.closing-overlay {
    position: absolute;

    inset: 0;

    z-index: 2;

    background:
        linear-gradient(to bottom,
            rgba(41, 39, 42, 0.05) 0%,
            rgba(41, 39, 42, 0.05) 45%,
            rgba(41, 39, 42, 0.30) 100%);
}


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

.closing-content {
    position: relative;

    z-index: 2;

    width: 100%;
    height: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: flex-end;

    box-sizing: border-box;

    padding:
        60px 24px 45px;
}


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

.closing-name {
    margin: 0;

    font-family: "Parisienne", cursive;

    font-size: clamp(3.2rem, 13vw, 6rem);

    font-weight: 400;

    line-height: 0.85;

    text-align: center;

    color: var(--color-white);

    text-shadow:
        0 2px 15px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   XV AÑOS
   ========================================================= */

.closing-kicker {
    display: block;

    margin-top: 20px;

    font-family: "Cormorant Garamond", serif;

    font-size: 1.55rem;

    letter-spacing: 0.38em;

    color: var(--color-white);
}

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

.closing-message {
    margin: 38px 0 0;

    padding: 14px 24px 16px;

    font-family: "Montserrat", sans-serif;

    font-size: 1.22rem;

    line-height: 1.65;

    letter-spacing: 0.16em;

    text-align: center;

    color: var(--color-white);

    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.20);

    background: rgba(255, 255, 255, 0.14);

    border: 1px solid rgba(255, 255, 255, 0.65);

    border-radius: 28px;

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    box-sizing: border-box;

    width: min(90%, 420px);
}

/* =========================================================
   LOGO
   ========================================================= */

.closing-logo {
    display: block;

    width: 72px;
    height: 72px;

    margin-top: 30px;

    object-fit: contain;
}

/* =========================================================
   MÚSICA GLOBAL
   ========================================================= */

.music-player {
    position: fixed;
    right: 18px;
    bottom: 18px;

    z-index: 9999;
}


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

.music-toggle {
    width: 46px;
    height: 46px;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;

    background: rgba(90, 58, 62, 0.78);

    color: #F4C4CE;

    font-family: Arial, sans-serif;
    font-size: 1.25rem;

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

    cursor: pointer;

    backdrop-filter: blur(6px);

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}


/* =========================================================
   EFECTO CUANDO LA MÚSICA ESTÁ ENCENDIDA
   ========================================================= */

.music-toggle.is-playing {
    border-color: rgba(244, 196, 206, 0.95);

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


/* =========================================================
   HALO ROSA
   ========================================================= */

@keyframes musicGlow {

    0% {
        box-shadow:
            0 0 0 0 rgba(244, 196, 206, 0.15),
            0 3px 12px rgba(0, 0, 0, 0.18);
    }

    50% {
        box-shadow:
            0 0 0 8px rgba(244, 196, 206, 0.08),
            0 0 22px rgba(244, 196, 206, 0.45);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(244, 196, 206, 0.15),
            0 3px 12px rgba(0, 0, 0, 0.18);
    }
}


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

.music-toggle:active {
    transform: scale(0.90);
}

/* =========================================================
           PORTADA DE APERTURA — INVITACIÓN
           Se muestra antes de la intro y sirve también como gesto
           del usuario para habilitar la música en móviles.
           ========================================================= */

body.invitation-locked {
    overflow: hidden;
}

body.invitation-locked main {
    visibility: hidden;
    opacity: 0;
}

#invitation-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f6e9e6;
    isolation: isolate;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

#invitation-gate::before {
    content: "";
    position: absolute;
    inset: -24px;
    z-index: -2;
    background:
        linear-gradient(to bottom,
            rgba(251, 248, 243, 0.22),
            rgba(181, 111, 125, 0.10)),
        url("../assets/images/openning-bg.png") center / cover no-repeat;
    filter: blur(15px);
    transform: scale(1.06);
}

#invitation-gate.is-opening::before {

    background:
        linear-gradient(to bottom,
            rgba(251, 248, 243, 0.18),
            rgba(181, 111, 125, 0.18)),
        url("../assets/images/intro-bg.png") center / cover no-repeat;

    filter: blur(18px);

    transform: scale(1.08);

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

#invitation-gate::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(251, 248, 243, 0.22);
}

.invitation-gate-content {
    width: min(92%, 520px);
    min-height: 100svh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8vh 20px;
}

.invitation-gate-mark {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    object-fit: contain;
    filter: drop-shadow(0 5px 12px rgba(90, 58, 62, 0.12));
}

.invitation-gate-name {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.2rem, 9vw, 3.7rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.06em;
    color: var(--color-rose);
}

.invitation-gate-xv {
    margin: 16px 0 34px;
    font-family: "Cormorant Garamond", serif;
    font-size: 1rem;
    letter-spacing: 0.38em;
    color: var(--color-gold);
}

.invitation-notification {
    position: relative;
    width: min(100%, 430px);
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    background: rgba(255, 247, 244, 0.78);
    box-shadow:
        0 18px 45px rgba(90, 58, 62, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.invitation-notification:active {
    transform: scale(0.975);
}

.notification-icon {
    position: relative;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(145deg, #e7a0a9, #c97884);
    box-shadow: 0 8px 18px rgba(181, 111, 125, 0.22);
    color: #fff;
}

.notification-icon::before {
    content: "";
    width: 30px;
    height: 21px;
    border: 2px solid rgba(255, 255, 255, 0.96);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.16);
    box-sizing: border-box;
}

.notification-icon::after {
    content: "♥";
    position: absolute;
    font-size: 12px;
    color: #d98591;
    line-height: 1;
}

.notification-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-gold);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
}

.notification-copy {
    min-width: 0;
}

.notification-kicker {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-body);
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: var(--color-rose);
}

.notification-name {
    display: block;
    margin-bottom: 2px;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-chocolate);
}

.notification-message {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: 1rem;
    line-height: 1.15;
    color: var(--color-chocolate);
}

.notification-time {
    align-self: start;
    padding-top: 2px;
    white-space: nowrap;
    font-family: var(--font-body);
    font-size: 0.68rem;
    color: rgba(90, 58, 62, 0.58);
}

.notification-arrow {
    position: absolute;
    right: 18px;
    bottom: 15px;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--color-rose);
}

.invitation-gate-hint {
    margin-top: 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.34em;
    color: var(--color-rose);
    text-shadow: 0 1px 7px rgba(90, 58, 62, 0.22);
}

.invitation-gate-ornament {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    color: var(--color-gold);
}

.invitation-gate-ornament::before,
.invitation-gate-ornament::after {
    content: "";
    width: 52px;
    height: 1px;
    background: currentColor;
}

.invitation-gate-ornament span {
    font-size: 0.9rem;
}

/* Apertura */
#invitation-gate.is-opening .invitation-notification {
    animation: invitation-open-card 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* =========================================================
   GATE OCULTO — DESPUÉS DE ABRIR
   ========================================================= */

#invitation-gate.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#invitation-gate.is-opening .invitation-gate-content {
    animation: invitation-gate-content-out 0.72s ease forwards;
}

#invitation-gate.is-open {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.invitation-open main {
    visibility: visible;
    opacity: 1;
    animation: invitation-intro-reveal 0.9s ease both;
}

@keyframes invitation-open-card {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }

    45% {
        transform: scale(1.04) translateY(-6px);
        opacity: 1;
    }

    100% {
        transform: scale(0.82) translateY(-38px);
        opacity: 0;
    }
}

@keyframes invitation-gate-content-out {
    to {
        transform: scale(1.035);
        opacity: 0;
    }
}

@keyframes invitation-intro-reveal {
    from {
        opacity: 0;
        transform: scale(1.012);
    }

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

@media (max-width: 420px) {
    .invitation-gate-content {
        padding-inline: 14px;
    }

    .invitation-notification {
        grid-template-columns: 58px 1fr auto;
        gap: 12px;
        padding: 16px;
        border-radius: 21px;
    }

    .notification-icon {
        width: 58px;
        height: 58px;
    }

    .notification-message {
        font-size: 0.94rem;
    }
}

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

    #invitation-gate,
    .invitation-notification,
    .invitation-gate-content,
    body.invitation-open main {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================================
   ANIMACIÓN DE APERTURA DE LA INVITACIÓN
   ========================================================= */

#invitation-gate.is-opening {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);

    transition:
        opacity 0.75s ease,
        visibility 0.75s ease,
        transform 0.9s ease;
}


/* =========================================================
   APARICIÓN DE LA INVITACIÓN PRINCIPAL
   ========================================================= */

body:not(.invitation-locked) main {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.8s ease;
}
