/* ════════════════════════════════════════════════════════
   BODA ELEGANT PREMIUM — Luz América & Mauricio
   Paleta: Verde Bosque #263B31 | Champagne #D8C5A3
            Dorado #B59A62 | Marfil #F7F4EC
   ════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --sand: #F7F4EC;         /* 🤍 Blanco marfil */
    --ink: #263B31;          /* 🌿 Verde bosque */
    --ink-soft: #354E42;     /* 🌿 Verde bosque intermedio */
    --white: #FFFFFF;        /* Blanco puro */
    --gold: #B59A62;         /* ✨ Dorado envejecido */
    --champagne: #D8C5A3;    /* 🥂 Champagne */
    --salvia: #9AA58B;       /* 🌱 Verde salvia */
    --oliva: #7C8368;        /* 🍃 Verde oliva suave */
    --madera: #8A6A4A;       /* 🪵 Madera natural */
    --taupe: #9B8D7C;        /* 🤎 Taupe */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--sand);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ══════════ OVERLAY (CAPAS PNG) ══════════ */
.wlc-overlay-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: var(--ink);
    transition: opacity .8s ease, visibility .8s;
    overflow: hidden;
}
.wlc-overlay-fullscreen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Capas de fondo dinámicas (transición de sobre) */
.wlc-bg-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.wlc-bg-layer img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1080px) {
    .wlc-bg-layer img {
        width: auto;
        height: 100%;
        aspect-ratio: 9 / 16;
        max-width: 100%;
        object-fit: cover;
        margin: 0 auto;
        display: block;
    }
}

.wlc-bg-b {
    z-index: 1;
}

.wlc-bg-a {
    z-index: 2;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.wlc-bg-a.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Contenedor central del floral/papel */
.wlc-floral-content {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Contenedor maestro del Papel y la Tarjeta */
.wlc-paper-envelope-wrapper {
    position: relative;
    max-width: clamp(280px, 94vw, 650px); /* 94vw en móvil para que sea más grande, 650px de tope en PC */
    max-height: 85vh;
    display: inline-block; /* Se ajusta exactamente al tamaño de la imagen interior */
    transition: opacity 0.8s ease;
}

.wlc-paper-envelope-wrapper.wlc-card-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.wlc-paper-envelope-wrapper.wlc-card-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Capa 1: Papel base */
.wlc-papel-base {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

/* Capa 2: Texto del invitado */
.wlc-guest-zone, #wlc-guest-info {
    position: absolute;
    inset: 0; /* Cubre exactamente toda el área gráfica del PAPELLAN.webp */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12% 10%; /* Relleno seguro para no pisar bordes del gráfico */
    color: var(--ink); /* Ajusta según color de papel */
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    transition: opacity 0.6s ease;
}

.wlc-guest-info-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.wlc-guest-info-show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: fadeInText 0.6s ease forwards;
}

.wlc-inv-label {
    font-family: var(--font-sans);
    font-size: clamp(0.6rem, 2vw, 0.8rem);
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 1rem;
}
.wlc-inv-name {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 4.5vw, 2.6rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    max-width: 86%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.wlc-inv-sub {
    font-family: var(--font-serif);
    font-size: clamp(0.85rem, 2.2vw, 1.15rem);
    font-style: italic;
    color: var(--ink);
    opacity: 0.85;
    margin-top: 0;
    margin-bottom: 1.2rem;
    line-height: 1.4;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}
.wlc-inv-passes {
    font-family: var(--font-sans);
    font-size: clamp(0.7rem, 2.5vw, 0.9rem);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
}
.passes-count {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
}

.btn-ver-mas {
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: clamp(0.6rem, 2vw, 0.75rem);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 14px 30px;
    border-radius: 4px;
    transition: all 0.4s ease;
}
.btn-ver-mas:hover {
    background: var(--ink-soft);
    transform: translateY(-2px);
}

/* Botón ABRIR INVITACION — Inicia 100% invisible para evitar parpadeos al cargar */
.btn-abrir-sobre {
    opacity: 0;
    pointer-events: none;
    margin-top: 80px;
    background: var(--ink);
    color: var(--sand);
    border: 1px solid rgba(216, 197, 163, 0.45);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 16px 44px;
    border-radius: 50px;
    box-shadow: 0 10px 28px rgba(24, 38, 31, 0.35), 0 0 15px rgba(181, 154, 98, 0.2);
    cursor: pointer;
    transition: opacity 0.6s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 15;
}

.btn-abrir-sobre.loading {
    opacity: 0 !important;
    pointer-events: none !important;
}

.btn-abrir-sobre.ready {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.btn-abrir-sobre:hover {
    background: var(--ink-soft);
    color: #FFFFFF;
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(24, 38, 31, 0.45), 0 0 22px rgba(181, 154, 98, 0.35);
}

.btn-abrir-sobre.fade-out {
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.btn-abrir-sobre.hidden {
    display: none;
}

@keyframes fadeInText {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ══════════ MUSIC ══════════ */
.music-btn-watercolor {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.music-btn-watercolor.visible {
    opacity: 1;
    pointer-events: auto;
}

.music-btn-watercolor svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
}

.music-btn-watercolor .icon-pause {
    display: none;
}

.music-btn-watercolor.playing .icon-play {
    display: none;
}

.music-btn-watercolor.playing .icon-pause {
    display: block;
}

/* ══════════ HERO ══════════ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--sand);
    overflow: hidden;
    padding: 0 8% 0;
}

.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 35px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.hero-ml {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    letter-spacing: 4px;
    font-weight: 300;
}


.hero-content {
    position: relative;
    z-index: 5;
}

.hero-names {
    font-family: var(--font-serif);
    font-weight: 300;
    color: var(--ink);
    font-size: clamp(5.5rem, 16vw, 11rem);
    line-height: 1.05;
}

.hero-names .ampersand {
    font-style: italic;
    font-size: clamp(3rem, 9vw, 5.5rem);
    display: inline-block;
    margin: 0 0 0 clamp(30px, 5vw, 60px);
    opacity: 0.7;
}

.hero-date {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: 12px;
    margin-top: 35px;
    font-weight: 400;
}

.flor-portada {
    position: absolute;
    top: -8%;
    right: -8%;
    width: 55%;
    max-width: 550px;
    z-index: 2;
    pointer-events: none;
}

/* ══════════ SECTION WAVE SHAPES ══════════ */
.wave-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-top: -1px;
    z-index: 3;
}

.wave-divider svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ══════════ PHOTO B&W ══════════ */
.photo-fullwidth {
    position: relative;
    z-index: 1;
    /* Los márgenes negativos permiten que las ondas se superpongan a la foto */
    margin-top: -100px;
    margin-bottom: -100px;
}

/*
 * CÁLCULO DE ALTURA:
 * Las ondas superiores + inferiores + márgenes negativos consumen ~400px de la foto.
 * Para mostrar ~350-700px de la pareja, la foto necesita al menos 750px de altura total.
 * clamp(750px, 85vh, 1100px) garantiza el mínimo incluso en pantallas de poca altura.
 */
.photo-fullwidth img {
    width: 100%;
    height: clamp(750px, 85vh, 1100px);
    object-fit: cover;
    /* 35% desde arriba → encuadra cabezas y torsos de la pareja */
    object-position: center 2%;
    display: block;
}

/* ── <picture> debe ser block para que object-position funcione correctamente ── */
.photo-fullwidth picture {
    display: block;
    width: 100%;
    line-height: 0;
}

/* ── Móvil: la imagen portrait (fotonegro2.webp) no necesita tanta altura ── */
@media (max-width: 768px) {
    .photo-fullwidth img {
        height: 65vh;
        object-position: center 25%;
    }
}

/* ══════════ HISTORIA ══════════ */
.historia-section {
    position: relative;
    background: var(--ink);
    color: var(--white);
    padding: clamp(80px, 12vw, 180px) 8%;
    overflow: hidden;
}

.historia-inner {
    position: relative;
    z-index: 5;
    max-width: 420px;
}

.historia-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.25;
    margin-bottom: 35px;
}

.historia-text {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.85;
    font-weight: 300;
    opacity: 0.75;
    margin-bottom: 45px;
}

button.btn-elegant,
.btn-elegant {
    display: inline-block;
    padding: 14px 40px;
    background: transparent;
    border: 1px solid rgba(247, 246, 244, 0.45);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    border-radius: 0;
    outline: none;
    line-height: 1.4;
}

button.btn-elegant:hover,
.btn-elegant:hover {
    background: var(--white);
    color: var(--ink);
    border-color: var(--white);
}

button.btn-elegant:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.subir-section {
    text-align: center;
}

/* Versículo Bíblico */
.versiculo-biblico {
    border-left: 2px solid var(--champagne);
    padding-left: 25px;
    margin-top: 10px;
}

.versiculo-text {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.7;
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 12px;
}

.versiculo-cita {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-style: normal;
    opacity: 0.7;
    color: var(--champagne);
}

.flor-lateral {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    width: auto;
    max-width: 45%;
    opacity: 0.85;
    z-index: 1;
    pointer-events: none;
    object-fit: contain;
    object-position: right bottom;
}

/* ══════════ CEREMONIA & RECEPCION (1 SECCION) ══════════ */
.eventos-section {
    position: relative;
    background: var(--sand);
    overflow: hidden;
    padding: clamp(80px, 12vw, 160px) 8% clamp(80px, 12vw, 160px);
}

.eventos-header {
    text-align: center;
    margin-bottom: clamp(50px, 8vw, 100px);
}

.eventos-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.eventos-header .deco-line {
    width: 60px;
    height: 1px;
    background: var(--ink);
    opacity: 0.25;
    margin: 20px auto 0;
}

.eventos-cols {
    display: flex;
    justify-content: center;
    gap: clamp(40px, 8vw, 120px);
    position: relative;
    z-index: 5;
}

.evento-col {
    text-align: center;
    flex: 0 1 280px;
}

.evento-lottie-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto 25px;
    opacity: 0.7;
}

.evento-name {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.6;
}

.evento-time {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.evento-lugar {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    line-height: 1.7;
    opacity: 0.7;
    font-weight: 300;
    margin-bottom: 20px;
}

.btn-ubicacion {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid rgba(38, 59, 49, 0.3);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    text-decoration: none;
    border-radius: 2px;
}

.btn-ubicacion:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--sand);
}

/* Bloque compartido de ubicación única y mensaje romántico */
.eventos-shared-box {
    max-width: 680px;
    margin: 45px auto 0;
    text-align: center;
    position: relative;
    z-index: 5;
    padding: 0 20px;
}

.eventos-romantic-msg {
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-style: italic;
    color: var(--ink);
    line-height: 1.7;
    margin-bottom: 16px;
    opacity: 0.95;
    font-weight: 400;
}

.eventos-address-text {
    font-family: var(--font-sans);
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    letter-spacing: 1.5px;
    color: var(--ink);
    opacity: 0.8;
    margin-bottom: 25px;
    font-weight: 400;
    line-height: 1.6;
}

.btn-ubicacion-single {
    display: inline-block;
    padding: 12px 36px;
    font-size: 0.75rem;
    letter-spacing: 3px;
}

.iglesia-sketch {
    position: absolute;
    right: -3%;
    top: 50%;
    transform: translateY(-50%);
    height: 90%;
    width: auto;
    max-width: 45%;
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
}

/* ══════════ CONTADOR ══════════ */
.contador-section {
    position: relative;
    background: var(--ink);
    color: var(--white);
    padding: clamp(100px, 15vw, 200px) 8%;
    text-align: center;
}

.contador-label-top {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2vw, 1.4rem);
    letter-spacing: 12px;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 50px;
}

.contador-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 3vw, 35px);
    flex-wrap: nowrap;
}

.cnt-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.cnt-num {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 7vw, 5rem);
    font-weight: 300;
    line-height: 1;
}

.cnt-unit {
    font-family: var(--font-sans);
    font-size: clamp(0.45rem, 1.2vw, 0.65rem);
    letter-spacing: clamp(1px, 0.5vw, 4px);
    text-transform: uppercase;
    opacity: 0.4;
    margin-top: 8px;
}

.cnt-sep {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 5vw, 3.5rem);
    opacity: 0.25;
    margin-top: -20px;
}

/* ══════════ PADRES ══════════ */
.padres-section {
    position: relative;
    background: var(--sand);
    padding: clamp(80px, 12vw, 160px) 8%;
    text-align: center;
}

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-heading-line {
    width: 60px;
    height: 1px;
    background: currentColor;
    opacity: 0.2;
    margin: 0 auto 60px;
}

.personas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(40px, 6vw, 80px);
}

.persona-card {
    flex: 0 1 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.persona-lottie {
    width: 140px;
    height: 140px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.persona-role {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 12px;
}

.persona-name {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.5;
}

/* Mobile responsive for padres and corte de honor to avoid vertical stacking */
@media (max-width: 768px) {
    .personas-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 10px;
    }

    .persona-card {
        flex: auto;
        width: 100%;
    }

    .persona-lottie {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }

    .persona-role {
        font-size: 0.6rem;
        letter-spacing: 2px;
        margin-bottom: 8px;
    }

    .persona-name {
        font-size: 1.15rem;
    }

    /* Corte de Honor: single column on mobile so names don't get cut */
    #padrinos .personas-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding: 0 20px;
    }

    #padrinos .persona-card {
        flex: auto;
        width: 100%;
        max-width: 320px;
    }
}

/* Ampersand separator line between couple names */
.ampersand-line {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 1.1em;
    opacity: 0.5;
    letter-spacing: 2px;
    margin: 2px 0;
}

/* ══════════ CORTE ══════════ */
.corte-section {
    position: relative;
    background: var(--ink);
    color: var(--white);
    padding: clamp(80px, 12vw, 160px) 8%;
    text-align: center;
}

/* ══════════ CRONOGRAMA ══════════ */
.cronograma-section {
    position: relative;
    background: var(--sand);
    padding: clamp(80px, 12vw, 160px) 8%;
}

.timeline-elegant {
    max-width: 550px;
    margin: 60px auto 0;
    position: relative;
    padding-left: 40px;
}

.timeline-elegant::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), var(--salvia), var(--gold));
    opacity: 0.4;
}

.tl-item {
    position: relative;
    margin-bottom: 45px;
    padding-left: 30px;
}

.tl-dot {
    position: absolute;
    left: -55px;
    top: -10px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border: 1px solid var(--salvia);
    box-shadow: 0 6px 18px rgba(38, 59, 49, 0.08);
}

.tl-lottie {
    width: 64px;
    height: 64px;
}

.tl-time {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--oliva);
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

.tl-name {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--ink);
    font-weight: 400;
    letter-spacing: 1px;
}

/* ══════════ GALERIA SLIDER ══════════ */
.galeria-section {
    position: relative;
    background: var(--ink);
    color: var(--white);
    padding: clamp(80px, 12vw, 160px) 0;
    overflow: hidden;
}

.galeria-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 15px;
}

.galeria-line {
    width: 60px;
    height: 1px;
    background: var(--white);
    opacity: 0.2;
    margin: 0 auto 50px;
}

/* ══════════ COLLAGE "NUESTRA HISTORIA" ══════════ */
.historia-collage {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: minmax(120px, auto);
    gap: 15px;
    padding: 20px;
    max-width: 1100px;
    margin: 40px auto;
    align-items: center;
}

.collage-item {
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.collage-text-block {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
    background: linear-gradient(145deg, var(--ink-soft), var(--ink));
    color: var(--white);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(20, 32, 26, 0.45);
    border: 1px solid rgba(216, 197, 163, 0.25);
    z-index: 2;
    transform: rotate(-2deg);
}

.collage-text-block p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #F7F4EC;
    opacity: 0.9;
}

.collage-year {
    font-family: var(--font-serif);
    font-size: 3rem;
    letter-spacing: 3px;
    color: var(--champagne);
    margin: 0;
}

.collage-img {
    cursor: pointer;
}

.collage-img .img-frame {
    background: #ffffff;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    width: 100%;
    transition: box-shadow 0.4s ease;
}

.collage-img img {
    width: 100%;
    height: auto;
    display: block;
    /* Tono Champagne cálido de la paleta (#D8C5A3) en reposo */
    filter: grayscale(100%) sepia(35%) contrast(1.1) brightness(0.98);
    transition: filter 0.6s ease;
}

/* Interacción de Clic: Color y Realce sutil (mantiene rotación y posición exacta) */
.collage-img.color-active {
    z-index: 20;
}

.collage-img.color-active .img-frame {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

.collage-img.color-active img {
    filter: none;
}

/* Posicionamiento Desordenado */
.img-main {
    grid-column: 4 / 6;
    grid-row: 1 / 4;
    transform: rotate(4deg);
    margin-top: 20px;
}

.img-landscape {
    grid-column: 1 / 3;
    grid-row: 3 / 5;
    transform: rotate(-5deg);
    margin-top: -20px;
    z-index: 3;
}

.img-square {
    grid-column: 3 / 5;
    grid-row: 3 / 6;
    transform: rotate(2deg);
    margin-left: -15px;
    margin-top: 10px;
}

.img-portrait {
    grid-column: 1 / 3;
    grid-row: 5 / 8;
    transform: rotate(3deg);
    margin-right: -10px;
    margin-top: -15px;
    z-index: 4;
}

.img-extra {
    grid-column: 4 / 6;
    grid-row: 5 / 7;
    transform: rotate(-4deg);
    margin-left: -20px;
    margin-top: 30px;
    z-index: 2;
}

.collage-title-block {
    grid-column: 1 / -1;
    grid-row: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 30px;
    transform: none;
    position: relative;
    z-index: 10;
}

.script-text {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3.6rem, 5vw, 4.8rem);
    transform: none;
    z-index: 2;
    color: var(--champagne);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.55);
    line-height: 1.05;
    margin-bottom: -5px;
}

.serif-text {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3vw, 2.6rem);
    letter-spacing: 8px;
    z-index: 1;
    color: var(--white);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.55);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .historia-collage {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
        align-items: center;
    }

    .collage-text-block {
        grid-column: 1 / 3;
        grid-row: auto;
        padding: 30px 20px;
        transform: rotate(-1deg);
    }

    .img-main {
        grid-column: 1 / 3;
        grid-row: auto;
        transform: rotate(2deg);
        margin-top: 10px;
    }

    .img-landscape {
        grid-column: 1 / 3;
        grid-row: auto;
        transform: rotate(-3deg);
        margin-top: 0;
        z-index: 3;
    }

    .img-square {
        grid-column: 1 / 3;
        grid-row: auto;
        transform: rotate(1deg);
    }

    .img-portrait {
        grid-column: 1 / 3;
        grid-row: auto;
        transform: rotate(-2deg);
        margin: 0;
        z-index: 4;
    }

    .img-extra {
        grid-column: 1 / 3;
        grid-row: auto;
        transform: rotate(3deg);
        margin-top: 15px;
    }

    .collage-title-block {
        grid-column: 1 / 3;
        grid-row: auto;
        transform: none;
        padding-top: 20px;
    }

    .script-text {
        font-size: 3.5rem;
        transform: none;
    }

    .serif-text {
        font-size: 2rem;
        letter-spacing: 4px;
    }
}

.carousel-hint {
    text-align: center;
    margin-top: 25px;
    padding: 0 8%;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.35;
}

/* ══════════ LIGHTBOX MODAL (NUESTRA HISTORIA) ══════════ */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

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

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 28, 23, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 86vw;
    max-height: 85vh;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: lightboxPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxPop {
    from {
        transform: scale(0.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 86vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid var(--gold);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(181, 154, 98, 0.35);
    display: block;
    transition: opacity 0.25s ease;
}

.lightbox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    z-index: 25;
    background: rgba(38, 59, 49, 0.95);
    border: 1.5px solid var(--gold);
    color: var(--champagne);
    font-size: 1.8rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    transition: background 0.25s, transform 0.25s, color 0.25s;
}

.lightbox-close:hover {
    background: var(--gold);
    color: var(--ink);
    transform: scale(1.12) rotate(90deg);
}

.lightbox-counter {
    position: absolute;
    bottom: -34px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--champagne);
    background: rgba(38, 59, 49, 0.9);
    padding: 3px 14px;
    border-radius: 20px;
    border: 1px solid rgba(181, 154, 98, 0.4);
    pointer-events: none;
    white-space: nowrap;
}

.lightbox-nav {
    position: relative;
    z-index: 15;
    background: rgba(38, 59, 49, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid rgba(181, 154, 98, 0.45);
    color: var(--champagne);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s, border-color 0.25s, color 0.25s;
    flex-shrink: 0;
    margin: 0 16px;
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.lightbox-nav:hover {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 92vw;
        max-height: 80vh;
    }

    .lightbox-content img {
        max-width: 92vw;
        max-height: 75vh;
    }

    .lightbox-close {
        top: 8px;
        right: 8px;
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }

    .lightbox-nav {
        width: 38px;
        height: 38px;
        margin: 0 4px;
    }

    .lightbox-nav svg {
        width: 18px;
        height: 18px;
    }

    .lightbox-counter {
        bottom: -28px;
        font-size: 0.75rem;
    }
}

/* ══════════ LLUVIA SOBRES ══════════ */
.regalo-section {
    position: relative;
    background: var(--sand);
    padding: clamp(80px, 12vw, 160px) 8%;
    text-align: center;
}

.regalo-card {
    max-width: 450px;
    margin: 50px auto 0;
    padding: 50px 35px;
    background: #FFFFFF;
    border: 1px solid rgba(181, 154, 98, 0.3);
    border-radius: 14px;
    box-shadow: 0 15px 45px rgba(38, 59, 49, 0.08);
}

.regalo-text {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 1.85;
    font-weight: 300;
    opacity: 0.8;
    margin-bottom: 35px;
    text-align: justify;
}

.qr-box {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    padding: 12px;
    border: 1px solid rgba(181, 154, 98, 0.4);
    border-radius: 8px;
    background: #FFFFFF;
}

.qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btn-dark {
    display: inline-block;
    padding: 14px 30px;
    background: var(--ink);
    color: var(--sand);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-dark:hover {
    background: var(--gold);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Datos de Cuenta Bancaria en Lluvia de Sobres */
.datos-cuenta-bancaria {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px dashed rgba(181, 154, 98, 0.4);
    text-align: center;
}

.cuenta-item {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cuenta-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0.6;
}

.cuenta-valor {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--ink);
    font-weight: 600;
    letter-spacing: 1px;
}

.cuenta-acc-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.btn-copiar-cuenta {
    background: transparent;
    border: 1px solid rgba(38, 59, 49, 0.35);
    color: var(--ink);
    padding: 4px 14px;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copiar-cuenta:hover {
    background: var(--ink);
    color: var(--sand);
    border-color: var(--ink);
}

/* ══════════ SUBIR FOTO ══════════ */
.subir-section {
    position: relative;
    background: var(--ink);
    color: var(--white);
    padding: clamp(80px, 12vw, 160px) 8%;
    text-align: center;
}

.subir-lottie {
    width: 140px;
    height: 140px;
    margin: 0 auto 30px;
    opacity: 0.7;
}

/* ══════════ RSVP ══════════ */
.rsvp-section {
    position: relative;
    background: var(--sand);
    padding: clamp(80px, 12vw, 160px) 8% clamp(60px, 8vw, 100px);
    overflow: hidden;
}

.rsvp-inner {
    max-width: 480px;
    position: relative;
    z-index: 5;
}

.rsvp-inner .section-heading {
    text-align: left;
}

.rsvp-inner .section-heading-line {
    margin: 0 0 15px 0;
}

.rsvp-subtitle {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    opacity: 0.6;
    margin-bottom: 50px;
}

.form-elegant {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.f-group {
    position: relative;
    padding-top: 8px;
}

.f-group label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--taupe);
    opacity: 0.9;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.f-group input,
.f-group select,
.f-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(38, 59, 49, 0.25);
    padding: 10px 0;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.3s;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

.f-group textarea {
    resize: vertical;
    min-height: 75px;
    line-height: 1.5;
}

.f-group input::placeholder,
.f-group textarea::placeholder {
    color: var(--taupe);
    opacity: 0.6;
    font-style: italic;
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.f-group input:focus,
.f-group select:focus,
.f-group textarea:focus {
    border-bottom-color: var(--gold);
}

.btn-submit {
    display: inline-block;
    background: var(--ink);
    color: var(--sand);
    border: none;
    padding: 18px 0;
    width: 100%;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 15px;
    transition: all 0.4s ease;
    cursor: pointer;
    border-radius: 4px;
}

.btn-submit:hover {
    background: var(--gold);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(38, 59, 49, 0.15);
}

.flor-rsvp {
    position: absolute;
    bottom: -5%;
    right: -5%;
    width: 55%;
    max-width: 550px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
}

/* ══════════ FOOTER ══════════ */
.footer-section {
    background: var(--ink);
    color: var(--white);
    padding: 80px 8%;
    text-align: center;
}

.footer-small {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.4;
    margin-bottom: 20px;
}

.footer-names {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-style: italic;
    font-weight: 300;
}

/* ══════════ SCROLL REVEAL ══════════ */
.reveal-left,
.reveal-right,
.reveal-bottom,
.reveal-scale,
.scroll-reveal {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-bottom {
    transform: translateY(50px);
}

.reveal-scale {
    transform: scale(0.8);
}

.scroll-reveal {
    transform: translateY(40px);
}

.is-visible.reveal-left,
.is-visible.reveal-right,
.is-visible.reveal-bottom,
.is-visible.scroll-reveal {
    opacity: 1;
    transform: translate(0);
}

.is-visible.reveal-scale {
    opacity: 1;
    transform: scale(1);
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 768px) {
    .iglesia-eventos-right {
        width: 55%;
        opacity: 0.3;
        /* Ligeramente más transparente para compensar el tamaño */
    }

    .flor-contador {
        width: 40%;
        opacity: 0.4;
    }

    .recepcion-cronograma-right {
        width: 55%;
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 25px 6%;
    }

    .flor-portada {
        width: 75%;
        right: -12%;
        top: -3%;
    }

    .historia-section {
        padding: clamp(60px, 10vw, 120px) 6%;
    }

    .flor-lateral {
        max-width: 70%;
        opacity: 0.5;
    }

    .eventos-cols {
        flex-direction: column;
        gap: 50px;
    }

    .iglesia-sketch {
        height: 60%;
        opacity: 0.08;
        right: -5%;
    }

    .flor-rsvp {
        width: 75%;
        right: -10%;
        opacity: 0.4;
    }
}


@media (max-width: 480px) {
    .flor-portada {
        width: 90%;
        right: -15%;
    }

    .iglesia-sketch {
        display: none;
    }
}


/* ══════════ SINGLE SVG SECTIONS ══════════ */
.single-svg-section {
    position: relative;
    background: transparent !important;
    z-index: 1;
}

.single-svg-section .bg-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.single-svg-section>*:not(.bg-shape) {
    position: relative;
    z-index: 1;
}



/* ══════════ HERO & PHOTO ══════════ */
.hero-section {
    position: relative;
    min-height: 90vh;
    padding: 0 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 5;
    margin-top: -10vh;
}

.hero-names {
    font-family: var(--font-serif);
    font-weight: 300;
    color: var(--ink);
    font-size: clamp(5.5rem, 16vw, 11rem);
    line-height: 1.1;
}

.hero-names .ampersand {
    font-style: italic;
    font-size: clamp(3.5rem, 9vw, 6rem);
    display: inline-block;
    margin: 10px 0 10px 40px;
    opacity: 0.7;
}

.hero-date {
    font-family: var(--font-sans);
    font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    letter-spacing: 10px;
    margin-top: 35px;
    font-weight: 400;
}

.flor-portada {
    position: absolute;
    top: 5%;
    right: 0;
    width: 50%;
    max-width: 550px;
    z-index: 2;
    pointer-events: none;
}

/* .photo-fullwidth → regla principal consolidada arriba (línea ~112) */

@media (max-width: 768px) {
    .flor-portada {
        width: 80%;
        top: 2%;
        right: -10%;
    }
}

/* ══════════ PAPER LAYER TRANSITIONS ══════════ */
.paper-layer {
    position: relative;
    z-index: var(--z);
    background-color: var(--bg-color) !important;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.15));
    overflow: visible !important;
    will-change: transform;
    transform: translateZ(0);
}

/* If a section has both top and bottom waves, we need a shadow pointing up too */
.paper-layer:has(.wave-top) {
    filter: drop-shadow(0 -15px 15px rgba(0, 0, 0, 0.2)) drop-shadow(0 15px 15px rgba(0, 0, 0, 0.15));
}

.paper-layer .wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(60px, 8vw, 120px);
    transform: translateY(98%);
    fill: var(--bg-color);
    pointer-events: none;
    z-index: 1;
}

.paper-layer .wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: clamp(60px, 8vw, 120px);
    transform: translateY(-98%);
    fill: var(--bg-color);
    pointer-events: none;
    z-index: 1;
}

/* .photo-layer ya no es necesario; los márgenes negativos están en .photo-fullwidth */

/* Fix body so no horizontal scroll from waves */
body {
    overflow-x: hidden;
}


.iglesia-cronograma-left {
    position: absolute;
    bottom: 5%;
    left: -5%;
    width: 35%;
    max-width: 400px;
    z-index: 2;
    pointer-events: none;
    opacity: 1;
    /* Removed opacity */
}

.flor-cronograma-right {
    position: absolute;
    top: 5%;
    right: -5%;
    width: 30%;
    max-width: 350px;
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 768px) {
    .iglesia-cronograma-left {
        width: 60%;
        bottom: 2%;
        left: -10%;
    }

    .flor-cronograma-right {
        width: 50%;
        top: 2%;
        right: -10%;
    }
}


/* ══════════ POSITIONING TWEAKS ══════════ */
.iglesia-eventos-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 25%;
    max-width: 350px;
    height: 90%;
    /* Toma hasta el 90% del alto de la sección */
    max-height: 600px;
    object-fit: contain;
    /* Nunca se recorta */
    object-position: left center;
    /* Pegada a la izquierda */
    z-index: 2;
    pointer-events: none;
}

.flor-contador {
    position: absolute;
    top: 60%;
    transform: translateY(-90%);
    right: 0;
    width: 50%;
    max-width: 600px;
    height: 90%;
    object-fit: contain;
    object-position: right center;
    /* Pegada a la derecha */
    z-index: 2;
    pointer-events: none;
}

.recepcion-cronograma-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 25%;
    max-width: 350px;
    height: 90%;
    object-fit: contain;
    object-position: right center;
    /* Pegada a la derecha */
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 768px) {
    .iglesia-eventos-right {
        width: 45%;
        opacity: 0.4;
    }

    .flor-contador {
        width: 65%;
        opacity: 0.5;
    }

    .recepcion-cronograma-right {
        width: 45%;
        opacity: 0.4;
    }
}


/* ══════════ FLOWER ANIMATIONS (GENTLE BREEZE) ══════════ */
@keyframes swayPortada {

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

    50% {
        transform: rotate(2deg);
    }
}

@keyframes swayContador {

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

    50% {
        transform: translateY(-50%) rotate(3deg);
    }
}

@keyframes swayRsvp {

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

    50% {
        transform: rotate(-2.5deg);
    }
}

.flor-portada {
    transform-origin: bottom center;
    animation: swayPortada 6s ease-in-out infinite;
    will-change: transform;
}

.flor-contador {
    transform-origin: bottom center;
    animation: swayContador 7.5s ease-in-out infinite;
    will-change: transform;
}

.flor-rsvp {
    transform-origin: bottom center;
    animation: swayRsvp 8s ease-in-out infinite;
    will-change: transform;
}

/* ══════════ DRESS CODE (CÓDIGO DE VESTIMENTA) ══════════ */
.dresscode-section {
    position: relative;
    background: var(--sand);
    padding: clamp(80px, 12vw, 150px) 8%;
    text-align: center;
    overflow: hidden;
}

.dresscode-card {
    max-width: 680px;
    margin: 40px auto 0;
    background: #FFFFFF;
    border: 1px solid rgba(181, 154, 98, 0.35);
    border-radius: 18px;
    padding: 45px 30px;
    box-shadow: 0 15px 40px rgba(38, 59, 49, 0.08);
    position: relative;
    z-index: 5;
}

.dresscode-badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--ink);
    background: rgba(216, 197, 163, 0.35);
    padding: 8px 22px;
    border-radius: 30px;
    margin-bottom: 18px;
}

.dresscode-type {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--ink);
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.dresscode-desc {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--taupe);
    line-height: 1.8;
    margin-bottom: 25px;
}

.dresscode-rules {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 25px;
}

.dresscode-rule-box {
    flex: 1 1 260px;
    background: var(--sand);
    border-radius: 12px;
    padding: 22px 18px;
    border: 1px dashed rgba(181, 154, 98, 0.45);
    text-align: center;
}

.dresscode-rule-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.dresscode-rule-text {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--ink-soft);
    line-height: 1.6;
}

.palette-swatches {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    position: relative;
}

.swatch-avoid {
    position: relative;
}

.swatch-avoid::after {
    content: "✕";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--madera);
    font-size: 15px;
    font-weight: bold;
}

.swatch-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--taupe);
}

/* ==========================================================================
   DRESS CODE — ESTILO EDITORIAL (como pedido13, paleta pedido14)
   ========================================================================== */

.dress-code-showroom {
    padding: 60px 20px 80px;
    position: relative;
    overflow: visible;
}

.editorial-frame {
    position: relative;
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

/* Líneas doradas verticales izquierda y derecha */
.editorial-frame::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12%;
    bottom: 12%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(181, 154, 98, 0.45), transparent);
}

.editorial-frame::after {
    content: "";
    position: absolute;
    right: 0;
    top: 12%;
    bottom: 12%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(181, 154, 98, 0.45), transparent);
}

.dress-title {
    font-family: var(--font-serif), serif;
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 4px;
    margin: 0 0 10px;
    color: var(--ink);
    line-height: 1.1;
}

.dress-subtitle-formal {
    font-family: var(--font-sans), sans-serif;
    font-size: 0.72rem;
    letter-spacing: 4px;
    color: var(--madera);
    text-transform: uppercase;
    margin-top: -0.3rem;
    margin-bottom: 1rem;
}

.dress-quote {
    font-family: var(--font-serif), serif;
    font-style: italic;
    margin: 0 auto 12px auto;
    opacity: 0.85;
    font-size: clamp(0.78rem, 1.05vw, 0.9rem);
    letter-spacing: 0.4px;
    padding: 0 15px;
    color: var(--taupe);
    line-height: 1.55;
}

.dress-icon-sello {
    width: clamp(130px, 22vw, 200px);
    height: auto;
    margin: 12px auto 30px;
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 0;
    filter: drop-shadow(0 6px 16px rgba(181, 154, 98, 0.3));
    display: block;
}

.info-minimal-row {
    display: flex;
    flex-direction: row;
    gap: 24px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.info-minimal-row--centered {
    justify-content: center;
}

.info-minimal-row--centered .info-block {
    max-width: 340px;
    width: 100%;
    text-align: center;
}

.dress-code-showroom .info-block {
    flex: 1 1 0;
    background: rgba(247, 244, 236, 0.85);
    border: 1px solid rgba(181, 154, 98, 0.35);
    border-radius: 6px;
    padding: 22px 24px;
    text-align: left;
    position: relative;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(38, 59, 49, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dress-code-showroom .info-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(38, 59, 49, 0.1);
}

.dress-code-showroom .info-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--champagne, #D8C5A3), var(--gold, #B59A62));
    border-radius: 6px 0 0 6px;
}

.dress-code-showroom .info-block h4 {
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--gold);
    text-transform: uppercase;
    margin: 0 0 10px;
    font-family: var(--font-sans), sans-serif;
    font-weight: 600;
}

.dress-code-showroom .info-block p {
    font-family: var(--font-serif), serif;
    font-size: clamp(0.78rem, 1.1vw, 0.94rem);
    line-height: 1.65;
    margin: 0;
    color: var(--ink);
}

/* Tarjeta destacada: Solo Adultos */
.adults-only-card {
    width: 100%;
    max-width: 500px;
    margin: 24px auto 0 auto;
    padding: clamp(14px, 2.5vw, 20px) clamp(16px, 3.2vw, 26px);
    background: rgba(247, 244, 236, 0.9);
    border: 1.5px solid rgba(181, 154, 98, 0.4);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(38, 59, 49, 0.07), inset 0 0 10px rgba(181, 154, 98, 0.06);
    text-align: center;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
}

.bebe-icon-img {
    display: block;
    width: 85px;
    height: auto;
    margin: 0 auto 1rem;
    opacity: 0.85;
}

.adults-message {
    font-family: var(--font-sans), sans-serif;
    font-size: 0.84rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--oliva);
    letter-spacing: 0.3px;
}

.adults-message strong {
    font-weight: 600;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

@media (max-width: 680px) {
    .info-minimal-row {
        flex-direction: column;
        gap: 16px;
    }

    .editorial-frame {
        padding: 30px 15px;
    }
}

/* ==========================================================================
   PORTADA — Sección cover fullscreen (reemplaza hero anterior)
   ========================================================================== */

.cover {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Foto */
.cover__picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cover__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    animation: coverFadeIn 1.4s ease forwards;
}

@media (max-width: 768px) {
    .cover__photo {
        object-position: 60% top;
    }
}

@keyframes coverFadeIn {
    from { opacity: 0; transform: scale(1.03); }
    to   { opacity: 1; transform: scale(1); }
}

/* Viñeta / gradiente oscuro */
.cover__vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.72) 0%,
            rgba(0,0,0,0.18) 45%,
            rgba(0,0,0,0.0)  65%,
            rgba(0,0,0,0.15) 100%
        );
    z-index: 2;
}

@media (max-width: 768px) {
    .cover__vignette {
        background:
            linear-gradient(
                to top,
                rgba(0,0,0,0.85) 0%,
                rgba(0,0,0,0.65) 18%,
                rgba(0,0,0,0.20) 35%,
                rgba(0,0,0,0.0)  45%,
                rgba(0,0,0,0.10) 100%
            );
    }
}

/* Fecha — centrada en la parte superior */
.cover__date {
    position: absolute;
    top: clamp(22px, 4vh, 40px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(1rem, 2.2vw, 1.55rem);
    letter-spacing: 0.45em;
    color: var(--champagne);
    white-space: nowrap;
    text-shadow: 0 2px 12px rgba(0,0,0,0.65), 0 0 28px rgba(0,0,0,0.35);
    animation: coverSlideDown 1s 0.3s ease both;
}

@keyframes coverSlideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-14px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Nombres — zona inferior izquierda en PC, centrado en móvil */
.cover__names {
    position: absolute;
    z-index: 10;
    bottom: clamp(60px, 12vh, 130px);
    left: clamp(40px, 6vw, 90px);
    text-align: left;
    animation: coverSlideUpDesktop 0.9s 0.4s ease both;
}

@keyframes coverSlideUpDesktop {
    from { opacity: 0; bottom: clamp(30px, 6vh, 80px); }
    to   { opacity: 1; bottom: clamp(60px, 12vh, 130px); }
}

@media (max-width: 768px) {
    .cover__names {
        top: 62%;
        bottom: auto;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 88vw;
        text-align: center;
        animation: coverSlideUpMobile 1s 0.5s ease both;
    }
}

@keyframes coverSlideUpMobile {
    from { opacity: 0; margin-top: 20px; }
    to   { opacity: 1; margin-top: 0; }
}

.names__title {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 0;
}

.names__first,
.names__second {
    font-family: 'Cinzel', var(--font-serif), serif;
    font-weight: 400;
    font-size: clamp(3rem, 8vw, 6.5rem);
    letter-spacing: 0.08em;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.7);
    line-height: 0.95;
}

@media (max-width: 768px) {
    .names__first,
    .names__second {
        font-size: clamp(2.4rem, 12.5vw, 4.2rem);
        letter-spacing: 0.06em;
    }
}

.names__ampersand {
    font-family: var(--font-serif);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(2rem, 5vw, 4.2rem);
    letter-spacing: 0.05em;
    color: var(--gold);
    text-shadow: 0 2px 20px rgba(0,0,0,0.7);
    line-height: 1.1;
}

@media (max-width: 768px) {
    .names__ampersand {
        font-size: clamp(1.8rem, 10vw, 3.5rem);
    }
}

.names__divider {
    width: 48px;
    height: 1px;
    background: var(--champagne);
    margin: clamp(8px, 1.8vh, 14px) auto;
}

.names__sub {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(0.72rem, 1.8vw, 1rem);
    letter-spacing: 0.32em;
    color: var(--champagne);
    text-shadow: 0 1px 10px rgba(0,0,0,0.6);
    line-height: 1.7;
    text-transform: uppercase;
    text-align: center;
}

@media (max-width: 768px) {
    .names__sub {
        font-size: clamp(0.65rem, 3.2vw, 0.85rem);
        letter-spacing: 0.28em;
    }
}

/* Botón flecha inferior */
.cover__scroll-btn {
    position: absolute;
    bottom: clamp(16px, 3.5vh, 32px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--champagne);
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: coverPulse 2.5s infinite ease-in-out;
}

@media (min-width: 769px) {
    .cover__scroll-btn {
        bottom: clamp(16px, 3vh, 28px);
        left: clamp(40px, 6vw, 90px);
        transform: none;
    }
}

@media (max-width: 768px) {
    .cover__scroll-btn {
        bottom: clamp(14px, 3vh, 28px);
        left: 50%;
        transform: translateX(-50%);
    }
}

.cover__scroll-btn:hover {
    opacity: 1;
    transform: translateX(-50%) scale(1.12);
}

@media (min-width: 769px) {
    .cover__scroll-btn:hover {
        transform: scale(1.12);
    }
}

.scroll-icon {
    width: clamp(30px, 4vw, 40px);
    height: clamp(30px, 4vw, 40px);
    display: block;
    filter: drop-shadow(0 1px 6px rgba(0,0,0,0.5));
}

@keyframes coverPulse {
    0%, 100% { opacity: 0.75; transform: translateX(-50%) translateY(0); }
    50%       { opacity: 1;    transform: translateX(-50%) translateY(5px); }
}

@media (min-width: 769px) {
    @keyframes coverPulse {
        0%, 100% { opacity: 0.75; transform: translateY(0); }
        50%       { opacity: 1;    transform: translateY(5px); }
    }
}

/* ════════════════════════════════════════════════════════
   MANUAL DE MIGRACIÓN V3 — REGLAS MAESTRAS
   ════════════════════════════════════════════════════════ */

/* 1. Botón de apertura: arranca invisible hasta que Firebase responda */
.btn-abrir-sobre.loading {
    opacity: 0 !important;
    pointer-events: none !important;
}
.btn-abrir-sobre.ready {
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: opacity 0.6s ease, transform 0.3s ease;
}

/* 2. Nombre mientras carga: fuente neutra con parpadeo suave */
.nombre-invitado.nombre-cargando {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.95rem !important;
    letter-spacing: 3px !important;
    opacity: 0.5;
    animation: pulse-cargando 1.2s ease-in-out infinite;
}

@keyframes pulse-cargando {
    0%, 100% { opacity: 0.35; }
    50%      { opacity: 0.70; }
}

/* 3. Nombres largos: 1 sola línea para cálculo proporcional */
.nombre-invitado, .wlc-inv-name, #display-guest {
    white-space: nowrap !important;
    overflow: visible !important;
    max-width: 100%;
}

/* 4. Tipografías cursivas / script: font-weight 400 explícito contra faux-bold */
.script-title, .script-accent, .crono-subtitle {
    font-weight: 400 !important;
}

/* 5. Fondos de pergamino / papel con fill */
.pergamino-bg {
    object-fit: fill;
}

/* 6. Evitar desborde horizontal global */
html, body {
    overflow-x: hidden;
}