/* ============================================================
   KEVIN & KAREN — 13 · 04 · 2027
   Paleta blanca editorial:
   --blanc    #ffffff  base
   --ivory    #faf9f6  fondo general
   --pearl    #f2efe9  superficies alternas
   --line     #e6e1d7  hairlines
   --champ    #b39c6d  acento champán (uso mínimo)
   --ink      #2c2a26  texto principal
   --ink-soft #7d776c  texto secundario
   ============================================================ */
:root {
    --blanc: #ffffff;
    --ivory: #faf9f6;
    --pearl: #f2efe9;
    --line: #e6e1d7;
    --champ: #b39c6d;
    --ink: #2c2a26;
    --ink-soft: #7d776c;
    --serif: 'Cormorant Garamond', serif;
    --caps: 'Marcellus', serif;
    --sans: 'Jost', sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--serif);
    background: var(--ivory);
    color: var(--ink);
    overflow: hidden; 
    -webkit-font-smoothing: antialiased;
}

body.open { overflow-x: hidden; overflow-y: auto; }

::selection { background: var(--champ); color: var(--blanc); }

/* Utilidades tipográficas */
.eyebrow {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 0.68rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--champ);
}

.section-title {
    font-family: var(--serif);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 1.1;
    color: var(--ink);
    margin: 18px 0 0;
}

/* ============================================================
   APERTURA — Monograma con anillo que se dibuja y revelado
   circular (clip-path) en lugar del sobre con solapas
   ============================================================ */
.veil {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--blanc);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
    cursor: pointer;
    transition: clip-path 1.6s var(--ease-out), visibility 0s linear 1.6s;
    clip-path: circle(150% at 50% 50%);
}

.veil.opening {
    clip-path: circle(0% at 50% 50%);
    visibility: hidden;
    pointer-events: none;
}

.monogram {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.monogram svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.monogram circle {
    fill: none;
    stroke: var(--champ);
    stroke-width: 1;
}

.monogram .ring-bg { stroke: var(--line); }

.monogram .ring-draw {
    stroke-dasharray: 660;
    stroke-dashoffset: 660;
    animation: drawRing 2.6s var(--ease-out) 0.4s forwards;
}

@keyframes drawRing {
    to { stroke-dashoffset: 0; }
}

.monogram-letters {
    font-family: var(--serif);
    font-weight: 300;
    font-style: italic;
    font-size: 4.2rem;
    color: var(--ink);
    letter-spacing: 0.04em;
    opacity: 0;
    animation: fadeUp 1.2s var(--ease-out) 1s forwards;
}

.monogram-letters span { color: var(--champ); font-size: 2.6rem; margin: 0 4px; }

.veil-names {
    font-family: var(--caps);
    font-size: 0.8rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--ink-soft);
    opacity: 0;
    animation: fadeUp 1.2s var(--ease-out) 1.4s forwards;
    text-indent: 0.5em; 
}

.veil-cta {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 0.62rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--champ);
    border: 1px solid var(--line);
    border-radius: 40px;
    padding: 13px 30px 13px 36px;
    opacity: 0;
    animation: fadeUp 1.2s var(--ease-out) 1.9s forwards, breathe 3s ease-in-out 3.2s infinite;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes breathe {
    0%, 100% { border-color: var(--line); }
    50% { border-color: var(--champ); }
}

/* ============================================================
   NAVBAR — minimal, aparece al hacer scroll
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 5vw, 60px);
    background: rgba(250, 249, 246, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease-out);
}

.navbar.visible { transform: translateY(0); }

.nav-logo {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.3rem;
    color: var(--ink);
    text-decoration: none;
}

.nav-logo em { color: var(--champ); font-style: italic; }

.nav-menu {
    display: flex;
    gap: 6px;
    list-style: none;
}

.nav-menu a {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 10px 14px;
    transition: color 0.3s ease;
}

.nav-menu a:hover, .nav-menu a:focus-visible { color: var(--champ); }

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 34px;
    height: 30px;
    position: relative;
    z-index: 1002;
}

.hamburger span {
    position: absolute;
    left: 6px;
    right: 6px;
    height: 1.5px;
    background: var(--ink);
    transition: 0.3s var(--ease-out);
}

.hamburger span:nth-child(1) { top: 9px; }
.hamburger span:nth-child(2) { top: 15px; }
.hamburger span:nth-child(3) { top: 21px; }

.hamburger.active span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

/* Menú móvil de pantalla completa */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: var(--blanc);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.active { opacity: 1; visibility: visible; }

.mobile-menu a {
    font-family: var(--serif);
    font-weight: 300;
    font-style: italic;
    font-size: 1.9rem;
    color: var(--ink);
    text-decoration: none;
    padding: 8px 0;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), color 0.3s;
}

.mobile-menu.active a { opacity: 1; transform: translateY(0); }
.mobile-menu.active a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.active a:nth-child(5) { transition-delay: 0.32s; }
.mobile-menu.active a:nth-child(6) { transition-delay: 0.38s; }
.mobile-menu.active a:nth-child(7) { transition-delay: 0.44s; }
.mobile-menu a:hover { color: var(--champ); }

/* ============================================================
   HERO — foto a pantalla completa detrás del texto
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 110px 24px 90px;
    position: relative;
    background: var(--ivory);
    overflow: hidden;
    color: var(--blanc);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
}

body.open .hero-media img { animation: coverSettle 3s var(--ease-out) 0.6s forwards; }

@keyframes coverSettle {
    to { transform: scale(1); }
}

.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(20, 18, 15, 0.3) 0%,
        rgba(20, 18, 15, 0.38) 50%,
        rgba(20, 18, 15, 0.44) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: clamp(14px, 3vw, 30px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    pointer-events: none;
    z-index: 2;
}

.hero-main {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-inner > * {
    opacity: 0;
    transform: translateY(22px);
}

body.open .hero-inner > * {
    animation: fadeUp 1.1s var(--ease-out) forwards;
}

body.open .hero-inner > *:nth-child(1) { animation-delay: 0.9s; }
body.open .hero-inner > *:nth-child(2) { animation-delay: 1.1s; }
body.open .hero-inner > *:nth-child(3) { animation-delay: 1.35s; }
body.open .hero-inner > *:nth-child(4) { animation-delay: 1.6s; }
body.open .hero-inner > *:nth-child(5) { animation-delay: 1.85s; }
body.open .hero-inner > *:nth-child(6) { animation-delay: 2.1s; }

.hero-inner .eyebrow { color: #e6d4a8; text-shadow: 0 1px 10px rgba(0,0,0,0.3); }

.hero-names {
    font-family: var(--serif);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(3.4rem, 11vw, 7.5rem);
    line-height: 1.05;
    margin: 26px 0 10px;
    color: var(--blanc);
    text-shadow: 0 3px 26px rgba(0, 0, 0, 0.4);
}

.hero-names .amp {
    display: block;
    font-size: 0.35em;
    color: #e6d4a8;
    margin: 6px 0;
}

.hero-date {
    font-family: var(--caps);
    font-size: clamp(0.85rem, 2.4vw, 1.05rem);
    letter-spacing: 0.55em;
    text-indent: 0.55em;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
    margin-top: 22px;
}

.hero-line {
    width: 1px;
    height: 54px;
    background: rgba(255, 255, 255, 0.45);
    margin: 34px auto 30px;
}

.countdown {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.count-unit {
    padding: 0 clamp(14px, 3vw, 36px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.count-unit + .count-unit { border-left: 1px solid rgba(255, 255, 255, 0.4); }

.count-num {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(1.9rem, 5vw, 3.1rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--blanc);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.count-label {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 0.58rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 0.58rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
    z-index: 2;
    opacity: 0;
}

body.open .scroll-hint { animation: fadeUp 1s var(--ease-out) 2.6s forwards, hintFloat 2.6s ease-in-out 3.6s infinite; }

@keyframes hintFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-7px); }
}

.hero.no-cover { color: var(--ink); }
.hero.no-cover::before { border-color: var(--line); }
.hero.no-cover .hero-inner .eyebrow { color: var(--champ); text-shadow: none; }
.hero.no-cover .hero-names { color: var(--ink); text-shadow: none; }
.hero.no-cover .hero-names .amp { color: var(--champ); }
.hero.no-cover .hero-date { color: var(--ink-soft); text-shadow: none; }
.hero.no-cover .hero-line { background: var(--line); }
.hero.no-cover .count-unit + .count-unit { border-left-color: var(--line); }
.hero.no-cover .count-num { color: var(--ink); text-shadow: none; }
.hero.no-cover .count-label { color: var(--ink-soft); }
.hero.no-cover .scroll-hint { color: var(--ink-soft); text-shadow: none; }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.in { opacity: 1; transform: translateY(0); }

.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* ============================================================
   HISTORIA
   ============================================================ */
.story {
    background: var(--blanc);
    padding: clamp(90px, 14vh, 150px) 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.story-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.story-amp {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(4rem, 10vw, 6rem);
    color: var(--pearl);
    line-height: 0.8;
    margin-bottom: -0.35em;
    user-select: none;
}

.story-text {
    font-size: clamp(1.08rem, 2.4vw, 1.25rem);
    font-weight: 400;
    line-height: 2;
    color: var(--ink);
    margin-top: 40px;
}

.story-text + .story-text { margin-top: 28px; }

.story-divider {
    width: 60px;
    height: 1px;
    background: var(--champ);
    margin: 46px auto 0;
    opacity: 0.6;
}

.story-sign {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--ink-soft);
    margin-top: 26px;
}

/* ============================================================
   EVENTO
   ============================================================ */
.event {
    background: var(--ivory);
    padding: clamp(90px, 14vh, 150px) 24px;
}

.event-inner { max-width: 1000px; margin: 0 auto; text-align: center; }

.event-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 70px;
    border: 1px solid var(--line);
    background: var(--blanc);
}

.event-card {
    padding: clamp(44px, 6vw, 70px) clamp(28px, 5vw, 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.event-card + .event-card { border-left: 1px solid var(--line); }

.event-card-name {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.7rem;
    margin-top: 4px;
}

.event-card-hour {
    font-family: var(--caps);
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-indent: 0.3em;
    color: var(--ink);
    padding: 10px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    width: min(220px, 100%);
    margin: 8px 0;
}

.event-card-address {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 0.82rem;
    line-height: 1.9;
    letter-spacing: 0.05em;
    color: var(--ink-soft);
    max-width: 280px;
}

.btn-line {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 400;
    font-size: 0.64rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--ink);
    padding: 14px 30px 14px 34px;
    margin-top: 16px;
    transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s;
    cursor: pointer;
    background: transparent;
}

.btn-line:hover, .btn-line:focus-visible {
    background: var(--ink);
    color: var(--blanc);
}

.dresscode {
    margin-top: 26px;
    border: 1px solid var(--line);
    background: var(--blanc);
    padding: clamp(44px, 6vw, 64px) clamp(28px, 5vw, 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.dresscode-title {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.7rem;
}

.dresscode-desc {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    line-height: 1.9;
    color: var(--ink-soft);
    max-width: 480px;
}

.palette {
    display: flex;
    gap: 14px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 3px rgba(255,255,255,0.6);
    transition: transform 0.25s var(--ease-out);
}

.swatch:hover { transform: scale(1.18); }

.sw-1 { background: #f3efe8; }
.sw-2 { background: #ddd5c7; }
.sw-3 { background: #c9bda5; }
.sw-4 { background: #a9b0a0; }
.sw-5 { background: #8f8578; }

.palette-note {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-top: 6px;
}

/* ============================================================
   PROGRAMA
   ============================================================ */
.program {
    background: var(--blanc);
    border-top: 1px solid var(--line);
    padding: clamp(90px, 14vh, 150px) 24px;
    text-align: center;
}

.program-inner { max-width: 640px; margin: 0 auto; }

.tl {
    position: relative;
    margin: 70px auto 0;
}

.tl-line,
.tl-progress {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    transform: translateX(-50%);
}

.tl-line { height: 100%; background: var(--line); }

.tl-progress { height: 0; background: var(--champ); }

.tl-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
}

.tl-point {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--blanc);
    border: 1px solid var(--champ);
    transition: background 0.4s ease;
    z-index: 2;
}

.tl-point.on { background: var(--champ); }

.tl-time {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
    padding-right: clamp(20px, 5vw, 40px);
}

.tl-hour {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--champ);
}

.tl-event {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.1rem, 2.6vw, 1.35rem);
    color: var(--ink);
    line-height: 1.3;
}

.tl-icon {
    width: 45%;
    display: flex;
    justify-content: flex-start;
    padding-left: clamp(20px, 5vw, 40px);
}

.tl-icon svg {
    width: clamp(38px, 6vw, 48px);
    height: clamp(38px, 6vw, 48px);
    stroke: var(--champ);
    fill: none;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}

.tl-item:hover .tl-icon svg { opacity: 1; transform: translateY(-3px); }

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery {
    background: var(--blanc);
    padding: clamp(90px, 14vh, 150px) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
    overflow: hidden;
}

.gallery-scroll {
    display: flex;
    gap: clamp(18px, 3vw, 34px);
    overflow-x: auto;
    padding: 60px clamp(24px, 8vw, 120px) 30px;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
}

.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-scroll.dragging { cursor: grabbing; scroll-snap-type: none; }

.frame {
    flex-shrink: 0;
    width: clamp(230px, 30vw, 320px);
    scroll-snap-align: center;
    background: var(--blanc);
    border: 1px solid var(--line);
    padding: 10px;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
    cursor: pointer;
}

.frame:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(44, 42, 38, 0.1);
}

.frame.no-photo { cursor: default; }
.frame.no-photo:hover { transform: none; box-shadow: none; }

.frame-media {
    position: relative;
    aspect-ratio: 3 / 4;
    background: linear-gradient(160deg, var(--pearl) 0%, var(--ivory) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.frame-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(35%);
    transition: filter 0.5s ease, transform 0.8s var(--ease-out);
    -webkit-user-drag: none;
    user-select: none;
}

.frame:hover .frame-media img { filter: grayscale(0%); transform: scale(1.04); }

.frame-ph {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 300;
    font-size: 2rem;
    color: var(--line);
    user-select: none;
}

.frame-caption {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding: 14px 0 6px;
}

.gallery-hint {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 0.58rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-soft);
    opacity: 0.7;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(250, 249, 246, 0.96);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    padding: 30px;
}

.lightbox.active { opacity: 1; visibility: visible; }

.lightbox img {
    max-width: min(88vw, 900px);
    max-height: 86vh;
    border: 1px solid var(--line);
    padding: 10px;
    background: var(--blanc);
    box-shadow: 0 30px 80px rgba(44, 42, 38, 0.15);
}

.lightbox-close {
    position: absolute;
    top: 26px;
    right: 34px;
    font-family: var(--sans);
    font-weight: 300;
    font-size: 2rem;
    color: var(--ink);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s var(--ease-out), color 0.3s;
}

.lightbox-close:hover { transform: rotate(90deg); color: var(--champ); }

/* ============================================================
   REGALOS
   ============================================================ */
.gifts {
    background: var(--ivory);
    padding: clamp(90px, 14vh, 150px) 24px;
    text-align: center;
}

.gifts-inner { max-width: 560px; margin: 0 auto; }

.gifts-message {
    font-size: clamp(1.05rem, 2.3vw, 1.2rem);
    line-height: 2;
    color: var(--ink);
    margin: 40px 0 50px;
}

.bank-card {
    background: var(--blanc);
    border: 1px solid var(--line);
    padding: clamp(40px, 6vw, 56px) clamp(26px, 5vw, 50px);
    position: relative;
}

.bank-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 1px;
    background: var(--champ);
}

.bank-name {
    font-family: var(--caps);
    font-size: 0.9rem;
    letter-spacing: 0.4em;
    text-indent: 0.4em;
    color: var(--ink);
    margin-bottom: 34px;
}

.bank-row + .bank-row { margin-top: 26px; }

.bank-label {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 0.6rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--champ);
    margin-bottom: 10px;
}

.bank-value {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--caps);
    font-size: clamp(0.95rem, 3vw, 1.15rem);
    letter-spacing: 0.12em;
    color: var(--ink);
}

.bank-value .select-all { user-select: all; cursor: pointer; }

.copy-btn {
    background: none;
    border: 1px solid var(--line);
    padding: 7px 9px;
    cursor: pointer;
    color: var(--ink-soft);
    display: inline-flex;
    transition: all 0.25s ease;
}

.copy-btn:hover { border-color: var(--ink); color: var(--ink); }
.copy-btn.copied { border-color: var(--champ); color: var(--champ); }
.copy-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.gifts-footer {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--ink-soft);
    margin-top: 40px;
}

/* ============================================================
   RSVP
   ============================================================ */
.rsvp {
    background: var(--blanc);
    border-top: 1px solid var(--line);
    padding: clamp(90px, 14vh, 150px) 24px;
}

.rsvp-inner { max-width: 560px; margin: 0 auto; text-align: center; }

.rsvp-note {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    line-height: 1.9;
    color: var(--ink-soft);
    margin-top: 22px;
}

.rsvp-form { margin-top: 60px; text-align: left; }

.field { margin-bottom: 38px; }

.field label {
    display: block;
    font-family: var(--sans);
    font-weight: 400;
    font-size: 0.6rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--champ);
    margin-bottom: 12px;
}

.field label .req { color: var(--ink-soft); }

.field input,
.field select,
.field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 10px 2px 14px;
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--ink);
    border-radius: 0;
    transition: border-color 0.35s ease;
    appearance: none;
    -webkit-appearance: none;
}

.field select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237d776c' stroke-width='1.5'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 4px center;
    cursor: pointer;
}

.field textarea { resize: vertical; min-height: 90px; line-height: 1.7; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-bottom-color: var(--champ);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--line); font-style: italic; }

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
}

.rsvp-submit {
    width: 100%;
    margin-top: 10px;
    padding: 18px;
    letter-spacing: 0.36em;
    text-indent: 0.36em;
}

.rsvp-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.form-message {
    display: none;
    margin-top: 26px;
    padding: 16px 20px;
    font-family: var(--sans);
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-align: center;
    border: 1px solid var(--line);
    animation: fadeUp 0.4s var(--ease-out);
}

.form-message.visible { display: block; }
.form-message.success { border-color: #9aa88f; color: #5c6b52; background: #f4f6f1; }
.form-message.error { border-color: #c9a0a0; color: #8a5252; background: #f8f1f1; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--ivory);
    border-top: 1px solid var(--line);
    padding: 60px 24px;
    text-align: center;
}

.footer-names {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 300;
    font-size: 1.8rem;
    color: var(--ink);
}

.footer-date {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 0.62rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-top: 14px;
}

/* ============================================================
   ACCESIBILIDAD Y RESPONSIVE
   ============================================================ */
:focus-visible { outline: 1.5px solid var(--champ); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 820px) {
    .nav-menu { display: none; }
    .hamburger { display: block; }
    .event-grid { grid-template-columns: 1fr; }
    .event-card + .event-card { border-left: none; border-top: 1px solid var(--line); }
    .hero { padding: 90px 20px 80px; }
}

@media (max-width: 560px) {
    .monogram { width: 180px; height: 180px; }
    .monogram-letters { font-size: 3.4rem; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .count-unit { padding: 0 14px; }
    .lightbox-close { top: 14px; right: 18px; }
}