/* ==========================================================================
   Invitación de boda · Dirección: "Lookbook cinematográfico"
   Editorial, cálido, alto contraste entre secciones oscuras y hueso.
   ========================================================================== */
:root {
  --tinta: #15120f;
  --tinta-2: #221d19;
  --hueso: #f3ede3;
  --arena: #e4d9c6;
  --piedra: #8b8174;
  --texto: #2a2420;
  --texto-suave: #6a5f55;
  --acento: #a8471f; /* terracota */
  --acento-hover: #8e3a17;
  --oliva: #5b5e3f;
  --linea: rgba(42, 36, 32, 0.16);
  --linea-clara: rgba(243, 237, 227, 0.22);

  --f-display: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
  --f-texto: 'Hanken Grotesk', 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1240px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--hueso);
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
::selection { background: var(--acento); color: var(--hueso); }

[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.grain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 90; opacity: 0.07; mix-blend-mode: multiply;
}

.contenedor { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipografía ---------- */
.eyebrow {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
  margin: 0 0 1.1rem; display: inline-flex; align-items: center; gap: 0.9em;
  color: var(--acento);
}
.eyebrow::before { content: ''; width: 2.4em; height: 1px; background: currentColor; }
.titulo {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 0.98; letter-spacing: -0.02em;
  margin: 0 0 1.6rem; font-variation-settings: 'opsz' 96;
}
.titulo em, .hero__nombres em, .portada__nombres em { font-style: italic; color: var(--acento); }
.titulo--sm { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.mini {
  font-family: var(--f-texto); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--texto-suave); margin: 0 0 0.6rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0.9em 1.7em; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; background: none;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--acento { background: var(--acento); color: var(--hueso); }
.btn--acento:hover { background: var(--acento-hover); }
.btn--oscuro { background: var(--tinta); color: var(--hueso); }
.btn--oscuro:hover { background: var(--acento); }
.btn--linea { border-color: var(--linea); color: var(--texto); }
.btn--linea:hover { border-color: var(--texto); }
.btn--claro { background: var(--hueso); color: var(--tinta); }
.btn--claro:hover { background: #fff; }
.btn--linea-clara { border-color: var(--linea-clara); color: var(--hueso); }
.btn--linea-clara:hover { border-color: var(--hueso); }
.btn--bloque { width: 100%; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.botones { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ==========================================================================
   PORTADA
   ========================================================================== */
.portada {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  color: var(--hueso); text-align: center; padding: var(--gutter);
}
.portada__mitad {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(168, 71, 31, 0.22), transparent 60%),
    var(--tinta);
  transition: transform 1.4s var(--ease-io);
}
.portada__mitad--izq { left: 0; border-right: 1px solid rgba(243, 237, 227, 0.08); }
.portada__mitad--der { right: 0; }
.portada__contenido { position: relative; transition: opacity 0.6s var(--ease), transform 0.9s var(--ease); }
.portada .eyebrow { color: var(--arena); opacity: 0.8; }
.portada__nombres {
  font-family: var(--f-display); font-weight: 400; margin: 0.2em 0 0.4em;
  font-size: clamp(3.6rem, 15vw, 7.5rem); line-height: 0.9; letter-spacing: -0.02em;
  display: flex; flex-direction: column; align-items: center;
}
.portada__nombres em { font-size: 0.55em; line-height: 1.1; }
.portada__para { margin: 0 0 1.8rem; font-size: 0.95rem; color: var(--arena); }
.portada__para strong { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 1.35em; color: var(--hueso); }
.portada__fecha { margin: 1.8rem 0 0; letter-spacing: 0.5em; font-size: 0.78rem; color: var(--arena); }

.sello {
  position: relative; width: 132px; height: 132px; border: 0; padding: 0; background: none;
  display: grid; place-items: center; margin: 0 auto;
}
.sello__anillo { position: absolute; inset: 0; animation: girar 18s linear infinite; }
.sello__anillo svg { width: 100%; height: 100%; overflow: visible; }
.sello__anillo text { fill: var(--arena); font-family: var(--f-texto); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; }
.sello__centro {
  width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #c45a2c, var(--acento) 55%, #7c3214);
  box-shadow: inset 0 -6px 14px rgba(0, 0, 0, 0.35), inset 0 4px 8px rgba(255, 255, 255, 0.18), 0 14px 30px rgba(0, 0, 0, 0.45);
  font-family: var(--f-display); font-style: italic; font-size: 1.3rem; color: var(--hueso);
  transition: transform 0.5s var(--ease);
}
.sello:hover .sello__centro { transform: scale(1.08) rotate(-6deg); }
@keyframes girar { to { transform: rotate(360deg); } }

.portada.is-open { pointer-events: none; }
.portada.is-open .portada__contenido { opacity: 0; transform: scale(0.94); }
.portada.is-open .portada__mitad--izq { transform: translateX(-101%); }
.portada.is-open .portada__mitad--der { transform: translateX(101%); }
.portada.is-gone { display: none; }

/* ==========================================================================
   CONTROLES FLOTANTES
   ========================================================================== */
.flotante {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 0.6em; min-height: 48px; padding: 0 1.4em;
  border-radius: 999px; background: var(--acento); color: var(--hueso); text-decoration: none;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(21, 18, 15, 0.3);
  transform: translateY(140%); transition: transform 0.6s var(--ease), background 0.3s;
}
.flotante.is-visible { transform: none; }
.flotante:hover { background: var(--acento-hover); }

.musica {
  position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--linea-clara);
  background: rgba(21, 18, 15, 0.82); display: grid; place-items: center;
}
.musica__barras { display: flex; gap: 3px; align-items: flex-end; height: 16px; }
.musica__barras i { width: 3px; height: 4px; background: var(--hueso); border-radius: 2px; }
.musica[aria-pressed='true'] .musica__barras i { animation: barra 0.9s ease-in-out infinite alternate; }
.musica__barras i:nth-child(2) { animation-delay: -0.3s !important; }
.musica__barras i:nth-child(3) { animation-delay: -0.6s !important; }
.musica__barras i:nth-child(4) { animation-delay: -0.15s !important; }
@keyframes barra { to { height: 16px; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh; background: var(--tinta); color: var(--hueso);
  display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; overflow: hidden;
}
.hero__foto { position: absolute; inset: 0; margin: 0; }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; transform: scale(1.12); transition: transform 2.6s var(--ease); }
.is-ready .hero__foto img { transform: scale(1); }
.hero__foto::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21, 18, 15, 0.25) 0%, rgba(21, 18, 15, 0.1) 40%, rgba(21, 18, 15, 0.92) 100%);
}
.hero__texto { position: relative; grid-column: 1 / -1; padding: 0 var(--gutter) clamp(5rem, 12vh, 8rem); }
.hero .eyebrow { color: var(--arena); }
.hero__nombres {
  font-family: var(--f-display); font-weight: 400; margin: 0;
  font-size: clamp(4.2rem, 17vw, 14rem); line-height: 0.84; letter-spacing: -0.035em;
  font-variation-settings: 'opsz' 96;
}
.linea { display: block; overflow: hidden; padding-bottom: 0.06em; }
.linea--amp { font-size: 0.42em; line-height: 1.1; padding-left: 0.2em; }
.linea:nth-child(3) { padding-left: clamp(1.5rem, 14vw, 16rem); }
.reveal-linea { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--ease); }
.is-ready .reveal-linea { transform: none; }
.is-ready .linea:nth-child(2) .reveal-linea { transition-delay: 0.15s; }
.is-ready .linea:nth-child(3) .reveal-linea { transition-delay: 0.3s; }
.hero__fecha { margin: 2rem 0 0; font-size: 0.82rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--arena); }
.hero__vertical {
  position: absolute; right: var(--gutter); top: 50%; margin: 0;
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
  font-size: 0.7rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--arena); opacity: 0.7;
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.6rem; width: 1px; height: 56px; transform: translateX(-50%);
  background: var(--linea-clara); overflow: hidden;
}
.hero__scroll span { position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--hueso); animation: caer 2.2s var(--ease-io) infinite; }
@keyframes caer { to { top: 100%; } }

@media (min-width: 900px) {
  .hero__foto { left: 38%; }
  .hero__foto::after { background: linear-gradient(90deg, var(--tinta) 0%, rgba(21, 18, 15, 0.35) 30%, rgba(21, 18, 15, 0.05) 60%), linear-gradient(0deg, rgba(21, 18, 15, 0.5), transparent 40%); }
  .hero { align-items: center; }
  .hero__texto { padding-bottom: 0; }
}

/* ==========================================================================
   CUENTA REGRESIVA
   ========================================================================== */
.cuenta { position: relative; color: var(--hueso); padding: clamp(6rem, 14vw, 11rem) 0; overflow: hidden; background: var(--tinta); }
.cuenta__fondo { position: absolute; inset: -10% 0; }
.cuenta__fondo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; will-change: transform; }
.cuenta__fondo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--tinta), rgba(21, 18, 15, 0.35) 30%, rgba(21, 18, 15, 0.55) 80%, var(--tinta)); }
.cuenta .contenedor { position: relative; }
.cuenta .eyebrow { color: var(--arena); }
.contador {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 1rem 0 3rem;
  border-top: 1px solid var(--linea-clara); border-bottom: 1px solid var(--linea-clara);
}
.contador__item { padding: 1.6rem 0.4rem 1.4rem; text-align: center; }
.contador__item + .contador__item { border-left: 1px solid var(--linea-clara); }
.contador__num {
  display: block; font-family: var(--f-display); font-size: clamp(2.4rem, 9vw, 7.5rem);
  line-height: 1; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.03em;
}
.contador__item:first-child .contador__num { color: #e9a07d; font-style: italic; }
.contador__lbl { display: block; margin-top: 0.7rem; font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--arena); }
.cuenta__fin { font-family: var(--f-display); font-style: italic; font-size: 2rem; margin: 0 0 2rem; }

/* ==========================================================================
   HISTORIA
   ========================================================================== */
.historia { padding: clamp(6rem, 12vw, 10rem) 0; }
.historia__grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.historia__foto { margin: 0; overflow: hidden; }
.historia__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.historia__foto:hover img { transform: scale(1.04); }
.historia__foto--a { aspect-ratio: 4 / 5; }
.historia__foto--b { aspect-ratio: 3 / 4; }
.historia__foto--c { aspect-ratio: 1; }
.cita {
  margin: 0 0 2.6rem; padding-left: 1.4rem; border-left: 2px solid var(--acento);
  font-family: var(--f-display); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.4; color: var(--texto);
}
.cita p { margin: 0; }
.padres { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.6rem; border-top: 1px solid var(--linea); padding-top: 1.8rem; }
.padres ul { list-style: none; margin: 0; padding: 0; font-family: var(--f-display); font-size: 1.08rem; line-height: 1.5; }

@media (min-width: 900px) {
  .historia__grid { grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto; align-items: start; }
  .historia__foto--a { grid-column: 1 / 6; grid-row: 1 / 3; }
  .historia__texto { grid-column: 7 / 13; grid-row: 1; padding-top: 3rem; }
  .historia__foto--b { grid-column: 7 / 10; grid-row: 2; margin-top: 1rem; }
  .historia__foto--c { grid-column: 10 / 13; grid-row: 2; margin-top: 6rem; }
}

/* ==========================================================================
   EVENTOS
   ========================================================================== */
.eventos { background: var(--arena); padding: clamp(6rem, 12vw, 10rem) 0; }
.cabecera { max-width: 720px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.cabecera__texto { color: var(--texto-suave); font-size: 1.05rem; margin: 0; }
.eventos__lista { display: grid; gap: clamp(3rem, 6vw, 6rem); }
.evento { display: grid; gap: 1.6rem; }
.evento__foto { margin: 0; position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.evento__foto img { width: 100%; height: 100%; object-fit: cover; }
.evento__foto::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at 0% 0%, rgba(21, 18, 15, 0.55), transparent 70%); pointer-events: none; }
.evento__num { z-index: 1; }
.evento__num {
  position: absolute; left: 1rem; top: 0.4rem; font-family: var(--f-display); font-style: italic;
  font-size: clamp(4rem, 9vw, 7rem); color: var(--hueso); line-height: 1; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.evento__tipo { margin: 0 0 0.4rem; }
.evento__lugar { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; margin: 0 0 1rem; }
.evento__hora { display: inline-flex; align-items: baseline; gap: 0.5em; font-family: var(--f-display); font-size: 1.6rem; margin-bottom: 0.6rem; }
.evento__hora small { font-family: var(--f-texto); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--texto-suave); }
.evento__dir { color: var(--texto-suave); margin: 0 0 1.4rem; max-width: 40ch; }
.evento__mapa { margin-top: 1.6rem; aspect-ratio: 16 / 10; background: var(--hueso); border: 1px solid var(--linea); position: relative; overflow: hidden; }
.evento__mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.85) sepia(0.25) contrast(1.05); transition: filter 0.5s; }
.evento__mapa:hover iframe { filter: none; }
.evento__mapa-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--texto-suave); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; }

@media (min-width: 900px) {
  .evento { grid-template-columns: repeat(12, 1fr); align-items: center; }
  .evento__foto { grid-column: 1 / 7; aspect-ratio: 5 / 4; }
  .evento__info { grid-column: 8 / 13; }
  .evento:nth-child(even) .evento__foto { grid-column: 7 / 13; grid-row: 1; }
  .evento:nth-child(even) .evento__info { grid-column: 1 / 6; grid-row: 1; }
}

/* ==========================================================================
   ITINERARIO
   ========================================================================== */
.itinerario { padding: clamp(6rem, 12vw, 10rem) 0; background: var(--tinta); color: var(--hueso); }
.itinerario .eyebrow { color: #e9a07d; }
.itinerario__grid { display: grid; gap: 3rem; }
.itinerario__foto { margin: 2rem 0 0; aspect-ratio: 4 / 3; overflow: hidden; max-width: 460px; }
.itinerario__foto img { width: 100%; height: 100%; object-fit: cover; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 5.2rem; top: 0.6rem; bottom: 0.6rem; width: 1px; background: var(--linea-clara); }
.timeline::after {
  content: ''; position: absolute; left: 5.2rem; top: 0.6rem; width: 1px; height: calc((100% - 1.2rem) * var(--progreso, 0));
  background: var(--acento); transition: height 0.2s linear;
}
.timeline li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 2rem; padding: 0 0 2.6rem; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: calc(5.2rem - 5px); top: 0.55rem; width: 11px; height: 11px; border-radius: 50%;
  background: var(--tinta); border: 1px solid var(--arena); transition: background 0.4s, border-color 0.4s;
}
.timeline li.is-in::before { background: var(--acento); border-color: var(--acento); }
.timeline__hora { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.3; font-variant-numeric: lining-nums; }
.timeline__titulo { font-family: var(--f-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 400; margin: 0 0 0.2rem; line-height: 1.2; padding-left: 0.8rem; }
.timeline__detalle { margin: 0; color: var(--arena); opacity: 0.8; padding-left: 0.8rem; }

@media (min-width: 900px) {
  .itinerario__grid { grid-template-columns: 5fr 7fr; gap: 6rem; }
  .itinerario__cabecera { position: sticky; top: 6rem; align-self: start; }
}

/* ==========================================================================
   VESTIMENTA
   ========================================================================== */
.vestimenta { display: grid; background: var(--hueso); }
.vestimenta__foto { margin: 0; aspect-ratio: 4 / 5; max-height: 92svh; overflow: hidden; }
.vestimenta__foto img { width: 100%; height: 100%; object-fit: cover; }
.vestimenta__texto { padding: clamp(4rem, 9vw, 8rem) var(--gutter); align-self: center; max-width: 640px; }
.vestimenta__texto > p:not(.eyebrow):not(.mini) { color: var(--texto-suave); font-size: 1.05rem; margin: 0 0 2.4rem; }
.vestimenta .titulo { font-size: clamp(2.2rem, 4.6vw, 4rem); }
.paleta { list-style: none; margin: 0; padding: 0; display: flex; }
.paleta li { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--hueso); margin-left: -10px; box-shadow: 0 6px 16px rgba(21, 18, 15, 0.15); transition: transform 0.4s var(--ease); }
.paleta li:first-child { margin-left: 0; }
.paleta li:hover { transform: translateY(-6px); }
@media (min-width: 900px) {
  .vestimenta { grid-template-columns: 1fr 1fr; }
  .vestimenta__foto { max-height: none; height: 100%; aspect-ratio: auto; min-height: 640px; }
}

/* ==========================================================================
   GALERÍA
   ========================================================================== */
.galeria { padding: clamp(6rem, 12vw, 10rem) 0; background: var(--hueso); border-top: 1px solid var(--linea); }
.galeria__cabecera { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2.5rem; }
.galeria__nav { display: flex; gap: 0.6rem; }
.flecha { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--linea); background: none; font-size: 1.1rem; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.flecha:hover { background: var(--tinta); color: var(--hueso); border-color: var(--tinta); }
.galeria__pista {
  display: flex; gap: clamp(0.8rem, 1.6vw, 1.4rem); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 1.2rem; scroll-padding: 0 var(--gutter); scrollbar-width: thin; scrollbar-color: var(--acento) transparent;
  cursor: grab;
}
.galeria__pista.is-drag { cursor: grabbing; scroll-snap-type: none; }
.galeria__pista figure { margin: 0; flex: 0 0 auto; scroll-snap-align: start; overflow: hidden; height: clamp(340px, 62vh, 620px); }
.galeria__pista figure:nth-child(3n + 1) { aspect-ratio: 3 / 4; }
.galeria__pista figure:nth-child(3n + 2) { aspect-ratio: 4 / 5; margin-top: 3rem; height: clamp(300px, 52vh, 520px); }
.galeria__pista figure:nth-child(3n) { aspect-ratio: 5 / 4; }
.galeria__pista img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; transition: transform 1s var(--ease); }
.galeria__pista figure:hover img { transform: scale(1.05); }
.galeria__hashtag { padding: 1.6rem var(--gutter) 0; font-family: var(--f-display); font-style: italic; font-size: 1.2rem; color: var(--texto-suave); }

/* ==========================================================================
   REGALOS
   ========================================================================== */
.regalos { padding: clamp(6rem, 12vw, 10rem) 0; background: var(--arena); }
.regalos__grid { display: grid; gap: 1px; background: var(--linea); border: 1px solid var(--linea); }
.regalo { background: var(--hueso); padding: clamp(2rem, 4vw, 3rem); display: flex; flex-direction: column; gap: 0.4rem; min-height: 260px; }
.regalo__num { font-family: var(--f-display); font-style: italic; color: var(--acento); font-size: 1.1rem; }
.regalo h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin: 0.4rem 0 0; line-height: 1.1; }
.regalo p { margin: 0; color: var(--texto-suave); }
.regalo .btn { margin-top: auto; align-self: flex-start; }
.clabe { font-family: var(--f-display); font-size: 1.15rem; letter-spacing: 0.04em; color: var(--texto); word-spacing: 0.15em; margin: 0.6rem 0 1.4rem !important; font-variant-numeric: lining-nums tabular-nums; }
@media (min-width: 700px) { .regalos__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .regalos__grid { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================================
   HOSPEDAJE
   ========================================================================== */
.hospedaje { padding: clamp(4rem, 8vw, 6rem) 0; background: var(--hueso); }
.hospedaje__grid { display: grid; gap: 2rem; align-items: end; }
.hospedaje__lista { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.hospedaje__lista li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.4rem 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--linea); }
.hospedaje__lista strong { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; }
.hospedaje__lista span { color: var(--texto-suave); font-size: 0.92rem; }
.hospedaje__lista a { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--acento); text-decoration: none; white-space: nowrap; }
.hospedaje__lista a:hover { text-decoration: underline; }
@media (min-width: 900px) { .hospedaje__grid { grid-template-columns: 5fr 7fr; gap: 6rem; } }

/* ==========================================================================
   RSVP
   ========================================================================== */
.rsvp { position: relative; padding: clamp(6rem, 12vw, 10rem) 0; background: var(--tinta); color: var(--hueso); overflow: hidden; }
.rsvp__fondo { position: absolute; inset: 0; }
.rsvp__fondo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.rsvp__fondo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--tinta) 10%, rgba(21, 18, 15, 0.7) 60%, rgba(21, 18, 15, 0.85)); }
.rsvp .contenedor { position: relative; }
.rsvp .eyebrow { color: #e9a07d; }
.rsvp__grid { display: grid; gap: 3rem; }
.rsvp__intro p { color: var(--arena); max-width: 42ch; }
.rsvp__intro strong { color: var(--hueso); font-weight: 500; }
.rsvp__pases { font-family: var(--f-display); font-style: italic; font-size: 1.35rem; color: var(--hueso) !important; }
.rsvp__pases:empty { display: none; }

.form { background: var(--hueso); color: var(--texto); padding: clamp(1.6rem, 4vw, 3rem); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35); }
.campo { border: 0; margin: 0 0 1.6rem; padding: 0; min-width: 0; }
.campo label, .campo legend { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 0.6rem; padding: 0; }
.opcional { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--texto-suave); }
.campo input[type='text'], .campo textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--texto);
  background: transparent; border: 0; border-bottom: 1px solid var(--linea); padding: 0.7rem 0; border-radius: 0;
  transition: border-color 0.3s;
}
.campo textarea { resize: vertical; min-height: 90px; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--acento); }
.campo input::placeholder, .campo textarea::placeholder { color: #a39889; }
.campo.has-error input { border-color: #b3261e; }
.campo__error { color: #b3261e; font-size: 0.85rem; margin: 0.4rem 0 0; min-height: 0; }
.campo__error:empty { display: none; }
.campo__ayuda { font-size: 0.85rem; color: var(--texto-suave); margin: 0.5rem 0 0; }
.campo__ayuda:empty { display: none; }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.opcion { position: relative; display: block; margin: 0 !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important; font-size: 0.95rem !important; }
.opcion input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opcion span { display: grid; place-items: center; min-height: 52px; padding: 0.6rem; border: 1px solid var(--linea); text-align: center; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.opcion input:checked + span { background: var(--tinta); color: var(--hueso); border-color: var(--tinta); }
.opcion input:focus-visible + span { outline: 2px solid var(--acento); outline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--linea); }
.stepper button { width: 52px; height: 52px; border: 0; background: none; font-size: 1.3rem; transition: background 0.3s; }
.stepper button:hover { background: var(--arena); }
.campo .stepper input { width: 64px; border-bottom: 0; height: 52px; border: 0; border-left: 1px solid var(--linea); border-right: 1px solid var(--linea); text-align: center; font-family: var(--f-texto); font-size: 1.25rem; font-weight: 500; padding: 0; background: none; color: var(--texto); }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.campo.is-hidden { display: none; }
.form__nota { font-size: 0.82rem; color: var(--texto-suave); text-align: center; margin: 0.9rem 0 0; }

@media (min-width: 900px) {
  .rsvp__grid { grid-template-columns: 5fr 6fr; gap: 6rem; align-items: center; }
}

/* ==========================================================================
   PIE
   ========================================================================== */
.pie { background: var(--tinta); color: var(--arena); text-align: center; padding: 5rem var(--gutter) calc(6rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea-clara); }
.pie__nombres { font-family: var(--f-display); font-style: italic; font-size: clamp(3rem, 8vw, 5rem); color: var(--hueso); margin: 0; line-height: 1; }
.pie__hashtag { letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.72rem; margin: 1rem 0 2.6rem; }
.pie__creditos { font-size: 0.8rem; opacity: 0.7; margin: 0 0 1.4rem; }
.redline {
  display: inline-flex; align-items: center; gap: 0.55em; font-size: 0.82rem; text-decoration: none;
  padding: 0.6em 1.1em; border: 1px solid var(--linea-clara); border-radius: 999px; transition: border-color 0.3s, color 0.3s;
}
.redline strong { color: #e11d48; font-weight: 600; }
.redline:hover { border-color: #e11d48; color: var(--hueso); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 5.5rem; z-index: 110; transform: translate(-50%, 20px); opacity: 0;
  background: var(--tinta); color: var(--hueso); padding: 0.9rem 1.4rem; font-size: 0.9rem; border-radius: 999px;
  transition: opacity 0.4s, transform 0.4s var(--ease); pointer-events: none; max-width: calc(100% - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
figure.reveal { clip-path: inset(12% 0 0 0); transform: translateY(40px); transition: clip-path 1.4s var(--ease), transform 1.4s var(--ease), opacity 1s; }
figure.reveal.is-in { clip-path: inset(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, figure.reveal, .reveal-linea { opacity: 1; transform: none; clip-path: none; }
}
