
/* =========================================================
   FLAVIO & ATENAS — ESTILO PRINCIPAL
   Última versión compatible con index.php
   ========================================================= */

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

:root {
    --navy: #102b3a;
    --navy-dark: #0b202b;
    --navy-deep: #081820;
    --cream: #f8f5ef;
    --cream-2: #f1ece2;
    --gold: #b28b4f;
    --gold-light: #c7a66a;
    --text: #24333a;
    --muted: #6b7070;
    --white: #ffffff;
    --line: rgba(178,139,79,.30);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--text);
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open,
body.lightbox-open {
    overflow: hidden;
}

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

button,
a {
    font: inherit;
}

button {
    border: 0;
}

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

section {
    position: relative;
}

h1,
h2,
h3 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 400;
}

em {
    font-style: italic;
}

.eyebrow {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 4px;
    font-weight: 600;
    color: var(--gold);
}

.eyebrow.light {
    color: rgba(255,255,255,.78);
}

.small-rule {
    width: 54px;
    height: 1px;
    background: var(--gold);
    margin: 24px 0;
}

.reveal {
    opacity: 1;
    transform: none;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 76px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    color: #fff;
    background: rgba(8,24,32,.20);
    border-bottom: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background .35s ease, min-height .35s ease;
}

.site-header.scrolled {
    min-height: 66px;
    background: rgba(11,32,43,.94);
}

.brand {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 27px;
    letter-spacing: .5px;
    white-space: nowrap;
}

.brand span {
    color: var(--gold-light);
    padding: 0 3px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.desktop-nav a {
    position: relative;
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.92);
    transition: color .25s ease;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 1px;
    background: var(--gold-light);
    transition: width .25s ease;
}

.desktop-nav a:hover {
    color: #fff;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.desktop-nav .admin-menu-link {
    color: var(--gold-light);
}

.menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-btn span {
    width: 22px;
    height: 1px;
    background: #fff;
    transition: transform .25s ease, opacity .25s ease;
}

.menu-btn.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 19px;
    padding: 90px 30px 40px;
    background: rgba(8,24,32,.97);
    color: #fff;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mobile-menu .admin-menu-link {
    color: var(--gold-light);
}

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

.music-control {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 42px;
    height: 42px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 24px;
    background: rgba(8,25,34,.48);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: .25s ease;
}

.music-control:hover {
    background: rgba(178,139,79,.90);
    border-color: rgba(255,255,255,.7);
}

.music-control #musicIcon {
    font-size: 19px;
    line-height: 1;
}

.music-label {
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 100svh;
    height: 100svh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(5,18,25,.42) 0%, rgba(5,18,25,.12) 40%, rgba(5,18,25,.62) 100%),
        linear-gradient(90deg, rgba(5,18,25,.30), transparent 55%, rgba(5,18,25,.22));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(850px, 90%);
    text-align: center;
    padding-top: 45px;
}

.hero h1 {
    font-size: clamp(58px, 9vw, 112px);
    line-height: .9;
    letter-spacing: -2px;
    text-shadow: 0 8px 30px rgba(0,0,0,.20);
}

.hero h1 span {
    color: var(--gold-light);
    font-style: italic;
}

.hero-rule {
    width: 76px;
    height: 1px;
    margin: 28px auto 22px;
    background: var(--gold-light);
}

.hero-date {
    font-size: 11px;
    letter-spacing: 4px;
    font-weight: 500;
}

.hero-copy {
    max-width: 580px;
    margin: 24px auto 28px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(20px, 2.3vw, 27px);
    line-height: 1.35;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.60);
    font-size: 10px;
    letter-spacing: 2px;
    transition: gap .25s ease, color .25s ease;
}

.hero-cta span {
    font-size: 18px;
}

.hero-cta:hover {
    gap: 20px;
    color: var(--gold-light);
}

.scroll-note {
    position: absolute;
    z-index: 2;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    letter-spacing: 3px;
    color: rgba(255,255,255,.76);
    white-space: nowrap;
}

/* =========================================================
   COUNTDOWN
   ========================================================= */

.countdown {
    background: var(--navy);
    color: #fff;
    padding: 65px 25px;
    text-align: center;
}

.countdown-inner {
    width: min(950px, 100%);
    margin: auto;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 27px 0 22px;
}

.countdown-grid > div {
    position: relative;
    padding: 8px 15px;
}

.countdown-grid > div:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 0;
    width: 1px;
    height: 55px;
    background: rgba(255,255,255,.16);
}

.countdown-grid strong {
    display: block;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(43px, 6vw, 70px);
    font-weight: 400;
    line-height: .9;
    color: #fff;
}

.countdown-grid span {
    display: block;
    margin-top: 9px;
    font-size: 8px;
    letter-spacing: 2px;
    color: rgba(255,255,255,.65);
}

.countdown-date {
    color: var(--gold-light);
    font-size: 11px;
    letter-spacing: 5px;
}

/* =========================================================
   STORY
   ========================================================= */

.story {
    background: var(--cream);
    padding: 110px 6vw;
}

.story-inner {
    width: min(1180px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 9vw;
    align-items: center;
}

.story-copy h2,
.moments-heading h2,
.venue-copy h2 {
    color: var(--navy);
    font-size: clamp(48px, 5vw, 70px);
    line-height: .95;
}

.story-copy > p:not(.eyebrow) {
    max-width: 500px;
    margin: 0 0 28px;
    color: #626969;
    font-size: 14px;
    line-height: 1.9;
}

.outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 43px;
    padding: 11px 17px;
    border: 1px solid rgba(178,139,79,.65);
    color: #86673a;
    background: transparent;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: .25s ease;
}

.outline-btn:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

.story-photo {
    position: relative;
}

.story-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.hand-note {
    position: absolute;
    right: -35px;
    bottom: -27px;
    padding: 15px 18px;
    background: rgba(248,245,239,.94);
    color: #526064;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 19px;
    line-height: 1.05;
    font-style: italic;
    transform: rotate(-3deg);
    box-shadow: 0 12px 35px rgba(0,0,0,.10);
}

.wave-light::before,
.wave-light::after {
    content: "";
    display: block;
}

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

.moments-section {
    padding: 105px 5vw 95px;
    background: #fff;
}

.moments-heading {
    width: min(1120px, 100%);
    margin: 0 auto 45px;
}

.moments-grid {
    width: min(1250px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: 1.05fr .72fr 1fr;
    grid-template-rows: 260px 260px;
    gap: 8px;
}

.moment {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #ddd;
    cursor: pointer;
}

.moment img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.moment:hover img {
    transform: scale(1.045);
}

.m1 {
    grid-column: 1;
    grid-row: 1 / 3;
}

.m2 {
    grid-column: 2;
    grid-row: 1;
}

.m3 {
    grid-column: 3;
    grid-row: 1 / 3;
}

.m4 {
    grid-column: 2;
    grid-row: 2;
}

.m5 {
    display: none;
}

.moments-note {
    margin-top: 24px;
    text-align: center;
    color: #8a8984;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 19px;
    font-style: italic;
}

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

.us-section {
    padding: 0;
    background: var(--navy-dark);
}

.us-photo {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.us-photo > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.us-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6,23,31,.72), rgba(6,23,31,.18), rgba(6,23,31,.50));
}

.us-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.us-content h2 {
    margin-top: 12px;
    font-size: clamp(53px, 7vw, 90px);
    line-height: .95;
}

.us-content h2 em {
    color: var(--gold-light);
}

.us-rule {
    width: 60px;
    height: 1px;
    margin: 25px auto;
    background: var(--gold-light);
}

.us-names {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 26px;
}

.us-date {
    display: block;
    margin-top: 8px;
    font-size: 9px;
    letter-spacing: 4px;
    color: rgba(255,255,255,.70);
}

.section-transition {
    height: 22px;
    background: var(--cream);
}

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

.day-section {
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
}

.day-photo,
.day-overlay {
    position: absolute;
    inset: 0;
}

.day-photo {
    background-image: url("../images/1000420109.jpg");
    background-size: cover;
    background-position: center;
}

.day-overlay {
    background: linear-gradient(180deg, rgba(5,21,28,.40), rgba(5,21,28,.70));
}

.day-content {
    position: relative;
    z-index: 2;
    width: min(850px, 92%);
    text-align: center;
}

.day-content h2 {
    margin-top: 12px;
    font-size: clamp(60px, 8vw, 105px);
    line-height: .85;
}

.day-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    margin: 42px 0 35px;
}

.day-details > div:not(.vertical-line) {
    min-width: 180px;
}

.detail-symbol {
    display: block;
    margin-bottom: 7px;
    color: var(--gold-light);
    font-size: 24px;
}

.day-details strong {
    display: block;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 25px;
    font-weight: 500;
}

.day-details p {
    margin-top: 4px;
    color: rgba(255,255,255,.72);
    font-size: 12px;
    line-height: 1.5;
}

.vertical-line {
    width: 1px;
    height: 80px;
    background: rgba(255,255,255,.28);
}

.white-note {
    position: relative;
    right: auto;
    bottom: auto;
    display: inline-block;
    margin-top: 4px;
    background: rgba(255,255,255,.10);
    color: #fff;
}

/* =========================================================
   CASA GALERA
   ========================================================= */

.venue {
    background: var(--cream);
    padding: 110px 6vw;
}

.venue-inner {
    width: min(1180px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
    align-items: center;
}

.venue-copy > p:not(.eyebrow) {
    margin: 0 0 27px;
    max-width: 500px;
    color: #656b6c;
    font-size: 14px;
    line-height: 1.9;
}

.address {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin: 27px 0;
    color: #43545a;
    font-size: 13px;
}

.address strong {
    color: var(--gold);
    font-size: 23px;
    line-height: 1;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.venue-photo {
    position: relative;
}

.venue-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* =========================================================
   GALERÍA
   ========================================================= */

.gallery-strip {
    background: var(--navy-dark);
    color: #fff;
    padding: 105px 5vw 100px;
}

.gallery-intro {
    width: min(900px, 100%);
    margin: 0 auto 45px;
    text-align: center;
}

.gallery-intro h2 {
    margin-top: 13px;
    font-size: clamp(48px, 5.7vw, 76px);
    line-height: .94;
}

.gallery-intro h2 em {
    color: var(--gold-light);
}

.gallery-rule {
    margin: 25px auto;
}

.gallery-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 12px 17px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.32);
    color: #fff;
    cursor: pointer;
    font-size: 9px;
    letter-spacing: 1.8px;
    transition: .25s ease;
}

.gallery-open-btn b {
    color: var(--gold-light);
    font-size: 16px;
    font-weight: 400;
}

.gallery-open-btn:hover {
    background: rgba(178,139,79,.18);
    border-color: var(--gold-light);
}

.gallery-reveal {
    display: none;
    width: min(1250px, 100%);
    margin: 35px auto 0;
}

.gallery-reveal.open {
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 7px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #111;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.gallery-item:hover img {
    transform: scale(1.045);
}

.gallery-item.g1 {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.g2 {
    grid-column: span 1;
}

.gallery-item.g3 {
    grid-column: span 1;
}

.gallery-item.g4 {
    grid-column: span 1;
    grid-row: span 2;
}

.gallery-item.g5 {
    grid-column: span 1;
}

/* =========================================================
   RSVP / REGALOS / RESTO DE LA PÁGINA
   ========================================================= */

.rsvp-section,
.gifts-section,
.info-section {
    background: var(--cream);
    color: var(--text);
    padding: 105px 6vw;
}

.rsvp-section > *,
.gifts-section > *,
.info-section > * {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.rsvp-section h2,
.gifts-section h2,
.info-section h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(48px, 5vw, 70px);
    line-height: .95;
    color: var(--navy);
}

/* Tarjetas de regalos si aparecen en la página */
.gifts-grid,
.gift-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 1100px;
    margin: 40px auto 0;
}

.gift-card {
    padding: 28px;
    background: #fff;
    border: 1px solid rgba(178,139,79,.22);
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}

.gift-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(15,35,45,.10);
}

/* =========================================================
   LIGHTBOX
   ========================================================= */

.lightbox,
#imageLightbox,
.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(3,13,18,.93);
}

.lightbox.visible,
#imageLightbox.visible,
.photo-lightbox.visible,
.lightbox.open,
#imageLightbox.open,
.photo-lightbox.open {
    display: flex;
}

.lightbox img,
#imageLightbox img,
.photo-lightbox img {
    width: auto;
    height: auto;
    max-width: 94vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close,
#imageLightbox .lightbox-close,
.photo-lightbox .lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    background: rgba(0,0,0,.18);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

/* =========================================================
   POPUP REGALOS — COMPATIBILIDAD
   ========================================================= */

.gift-popup {
    isolation: isolate;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {
    .desktop-nav {
        gap: 12px;
    }

    .desktop-nav a {
        font-size: 9px;
    }

    .site-header {
        padding-left: 3.5vw;
        padding-right: 3.5vw;
    }

    .story-inner,
    .venue-inner {
        gap: 5vw;
    }
}

@media (max-width: 820px) {
    .desktop-nav {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    .site-header {
        min-height: 68px;
        padding: 0 20px;
    }

    .brand {
        font-size: 25px;
    }

    .music-control {
        right: 14px;
        bottom: 18px;
        top: auto;
        transform: none;
    }

    .story,
    .venue,
    .moments-section,
    .gallery-strip,
    .rsvp-section,
    .gifts-section,
    .info-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .story-inner,
    .venue-inner {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .story-photo,
    .venue-photo {
        width: min(650px, 100%);
        margin: auto;
    }

    .moments-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 300px 220px 220px;
    }

    .m1 {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .m2 {
        grid-column: 1;
        grid-row: 2;
    }

    .m3 {
        grid-column: 2;
        grid-row: 2;
    }

    .m4 {
        grid-column: 1;
        grid-row: 3;
    }

    .m5 {
        display: block;
        grid-column: 2;
        grid-row: 3;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 230px;
    }

    .gallery-item.g1 {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item.g4 {
        grid-row: span 1;
    }

    .gifts-grid,
    .gift-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: 100svh;
        height: 100svh;
    }

    .hero-bg {
        object-position: 54% center;
    }

    .hero-content {
        width: calc(100% - 34px);
        padding-top: 20px;
    }

    .hero h1 {
        font-size: clamp(52px, 16vw, 76px);
        letter-spacing: -1px;
    }

    .hero-date {
        font-size: 9px;
        letter-spacing: 2.5px;
    }

    .hero-copy {
        font-size: 20px;
        max-width: 350px;
    }

    .scroll-note {
        bottom: 20px;
        font-size: 7px;
        letter-spacing: 2px;
    }

    .countdown {
        padding: 55px 15px;
    }

    .countdown-grid {
        gap: 0;
    }

    .countdown-grid > div {
        padding: 4px 3px;
    }

    .countdown-grid > div:not(:last-child)::after {
        height: 42px;
    }

    .countdown-grid strong {
        font-size: 39px;
    }

    .countdown-grid span {
        font-size: 7px;
        letter-spacing: 1px;
    }

    .countdown-date {
        font-size: 9px;
        letter-spacing: 3px;
    }

    .story,
    .venue,
    .moments-section,
    .gallery-strip,
    .rsvp-section,
    .gifts-section,
    .info-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .story-copy h2,
    .moments-heading h2,
    .venue-copy h2 {
        font-size: 50px;
    }

    .hand-note {
        right: 5px;
        bottom: -22px;
        font-size: 17px;
    }

    .moments-grid {
        gap: 5px;
        grid-template-rows: 245px 190px 190px;
    }

    .us-photo {
        min-height: 590px;
    }

    .us-overlay {
        background: linear-gradient(180deg, rgba(6,23,31,.35), rgba(6,23,31,.68));
    }

    .day-section {
        min-height: 610px;
    }

    .day-details {
        gap: 15px;
        margin-top: 34px;
    }

    .day-details > div:not(.vertical-line) {
        min-width: 130px;
    }

    .day-details strong {
        font-size: 21px;
    }

    .day-details p {
        font-size: 10px;
    }

    .vertical-line {
        height: 70px;
    }

    .button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .button-row .outline-btn {
        width: 100%;
    }

    .gallery-intro h2 {
        font-size: 49px;
    }

    .gallery-grid {
        grid-auto-rows: 185px;
    }

    .lightbox,
    #imageLightbox,
    .photo-lightbox {
        padding: 10px;
    }

    .lightbox img,
    #imageLightbox img,
    .photo-lightbox img {
        max-width: 97vw;
        max-height: 86vh;
    }
}


/* =========================================================
   FIX FINAL — INFORMACIÓN, CIERRE Y PIE
   ========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

main,
main > section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* INFORMACIÓN */
.info-section {
    background: #f6f2eb !important;
    color: #17303b !important;
    padding: 95px 24px 100px !important;
}

.info-section > .info-card {
    width: min(1100px, 100%) !important;
    max-width: 1100px !important;
    margin: 0 auto 28px !important;
    box-sizing: border-box !important;
    background: #fffdf9 !important;
    border: 1px solid rgba(178,139,79,.20) !important;
    box-shadow: 0 18px 55px rgba(20,35,40,.07) !important;
    padding: 65px clamp(25px, 6vw, 80px) !important;
    text-align: center !important;
    overflow: hidden !important;
}

.info-section > .info-card:last-child {
    margin-bottom: 0 !important;
}

.info-card .info-icon {
    display: block !important;
    color: #b28b4f !important;
    font-size: 27px !important;
    line-height: 1 !important;
    margin-bottom: 22px !important;
}

.info-card .eyebrow {
    color: #b28b4f !important;
    margin-bottom: 18px !important;
    letter-spacing: 4px !important;
    font-size: 10px !important;
}

.info-card h3 {
    margin: 0 0 18px !important;
    color: #17303b !important;
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: clamp(38px, 5vw, 62px) !important;
    font-weight: 500 !important;
    line-height: .98 !important;
}

.info-card h3 em {
    color: #a7834b !important;
    font-style: italic !important;
}

.info-card > p:not(.eyebrow),
.info-card .gifts-text,
.info-card .gifts-message,
.info-card .dress-intro {
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    color: #687276 !important;
    font-size: 15px !important;
    line-height: 1.9 !important;
}

.info-card .gifts-message {
    color: #43545a !important;
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: 22px !important;
    font-style: italic !important;
}

.gifts-rule {
    width: 55px !important;
    height: 1px !important;
    background: #b28b4f !important;
    margin: 28px auto !important;
}

.gold-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-top: 25px !important;
    min-height: 48px !important;
    padding: 13px 22px !important;
    border: 1px solid #b28b4f !important;
    background: #b28b4f !important;
    color: #fff !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important;
    cursor: pointer !important;
    transition: .25s ease !important;
}

.gold-btn:hover {
    background: #94703d !important;
    border-color: #94703d !important;
    transform: translateY(-2px) !important;
}

.dress-code-image {
    display: block !important;
    width: min(430px, 100%) !important;
    margin: 28px auto 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    cursor: pointer !important;
}

.dress-code-image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 560px !important;
    object-fit: contain !important;
}

.gift-card-inner {
    max-width: 780px !important;
    margin: 0 auto !important;
}

.gifts-icon {
    color: #b28b4f !important;
    font-size: 36px !important;
    margin-bottom: 24px !important;
}

/* CIERRE */
.closing {
    position: relative !important;
    width: 100% !important;
    min-height: 680px !important;
    height: 78vh !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    color: #fff !important;
    text-align: center !important;
    isolation: isolate !important;
}

.closing > img {
    position: absolute !important;
    inset: 0 !important;
    z-index: -3 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.closing-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: -2 !important;
    background: linear-gradient(
        180deg,
        rgba(7,24,32,.30),
        rgba(7,24,32,.72)
    ) !important;
}

.closing-content {
    position: relative !important;
    z-index: 2 !important;
    width: min(900px, calc(100% - 40px)) !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.closing-content .eyebrow {
    color: rgba(255,255,255,.82) !important;
}

.closing-content h2 {
    margin: 18px 0 30px !important;
    color: #fff !important;
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: clamp(48px, 7vw, 88px) !important;
    line-height: .94 !important;
    font-weight: 500 !important;
}

.white-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 13px 21px !important;
    border: 1px solid rgba(255,255,255,.65) !important;
    color: #fff !important;
    background: rgba(0,0,0,.08) !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 10px !important;
    letter-spacing: 1.5px !important;
    transition: .25s ease !important;
}

.white-btn:hover {
    background: #fff !important;
    color: #17303b !important;
}

.closing-note {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    display: inline-block !important;
    margin: 45px 0 0 !important;
    background: rgba(248,245,239,.94) !important;
    color: #536066 !important;
    transform: rotate(-2deg) !important;
}

/* FINAL */
.final {
    position: relative !important;
    width: 100% !important;
    min-height: 500px !important;
    padding: 100px 24px 75px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: #0b2028 !important;
    color: #fff !important;
    text-align: center !important;
    overflow: hidden !important;
}

.final-leaves {
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    opacity: .18 !important;
    background:
        radial-gradient(circle at 15% 30%, rgba(178,139,79,.30), transparent 28%),
        radial-gradient(circle at 85% 70%, rgba(178,139,79,.20), transparent 30%) !important;
}

.final-content {
    position: relative !important;
    z-index: 2 !important;
    width: min(850px, 100%) !important;
    margin: 0 auto !important;
}

.final-content h2 {
    margin: 0 !important;
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: clamp(55px, 9vw, 105px) !important;
    line-height: .88 !important;
    font-weight: 500 !important;
    color: #fff !important;
}

.final-content h2 span {
    display: inline !important;
}

.final-content p {
    margin: 28px 0 20px !important;
    color: rgba(255,255,255,.72) !important;
    font-size: 11px !important;
    letter-spacing: 4px !important;
}

.final-content .heart {
    margin: 18px 0 !important;
    color: #c5a36a !important;
    font-size: 30px !important;
}

.final-content > span {
    color: rgba(255,255,255,.72) !important;
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: 21px !important;
    font-style: italic !important;
}

.socials {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    gap: 18px !important;
    margin-top: 40px !important;
    color: rgba(255,255,255,.55) !important;
    font-size: 14px !important;
}

footer {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 24px 20px !important;
    background: #07171d !important;
    color: rgba(255,255,255,.55) !important;
    text-align: center !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 9px !important;
    letter-spacing: .6px !important;
    line-height: 1.8 !important;
}

footer b {
    margin: 0 7px !important;
    color: #b28b4f !important;
}

footer a {
    color: rgba(255,255,255,.82) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

@media (max-width: 700px) {
    .info-section {
        padding: 65px 14px 70px !important;
    }

    .info-section > .info-card {
        padding: 50px 22px !important;
    }

    .closing {
        min-height: 590px !important;
        height: 72vh !important;
    }

    .closing-content h2 {
        font-size: clamp(43px, 13vw, 68px) !important;
    }

    .final {
        min-height: 430px !important;
        padding: 75px 18px 55px !important;
    }

    .final-content h2 {
        font-size: clamp(52px, 17vw, 82px) !important;
    }
}

/* =========================================================
   CUENTA REGRESIVA SOBRE EL HERO — PC
   ========================================================= */

@media (min-width: 821px) {

    .hero {
        margin-bottom: 0 !important;
    }

    .countdown {
        position: relative !important;
        z-index: 10 !important;
        margin-top: -245px !important;
        min-height: 245px !important;
        box-sizing: border-box !important;
        padding: 45px 25px 35px !important;

        background: linear-gradient(
            to bottom,
            rgba(11,32,40,0) 0%,
            rgba(11,32,40,.55) 30%,
            rgba(11,32,40,.94) 100%
        ) !important;
    }

    .countdown-inner {
        position: relative !important;
        z-index: 2 !important;
    }

    .countdown .eyebrow {
        margin-bottom: 10px !important;
    }

    .countdown-grid {
        margin: 15px auto 12px !important;
    }
}

/* =========================================================
   LOGOS DE REGALOS — PC
   ========================================================= */

@media (min-width: 701px) {

    #giftModalClean .bank-logo-image {
        width: 100% !important;
        height: 110px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        margin-bottom: 14px !important;
    }

    #giftModalClean .bank-logo-image img {
        display: block !important;
        width: auto !important;
        max-width: 260px !important;
        height: 95px !important;
        max-height: 95px !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    #giftModalClean .yape-plin-image {
        height: 100px !important;
    }

    #giftModalClean .yape-plin-image img {
        max-width: 300px !important;
        height: 85px !important;
        max-height: 85px !important;
    }

}
/* =========================================================
   CONFIRMAR ASISTENCIA — DISEÑO FINAL
   ========================================================= */

#rsvpModal {
    padding: 20px !important;
    box-sizing: border-box !important;
}

#rsvpModal .rsvp-modal-box {
    position: relative !important;
    width: min(620px, 92vw) !important;
    height: 560px !important;
    max-height: 90vh !important;
    margin: auto !important;
    background: #f8f4ec !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    box-shadow: 0 30px 90px rgba(0,0,0,.45) !important;
}

#rsvpModal iframe {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f8f4ec !important;
}

#rsvpModal .rsvp-close {
    top: 12px !important;
    right: 12px !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    border-radius: 50% !important;
    background: #17243a !important;
    color: #fff !important;
    box-shadow: 0 5px 18px rgba(0,0,0,.22) !important;
}

/* Móvil */
@media (max-width: 700px) {

    #rsvpModal {
        padding: 8px !important;
    }

    #rsvpModal .rsvp-modal-box {
        width: 100% !important;
        height: 94vh !important;
        max-height: 94vh !important;
        border-radius: 16px !important;
    }

}

/* =========================================================
   LOGO HEADER — F&A ARRIBA / FLAVIO & ATENAS AL SCROLL
   ========================================================= */

.brand-full {
    display: inline !important;
}

.brand-short {
    display: none !important;
}

.site-header.scrolled .brand-full {
    display: inline !important;
}

.site-header.scrolled .brand-short {
    display: none !important;
}

@media (min-width: 701px) {
    .site-header:not(.scrolled) .brand-full {
        display: none !important;
    }

    .site-header:not(.scrolled) .brand-short {
        display: inline !important;
    }

    .site-header.scrolled .brand-full {
        display: inline !important;
    }

    .site-header.scrolled .brand-short {
        display: none !important;
    }
}

/* =========================================================
   LOGO DINÁMICO DEL HEADER
   ARRIBA: F&A
   AL HACER SCROLL: FLAVIO & ATENAS
   ========================================================= */

.site-header .brand-short {
    display: none !important;
}

.site-header .brand-full {
    display: inline !important;
}

/* Arriba de todo */
.site-header:not(.scrolled) .brand-short {
    display: inline !important;
}

.site-header:not(.scrolled) .brand-full {
    display: none !important;
}

/* Cuando se desplaza */
.site-header.scrolled .brand-short {
    display: none !important;
}

.site-header.scrolled .brand-full {
    display: inline !important;
}

/* Transición elegante */
.site-header .brand {
    transition: opacity .25s ease;
}
/* LOGO MÓVIL — SOLO UNO VISIBLE */
@media (max-width: 700px) {

    .site-header .brand-short {
        display: inline !important;
    }

    .site-header .brand-full {
        display: none !important;
    }

    .site-header.scrolled .brand-short {
        display: none !important;
    }

    .site-header.scrolled .brand-full {
        display: inline !important;
    }

}

/* =========================================================
   CUENTA REGRESIVA SOBRE EL HERO — MÓVIL
   ========================================================= */

@media (max-width: 700px) {

    .hero {
        position: relative !important;
        z-index: 1 !important;
    }

    .countdown {
        position: relative !important;
        z-index: 10 !important;

        margin-top: -245px !important;
        margin-bottom: 0 !important;

        min-height: 245px !important;
        height: 245px !important;

        padding: 28px 15px 20px !important;
        box-sizing: border-box !important;

        background: transparent !important;
        color: #fff !important;
    }

    .countdown-inner {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .countdown .eyebrow {
        margin: 0 0 28px !important;
        color: #fff !important;
    }

    .countdown-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        width: 100% !important;
        gap: 0 !important;
    }

    .countdown-grid > div {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .countdown-grid strong {
        font-size: 43px !important;
        line-height: 1 !important;
        color: #fff !important;
    }

    .countdown-grid span {
        margin-top: 8px !important;
        font-size: 8px !important;
        letter-spacing: 2px !important;
        color: rgba(255,255,255,.8) !important;
    }

    .countdown-date {
        margin: 22px 0 0 !important;
        color: #c5a36a !important;
        font-size: 11px !important;
        letter-spacing: 4px !important;
    }
}

/* =========================================================
   DEPURACIÓN FINAL — CUENTA REGRESIVA EN MÓVIL/TABLET
   ========================================================= */

@media (max-width: 820px) {

    .hero {
        position: relative !important;
        z-index: 1 !important;
    }

    .countdown {
        position: relative !important;
        z-index: 20 !important;
        margin-top: -245px !important;
        margin-bottom: 0 !important;
        min-height: 245px !important;
        height: 245px !important;
        padding: 28px 15px 20px !important;
        box-sizing: border-box !important;
        background: transparent !important;
        color: #fff !important;
    }

    .countdown-inner {
        width: 100% !important;
        max-width: 950px !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .countdown .eyebrow {
        margin: 0 0 28px !important;
        color: #fff !important;
    }

    .countdown-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        width: 100% !important;
        gap: 0 !important;
        margin: 0 !important;
    }

    .countdown-grid > div {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 4px 3px !important;
    }

    .countdown-grid > div:not(:last-child)::after {
        height: 42px !important;
        top: 4px !important;
    }

    .countdown-grid strong {
        font-size: 43px !important;
        line-height: 1 !important;
        color: #fff !important;
    }

    .countdown-grid span {
        display: block !important;
        margin-top: 8px !important;
        font-size: 8px !important;
        letter-spacing: 2px !important;
        color: rgba(255,255,255,.8) !important;
    }

    .countdown-date {
        margin: 22px 0 0 !important;
        color: #c5a36a !important;
        font-size: 11px !important;
        letter-spacing: 4px !important;
    }
}
/* =========================================================
   MENÚ MÓVIL — CORRECCIÓN DEFINITIVA
   ========================================================= */

@media (max-width: 820px) {

    .menu-btn {
        display: flex !important;
        position: relative !important;
        z-index: 1002 !important;
        cursor: pointer !important;
        pointer-events: auto !important;
    }

    .mobile-menu {
        display: none !important;
        pointer-events: none !important;
        z-index: 9999 !important;
    }

    .mobile-menu.open {
        display: flex !important;
        pointer-events: auto !important;
    }

    body.menu-open {
        overflow: hidden !important;
    }

}
/* =========================================================
   LOGOS DE REGALOS — MÓVIL
   ========================================================= */

@media (max-width: 700px) {

    #giftModalClean .bank-logo-image {
        height: 85px !important;
        margin-bottom: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    #giftModalClean .bank-logo-image img {
        width: auto !important;
        max-width: 220px !important;
        height: 70px !important;
        max-height: 70px !important;
        object-fit: contain !important;
    }

    #giftModalClean .yape-plin-image {
        height: 80px !important;
    }

    #giftModalClean .yape-plin-image img {
        width: auto !important;
        max-width: 230px !important;
        height: 65px !important;
        max-height: 65px !important;
        object-fit: contain !important;
    }

}
