@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --ivory-0: #FAF8F2;
  --ivory-1: #F3ECDA;
  --ivory-2: #E8DFC6;
  --ivory-3: #DCCFAF;
  --ivory-4: #CFC09A;

  --gold-0:  #FBF5DC;
  --gold-1:  #E5D090;
  --gold-2:  #B8960C;
  --gold-3:  #926E06;
  --gold-4:  #664C00;

  --ink:      #1A1612;
  --ink-soft: #4A3E2C;
  --ink-dim:  #8A7A5A;

  --green:     #2e7d32;
  --green-bg:  rgba(46,125,50,0.10);
  --green-brd: #4caf50;
  --red:       #c62828;
  --red-bg:    rgba(198,40,40,0.08);
  --red-brd:   #ef5350;
  --amber:     #7a5a00;
  --amber-bg:  rgba(120,90,0,0.08);
  --amber-brd: #c49a00;

  --title:   'Cormorant Garamond', Georgia, serif;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Jost', system-ui, sans-serif;
  --font-d:  var(--title);
  --font-s:  var(--title);
  --font-b:  var(--sans);
  --font-display: var(--title);
  --font-body:    var(--sans);

  --r:    4px;
  --r-sm: 2px;
  --bdr:  1px solid rgba(184,150,12,0.22);

  --border:      var(--bdr);
  --border-rose: var(--bdr);
  --radius:      var(--r);
  --radius-sm:   var(--r-sm);

  --shadow-card: 0 2px 24px rgba(26,22,18,0.07);
  --shadow-sm:   0 1px 10px rgba(26,22,18,0.04);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory-0);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img { content-visibility: auto; }

#gifts, #hospedaje, #instagram, #padrinos, #trivia, #rsvp, #pases {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

body.env-open { overflow: hidden; }

a { text-decoration: none; color: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; font-family: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
ul  { list-style: none; }

.ico { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ico svg { display: block; width: 100%; height: 100%; }
.ico-14 { width:14px; height:14px; }
.ico-16 { width:16px; height:16px; }
.ico-18 { width:18px; height:18px; }
.ico-20 { width:20px; height:20px; }
.ico-24 { width:24px; height:24px; }
.ico-28 { width:28px; height:28px; }
.ico-32 { width:32px; height:32px; }

@media print {
  nav, .music-player, .petals-wrap, #countdown, #phrase, #itinerary,
  #location, #dresscode, #gallery, #gifts, #hospedaje, #instagram,
  #padrinos, #trivia, #rsvp, #acceso, footer, .env-overlay { display: none !important; }
  #pases { padding: 0 !important; }
  .pase-layout { grid-template-columns: 1fr !important; }
  .pase-preview { position: static !important; }
}

/* ====== ENVELOPE ====== */

.env-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--ivory-0);
  transition: opacity 1s ease, visibility 1s;
  overscroll-behavior: none; touch-action: none;
}

.env-overlay::before { content: ''; position: absolute; inset: 0; pointer-events: none; }

.env-overlay.closed { opacity: 0; visibility: hidden; pointer-events: none; }

.env-scene { position: absolute; inset: 0; }

.env-envelope { position: absolute; inset: 0; background: var(--ivory-2); overflow: hidden; }

.env-flap { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.env-flap-left   { background: #EDE6CC; clip-path: polygon(0 0, 0 100%, 50.5% 50%); }
.env-flap-right  { background: #E5DBBE; clip-path: polygon(100% 0, 100% 100%, 49.5% 50%); }
.env-flap-bottom { background: #EDE6CC; clip-path: polygon(0 100%, 100% 100%, 50% 49.5%); }

.env-flap-top {
  background: linear-gradient(175deg, #EDE6CC 0%, #E2D6B0 100%);
  clip-path: polygon(0 0, 100% 0, 50% 50.5%);
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 4;
}

.env-seal {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10; width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(150deg, #D4AF37 0%, #B8960C 60%, #926E06 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, transform 0.5s ease;
  box-shadow: 0 4px 20px rgba(184,150,12,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}

.env-seal-ring {
  position: absolute; inset: 6px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.30); pointer-events: none;
}

.env-seal-ring-2 {
  position: absolute; inset: 12px; border-radius: 50%;
  border: 0.5px solid rgba(255,255,255,0.15); pointer-events: none;
}

.env-seal-monogram {
  font-family: var(--title); font-size: 1.6rem;
  color: rgba(255,255,255,0.95); line-height: 1;
  letter-spacing: 2px; font-weight: 300; font-style: italic;
}

.env-seal-text {
  font-family: var(--sans); font-size: 0.4rem; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.70); margin-top: 3px;
}

.env-letter { display: none; }
.env-letter-inner, .env-letter-tag, .env-letter-name, .env-letter-sub { display: none; }

.env-overlay.opening .env-flap-top { transform: perspective(1000px) rotateX(-175deg); }
.env-overlay.opening .env-seal     { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }

/* ====== BUTTONS ====== */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; border-radius: 50px;
  font-family: var(--sans); font-size: 0.6rem; font-weight: 400;
  letter-spacing: 2.5px; text-transform: uppercase;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.15s, box-shadow 0.25s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none;
}

.btn:active { transform: scale(0.96); transition-duration: 0.08s; }

.btn-primary { background: var(--gold-2); border: 1px solid var(--gold-2); color: var(--ivory-0); }
.btn-primary:hover { background: var(--gold-3); border-color: var(--gold-3); }

.btn-outline { background: transparent; border: 1px solid rgba(184,150,12,0.45); color: var(--gold-2); }
.btn-outline:hover { background: var(--gold-2); color: var(--ivory-0); border-color: var(--gold-2); }

.btn-block { width: 100%; justify-content: center; }

/* ====== REVEAL ====== */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* ====== SECTION BASE ====== */

section { position: relative; padding: 100px 24px; }

.section-inner { max-width: 1080px; margin: 0 auto; }

.section-eyebrow {
  display: block; font-family: var(--sans); font-size: 0.55rem; font-weight: 400;
  letter-spacing: 5px; text-transform: uppercase; color: var(--gold-2); margin-bottom: 12px;
}

.section-title {
  font-family: var(--title); font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 400; line-height: 1.05; color: var(--ink); margin-bottom: 14px;
}

.section-title em { font-style: italic; color: var(--gold-2); }

.section-sub {
  max-width: 460px; font-size: 0.78rem; font-weight: 300;
  letter-spacing: 0.3px; line-height: 2; color: var(--ink-dim);
}

/* ====== NAV ====== */

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 68px;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
  background: transparent; border-bottom: 1px solid transparent;
}

#mainNav { display: none !important; }

nav.scrolled {
  background: rgba(250,248,242,0.96);
  border-bottom-color: rgba(184,150,12,0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 16px rgba(26,22,18,0.06);
}

.nav-brand { font-family: var(--title); font-size: 1.5rem; color: var(--ink); opacity: 0.88; font-style: italic; letter-spacing: 1px; }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }

.nav-links a {
  font-family: var(--sans); font-size: 0.55rem; font-weight: 400;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--ink); opacity: 0.65; transition: opacity 0.2s, color 0.2s;
}

.nav-links a:hover { opacity: 1; color: var(--gold-2); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 1px; background: var(--ink); border-radius: 0; transition: all 0.25s; }

#navLinks.open {
  display: flex; flex-direction: column; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(250,248,242,0.98);
  align-items: center; justify-content: center; gap: 40px; z-index: 800;
}

#navLinks.open a { font-size: 1.1rem; letter-spacing: 3px; }

/* ====== HERO ====== */

#hero {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 100dvh; padding: 72px 24px 80px;
  background-image: url("/imgs/B1.jpg");
  background-size: cover; background-position: center top;
  text-align: center; overflow: hidden;
}

#hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: rgba(250, 248, 242, 0.598); pointer-events: none;
}

#hero::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; }

#hero > * { position: relative; z-index: 2; }

.hero-corner {
  position: absolute; width: 60px; height: 60px; z-index: 2; pointer-events: none;
  opacity: 0; animation: fadeUp 1s 0.3s both;
}

.hero-corner-tl { top: 40px; left: 40px; }
.hero-corner-tr { top: 40px; right: 40px; transform: scaleX(-1); }
.hero-corner-bl { bottom: 80px; left: 40px; transform: scaleY(-1); }
.hero-corner-br { bottom: 80px; right: 40px; transform: scale(-1); }

.hero-corner svg { color: rgba(184,150,12,0.50); width: 100%; height: 100%; }

.hero-rule {
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.7s 0.2s forwards;
}

.hero-rule-line { width: 48px; height: 1px; background: rgba(184,150,12,0.50); }

.hero-rule-diamond {
  width: 6px; height: 6px; background: var(--gold-2);
  transform: rotate(45deg);
}

.hero-pre {
  font-family: var(--sans); font-size: clamp(0.58rem, 1.5vw, 0.72rem); font-weight: 300;
  letter-spacing: 6px; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 10px; opacity: 0; animation: fadeUp 0.7s 0.4s forwards;
}

.hero-couple-wrap {
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; animation: fadeUp 0.7s 0.65s forwards;
}

.hero-name {
  font-family: var(--title); font-size: clamp(4rem, 13vw, 9rem);
  font-weight: 300; line-height: 0.92; color: var(--gold-3); margin: 0;
  font-style: italic;
}

.hero-amp {
  font-family: var(--title); font-size: clamp(2rem, 5vw, 3.5rem);
  color: rgba(184,150,12,0.55); font-style: italic; font-weight: 300;
  line-height: 1.2; letter-spacing: 2px;
}

.hero-sub {
  font-family: var(--title); font-size: clamp(0.65rem, 2vw, 0.85rem); font-weight: 400;
  letter-spacing: 10px; text-transform: uppercase; color: var(--ink-dim);
  opacity: 0; animation: fadeUp 0.7s 0.9s forwards; margin-top: 6px;
}

.hero-divider {
  display: flex; align-items: center; gap: 16px; margin: 22px 0;
  opacity: 0; animation: fadeUp 0.7s 1.1s forwards;
}

.hero-divider-line { flex: 1; max-width: 80px; height: 1px; background: rgba(184,150,12,0.35); }
.hero-divider-diamond { width: 5px; height: 5px; background: rgba(184,150,12,0.55); transform: rotate(45deg); }

.hero-date {
  font-family: var(--title); font-size: clamp(0.8rem, 2vw, 1.1rem); font-weight: 400;
  letter-spacing: 5px; color: var(--ink-soft);
  opacity: 0; animation: fadeUp 0.7s 1.3s forwards;
}

.hero-scroll {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin-top: 44px; color: var(--ink-dim);
  opacity: 0; animation: fadeUp 0.7s 1.9s forwards;
}

.hero-scroll span:first-child { font-size: 0.5rem; letter-spacing: 4px; text-transform: uppercase; }
.hero-scroll .ico { animation: bounce 2s infinite; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ====== PETALS ====== */

.petals-wrap { position: fixed; inset: 0; pointer-events: none; z-index: 10; overflow: hidden; }

.petal {
  position: absolute; top: -10%;
  background: #D4AF37;
  border-radius: 50% 50% 50% 0;
  opacity: 0.10; animation: petalFall linear infinite; pointer-events: none;
}

@keyframes petalFall {
  0%   { transform: translateY(0) rotate(0deg) translateX(0); opacity: 0; }
  10%  { opacity: 0.10; }
  90%  { opacity: 0.07; }
  100% { transform: translateY(110vh) rotate(360deg) translateX(40px); opacity: 0; }
}

/* ====== COUNTDOWN ====== */

#countdown {
  background: var(--ivory-2);
  padding: 80px 24px;
  border-top: 1px solid rgba(184,150,12,0.14);
  border-bottom: 1px solid rgba(184,150,12,0.14);
}

.cd-inner { max-width: 820px; margin: 0 auto; text-align: center; }

.cd-tag {
  font-family: var(--sans); font-size: 0.55rem; font-weight: 300;
  letter-spacing: 5px; text-transform: uppercase; color: var(--gold-2);
  display: block; margin-bottom: 6px;
}

.cd-title { font-family: var(--title); font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 400; color: var(--ink); margin-bottom: 52px; font-style: italic; }

.cd-grid { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }

.cd-block { display: flex; flex-direction: column; align-items: center; min-width: 104px; padding: 0 14px; }

.cd-num { font-family: var(--title); font-size: clamp(3rem, 8vw, 5rem); font-weight: 300; color: var(--gold-2); line-height: 1; }

.cd-label { font-size: 0.5rem; font-weight: 300; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-dim); margin-top: 10px; }

.cd-colon { font-family: var(--title); font-size: 2.5rem; color: rgba(184,150,12,0.45); padding-bottom: 18px; line-height: 1; }

/* ====== PHRASE ====== */

#phrase { background: var(--ivory-1); text-align: center; padding: 100px 24px; }

.phrase-ornament { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 20px; color: rgba(184,150,12,0.55); }
.phrase-ornament-line { width: 48px; height: 1px; background: rgba(184,150,12,0.35); }
.phrase-ornament-diamond { width: 6px; height: 6px; background: rgba(184,150,12,0.45); transform: rotate(45deg); }

.phrase-quote {
  font-family: var(--serif); font-size: clamp(1.3rem, 3.5vw, 1.55rem);
  font-style: italic; font-weight: 300; color: var(--ink);
  line-height: 1.72; max-width: 740px; margin: 0 auto 24px;
}

.phrase-attr { font-family: var(--title); font-size: 1.2rem; color: var(--gold-2); font-style: italic; }

.floral-divider {
  display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 0 28px;
}
.floral-divider-line { flex: 1; max-width: 120px; height: 1px; background: rgba(184,150,12,0.20); }
.floral-divider svg { color: rgba(184,150,12,0.50); }

/* ====== ITINERARY ====== */

#itinerary { background: var(--ivory-2); }

.timeline {
  margin-top: 56px; position: relative; display: flex;
  flex-direction: row; align-items: flex-start; padding: 0; max-width: 100%; width: 100%;
}

.timeline::before {
  content: ''; position: absolute; left: 0; right: 0; top: 6px;
  height: 1px; background: rgba(184,150,12,0.22);
}

.tl-item {
  flex: 1; min-width: 0; position: relative; padding: 28px 10px 0;
  text-align: center; animation: fadeUp linear both;
  animation-timeline: view(); animation-range: entry 0% entry 35%;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ivory-2); border: 1px solid var(--gold-2);
  transition: background 0.25s, transform 0.25s;
}

.tl-item:hover .tl-dot { background: var(--gold-2); transform: translateX(-50%) scale(1.3); }

.tl-icon { color: rgba(184,150,12,0.60); margin-bottom: 4px; }

.tl-time  { font-family: var(--title); font-size: 1.1rem; color: var(--gold-2); font-weight: 400; }
.tl-event { font-family: var(--title); font-size: 0.85rem; font-weight: 400; color: var(--ink); margin: 3px 0 4px; }
.tl-desc  { font-size: 0.64rem; color: var(--ink-dim); font-weight: 300; line-height: 1.65; }

/* ====== LOCATION ====== */

#location-ceremonia { background: var(--ivory-1); }
#location-fiesta    { background: var(--ivory-2); }

.loc-stop { display: flex; gap: 32px; align-items: flex-start; }
.loc-stop-label { display: flex; flex-direction: column; align-items: center; padding-top: 6px; flex-shrink: 0; }
.loc-stop-num  { font-family: var(--title); font-size: 0.65rem; color: var(--gold-2); letter-spacing: 2px; margin-bottom: 10px; }
.loc-stop-line { width: 1px; flex: 1; min-height: 60px; background: var(--gold-2); opacity: 0.18; }

.loc-editorial { flex: 1; max-width: 1000px; }
.loc-ed-header { margin-bottom: 40px; }
.loc-ed-tag    { font-family: var(--sans); font-size: 0.55rem; font-weight: 400; letter-spacing: 5px; text-transform: uppercase; color: var(--gold-2); display: block; margin-bottom: 10px; }
.loc-ed-title  { font-family: var(--title); font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 400; color: var(--ink); line-height: 1; font-style: italic; }

.loc-ed-body           { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; }
.loc-ed-body--reverse  { grid-template-columns: 1.5fr 1fr; }
.loc-ed-info { padding-top: 8px; }

.loc-ed-rule  { width: 40px; height: 1px; background: rgba(184,150,12,0.40); margin-bottom: 28px; }
.loc-ed-row   { display: grid; grid-template-columns: 100px 1fr; gap: 16px; margin-bottom: 20px; }
.loc-ed-label { font-family: var(--sans); font-size: 0.56rem; font-weight: 400; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ink-dim); padding-top: 2px; }
.loc-ed-val   { font-family: var(--sans); font-size: 0.84rem; font-weight: 300; color: var(--ink-soft); line-height: 1.65; }

.loc-ed-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
  font-family: var(--sans); font-size: 0.58rem; font-weight: 400;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold-2);
  padding: 14px 26px; border: 1px solid rgba(184,150,12,0.40); border-radius: 50px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; min-height: 48px;
}

@media (hover: hover) { .loc-ed-btn:hover { background: var(--gold-2); color: var(--ivory-0); border-color: var(--gold-2); } }
.loc-ed-btn:active { background: var(--gold-2); color: var(--ivory-0); transform: scale(0.97); }

.loc-ed-map { height: 380px; border-radius: var(--r); overflow: hidden; border: 1px solid rgba(184,150,12,0.18); width: 100%; display: block; position: relative; }

.map-facade { display: flex; align-items: center; justify-content: center; background: var(--ivory-3); border-radius: var(--r); width: 100%; height: 100%; position: absolute; inset: 0; }
.map-facade-content { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--ink); padding: 24px; }
.map-facade-content p { font-size: .9rem; font-weight: 400; font-family: var(--sans); color: var(--ink-soft); }
.map-facade iframe, .loc-ed-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; border-radius: var(--r); }

/* ====== FAMILY & PADRINOS ====== */

#padrinos { background: var(--ivory-1); }

.fp-eyebrow  { display: block; font-family: var(--sans); font-size: 0.55rem; letter-spacing: 5px; text-transform: uppercase; color: var(--gold-2); margin-bottom: 12px; }
.fp-title    { font-family: var(--title); font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 400; color: var(--ink); margin-bottom: 56px; font-style: italic; }
.fp-block    { margin-bottom: 52px; }
.fp-block-rule  { height: 1px; background: rgba(184,150,12,0.18); margin-bottom: 10px; }
.fp-block-label { font-family: var(--sans); font-size: 0.55rem; letter-spacing: 4px; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 32px; }

.fp-people-grid  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.fp-padrinos-grid { grid-template-columns: repeat(3, 1fr); }
.fp-person { text-align: center; }

.fp-person-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(184,150,12,0.08); border: 1px solid rgba(184,150,12,0.20);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; color: var(--gold-2);
}

.fp-person-icon--star { background: rgba(184,150,12,0.12); border-color: rgba(184,150,12,0.28); }

.fp-person-role { font-family: var(--sans); font-size: 0.54rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 5px; }
.fp-person-name { font-family: var(--title); font-size: 1.05rem; font-weight: 400; color: var(--ink); line-height: 1.3; }

/* ====== DRESSCODE ====== */

#dresscode { background: var(--ivory-2); }

.dc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }

.dc-card {
  padding: 44px 28px; text-align: center; border-radius: var(--r);
  border: var(--bdr); background: var(--ivory-0);
  box-shadow: var(--shadow-card); transition: border-color 0.25s;
}

.dc-card:hover { border-color: rgba(184,150,12,0.40); }
.dc-card.dc-avoidance { border-color: rgba(200,70,70,0.15); }

.dc-icon { color: rgba(184,150,12,0.65); display: flex; justify-content: center; margin-bottom: 18px; }

.dc-card h4 { font-family: var(--title); font-size: 1.3rem; font-weight: 400; color: var(--ink); margin-bottom: 10px; }
.dc-card p  { font-size: 0.74rem; color: var(--ink-dim); font-weight: 300; line-height: 1.85; }

.dc-palette { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.dc-dot { width: 22px; height: 22px; border-radius: 50%; outline: 1px solid rgba(26,22,18,0.10); }

/* ====== GALLERY ====== */

#gallery { background: var(--ivory-1); content-visibility: auto; contain-intrinsic-size: 0 600px; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 280px 280px; gap: 10px; margin-top: 48px; }

.g-item {
  position: relative; overflow: hidden; border-radius: var(--r); cursor: pointer;
  contain: layout style paint; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  border: 1px solid rgba(184,150,12,0.14);
}

.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; will-change: transform; pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

@media (hover: hover) {
  .g-item:hover img { transform: scale(1.04); }
  .g-item:hover .g-overlay { opacity: 1; }
}

.g-item:active img { transform: scale(1.04); }
.g-item:active .g-overlay { opacity: 1; }

.g-overlay { position: absolute; inset: 0; background: rgba(184,150,12,0.06); opacity: 0; transition: opacity 0.3s; pointer-events: none; }

.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

.lightbox {
  position: fixed; inset: 0; background: rgba(26,22,18,0.94);
  display: flex; align-items: center; justify-content: center;
  z-index: 999; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease; overscroll-behavior: contain; touch-action: pan-y;
}

.lightbox.active { opacity: 1; pointer-events: auto; }

#lbImg { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 2px; pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

.lb-close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(184,150,12,0.18); border: 1px solid rgba(184,150,12,0.35);
  border-radius: 50%; color: var(--ivory-0); cursor: pointer;
  opacity: 0.85; transition: opacity 0.2s;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  touch-action: manipulation;
}

.lb-close:active { opacity: 1; transform: scale(0.92); }

.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(184,150,12,0.16); border: 1px solid rgba(184,150,12,0.28);
  border-radius: 50%; color: var(--ivory-0); cursor: pointer; opacity: 0.75;
  transition: opacity 0.2s; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  touch-action: manipulation;
}

.lb-nav:active { opacity: 1; transform: translateY(-50%) scale(0.92); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* ====== GIFTS ====== */

#gifts { background: var(--ivory-2); }

.gifts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }

.gift-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 38px 20px 28px; text-align: center; cursor: pointer;
  border-radius: var(--r); border: var(--bdr);
  background: var(--ivory-0); box-shadow: var(--shadow-card);
  transition: border-color 0.25s;
}

.gift-card:hover { border-color: rgba(184,150,12,0.40); }
.gift-card:hover .gift-btn { background: var(--gold-2); border-color: var(--gold-2); color: var(--ivory-0); }

.gift-icon { display: flex; justify-content: center; margin-bottom: 14px; color: rgba(184,150,12,0.65); }

.gift-card h4 { font-family: var(--title); font-size: 1.2rem; font-weight: 400; color: var(--ink); margin-bottom: 8px; }
.gift-card p  { flex: 1; font-size: 0.73rem; font-weight: 300; color: var(--ink-dim); line-height: 1.75; }

.gift-badge {
  display: inline-block; margin-top: 12px; padding: 3px 12px;
  background: rgba(184,150,12,0.08); border: 1px solid rgba(184,150,12,0.22);
  border-radius: 50px; font-family: var(--sans); font-size: 0.56rem;
  font-weight: 400; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-2);
}

.gift-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 16px; padding: 10px 22px;
  border: 1px solid rgba(184,150,12,0.35); border-radius: 50px;
  font-family: var(--sans); font-size: 0.58rem; font-weight: 400;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold-2);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

/* ====== HOSPEDAJE ====== */

#hospedaje { background: var(--ivory-1); }

.hotel-carousel { position: relative; overflow: hidden; margin-top: 56px; }

.hc-track { display: flex; will-change: transform; transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

.hc-slide {
  display: grid; grid-template-columns: 1fr 1fr; min-width: 100%;
  background: var(--ivory-0); border: 1px solid rgba(184,150,12,0.16);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-card);
}

.hc-img { position: relative; min-height: 380px; background: var(--ivory-3); overflow: hidden; }
.hc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hc-img-ov  { position: absolute; inset: 0; background: rgba(26,22,18,0.18); }

.hc-stars { position: absolute; bottom: 16px; left: 16px; display: flex; gap: 3px; color: var(--gold-1); }

.hc-info { display: flex; flex-direction: column; padding: 42px 40px; }

.hc-info h3 { font-family: var(--title); font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 400; line-height: 1.1; color: var(--ink); margin-bottom: 22px; font-style: italic; }

.hc-detail { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 0.76rem; color: var(--ink-soft); font-weight: 300; }
.hc-detail .ico { color: rgba(184,150,12,0.65); margin-top: 2px; flex-shrink: 0; }
.hc-detail strong { color: var(--ink); font-weight: 400; }

.hc-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 22px; }

.hc-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: transparent; border: 1px solid rgba(184,150,12,0.30);
  color: var(--gold-2); display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, color 0.25s; touch-action: manipulation;
}

.hc-btn:hover { background: var(--gold-2); color: var(--ivory-0); }

.hc-dots { display: flex; gap: 7px; }

.hc-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(184,150,12,0.28); cursor: pointer; transition: background 0.25s; }
.hc-dot.active { background: var(--gold-2); }

/* ====== INSTAGRAM ====== */

#instagram { background: var(--ivory-2); padding: 80px 24px; }

.ig-inner { max-width: 520px; margin: 0 auto; text-align: center; }

.ig-icon { color: rgba(184,150,12,0.65); margin-bottom: 20px; }

.ig-hashtag { font-family: var(--title); font-size: clamp(2.2rem, 6vw, 3.4rem); color: var(--ink); font-style: italic; margin-bottom: 18px; }

.ig-desc { font-size: 0.78rem; color: var(--ink-dim); font-weight: 300; line-height: 2; margin-bottom: 28px; }

.ig-copy-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; border-radius: 50px;
  background: rgba(184,150,12,0.08); border: 1px solid rgba(184,150,12,0.30);
  color: var(--gold-2); font-family: var(--sans); font-size: 0.58rem;
  letter-spacing: 2px; text-transform: uppercase;
  transition: background 0.25s, color 0.25s; cursor: pointer; touch-action: manipulation;
}

.ig-copy-btn:hover { background: var(--gold-2); color: var(--ivory-0); }

/* ====== TRIVIA ====== */

#trivia { background: var(--ivory-1); }

.trivia-wrap { margin-top: 52px; }

.trivia-card {
  max-width: 640px; margin: 0 auto;
  background: var(--ivory-0); border: 1px solid rgba(184,150,12,0.20);
  border-radius: var(--r); padding: 44px 40px; box-shadow: var(--shadow-card);
}

.trivia-prog { display: flex; gap: 5px; margin-bottom: 32px; }

.tpd { flex: 1; height: 2px; border-radius: 1px; background: rgba(184,150,12,0.15); transition: background 0.3s; }
.tpd.done    { background: var(--gold-1); }
.tpd.current { background: var(--gold-2); }

.trivia-qnum     { font-family: var(--sans); font-size: 0.56rem; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 16px; }
.trivia-question { font-family: var(--title); font-size: 1.4rem; font-weight: 400; color: var(--ink); line-height: 1.45; margin-bottom: 28px; }

.trivia-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.trivia-opt {
  padding: 14px 18px; background: var(--ivory-1);
  border: 1px solid rgba(184,150,12,0.18); border-radius: var(--r);
  font-family: var(--sans); font-size: 0.74rem; color: var(--ink-soft);
  cursor: pointer; text-align: left;
  transition: background 0.2s, border-color 0.2s, color 0.2s; touch-action: manipulation;
}

.trivia-opt:hover   { border-color: rgba(184,150,12,0.45); color: var(--ink); }
.trivia-opt:disabled { cursor: default; }
.trivia-opt.correct { background: rgba(184,150,12,0.12); border-color: var(--gold-2); color: var(--gold-3); }
.trivia-opt.wrong   { background: rgba(198,40,40,0.06); border-color: rgba(239,83,80,0.45); color: #c62828; }

.trivia-result { text-align: center; padding: 20px 0; }

.res-icon { width: 60px; height: 60px; border-radius: 50%; background: rgba(184,150,12,0.10); border: 1px solid rgba(184,150,12,0.25); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--gold-2); }

.trivia-result h3 { font-family: var(--title); font-size: 1.8rem; font-weight: 400; color: var(--ink); margin-bottom: 18px; }

.score-bar  { height: 3px; background: rgba(184,150,12,0.12); border-radius: 2px; margin-bottom: 16px; overflow: hidden; }
.score-fill { height: 100%; background: linear-gradient(90deg, var(--gold-1), var(--gold-2)); border-radius: 2px; transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1); }

.trivia-result p { font-size: 0.8rem; color: var(--ink-dim); font-weight: 300; }

/* ====== RSVP ====== */

#rsvp { background: var(--ivory-2); }

.rsvp-wrap { max-width: 560px; margin: 52px auto 0; }

.form-group { margin-bottom: 22px; }

.form-label { display: block; font-family: var(--sans); font-size: 0.56rem; font-weight: 400; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 8px; }

.form-input, .form-select, .form-textarea {
  width: 100%; padding: 13px 18px;
  border: 1px solid rgba(184,150,12,0.22); border-radius: var(--r-sm);
  background: var(--ivory-0);
  font-family: var(--sans); font-size: 0.88rem; font-weight: 300;
  color: var(--ink); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none; -webkit-appearance: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(184,150,12,0.55);
  box-shadow: 0 0 0 3px rgba(184,150,12,0.08);
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-dim); opacity: 0.55; }

.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A7A5A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }

.form-textarea { resize: vertical; min-height: 110px; }

.radio-row { display: flex; gap: 12px; }

.radio-opt {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 14px; border: 1px solid rgba(184,150,12,0.20); border-radius: var(--r-sm);
  font-family: var(--sans); font-size: 0.7rem; font-weight: 400;
  color: var(--ink-soft); cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s; touch-action: manipulation;
}

.radio-opt:hover { border-color: rgba(184,150,12,0.40); color: var(--ink); }
.radio-opt.active { border-color: var(--gold-2); background: rgba(184,150,12,0.07); color: var(--ink); }

.rsvp-ok { text-align: center; padding: 48px 0; display: none; }
.rsvp-ok-icon { width: 72px; height: 72px; border-radius: 50%; background: rgba(184,150,12,0.10); border: 1px solid rgba(184,150,12,0.24); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; color: var(--gold-2); }
.rsvp-ok h3 { font-family: var(--title); font-size: 2rem; font-weight: 400; color: var(--ink); margin-bottom: 12px; font-style: italic; }
.rsvp-ok p  { font-size: 0.8rem; color: var(--ink-dim); font-weight: 300; line-height: 1.85; margin-bottom: 28px; }

/* ====== PASES ====== */

#pases { background: var(--ivory-1); }

.pase-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 52px; align-items: start; }

.pase-form { padding: 36px 32px; background: var(--ivory-0); border: 1px solid rgba(184,150,12,0.18); border-radius: var(--r); box-shadow: var(--shadow-card); }

.pase-tip { margin-top: 18px; padding: 16px 18px; background: rgba(184,150,12,0.06); border: 1px solid rgba(184,150,12,0.18); border-radius: var(--r); font-size: 0.7rem; color: var(--ink-dim); line-height: 1.75; }

.pase-tip strong { color: var(--gold-2); }

.pase-preview { position: sticky; top: 90px; }

.pase-card {
  position: relative; padding: 42px 34px;
  background: var(--ivory-0); border: 1px solid rgba(184,150,12,0.22);
  border-radius: var(--r); text-align: center; overflow: hidden;
  box-shadow: var(--shadow-card); transition: border-color 0.25s;
}

.pase-card:hover { border-color: rgba(184,150,12,0.40); }

.pase-card-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
}

.pase-card::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 70px; height: 70px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 70'%3E%3Cline x1='70' y1='0' x2='0' y2='70' stroke='%23B8960C' stroke-width='0.5' opacity='0.2'/%3E%3Cline x1='70' y1='20' x2='20' y2='70' stroke='%23B8960C' stroke-width='0.5' opacity='0.15'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat; background-position: bottom right;
  pointer-events: none;
}

.pase-ornament { margin-bottom: 10px; color: rgba(184,150,12,0.55); display: flex; justify-content: center; align-items: center; gap: 10px; }
.pase-ornament-line { width: 28px; height: 1px; background: rgba(184,150,12,0.35); }
.pase-ornament-diamond { width: 5px; height: 5px; background: rgba(184,150,12,0.50); transform: rotate(45deg); }

.pase-event-name   { font-family: var(--title); font-size: 2.4rem; color: var(--gold-2); font-style: italic; }
.pase-sub-line     { font-family: var(--sans); font-size: 0.5rem; font-weight: 300; letter-spacing: 4px; text-transform: uppercase; color: var(--ink-dim); margin-top: 4px; }
.pase-hr           { width: 36px; height: 1px; background: rgba(184,150,12,0.25); margin: 16px auto; }
.pase-guest-label  { font-family: var(--sans); font-size: 0.5rem; font-weight: 400; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 4px; }
.pase-guest-name   { font-family: var(--title); font-size: 1.8rem; font-weight: 400; color: var(--ink); }
.pase-guest-count  { font-size: 0.72rem; color: var(--ink-dim); margin-bottom: 20px; }

.pase-qr-wrap {
  display: flex; justify-content: center; margin: 8px 0; padding: 14px;
  background: var(--ivory-1); border: 1px solid rgba(184,150,12,0.14); border-radius: var(--r);
}

#paseQRCanvas canvas, #paseQRCanvas img { width: 128px !important; height: 128px !important; }

.pase-qr-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 128px; height: 128px; gap: 6px; margin: 0 auto;
  background: rgba(184,150,12,0.04); border-radius: var(--r);
  font-size: 0.63rem; letter-spacing: 1px; color: var(--gold-3);
}

.pase-footer-row { display: flex; justify-content: space-around; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(184,150,12,0.14); }

.pfi-item label { display: block; font-family: var(--sans); font-size: 0.46rem; font-weight: 400; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 3px; }
.pfi-item span  { font-family: var(--title); font-size: 0.9rem; font-weight: 400; color: var(--ink); }
.pase-id        { font-size: 0.56rem; letter-spacing: 1px; color: var(--ink-dim); margin-top: 12px; }

/* ====== ACCESO (SCANNER) ====== */

#acceso { background: var(--ivory-2); }

.acc-card {
  max-width: 480px; margin: 48px auto 0;
  background: var(--ivory-0); border: 1px solid rgba(184,150,12,0.18);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-card);
  opacity: 0; transform: translateY(12px); transition: opacity 0.4s, transform 0.4s; display: none;
}

.acc-card.show { opacity: 1; transform: none; display: block; }

.acc-status { padding: 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.acc-status.valid   { background: rgba(184,150,12,0.08); border-bottom: 1px solid rgba(184,150,12,0.22); }
.acc-status.invalid { background: rgba(198,40,40,0.06); border-bottom: 1px solid rgba(239,83,80,0.22); }

.acc-status-icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(184,150,12,0.10); display: flex; align-items: center; justify-content: center; color: var(--gold-2); }
.acc-status.valid .acc-status-icon   { background: rgba(184,150,12,0.12); color: var(--gold-2); }
.acc-status.invalid .acc-status-icon { background: rgba(198,40,40,0.10); color: #c62828; }

.acc-status-txt { font-family: var(--title); font-size: 1.5rem; font-weight: 400; color: var(--ink); }

.acc-body { padding: 28px 32px 36px; }

.acc-field { margin-bottom: 18px; }
.acc-field label { font-size: 0.54rem; font-weight: 400; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-dim); display: block; margin-bottom: 4px; }
.acc-field span  { font-family: var(--title); font-size: 1.35rem; font-weight: 400; color: var(--ink); }

.acc-result-pending { text-align: center; padding: 40px 0; }
.acc-result-pending p { font-size: 0.75rem; letter-spacing: 1.5px; color: var(--ink-dim); margin-top: 12px; }

#reader { border-radius: var(--r); overflow: hidden; margin-top: 20px; border: 1px solid rgba(184,150,12,0.20); }

.scan-btn-wrap { margin-top: 24px; display: flex; gap: 12px; }

/* ====== MUSIC ====== */

.music-player { position: fixed; bottom: 28px; right: 28px; z-index: 999; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

.music-tip {
  padding: 8px 14px; background: var(--ivory-0);
  border: 1px solid rgba(184,150,12,0.20); border-radius: 50px;
  font-family: var(--sans); font-size: 0.56rem; letter-spacing: 1px; white-space: nowrap;
  color: var(--gold-2); opacity: 0; pointer-events: none;
  transform: translateX(10px); transition: opacity 0.3s, transform 0.3s;
  box-shadow: var(--shadow-sm);
}

.music-player:hover .music-tip { opacity: 1; transform: none; }

.music-btn {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; background: var(--gold-2);
  border: none; border-radius: 50%; color: var(--ivory-0); cursor: pointer;
  transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
  touch-action: manipulation; box-shadow: 0 4px 16px rgba(184,150,12,0.35);
}

@media (hover: hover) { .music-btn:hover { background: var(--gold-3); transform: scale(1.08); } }
.music-btn:active { background: var(--gold-3); transform: scale(0.94); }
.music-btn.playing { animation: musicRing 2.5s ease-in-out infinite; }

@keyframes musicRing { 0%, 100% { opacity: 1; } 50% { opacity: 0.65; } }

/* ====== FOOTER ====== */

footer {
  padding: 68px 24px; background: var(--ivory-2);
  border-top: 1px solid rgba(184,150,12,0.14); text-align: center;
}

.footer-name { display: block; font-family: var(--title); font-size: 2.6rem; font-style: italic; color: var(--gold-2); margin-bottom: 6px; font-weight: 300; }
.footer-amp  { display: block; font-family: var(--title); font-size: 1.2rem; color: rgba(184,150,12,0.50); font-style: italic; margin-bottom: 14px; }

footer p { font-family: var(--sans); font-size: 0.65rem; font-weight: 300; letter-spacing: 2px; color: rgba(26,22,18,0.30); }
footer p + p { margin-top: 6px; }

.footer-admin-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 26px;
  font-size: 0.55rem; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(184,150,12,0.18); transition: color 0.2s;
}

.footer-admin-link:hover { color: rgba(184,150,12,0.45); }

/* ====== ORNAMENT ====== */

.ornament-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 0 auto;
}

.ornament-divider-line { width: 60px; height: 1px; background: rgba(184,150,12,0.30); }
.ornament-diamond      { width: 6px; height: 6px; background: rgba(184,150,12,0.45); transform: rotate(45deg); flex-shrink: 0; }

/* ====== RESPONSIVE ====== */

@media (max-width: 960px) {
  .loc-ed-body            { grid-template-columns: 1fr; gap: 32px; }
  .loc-ed-map             { height: 280px; }
  .loc-ed-row             { grid-template-columns: 90px 1fr; }
  .loc-ed-body--reverse   { grid-template-columns: 1fr; }
  .loc-ed-body--reverse .loc-ed-map { order: 2; }
  .dc-grid                { grid-template-columns: 1fr 1fr; }
  .gifts-grid             { grid-template-columns: 1fr 1fr; }
  .fp-people-grid         { grid-template-columns: repeat(3, 1fr); }
  .fp-padrinos-grid       { grid-template-columns: repeat(3, 1fr); }
  .hc-slide               { grid-template-columns: 1fr; }
  .hc-img                 { min-height: 230px; order: -1; }
  .hc-info                { padding: 28px 26px; }
  .pase-layout            { grid-template-columns: 1fr; }
  .pase-preview           { position: static; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  section { padding: 72px 18px; }
  .hero-corner { width: 36px; height: 36px; }
  .hero-corner-tl { top: 24px; left: 20px; }
  .hero-corner-tr { top: 24px; right: 20px; }
  .hero-corner-bl { bottom: 60px; left: 20px; }
  .hero-corner-br { bottom: 60px; right: 20px; }
  .hero-name     { font-size: clamp(3.6rem, 16vw, 5.5rem); }
  .cd-grid       { gap: 6px; }
  .cd-block      { min-width: 72px; padding: 12px 7px; }
  .cd-colon      { font-size: 1.7rem; }
  .dc-grid       { grid-template-columns: 1fr; }
  .gallery-grid  { grid-template-columns: 1fr 1fr; gap: 8px; }
  .g-item.g-tall { grid-row: span 1; aspect-ratio: 1; }
  .g-item.g-wide { grid-column: span 1; aspect-ratio: 1; }
  .gifts-grid    { grid-template-columns: 1fr 1fr; }
  .fp-people-grid   { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .fp-padrinos-grid { grid-template-columns: 1fr 1fr; }
  .trivia-opts   { grid-template-columns: 1fr; }
  .trivia-card   { padding: 28px 20px; }
  .radio-row     { flex-direction: column; }
  .pase-card     { padding: 30px 20px; }
  .pase-event-name { font-size: 2rem; }
  .music-player  { bottom: 14px; right: 14px; }
  .lb-nav        { width: 38px; height: 38px; }
  .lb-prev       { left: 8px; }
  .lb-next       { right: 8px; }
  .loc-ed-row    { grid-template-columns: 1fr; gap: 4px; }
  .loc-ed-label  { display: none; }
  .loc-ed-map    { height: 240px; border-radius: var(--r); }
  .loc-stop      { gap: 16px; }
  .loc-stop-label { display: none; }
  .timeline {
    flex-direction: column; padding-left: 44px; max-width: 100%;
  }
  .timeline::before { left: 15px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .tl-item { flex: none; padding: 0 0 36px 32px; text-align: left; }
  .tl-item:last-child { padding-bottom: 0; }
  .tl-dot  { top: 4px; left: -29px; transform: none; }
  .tl-item:hover .tl-dot { transform: scale(1.3); }
  .tl-time  { font-size: 1.4rem; }
  .tl-event { font-size: 1rem; }
  .tl-desc  { font-size: 0.72rem; }
}

@media (max-width: 400px) {
  .gifts-grid     { grid-template-columns: 1fr; }
  .fp-people-grid { grid-template-columns: 1fr 1fr; }
  .cd-block       { min-width: 62px; }
  .cd-num         { font-size: 2.4rem; }
  .loc-ed-map     { height: 200px; }
}