/* ════════════════════════════════════════════════════════
   BODA ELEGANT PREMIUM — PIXEL-PERFECT
   Colores: Arena #EFEDE8 / Azul Noche #1B2A38
   ════════════════════════════════════════════════════════ */
@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: #EFEDE8;
    --ink: #1B2A38;
    --ink-soft: #2A3B4D;
    --white: #F7F6F4;
    --gold: #B8A88A;
    --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;
}

/* Imagen de fondo dinámica */
.wlc-bg-img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 100%;
    object-fit: cover;
    z-index: 0;
}
@media (max-width: 1080px) {
    .wlc-bg-img {
        width: auto;
        height: 100%;
        aspect-ratio: 9 / 16;
        max-width: 100%;
        object-fit: cover;
        margin: 0 auto;
        display: block;
    }
}

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

/* Contenedor maestro del Papel y el Sobre */
.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 */
}

/* 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-info-hidden {
    display: none;
    opacity: 0;
}
.wlc-guest-info-show {
    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: 15% 10%; /* Relleno seguro para no pisar bordes del gráfico */
    color: var(--ink); /* Ajusta según color de papel */
    animation: fadeInText 1s ease 0.3s forwards; /* Entra suavemente */
}

.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.8rem, 5vw, 3rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.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);
}

/* Capa 3: Sobre superpuesto */
.wlc-sobre-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 1s ease;
    z-index: 10;
}
.wlc-sobre-top.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Botón ABRIR INVITACION */
.btn-abrir-sobre {
    margin-top: 30px;
    background: var(--gold);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 16px 45px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    z-index: 15;
}
.btn-abrir-sobre:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.btn-abrir-sobre.hidden {
    display: none;
}

@keyframes fadeInText {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ══════════ 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%;
    filter: grayscale(100%) contrast(1.05);
    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;
}

.btn-elegant {
    display: inline-block;
    padding: 14px 35px;
    border: 1px solid rgba(247, 246, 244, 0.35);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.4s;
}

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

/* Versículo Bíblico */
.versiculo-biblico {
    border-left: 2px solid rgba(184, 168, 138, 0.5);
    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.85;
    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.45;
    color: var(--gold);
}

.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(27, 42, 56, 0.25);
    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;
}

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

.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;
    }

    /* Center the 3rd item in Corte de Honor if it wraps */
    #padrinos .persona-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

/* ══════════ 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: 1px;
    background: rgba(27, 42, 56, 0.15);
}

.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 rgba(27, 42, 56, 0.1);
}

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

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

.tl-name {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    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: #2a2a2a;
    color: var(--white);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    z-index: 2;
    transform: rotate(-2deg);
}

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

.collage-year {
    font-family: var(--font-serif);
    font-size: 3rem;
    letter-spacing: 3px;
    color: var(--white);
    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;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.6s ease;
}

/* Interacción de Clic: Color y Escala */
.collage-img.color-active {
    z-index: 20;
    transform: scale(1.15) !important;
}

.collage-img.color-active .img-frame {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.collage-img.color-active img {
    filter: grayscale(0%) contrast(1);
}

/* 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 / 7;
    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: 3 / 5;
    grid-row: 6 / 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 30px;
    transform: rotate(-5deg);
}

.script-text {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    transform: translateX(20px);
    z-index: 2;
    color: var(--sand);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.serif-text {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    letter-spacing: 6px;
    z-index: 1;
    color: var(--white);
}

/* 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 / 2;
        grid-row: auto;
        transform: rotate(1deg);
    }

    .img-portrait {
        grid-column: 2 / 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: rotate(-5deg);
    }

    .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;
}

/* ══════════ 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;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.04);
}

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

.qr-box {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    padding: 12px;
    border: 1px solid rgba(27, 42, 56, 0.08);
}

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

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

.btn-dark:hover {
    background: #000;
}

/* ══════════ 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.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.45;
    display: block;
    margin-bottom: 8px;
}

.f-group input,
.f-group select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(27, 42, 56, 0.15);
    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 input::placeholder {
    color: rgba(27, 42, 56, 0.25);
    font-style: italic;
}

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

.btn-submit {
    display: inline-block;
    background: var(--ink);
    color: var(--white);
    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: background 0.4s;
    cursor: pointer;
}

.btn-submit:hover {
    background: #000;
}

.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;
}