@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Dancing+Script:wght@500;600&family=Jost:wght@300;400;500&display=swap');

:root {
  --night-0: #faf6f0;
  --night-1: #f5ede3;
  --night-2: #ede0cc;
  --night-3: #e6d4bc;
  --night-4: #dccca8;

  --gold-0: #fdf2ec;
  --gold-1: #dda58a;
  --gold-2: #b5735a;
  --gold-3: #8a4e3c;
  --gold-4: #5c3026;

  --cream: #2d2318;
  --cream-soft: #6b5444;
  --cream-dim: #a08878;

  --sage: #6d9272;
  --sage-light: #afc4b2;
  --sage-pale: #eaf1eb;

  --blush: var(--night-1);
  --blush-2: var(--night-2);
  --petal-1: var(--night-3);
  --petal-2: var(--night-4);
  --rose-soft: var(--gold-2);
  --lavender-1: var(--night-3);
  --lavender-2: var(--gold-4);
  --plum-light: var(--gold-2);
  --plum: var(--gold-3);
  --plum-dark: var(--gold-4);
  --gold: var(--gold-2);
  --gold-pale: var(--gold-1);
  --white: var(--night-0);
  --off-white: var(--night-1);
  --ink: var(--cream);
  --ink-soft: var(--cream-soft);
  --gray: var(--cream-dim);
  --gray-light: var(--night-4);

  --title: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --script: 'Dancing Script', cursive;
  --sans: 'Jost', 'Lato', system-ui, sans-serif;

  --r: 14px;
  --r-sm: 7px;
  --bdr: 1px solid rgba(181,115,90,0.18);

  --font-d: var(--title);
  --font-s: var(--script);
  --font-b: var(--sans);
  --font-display: var(--title);
  --font-script: var(--script);
  --font-body: var(--sans);
  --radius: var(--r);
  --radius-sm: var(--r-sm);
  --border: var(--bdr);
  --border-rose: var(--bdr);

  --shadow-card: 0 2px 24px rgba(45,35,24,0.07);
  --shadow-sm: 0 1px 10px rgba(45,35,24,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(--cream);
  background: var(--night-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; }
}

/* ====== SOBRE — APERTURA ====== */

.env-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--night-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(--night-2);
  overflow: hidden;
}

.env-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.env-flap-left { background: #e8dbc8; clip-path: polygon(0 0, 0 100%, 50.5% 50%); }
.env-flap-right { background: #e0d0b8; clip-path: polygon(100% 0, 100% 100%, 49.5% 50%); }
.env-flap-bottom { background: #e8dbc8; clip-path: polygon(0 100%, 100% 100%, 50% 49.5%); }

.env-flap-top {
  background: linear-gradient(175deg, #ede0cc 0%, #e6d4bc 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(160deg, #dda58a 0%, #b5735a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  box-shadow: 0 4px 20px rgba(181,115,90,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-monogram {
  font-family: var(--script);
  font-size: 2.6rem;
  color: rgba(255,255,255,0.95);
  line-height: 1;
  margin-top: 4px;
  letter-spacing: -1px;
}

.env-seal-text {
  font-family: var(--sans);
  font-size: 0.44rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: -2px;
}

.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); }

/* ====== BOTONES ====== */

.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: #faf6f0;
}

.btn-primary:hover { background: var(--gold-3); border-color: var(--gold-3); }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(181,115,90,0.45);
  color: var(--gold-2);
}

.btn-outline:hover {
  background: var(--gold-2);
  color: #faf6f0;
  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; }

/* ====== SECCIÓN 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.58rem;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--sage);
  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(--cream);
  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(--cream-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,246,240,0.95);
  border-bottom-color: rgba(181,115,90,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 16px rgba(45,35,24,0.06);
}

.nav-brand {
  font-family: var(--script);
  font-size: 1.7rem;
  color: var(--cream);
  opacity: 0.92;
  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.58rem;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
  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: 1.5px; background: var(--cream); border-radius: 2px; transition: all 0.25s; }

#navLinks.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250,246,240,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/XV1.jpg");
  background-size: cover;
  background-position: center top;
  background-attachment: scroll;
  text-align: center;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(250,246,240,0.72);
  pointer-events: none;
}

#hero::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; }

#hero > * { position: relative; z-index: 2; }

.hero-blob { display: none; }

/* Botanical illustration frame in hero */
.hero-botanical {
  position: absolute;
  z-index: 2;
  opacity: 0.50;
  pointer-events: none;
  animation: fadeUp 1s 0.1s both;
  top: 0;
  height: 100%;
}

.hero-botanical-left {
  left: 0;
  width: 36%;
}

.hero-botanical-right {
  right: 0;
  width: 36%;
  transform: scaleX(-1);
}

.hero-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s forwards;
}

.hero-rule-diamond { width: 5px; height: 5px; background: rgba(181,115,90,0.75); transform: rotate(45deg); }

.hero-rule-icon { color: var(--sage); }

.hero-pre {
  font-family: var(--sans);
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  font-weight: 300;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--cream-soft);
  margin-bottom: 10px;
  opacity: 0;
  animation: fadeUp 0.7s 0.4s forwards;
}

.hero-name {
  font-family: var(--script);
  font-size: clamp(5rem, 16vw, 11rem);
  line-height: 0.92;
  color: var(--gold-3);
  margin: 0;
  opacity: 0;
  animation: fadeUp 0.7s 0.65s forwards;
}

.hero-xv {
  font-family: var(--title);
  font-size: clamp(0.65rem, 2vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 14px;
  text-transform: uppercase;
  color: var(--cream-dim);
  opacity: 0;
  animation: fadeUp 0.7s 0.9s forwards;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 26px 0;
  opacity: 0;
  animation: fadeUp 0.7s 1.1s forwards;
}

.hero-divider-line { flex: 1; max-width: 80px; height: 1px; background: rgba(181,115,90,0.35); }

.hero-divider-icon { color: var(--sage); }

.hero-date {
  font-family: var(--title);
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--cream-soft);
  opacity: 0;
  animation: fadeUp 0.7s 1.3s forwards;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  color: var(--cream-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); } }

@media (max-width: 768px) { #hero { background-position: center center; } }

/* ====== PETALS ====== */

.petals-wrap { position: fixed; inset: 0; pointer-events: none; z-index: 10; overflow: hidden; }

.petal {
  position: absolute;
  top: -10%;
  background: #e8b8a8;
  border-radius: 50% 50% 50% 0;
  opacity: 0.18;
  animation: petalFall linear infinite;
  pointer-events: none;
}

@keyframes petalFall {
  0%   { transform: translateY(0) rotate(0deg) translateX(0); opacity: 0; }
  10%  { opacity: 0.18; }
  90%  { opacity: 0.14; }
  100% { transform: translateY(110vh) rotate(360deg) translateX(40px); opacity: 0; }
}

/* ====== COUNTDOWN ====== */

#countdown {
  background: var(--night-2);
  padding: 80px 24px;
  border-top: 1px solid rgba(181,115,90,0.12);
  border-bottom: 1px solid rgba(181,115,90,0.12);
}

.cd-inner { max-width: 820px; margin: 0 auto; text-align: center; }

.cd-tag {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: 6px;
}

.cd-title { font-family: var(--title); font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 400; color: var(--cream); 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: 400; color: var(--gold-2); line-height: 1; }

.cd-label { font-size: 0.5rem; font-weight: 300; letter-spacing: 3px; text-transform: uppercase; color: var(--cream-dim); margin-top: 10px; }

.cd-colon { font-family: var(--title); font-size: 2.5rem; color: var(--gold-3); padding-bottom: 18px; line-height: 1; }

/* ====== PHRASE ====== */

#phrase { background: var(--night-1); text-align: center; padding: 100px 24px; }

.phrase-quote-icon { color: var(--sage); margin-bottom: 18px; }

.phrase-quote {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3.5vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  color: var(--cream);
  line-height: 1.72;
  max-width: 740px;
  margin: 0 auto 26px;
}

.phrase-attr { font-family: var(--script); font-size: 1.25rem; color: var(--gold-2); }

/* Botanical divider ornament */
.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(181,115,90,0.20); }

.floral-divider svg { color: var(--sage); opacity: 0.7; }

/* ====== ITINERARY ====== */

#itinerary { background: var(--night-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(181,115,90,0.25);
}

.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(--night-2);
  border: 1.5px 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: var(--sage); 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(--cream); margin: 3px 0 4px; }

.tl-desc { font-size: 0.64rem; color: var(--cream-dim); font-weight: 300; line-height: 1.65; }

/* ====== LOCATION ====== */

#location-ceremonia { background: var(--night-2); }
#location-fiesta { background: var(--night-1); }

.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.15; }

.loc-editorial { flex: 1; max-width: 1000px; }

.loc-ed-header { margin-bottom: 40px; }

.loc-ed-tag { font-family: var(--sans); font-size: 0.56rem; font-weight: 400; letter-spacing: 5px; text-transform: uppercase; color: var(--sage); display: block; margin-bottom: 10px; }

.loc-ed-title { font-family: var(--title); font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 400; color: var(--cream); line-height: 1; }

.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: var(--sage); margin-bottom: 28px; opacity: 0.5; }

.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.58rem; font-weight: 400; letter-spacing: 2.5px; text-transform: uppercase; color: var(--cream-dim); padding-top: 2px; }

.loc-ed-val { font-family: var(--sans); font-size: 0.84rem; font-weight: 300; color: var(--cream-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.6rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-2);
  padding: 14px 26px;
  border: 1px solid rgba(181,115,90,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: #faf6f0; border-color: var(--gold-2); } }
.loc-ed-btn:active { background: var(--gold-2); color: #faf6f0; transform: scale(0.97); }

.loc-ed-map { height: 380px; border-radius: var(--r); overflow: hidden; border: 1px solid rgba(181,115,90,0.16); width: 100%; display: block; }

.map-facade { display: flex; align-items: center; justify-content: center; background: var(--night-3); border-radius: 12px; min-height: 300px; width: 100%; }

.map-facade-content { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--cream); padding: 24px; }

.map-facade-content p { font-size: .9rem; font-weight: 500; font-family: var(--sans); color: var(--cream-soft); }

.map-facade iframe, .loc-ed-map iframe { width: 100%; height: 100%; border: 0; display: block; border-radius: var(--r); }

/* ====== FAMILY & PADRINOS ====== */

#padrinos { background: var(--night-1); }

.fp-eyebrow { display: block; font-family: var(--sans); font-size: 0.58rem; letter-spacing: 5px; text-transform: uppercase; color: var(--sage); margin-bottom: 12px; }

.fp-title { font-family: var(--title); font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 400; color: var(--cream); margin-bottom: 56px; }

.fp-block { margin-bottom: 52px; }

.fp-block-rule { height: 1px; background: rgba(181,115,90,0.15); margin-bottom: 10px; }

.fp-block-label { font-family: var(--sans); font-size: 0.55rem; letter-spacing: 4px; text-transform: uppercase; color: var(--cream-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(181,115,90,0.10);
  border: 1px solid rgba(181,115,90,0.18);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  color: var(--gold-2);
}

.fp-person-icon--star { background: rgba(109,146,114,0.10); border-color: rgba(109,146,114,0.20); color: var(--sage); }

.fp-person-role { font-family: var(--sans); font-size: 0.56rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--cream-dim); margin-bottom: 5px; }

.fp-person-name { font-family: var(--title); font-size: 1.05rem; font-weight: 400; color: var(--cream); line-height: 1.3; }

/* ====== DRESSCODE ====== */

#dresscode { background: var(--night-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(--night-1);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.dc-card:hover { border-color: rgba(181,115,90,0.35); }
.dc-card.dc-avoidance { border-color: rgba(200,70,70,0.15); }

.dc-icon { color: var(--sage); display: flex; justify-content: center; margin-bottom: 18px; }

.dc-card h4 { font-family: var(--title); font-size: 1.3rem; font-weight: 400; color: var(--cream); margin-bottom: 10px; }

.dc-card p { font-size: 0.74rem; color: var(--cream-dim); font-weight: 300; line-height: 1.85; }

.dc-palette { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }

.dc-dot { width: 24px; height: 24px; border-radius: 50%; outline: 1px solid rgba(45,35,24,0.10); }

/* ====== GALLERY ====== */

#gallery { background: var(--night-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: 12px; 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(181,115,90,0.12);
}

.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(181,115,90,0.08); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }

.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(45,35,24,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: 4px; pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

.lb-close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(181,115,90,0.18);
  border: 1px solid rgba(181,115,90,0.35);
  border-radius: 50%; color: #faf6f0; cursor: pointer;
  opacity: 0.85; transition: opacity 0.2s;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}

.lb-close:active { opacity: 1; transform: scale(0.92); }

.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(181,115,90,0.16);
  border: 1px solid rgba(181,115,90,0.28);
  border-radius: 50%; color: #faf6f0;
  cursor: pointer; opacity: 0.75; transition: opacity 0.2s;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}

.lb-nav:active { opacity: 1; transform: translateY(-50%) scale(0.92); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* ====== GIFTS ====== */

#gifts { background: var(--night-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(--night-1);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.gift-card:hover { border-color: rgba(181,115,90,0.35); }
.gift-card:hover .gift-btn { background: var(--gold-2); border-color: var(--gold-2); color: #faf6f0; }

.gift-icon { display: flex; justify-content: center; margin-bottom: 14px; color: var(--sage); }

.gift-card h4 { font-family: var(--title); font-size: 1.2rem; font-weight: 400; color: var(--cream); margin-bottom: 8px; }

.gift-card p { flex: 1; font-size: 0.73rem; font-weight: 300; color: var(--cream-dim); line-height: 1.75; }

.gift-badge {
  display: inline-block; margin-top: 12px; padding: 3px 12px;
  background: rgba(181,115,90,0.10); border: 1px solid rgba(181,115,90,0.22);
  border-radius: 50px; font-family: var(--sans); font-size: 0.57rem;
  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(181,115,90,0.35); border-radius: 50px;
  font-family: var(--sans); font-size: 0.6rem; 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(--night-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(--night-0);
  border: 1px solid rgba(181,115,90,0.14);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hc-img { position: relative; min-height: 380px; background: var(--night-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(45,35,24,0.20); }

.hc-stars { position: absolute; bottom: 16px; left: 16px; display: flex; gap: 3px; color: var(--gold-2); }

.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(--cream); margin-bottom: 22px; }

.hc-detail { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 0.76rem; color: var(--cream-soft); font-weight: 300; }

.hc-detail .ico { color: var(--sage); margin-top: 2px; flex-shrink: 0; }

.hc-detail strong { color: var(--cream); 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(181,115,90,0.30);
  color: var(--gold-2); display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, color 0.25s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}

.hc-btn:hover { background: var(--gold-2); color: #faf6f0; }

.hc-dots { display: flex; gap: 7px; }

.hc-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(181,115,90,0.30);
  cursor: pointer; transition: background 0.25s;
}

.hc-dot.active { background: var(--gold-2); }

/* ====== INSTAGRAM ====== */

#instagram {
  background: var(--night-2);
  padding: 80px 24px;
}

.ig-inner { max-width: 520px; margin: 0 auto; text-align: center; }

.ig-icon { color: var(--sage); margin-bottom: 20px; }

.ig-hashtag { font-family: var(--script); font-size: clamp(2.2rem, 6vw, 3.4rem); color: var(--cream); font-weight: 600; margin-bottom: 18px; }

.ig-desc { font-size: 0.78rem; color: var(--cream-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(181,115,90,0.10);
  border: 1px solid rgba(181,115,90,0.30);
  color: var(--gold-2); font-family: var(--sans);
  font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}

.ig-copy-btn:hover { background: var(--gold-2); color: #faf6f0; }

/* ====== TRIVIA ====== */

#trivia { background: var(--night-1); }

.trivia-wrap { margin-top: 52px; }

.trivia-card {
  max-width: 640px; margin: 0 auto;
  background: var(--night-0);
  border: 1px solid rgba(181,115,90,0.18);
  border-radius: 20px; padding: 44px 40px;
  box-shadow: var(--shadow-card);
}

.trivia-prog { display: flex; gap: 5px; margin-bottom: 32px; }

.tpd { flex: 1; height: 3px; border-radius: 3px; background: rgba(181,115,90,0.15); transition: background 0.3s; }
.tpd.done { background: var(--sage); }
.tpd.current { background: var(--gold-2); }

.trivia-qnum { font-family: var(--sans); font-size: 0.58rem; letter-spacing: 3px; text-transform: uppercase; color: var(--cream-dim); margin-bottom: 16px; }

.trivia-question { font-family: var(--title); font-size: 1.4rem; font-weight: 400; color: var(--cream); 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(--night-1);
  border: 1px solid rgba(181,115,90,0.18);
  border-radius: 12px; font-family: var(--sans);
  font-size: 0.74rem; color: var(--cream-soft);
  cursor: pointer; text-align: left;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}

.trivia-opt:hover { border-color: rgba(181,115,90,0.45); color: var(--cream); }
.trivia-opt:disabled { cursor: default; }
.trivia-opt.correct { background: rgba(109,146,114,0.15); border-color: var(--sage); color: var(--sage); }
.trivia-opt.wrong { background: rgba(181,115,90,0.12); border-color: var(--gold-2); color: var(--gold-3); }

.trivia-result { text-align: center; padding: 20px 0; }

.res-icon { width: 60px; height: 60px; border-radius: 50%; background: rgba(109,146,114,0.14); border: 1px solid rgba(109,146,114,0.25); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--sage); }

.trivia-result h3 { font-family: var(--title); font-size: 1.8rem; font-weight: 400; color: var(--cream); margin-bottom: 18px; }

.score-bar { height: 4px; background: rgba(181,115,90,0.12); border-radius: 4px; margin-bottom: 16px; overflow: hidden; }

.score-fill { height: 100%; background: linear-gradient(90deg, var(--sage), var(--gold-2)); border-radius: 4px; transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1); }

.trivia-result p { font-size: 0.8rem; color: var(--cream-dim); font-weight: 300; }

/* ====== RSVP ====== */

#rsvp { background: var(--night-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.58rem; font-weight: 400; letter-spacing: 2.5px; text-transform: uppercase; color: var(--cream-dim); margin-bottom: 8px; }

.form-input, .form-select, .form-textarea {
  width: 100%; padding: 13px 18px;
  border: 1px solid rgba(181,115,90,0.22);
  border-radius: var(--r-sm);
  background: var(--night-0);
  font-family: var(--sans); font-size: 0.88rem; font-weight: 300;
  color: var(--cream); 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(181,115,90,0.55);
  box-shadow: 0 0 0 3px rgba(181,115,90,0.08);
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--cream-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='%23a08878' 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(181,115,90,0.20);
  border-radius: var(--r-sm);
  font-family: var(--sans); font-size: 0.7rem; font-weight: 400;
  color: var(--cream-soft); cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}

.radio-opt:hover { border-color: rgba(181,115,90,0.40); color: var(--cream); }
.radio-opt.active { border-color: var(--gold-2); background: rgba(181,115,90,0.08); color: var(--cream); }

.rsvp-ok { text-align: center; padding: 48px 0; display: none; }
.rsvp-ok-icon { width: 72px; height: 72px; border-radius: 50%; background: rgba(109,146,114,0.12); border: 1px solid rgba(109,146,114,0.22); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; color: var(--sage); }
.rsvp-ok h3 { font-family: var(--title); font-size: 2rem; font-weight: 400; color: var(--cream); margin-bottom: 12px; }
.rsvp-ok p { font-size: 0.8rem; color: var(--cream-dim); font-weight: 300; line-height: 1.85; margin-bottom: 28px; }

/* ====== PASES ====== */

#pases { background: var(--night-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(--night-0); border: 1px solid rgba(181,115,90,0.16); border-radius: 20px; box-shadow: var(--shadow-card); }

.pase-tip { margin-top: 18px; padding: 16px 18px; background: rgba(109,146,114,0.08); border: 1px solid rgba(109,146,114,0.18); border-radius: 12px; font-size: 0.7rem; color: var(--cream-dim); line-height: 1.75; }

.pase-tip strong { color: var(--sage); }

.pase-preview { position: sticky; top: 90px; }

.pase-card {
  position: relative;
  padding: 42px 34px;
  background: var(--night-0);
  border: 1px solid rgba(181,115,90,0.18);
  border-radius: 20px;
  text-align: center; overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.pase-card:hover { border-color: rgba(181,115,90,0.40); }

.pase-card-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--sage), var(--gold-2), transparent);
}

/* Botanical corner decorations on pase card */
.pase-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 80px; height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cpath d='M80,60 C60,60 40,40 40,20 C40,40 20,60 0,60' fill='none' stroke='%236d9272' stroke-width='1' opacity='0.3'/%3E%3Cpath d='M80,70 C55,70 30,45 20,20' fill='none' stroke='%236d9272' stroke-width='0.8' opacity='0.2'/%3E%3Cellipse cx='50' cy='35' rx='8' ry='4' fill='%236d9272' opacity='0.15' transform='rotate(-30 50 35)'/%3E%3Cellipse cx='35' cy='50' rx='8' ry='4' fill='%23b5735a' opacity='0.12' transform='rotate(20 35 50)'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  pointer-events: none;
}

.pase-ornament { margin-bottom: 8px; color: var(--sage); }

.pase-event-name { font-family: var(--script); font-size: 2.8rem; color: var(--gold-2); }

.pase-sub-line { font-family: var(--sans); font-size: 0.52rem; font-weight: 300; letter-spacing: 4px; text-transform: uppercase; color: var(--cream-dim); margin-top: 4px; }

.pase-hr { width: 36px; height: 1px; background: rgba(181,115,90,0.25); margin: 16px auto; }

.pase-guest-label { font-family: var(--sans); font-size: 0.52rem; font-weight: 400; letter-spacing: 3px; text-transform: uppercase; color: var(--cream-dim); margin-bottom: 4px; }

.pase-guest-name { font-family: var(--title); font-size: 1.8rem; font-weight: 400; color: var(--cream); }

.pase-guest-count { font-size: 0.72rem; color: var(--cream-dim); margin-bottom: 20px; }

.pase-qr-wrap {
  display: flex; justify-content: center; margin: 8px 0; padding: 14px;
  background: var(--night-1); border: 1px solid rgba(181,115,90,0.14);
  border-radius: 12px;
}

#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(181,115,90,0.06); border-radius: 8px;
  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(181,115,90,0.14); }

.pfi-item label { display: block; font-family: var(--sans); font-size: 0.48rem; font-weight: 400; letter-spacing: 2.5px; text-transform: uppercase; color: var(--cream-dim); margin-bottom: 3px; }

.pfi-item span { font-family: var(--title); font-size: 0.9rem; font-weight: 400; color: var(--cream); }

.pase-id { font-size: 0.58rem; letter-spacing: 1px; color: var(--cream-dim); margin-top: 12px; }

/* ====== ACCESO (SCANNER) ====== */

#acceso { background: var(--night-2); }

.acc-card {
  max-width: 480px; margin: 48px auto 0;
  background: var(--night-0); border: 1px solid rgba(181,115,90,0.16);
  border-radius: 20px; 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(109,146,114,0.12); border-bottom: 1px solid rgba(109,146,114,0.25); }
.acc-status.invalid { background: rgba(198,40,40,0.08); border-bottom: 1px solid rgba(239,83,80,0.25); }

.acc-status-icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(181,115,90,0.12); display: flex; align-items: center; justify-content: center; color: var(--gold-2); }

.acc-status.valid .acc-status-icon { background: rgba(109,146,114,0.15); color: var(--sage); }
.acc-status.invalid .acc-status-icon { background: rgba(198,40,40,0.12); color: #c62828; }

.acc-status-txt { font-family: var(--title); font-size: 1.5rem; font-weight: 400; color: var(--cream); }

.acc-body { padding: 28px 32px 36px; }

.acc-field { margin-bottom: 18px; }

.acc-field label { font-size: 0.55rem; font-weight: 400; letter-spacing: 3px; text-transform: uppercase; color: var(--cream-dim); display: block; margin-bottom: 4px; }

.acc-field span { font-family: var(--title); font-size: 1.35rem; font-weight: 400; color: var(--cream); }

.acc-result-pending { text-align: center; padding: 40px 0; }

.acc-result-pending p { font-size: 0.75rem; letter-spacing: 1.5px; color: var(--cream-dim); margin-top: 12px; }

#reader { border-radius: 12px; overflow: hidden; margin-top: 20px; border: 1px solid rgba(181,115,90,0.20); }

.scan-btn-wrap { margin-top: 24px; display: flex; gap: 12px; }

/* ====== MÚSICA ====== */

.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(--night-0);
  border: 1px solid rgba(181,115,90,0.20);
  border-radius: 50px;
  font-family: var(--sans); font-size: 0.58rem; 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: 56px; height: 56px;
  background: var(--gold-2);
  border: none; border-radius: 50%;
  color: #faf6f0; cursor: pointer;
  transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 16px rgba(181,115,90,0.30);
}

@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.70; } }

/* ====== FOOTER ====== */

footer {
  padding: 68px 24px;
  background: var(--night-2);
  border-top: 1px solid rgba(181,115,90,0.12);
  text-align: center;
}

.footer-name { display: block; font-family: var(--script); font-size: 3rem; color: var(--gold-2); margin-bottom: 14px; }

footer p { font-family: var(--sans); font-size: 0.67rem; font-weight: 300; letter-spacing: 2px; color: rgba(45,35,24,0.35); }

footer p + p { margin-top: 6px; }

.footer-admin-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 26px;
  font-size: 0.57rem; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(181,115,90,0.18); transition: color 0.2s;
}

.footer-admin-link:hover { color: rgba(181,115,90,0.45); }

/* ====== BOTANICAL ORNAMENT SVG ====== */

.ornament-branch {
  display: block;
  margin: 0 auto;
  color: var(--sage);
  opacity: 0.55;
}

/* ====== 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: 640px) {
  section { padding: 72px 18px; }
  .hero-name { font-size: clamp(4rem, 18vw, 6rem); }
  .hero-botanical { opacity: 0.38; }
  .hero-botanical-left { width: 58%; }
  .hero-botanical-right { width: 58%; }
  .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: 2.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: 10px; }
  .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; }
}