/* ==========================================
   Boda Moderna Minimalista — plantilla de boda
   Negro + blanco + acento dorado · Bodoni Moda + Jost (locales, sin CDN)
   ========================================== */
@import url('/fonts/bodoni-moda/bodoni-moda.css');
@import url('/fonts/jost/jost.css');

:root {
  --gold: #c9a96e;        /* líneas y adornos */
  --gold-ink: #7d5f26;    /* texto dorado sobre blanco (6:1) */
  --ink: #1a1a1a;
  --muted: #55534f;
  --soft: #f6f4f0;
  --line: #e6e3de;
  --serif: 'Bodoni Moda', 'Didot', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 60px;
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body, button, input, select, textarea { font-family: var(--sans); }
body { color: var(--ink); background: #ffffff; line-height: 1.65; font-size: 1.0625rem; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.ic { width: 1.25em; height: 1.25em; flex: none; }

/* --- Tipografía --- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
.section-tag { text-transform: uppercase; letter-spacing: 0.32em; font-size: 0.75rem; font-weight: 500; color: var(--gold-ink); margin-bottom: 0.75rem; }

/* --- Estructura --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 7rem 0; }
.section-alt { background: var(--soft); }
.section-title { font-size: clamp(2rem, 5vw, 3rem); text-align: center; margin: 0 auto 3.5rem; max-width: 640px; }
@media (max-width: 768px) { .section { padding: 4rem 0; } .section-title { margin-bottom: 2.25rem; } .container { padding: 0 1.25rem; } }

.ph { position: relative; overflow: hidden; background: #e9e6e0; }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* --- Botones --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.9rem 2.25rem;
  font-weight: 500; font-size: 0.875rem; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 0.25s, transform 0.25s; cursor: pointer; border: none;
}
.btn-primary { background: var(--ink); color: #ffffff; }
.btn-primary:hover { background: #3a3a3a; transform: translateY(-2px); }

/* --- Navegación --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: 0 2rem;
}
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav-logo { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--serif); font-size: 1.375rem; font-weight: 500; letter-spacing: 0.08em; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.8125rem; color: var(--muted); transition: color 0.2s; text-transform: uppercase; letter-spacing: 0.12em; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.2rem; background: var(--ink); color: #fff; }
.nav-links .nav-cta:hover { background: #3a3a3a; color: #fff; }

.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; background: none; border: none; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform 0.2s, background 0.2s; }
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav { padding: 0 1.25rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 0.5rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); z-index: 200;
  }
  .nav-links.nav-open { display: flex; }
  .nav-links a { display: flex; align-items: center; min-height: 48px; font-size: 0.875rem; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { justify-content: center; margin-top: 0.9rem; border-bottom: none; min-height: 48px; }
}

/* --- Portada --- */
.hero {
  position: relative; min-height: min(100svh, 900px);
  display: flex; align-items: flex-end;
  color: #fff; background: #25303a; overflow: hidden;
  padding: calc(var(--nav-h) + 2rem) 0 4.5rem;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }
.hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 14, 18, 0.72) 0%, rgba(10, 14, 18, 0.42) 48%, rgba(10, 14, 18, 0.05) 100%),
              linear-gradient(0deg, rgba(10, 14, 18, 0.5) 0%, rgba(10, 14, 18, 0) 45%);
}
.hero-content { position: relative; z-index: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 2rem; text-align: left; pointer-events: none; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4); }
.hero-content :is(p, h1, span) { pointer-events: auto; }
.hero-kicker { font-size: 0.8125rem; letter-spacing: 0.4em; text-transform: uppercase; color: #ead9b4; margin-bottom: 1rem; }
.hero-names { font-size: clamp(3.5rem, 10vw, 7.5rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.02; }
.hero-ampersand { display: block; font-size: 0.42em; font-family: var(--serif); font-style: italic; font-weight: 400; color: #ead9b4; margin: 0.1rem 0; }
.hero-divider { width: 56px; height: 2px; background: var(--gold); margin: 1.75rem 0; }
.hero-date { font-size: 1.125rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 400; }
.hero-place { font-size: 0.875rem; letter-spacing: 0.25em; text-transform: uppercase; opacity: 0.88; margin-top: 0.5rem; }
@media (max-width: 768px) {
  .hero { align-items: flex-start; padding: calc(var(--nav-h) + 2.5rem) 0 2rem; }
  .hero-media img { object-position: 74% 55%; }
  .hero-veil { background: linear-gradient(180deg, rgba(10, 14, 18, 0.7) 0%, rgba(10, 14, 18, 0.3) 55%, rgba(10, 14, 18, 0.35) 100%); }
  .hero-content { padding: 0 1.25rem; }
  .hero-date { font-size: 1rem; letter-spacing: 0.22em; }
}

/* --- Cuenta regresiva --- */
.count-band { background: #fff; border-bottom: 1px solid var(--line); padding: 2.25rem 1.5rem; }
.hero-countdown { display: flex; gap: 3.5rem; justify-content: center; }
.hero-countdown-item { text-align: center; min-width: 4.25rem; }
.hero-countdown-number { font-family: var(--serif); font-size: 2.75rem; font-weight: 400; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.hero-countdown-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); margin-top: 0.5rem; }
@media (max-width: 480px) {
  .hero-countdown { gap: 0.5rem; }
  .hero-countdown-item { flex: 1; min-width: 0; }
  .hero-countdown-number { font-size: 2.125rem; }
  .hero-countdown-label { letter-spacing: 0.04em; font-size: 0.75rem; }
}

/* --- Historia --- */
.story-layout { display: grid; grid-template-columns: 5fr 6fr; gap: 4.5rem; align-items: center; max-width: 980px; margin: 0 auto; }
.story-photo { aspect-ratio: 4 / 5; }
.story-quote { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; font-style: italic; margin-bottom: 1.5rem; }
.story-quote::before { content: '“'; color: var(--gold-ink); }
.story-quote::after { content: '”'; color: var(--gold-ink); }
.story-text { color: var(--muted); line-height: 1.8; }
.story-text > p:not(.story-quote) { margin-bottom: 1rem; }
.story-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.story-detail-item { border-left: 2px solid var(--gold); padding-left: 1rem; }
.story-detail-year { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); font-weight: 500; margin: 0 !important; }
.story-detail-label { font-size: 0.9375rem; color: var(--muted); margin: 0.1rem 0 0 !important; }
@media (max-width: 768px) {
  .story-layout { grid-template-columns: 1fr; gap: 2rem; }
  .story-photo { aspect-ratio: 4 / 3; }
  .story-photo img { object-position: 50% 30%; }
}

/* --- Evento --- */
.event-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 940px; margin: 0 auto; background: #fff; border: 1px solid var(--line); }
.event-card { text-align: center; }
.event-card + .event-card { border-left: 1px solid var(--line); }
.event-card .ph { aspect-ratio: 4 / 3; }
.event-body { padding: 0 2.25rem 2.5rem; }
.event-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: -28px auto 1.25rem; position: relative; z-index: 1; border-radius: 50%; background: #fff; border: 1px solid var(--gold); color: var(--gold-ink); }
.event-icon .ic { width: 24px; height: 24px; }
.event-card h3 { font-size: 1.625rem; margin-bottom: 0.9rem; }
.event-detail { font-size: 1rem; color: var(--muted); line-height: 1.6; }
.event-time { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-weight: 500; color: var(--gold-ink); font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 1rem; }
.event-map-link {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; margin-top: 0.6rem;
  font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em;
  border-bottom: 1px solid var(--ink); transition: color 0.2s, border-color 0.2s;
}
.event-map-link .ic { width: 1.1em; height: 1.1em; }
.event-map-link:hover { color: var(--gold-ink); border-color: var(--gold-ink); }
@media (max-width: 768px) {
  .event-grid { grid-template-columns: 1fr; }
  .event-card + .event-card { border-left: none; border-top: 1px solid var(--line); }
  .event-body { padding: 0 1.5rem 2rem; }
}

/* --- Código de vestimenta --- */
.dress { text-align: center; margin-top: 4.5rem; }
.dress-title { font-size: 1.75rem; font-weight: 400; margin-bottom: 1.75rem; }
.dress-code-grid { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.dress-item { text-align: center; max-width: 120px; }
.dress-circle { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 0.75rem; border: 1px solid #d6d2cb; }
.dress-label { font-size: 0.9375rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 480px) { .dress-code-grid { gap: 1.5rem 1.25rem; } .dress-circle { width: 60px; height: 60px; } }

/* --- Galería --- */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 340px; grid-auto-flow: dense; gap: 1rem; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid > :nth-child(1) { grid-column: span 2; grid-row: span 1; }
.gallery-grid > :nth-child(1) img { object-position: 50% 45%; }
.gallery-grid > .tm-add-btn { grid-column: 1 / -1; grid-row: auto; }
@media (max-width: 768px) { .gallery-grid { grid-auto-rows: 210px; gap: 0.5rem; } }

/* --- RSVP --- */
.rsvp-box { text-align: center; max-width: 540px; margin: 0 auto; padding: 3rem 2rem; background: #fff; border: 1px solid var(--line); }
.rsvp-box p { color: var(--muted); margin-bottom: 2rem; line-height: 1.7; }
@media (max-width: 480px) { .rsvp-box { padding: 2.25rem 1.25rem; } .rsvp-box .btn { width: 100%; padding-left: 1rem; padding-right: 1rem; } }

/* --- Mesa de regalos --- */
.registry-grid { display: grid; grid-template-columns: 1fr 1fr; max-width: 760px; margin: 0 auto; border: 1px solid var(--line); background: var(--line); gap: 1px; }
.registry-card { background: #ffffff; padding: 2.5rem 2rem; text-align: center; }
.card-icon, .travel-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-ink); margin-bottom: 1rem; }
.card-icon .ic, .travel-icon .ic { width: 24px; height: 24px; }
.registry-card { display: flex; flex-direction: column; align-items: center; }
.registry-card h3 { font-size: 1.375rem; margin-bottom: 0.75rem; }
.registry-detail { max-width: 100%; font-size: 1rem; color: var(--muted); margin-bottom: 0.25rem; overflow-wrap: anywhere; }
.qr-placeholder { width: 120px; height: 120px; margin: 0.75rem auto; border: 1px solid #d6d2cb; object-fit: cover; }
.copy-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: auto; padding: 0 1.5rem;
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
  font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.copy-btn:hover { background: var(--ink); color: #fff; }
@media (max-width: 768px) { .registry-grid { grid-template-columns: 1fr; } }

/* --- Alojamiento --- */
.travel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.travel-card { background: #ffffff; padding: 2rem 1.75rem; border-top: 2px solid var(--ink); }
.travel-card h3 { font-size: 1.375rem; margin-bottom: 0.5rem; }
.travel-detail { font-size: 1rem; color: var(--muted); margin-bottom: 0.25rem; line-height: 1.6; }
.travel-distance, .travel-line { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.9375rem; color: var(--gold-ink); font-weight: 500; margin-bottom: 0.75rem; }
.travel-distance .ic, .travel-line .ic { margin-top: 0.15em; }
.travel-line { color: var(--muted); font-weight: 400; font-size: 1rem; }
.travel-line .ic { color: var(--gold-ink); }
.travel-phone { display: flex; align-items: center; gap: 0.55rem; min-height: 44px; font-size: 1rem; font-weight: 500; }
.travel-phone .ic { color: var(--gold-ink); }
.travel-phone:hover { color: var(--gold-ink); }

/* --- Preguntas --- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { padding: 1.2rem 0; min-height: 60px; cursor: pointer; font-weight: 500; font-size: 1.0625rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: color 0.2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--gold-ink); font-weight: 300; flex: none; }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { color: var(--gold-ink); }
.faq-answer { padding: 0 0 1.35rem; color: var(--muted); line-height: 1.7; }

/* --- Cortejo --- */
.party-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem 1.5rem; }
.party-card { text-align: center; }
.party-initials {
  width: 120px; height: 120px; border-radius: 50%;
  border: 1px solid var(--ink); background-color: #fff; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; font-family: var(--serif); font-weight: 500; margin: 0 auto 1.1rem;
  outline: 1px solid var(--line); outline-offset: 5px;
}
.party-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; margin-bottom: 0.25rem; }
.party-role { font-size: 0.8125rem; color: var(--gold-ink); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 500; }
@media (max-width: 900px) { .party-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .party-initials { width: 100px; height: 100px; } }

/* --- Pie --- */
.footer { background: #1a1a1a; color: rgba(255, 255, 255, 0.85); text-align: center; padding: 4rem 1.5rem; }
.footer-hashtag { font-family: var(--serif); font-size: 2rem; color: #ffffff; font-weight: 400; margin-bottom: 1rem; overflow-wrap: anywhere; }
.footer-text { font-size: 1rem; max-width: 480px; margin: 0 auto 1.75rem; color: rgba(255, 255, 255, 0.8); }
.footer-credit { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.9375rem; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.75); }
.footer-credit .ic { width: 1.1em; height: 1.1em; color: var(--gold); fill: var(--gold); }

/* --- Utilidades --- */
.text-center { text-align: center; }

.registry-card > .registry-detail:nth-last-child(2) { margin-bottom: 0.9rem; }
