/* ============================================
   CHUSA Y LAJA - 70s Rock Wedding Edition
   ============================================ */

:root {
    --night: #080507;
    --charcoal: #120d10;
    --charcoal-soft: #1a1317;
    --velvet: #3d0f1d;
    --velvet-deep: #2b0a15;
    --crimson: #7d1c34;
    --gold: #d2a14a;
    --gold-soft: #e6c882;
    --gold-deep: #9f6a1e;
    --cream: #f7f1e5;
    --cream-soft: #d8c8a7;
    --line: rgba(230, 200, 130, 0.32);
    --line-soft: rgba(230, 200, 130, 0.16);
    --panel: rgba(14, 10, 12, 0.72);

    --font-script: 'Dancing Script', cursive;
    --font-display: 'Cinzel', serif;
    --font-body: 'EB Garamond', serif;

    --container: 980px;
    --section: 860px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--cream);
    line-height: 1.65;
    font-size: 1.18rem;
    background:
        radial-gradient(1300px 800px at 5% -10%, rgba(125, 28, 52, 0.18), transparent 65%),
        radial-gradient(1400px 1000px at 100% 10%, rgba(210, 161, 74, 0.08), transparent 72%),
        linear-gradient(180deg, var(--night) 0%, var(--charcoal) 48%, #090708 100%);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

/* subtle paper/grain feeling */
body::before {
    opacity: 0.22;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.03) 0.8px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.025) 1px, transparent 1.2px),
        radial-gradient(circle at 40% 55%, rgba(255, 255, 255, 0.02) 0.8px, transparent 1px);
    background-size: 220px 220px, 240px 240px, 200px 200px;
}

/* vertical vintage light streak */
body::after {
    opacity: 0.3;
    background:
        linear-gradient(90deg, transparent 0%, rgba(230, 200, 130, 0.06) 48%, rgba(230, 200, 130, 0.08) 50%, rgba(230, 200, 130, 0.06) 52%, transparent 100%);
}

a {
    color: var(--gold-soft);
    text-decoration: none;
    transition: color 220ms var(--ease);
}

a:hover {
    color: #f2dbab;
}

strong {
    color: #f0d08a;
    font-weight: 600;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(8, 5, 7, 0.9);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(8px) saturate(1.05);
    transition: padding 260ms var(--ease), background 260ms var(--ease), border-color 260ms var(--ease), box-shadow 260ms var(--ease);
}

.nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 5, 7, 0.72) 0%, rgba(8, 5, 7, 0) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 260ms var(--ease);
}

.nav.scrolled {
    padding: 0.62rem 0;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 5, 7, 0.94);
    backdrop-filter: blur(10px) saturate(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.nav.scrolled::before {
    opacity: 1;
}

.nav-inner {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-logo {
    font-family: var(--font-script);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
    color: var(--gold) !important;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.25rem;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 2.4px;
    color: rgba(247, 241, 229, 0.82);
    position: relative;
    transition: color 220ms var(--ease);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 25%, var(--gold) 75%, transparent 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 220ms var(--ease);
}

.nav-links a:hover {
    color: #fff4d6;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-highlight {
    color: var(--gold) !important;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gold-soft);
    border-radius: 999px;
    transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero
   ============================================ */

.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    isolation: isolate;
    overflow: hidden;
    padding-top: clamp(74px, 9vh, 112px);
    padding-bottom: clamp(30px, 5.5vh, 72px);
    background: var(--night);
}

.hero-image {
    display: none;
}

.hero-overlay {
    display: none;
}

.hero-frame {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(92vw, 760px);
    min-height: clamp(700px, 72svh, 860px);
    margin-top: clamp(10px, 2vh, 22px);
    padding: clamp(2.3rem, 3.8vw, 3.2rem) clamp(1.1rem, 2.2vw, 2.2rem) clamp(2.45rem, 4.2vw, 3.25rem);
    border-radius: var(--radius-lg);
    isolation: isolate;
    overflow: hidden;
    background: rgba(8, 5, 7, 0.36);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.32),
        inset 0 0 0 1px rgba(230, 200, 130, 0.16);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    border-radius: inherit;
    overflow: hidden;
    background-image: url('../img/hero-lg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 16%;
    filter: brightness(0.62) contrast(1.08) saturate(1.01);
}

.hero-content::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 22%, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.16) 44%, rgba(0, 0, 0, 0.38) 100%),
        linear-gradient(180deg, rgba(8, 5, 7, 0.38) 0%, rgba(8, 5, 7, 0.13) 25%, rgba(8, 5, 7, 0.13) 70%, rgba(8, 5, 7, 0.46) 100%),
        linear-gradient(90deg, rgba(8, 5, 7, 0.4) 0%, rgba(8, 5, 7, 0.1) 22%, rgba(8, 5, 7, 0.1) 78%, rgba(8, 5, 7, 0.4) 100%);
}

.hero-content * {
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.82), 0 0 26px rgba(0, 0, 0, 0.48);
}

.hero-invite {
    display: inline-block;
    margin: 0 auto 1.05rem;
    padding: 0.24rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(230, 200, 130, 0.46);
    background: rgba(8, 5, 7, 0.38);
    font-family: var(--font-display);
    font-size: clamp(0.78rem, 2.1vw, 0.92rem);
    text-transform: uppercase;
    letter-spacing: clamp(2px, 0.4vw, 3.4px);
    line-height: 1.2;
    color: rgba(247, 241, 229, 0.94);
}

.hero-names {
    margin-bottom: 3.05rem;
}

.hero-name {
    display: block;
    font-family: var(--font-script);
    font-weight: 700;
    font-size: clamp(4.4rem, 13vw, 8.2rem);
    line-height: 1.08;
    padding-bottom: 0.24em;
    letter-spacing: 0.5px;
    color: #fff;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.62));
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
    .hero-name {
        background: linear-gradient(180deg, #f8e9c1 0%, #e8cb86 40%, #ca9a4b 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-stroke: 0.25px rgba(52, 33, 8, 0.48);
        color: transparent;
    }
}

.hero-con {
    display: block;
    margin: 0.22rem 0 0.42rem;
    font-style: italic;
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    color: rgba(247, 241, 229, 0.92);
}

.hero-details {
    margin-bottom: 1.9rem;
}

.hero-date,
.hero-venue {
    font-family: var(--font-display);
    font-size: clamp(0.82rem, 1.95vw, 1rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: clamp(2.2px, 0.45vw, 4.2px);
    color: var(--gold-soft);
}

.hero-date {
    margin-bottom: 0.25rem;
}

.hero-time,
.hero-location {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: rgba(247, 241, 229, 0.95);
}

.hero-time {
    margin-bottom: 0.8rem;
}

.countdown {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 100%;
    margin: 0 auto 1.25rem;
    padding: 0.34rem 0.52rem;
    border-radius: 999px;
    border: 1px solid rgba(230, 200, 130, 0.26);
    background: rgba(8, 5, 7, 0.35);
}

.countdown-item {
    padding: 0.16rem 0.24rem;
    min-width: 3.8rem;
}

.countdown-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    line-height: 1;
    min-width: 2ch;
    color: rgba(247, 241, 229, 0.92);
}

.countdown-label {
    display: block;
    margin-top: 0.2rem;
    font-family: var(--font-display);
    font-size: 0.42rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: rgba(230, 200, 130, 0.72);
}

.countdown-ended {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 2.5vw, 1.15rem);
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: rgba(247, 241, 229, 0.88);
}

.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0.8rem auto 0;
    border-radius: 50%;
    border: 1px solid rgba(230, 200, 130, 0.44);
    color: rgba(230, 200, 130, 0.92);
    background: rgba(8, 5, 7, 0.36);
    animation: bounce 2.5s ease infinite;
}

/* ============================================
   Sections
   ============================================ */

.section {
    position: relative;
    padding: clamp(4.2rem, 8vw, 6.6rem) 1.3rem;
}

.section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(230, 200, 130, 0.035) 0%, rgba(230, 200, 130, 0) 26%, rgba(230, 200, 130, 0.035) 100%);
}

.section-alt {
    background:
        linear-gradient(180deg, rgba(61, 15, 29, 0.22) 0%, rgba(26, 12, 16, 0.8) 100%);
}

.section-frame {
    max-width: var(--section);
    margin: 0 auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background:
        linear-gradient(160deg, rgba(43, 10, 21, 0.46) 0%, rgba(15, 10, 12, 0.78) 75%),
        rgba(12, 8, 10, 0.85);
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.28),
        inset 0 0 0 1px rgba(230, 200, 130, 0.14);
    padding: clamp(2rem, 4vw, 3.1rem) clamp(1.2rem, 3.6vw, 2.8rem);
    position: relative;
}

.section-frame::before,
.section-frame::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(230, 200, 130, 0.6);
    pointer-events: none;
}

.section-frame::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.section-frame::after {
    right: 10px;
    bottom: 10px;
    border-left: none;
    border-top: none;
}

.section-inner {
    text-align: center;
    opacity: 1;
    transform: translateY(0);
}

.has-reveal .section-inner {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 780ms var(--ease), transform 780ms var(--ease);
}

.has-reveal .section-inner.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.46rem, 3.2vw, 2.16rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: clamp(2px, 0.45vw, 4.5px);
    line-height: 1.22;
    color: #f0d08a;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
    margin-bottom: 0.6rem;
}

.section-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.72rem;
    margin-bottom: 1.8rem;
    position: relative;
}

.section-ornament::before,
.section-ornament::after {
    content: '';
    width: clamp(52px, 10vw, 96px);
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(230, 200, 130, 0.8) 60%, transparent 100%);
}

.section-ornament::after {
    transform: scaleX(-1);
}

.section-photo:has(img) {
    aspect-ratio: auto;
}

.section-photo img {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(0.22) saturate(0.82) contrast(1.06) brightness(0.93);
}

/* Extra vintage push for confirmar photo */
#confirmar .section-photo img {
    filter: sepia(0.38) saturate(0.75) contrast(1.08) brightness(0.9);
}

.section-photo {
    --photo-ratio: 3 / 2;
    aspect-ratio: var(--photo-ratio);
    width: min(100%, 700px);
    margin: 0 auto 1.65rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(145deg, rgba(210, 161, 74, 0.16) 0%, rgba(61, 15, 29, 0.42) 42%, rgba(8, 5, 7, 0.74) 100%);
    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.24),
        inset 0 0 0 1px rgba(230, 200, 130, 0.16);
}

.section-photo::before {
    display: none;
}

.section-photo::after {
    content: attr(data-caption);
    position: absolute;
    left: 14px;
    bottom: 12px;
    z-index: 2;
    padding: 0.22rem 0.58rem;
    border-radius: 999px;
    border: 1px solid rgba(230, 200, 130, 0.46);
    background: rgba(8, 5, 7, 0.52);
    color: rgba(247, 241, 229, 0.9);
    font-family: var(--font-display);
    font-size: 0.58rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.ratio-16-9 {
    --photo-ratio: 16 / 9;
}

.ratio-4-5 {
    --photo-ratio: 4 / 5;
    width: min(100%, 430px);
}

.ratio-4-3 {
    --photo-ratio: 4 / 3;
    width: min(100%, 560px);
}

.section-body {
    max-width: 670px;
    margin: 0 auto;
}

.section-body p {
    font-size: clamp(1.17rem, 2.2vw, 1.43rem);
    color: rgba(247, 241, 229, 0.93);
    margin-bottom: 1.1rem;
}

.section-body p:last-child {
    margin-bottom: 0;
}

.section-quote {
    margin-top: 0.55rem;
    color: #f0d7a1;
    font-style: italic;
    font-size: clamp(1.2rem, 2.6vw, 1.58rem);
}

/* ============================================
   Event details
   ============================================ */

.event-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2.8vw, 1.8rem);
    margin-bottom: 1.8rem;
}

.event-intro {
    max-width: 700px;
    margin: 0 auto 1.2rem;
    font-size: clamp(1.04rem, 2vw, 1.2rem);
    color: rgba(247, 241, 229, 0.9);
}

.event-card {
    padding: clamp(1.1rem, 2.1vw, 1.6rem);
    border-radius: var(--radius-md);
    border: 1px solid var(--line-soft);
    background:
        linear-gradient(180deg, rgba(230, 200, 130, 0.05) 0%, rgba(230, 200, 130, 0.015) 100%);
}

.event-card h3 {
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(247, 241, 229, 0.72);
    margin-bottom: 0.56rem;
}

.event-highlight {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.2vw, 1.28rem);
    letter-spacing: 0.9px;
    color: #f0d08a;
    margin-bottom: 0.36rem;
    line-height: 1.35;
}

.event-sub {
    color: rgba(247, 241, 229, 0.85);
    font-size: clamp(1.03rem, 2vw, 1.22rem);
    line-height: 1.5;
}

.map-container {
    margin-bottom: 1.65rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
    isolation: isolate;
}

.map-container iframe {
    display: block;
    border-radius: inherit;
}

/* ============================================
   Badges
   ============================================ */

.badges {
    margin-top: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.72rem;
    justify-content: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.48rem 1.05rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(230, 200, 130, 0.065);
    font-family: var(--font-display);
    font-size: 0.66rem;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: #f2dca8;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.76rem 2rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(210, 161, 74, 0.2) 0%, rgba(210, 161, 74, 0.04) 100%);
    color: #ffefc7 !important;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.9px;
    transition: transform 220ms var(--ease), background 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
    border-color: rgba(230, 200, 130, 0.85);
    background:
        linear-gradient(180deg, rgba(210, 161, 74, 0.32) 0%, rgba(210, 161, 74, 0.12) 100%);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
}

.btn-large {
    padding: 0.95rem 2.8rem;
    font-size: 0.76rem;
}

/* ============================================
   Gift / IBAN
   ============================================ */

.iban-inline {
    margin-top: 1.2rem;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.regalo-joke {
    margin-top: -0.15rem;
    font-size: clamp(0.9rem, 1.6vw, 1rem) !important;
    opacity: 0.86;
    font-style: italic;
}

.iban-number {
    font-family: var(--font-body);
    font-size: clamp(0.98rem, 2vw, 1.15rem);
    font-weight: 600;
    letter-spacing: 1px;
    color: #ffefc8;
}

.btn-copy-inline {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(230, 200, 130, 0.52);
    background: rgba(230, 200, 130, 0.04);
    color: #f2dca8;
    cursor: pointer;
    transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}

.btn-copy-inline svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.btn-copy-inline:hover {
    border-color: rgba(230, 200, 130, 0.78);
    background: rgba(230, 200, 130, 0.12);
    color: #fff3d6;
}

.btn-copy-inline.copied {
    transform: scale(0.96);
    background: rgba(230, 200, 130, 0.2);
    color: #fff8e7;
}

.iban-toast {
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translate(-50%, 4px);
    font-family: var(--font-display);
    font-size: 0.52rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(240, 208, 138, 0.86);
    opacity: 0;
    visibility: hidden;
    transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 0ms linear 160ms;
    pointer-events: none;
}

.iban-toast.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}

/* Button row for side-by-side buttons */
.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

/* ============================================
   Modal
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(8, 5, 7, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms var(--ease);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    position: relative;
    width: min(92vw, 680px);
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background:
        linear-gradient(160deg, rgba(43, 10, 21, 0.5) 0%, rgba(15, 10, 12, 0.85) 75%),
        rgba(12, 8, 10, 0.95);
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(230, 200, 130, 0.14);
    transform: translateY(20px);
    transition: transform 300ms var(--ease);
}

.modal::-webkit-scrollbar {
    display: none;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: sticky;
    top: 0;
    z-index: 2001;
    float: right;
    margin-bottom: -36px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(8, 5, 7, 0.5);
    color: var(--cream);
    font-size: 1.3rem;
    cursor: pointer;
    transition: border-color 200ms var(--ease), color 200ms var(--ease);
}

.modal-close:hover {
    border-color: rgba(230, 200, 130, 0.7);
    color: var(--gold-soft);
}

.modal-title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: clamp(2px, 0.4vw, 4px);
    color: #f0d08a;
    text-align: center;
    margin-bottom: 0.6rem;
}

.modal-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.72rem;
    margin-bottom: 1.5rem;
}

.modal-ornament::before,
.modal-ornament::after {
    content: '';
    width: clamp(40px, 8vw, 70px);
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(230, 200, 130, 0.8) 60%, transparent 100%);
}

.modal-ornament::after {
    transform: scaleX(-1);
}

.modal-photo {
    width: 100%;
    margin: 0 0 1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--line);
}

.modal-photo img {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(0.22) saturate(0.82) contrast(1.06) brightness(0.93);
}

.modal-body {
    text-align: center;
}

.modal-body p {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: rgba(247, 241, 229, 0.93);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-signature {
    margin-top: 0.5rem;
    font-family: var(--font-script);
    font-size: clamp(1.4rem, 3vw, 1.8rem) !important;
    font-weight: 700;
    color: var(--gold) !important;
}

.confirmar-btn {
    margin-top: 1.7rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: 3rem 1.3rem 3.2rem;
    background:
        linear-gradient(180deg, rgba(8, 5, 7, 0.72) 0%, rgba(8, 5, 7, 0.98) 100%);
}

.footer-frame {
    max-width: var(--section);
    margin: 0 auto;
    border-top: 1px solid var(--line);
    padding-top: 2rem;
    text-align: center;
}

.footer-message {
    color: rgba(247, 241, 229, 0.74);
    font-size: clamp(1.12rem, 2.2vw, 1.36rem);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.footer-names {
    display: inline-block;
    font-family: var(--font-script);
    font-weight: 700;
    font-size: clamp(2.3rem, 5vw, 3.2rem);
    line-height: 1.12;
    padding-bottom: 0.24em;
    color: #fff;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
    .footer-names {
        background: linear-gradient(180deg, #f4deb0 0%, #d4ab5f 42%, #b1782e 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

.footer-signature {
    margin-top: 0.45rem;
    font-family: var(--font-display);
    font-size: 0.62rem;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: rgba(247, 241, 229, 0.62);
}

/* ============================================
   Motion
   ============================================ */

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-2px);
    }
}

@keyframes heroPan {
    from {
        transform: scale(1.03) translateY(0);
    }
    to {
        transform: scale(1.07) translateY(-6px);
    }
}

.hero-invite {
    animation: fadeInUp 700ms ease 130ms both;
}

.hero-names {
    animation: fadeInUp 700ms ease 300ms both;
}

.hero-details {
    animation: fadeInUp 700ms ease 470ms both;
}

.countdown {
    animation: fadeInUp 700ms ease 640ms both;
}

.scroll-indicator {
    animation: fadeInUp 700ms ease 810ms both, bounce 2.5s ease infinite 1.2s;
}

/* ============================================
   Accessibility
   ============================================ */

:focus-visible {
    outline: 2px solid #f0d08a;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }

    .section-inner {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
    .hero-content {
        width: min(92vw, 620px);
    }

    .section-frame {
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 0.85rem 0;
        backdrop-filter: none;
    }

    .nav-inner {
        z-index: 1002;
    }

    .nav-logo,
    .nav-toggle {
        position: relative;
        z-index: 1003;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        padding: calc(86px + env(safe-area-inset-top)) 1.5rem calc(2.2rem + env(safe-area-inset-bottom));
        background:
            linear-gradient(180deg, rgba(8, 5, 7, 0.985) 0%, rgba(20, 9, 14, 0.985) 100%);
        backdrop-filter: blur(10px) saturate(1.04);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 1.15rem;
        overflow-y: auto;
        z-index: 1001;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 0ms linear 220ms;
        visibility: hidden;
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        visibility: visible;
        transition: opacity 220ms var(--ease), transform 220ms var(--ease);
    }

    .nav-links li {
        width: min(90vw, 420px);
        text-align: center;
    }

    .nav-links a {
        display: inline-flex;
        justify-content: center;
        width: 100%;
        padding: 0.38rem 0.35rem;
        border-radius: 999px;
        font-size: 0.9rem;
        letter-spacing: 2.8px;
    }

    .nav-links .nav-highlight {
        color: var(--gold) !important;
    }

    .hero {
        padding-top: calc(64px + env(safe-area-inset-top));
        padding-bottom: clamp(20px, 5vh, 44px);
    }

    .hero-image {
        display: none;
    }

    .hero-overlay {
        display: none;
    }

    .hero-content {
        margin-top: 8px;
        min-height: clamp(590px, 70dvh, 760px);
        padding: 1.58rem 1rem 1.74rem;
        border-radius: 20px;
    }

    .hero-content::before {
        background-image: url('../img/hero-sm.jpg');
        background-position: center 14%;
        filter: brightness(0.65) contrast(1.06) saturate(1.04);
    }

    .hero-content::after {
        background:
            radial-gradient(circle at 50% 18%, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.12) 44%, rgba(0, 0, 0, 0.3) 100%),
            linear-gradient(180deg, rgba(8, 5, 7, 0.28) 0%, rgba(8, 5, 7, 0.1) 27%, rgba(8, 5, 7, 0.1) 72%, rgba(8, 5, 7, 0.4) 100%),
            linear-gradient(90deg, rgba(8, 5, 7, 0.3) 0%, rgba(8, 5, 7, 0.08) 22%, rgba(8, 5, 7, 0.08) 78%, rgba(8, 5, 7, 0.3) 100%);
    }

    .hero-names {
        margin-bottom: 2.35rem;
    }

    .hero-details {
        margin-bottom: 1.55rem;
    }

    .hero-name {
        font-size: clamp(3.4rem, 16vw, 5.5rem);
        line-height: 1.1;
        padding-bottom: 0.24em;
        -webkit-text-stroke: 0.12px rgba(45, 28, 6, 0.36);
    }

    .hero-date,
    .hero-venue {
        letter-spacing: 2.4px;
    }

    .countdown {
        gap: 0.35rem;
        padding: 0.28rem 0.42rem;
        border-radius: 14px;
    }

    .section {
        padding: 3.6rem 1rem;
    }

    .section-frame {
        padding: 1.7rem 1rem;
    }

    .section-title {
        font-size: clamp(1.24rem, 6.2vw, 1.9rem);
    }

    .section-photo {
        margin-bottom: 1.2rem;
        border-radius: 14px;
    }

    .ratio-4-5,
    .ratio-4-3 {
        width: min(100%, 340px);
    }

    .section-body p {
        font-size: clamp(1.08rem, 4.6vw, 1.34rem);
    }

    .event-details {
        grid-template-columns: 1fr;
    }

    .iban-number {
        letter-spacing: 0.9px;
    }

    .iban-inline {
        flex-direction: column;
        gap: 0.45rem;
    }

    .confirmar-btn {
        margin-top: 1.25rem;
    }

    .btn,
    .btn-large {
        width: 100%;
        max-width: 360px;
        letter-spacing: 2.2px;
    }
}

@media (max-width: 420px) {
    .nav-logo {
        font-size: 1.9rem;
    }

    .hero-invite {
        font-size: 0.72rem;
        letter-spacing: 1.7px;
    }

    .hero-name {
        font-size: clamp(3rem, 17vw, 4.6rem);
    }

    .hero-time,
    .hero-location {
        font-size: 1rem;
    }

    .countdown-number {
        font-size: 1rem;
    }

    .countdown-label {
        font-size: 0.4rem;
        letter-spacing: 1.3px;
    }

    .badge {
        font-size: 0.59rem;
    }
}
