/* =====================================================================
   ESTILOS — web de boda Laura & Jordi
   ---------------------------------------------------------------------
   Mobile-first: la base está pensada para 390 px de ancho y se escala
   con tres puntos de ruptura: 600 px (tablet), 900 px (escritorio) y
   1200 px (pantallas anchas).
   Paleta: lino + oliva (base clara) con bloques oliva noche + oro viejo
   en el formulario y el cierre. Ver variables en :root.
   ===================================================================== */

/* ---------- 1. Variables de diseño ---------- */
:root {
  /* Colores */
  --fondo: #F5F0E8;        /* lino: fondo principal */
  --fondo-alt: #E9E1D3;    /* arena pálida: secciones alternas */
  --tinta: #1F1D1A;        /* texto y monograma */
  --tinta-suave: #5A5751;  /* texto secundario (6,3:1 sobre lino) */
  --oliva: #5C6B3F;        /* acento principal (5,1:1 sobre lino) */
  --oliva-claro: #A9B58C;  /* oliva sobre fondo oscuro */
  --oliva-noche: #2E3324;  /* fondo de los bloques oscuros */
  --oliva-noche-2: #262B1E;/* variante más oscura para relieve */
  --tierra: #8C5A3C;       /* acento secundario (4,6:1 sobre lino) */
  --oro: #C2A46B;          /* metálico sobre fondo oscuro */
  --oro-oscuro: #9C7D45;   /* metálico sobre fondo claro (texto pequeño) */
  --crema: #F5F0E8;        /* texto sobre fondo oscuro */
  --linea: rgba(31, 29, 26, 0.18);
  --linea-oscura: rgba(245, 240, 232, 0.22);
  --error: #9B3B2E;
  --error-oscuro: #F0B8AE;

  /* Tipografía */
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --texto-base: 1rem;                 /* 16 px mínimo: evita el zoom de iOS en los campos */
  --texto-peq: 0.875rem;              /* 14 px: nunca menos en texto legible */
  --kicker: 0.75rem;

  /* Espaciado y medidas */
  --gutter: 1.25rem;                  /* 20 px de margen lateral, nunca menos de 16 */
  --ancho-max: 1120px;
  --ancho-texto: 38rem;               /* ~65-70 caracteres por línea */
  --seccion-y: clamp(4rem, 9vw, 7rem);
  --alto-nav: 64px;
  --radio: 3px;

  /* Movimiento */
  --dur: 0.6s;
  --curva: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: var(--texto-base);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.005em; overflow-wrap: anywhere; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
section[id], footer[id] { scroll-margin-top: var(--alto-nav); }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--tierra); outline-offset: 3px; }
.oscuro :focus-visible { outline-color: var(--oro); }
.visualmente-oculto {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

/* Tamaño de fuente del cuerpo por anchura */
@media (min-width: 900px) { :root { --texto-base: 1.0625rem; } }
@media (min-width: 1200px) { :root { --texto-base: 1.125rem; } }

/* ---------- 3. Utilidades de maquetación ---------- */
.contenedor { width: 100%; max-width: var(--ancho-max); margin-inline: auto; padding-inline: var(--gutter); }
.contenedor--texto { max-width: calc(var(--ancho-texto) + 2 * var(--gutter)); }
.seccion { position: relative; padding-block: var(--seccion-y); }
.seccion--alt { background: var(--fondo-alt); }
.oscuro { background: var(--oliva-noche); color: var(--crema); }
.oscuro .kicker { color: var(--oro); }
.oscuro .texto-suave { color: rgba(245, 240, 232, 0.72); }
.texto-suave { color: var(--tinta-suave); }
.kicker {
  display: block; margin-bottom: 0.9rem;
  font-family: var(--sans); font-size: var(--kicker); font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--oliva);
}
.titulo-seccion { font-size: clamp(2rem, 6vw, 3.4rem); margin-bottom: 1.25rem; }
.titulo-seccion--peq { font-size: clamp(1.75rem, 5vw, 2.6rem); }
.centrado { text-align: center; }
.centrado .kicker { text-align: center; }

/* Separador decorativo entre secciones: línea fina con rombo dorado */
.separador {
  display: flex; align-items: center; gap: 1rem;
  width: min(100% - 2 * var(--gutter), 20rem); margin-inline: auto;
  color: var(--oro-oscuro);
}
.separador::before, .separador::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.5; }
.separador span { width: 8px; height: 8px; transform: rotate(45deg); background: currentColor; }
.oscuro .separador { color: var(--oro); }

/* Marca de agua del monograma en el fondo de una sección */
.marca-agua {
  position: absolute; inset: 0; margin: auto; z-index: 0;
  width: min(80vw, 34rem); height: auto; aspect-ratio: 1;
  color: var(--tinta); opacity: 0.05; pointer-events: none;
}
.seccion > .contenedor { position: relative; z-index: 1; }

/* Monograma reutilizable: hereda el color por currentColor */
.monograma { display: block; color: currentColor; }
.monograma use { fill: currentColor; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.75rem 1.5rem; border-radius: var(--radio);
  border: 1px solid var(--oliva); background: var(--oliva); color: var(--crema);
  font-family: var(--sans); font-size: var(--texto-peq); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { background: #4B5833; border-color: #4B5833; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn--linea { background: transparent; color: var(--tinta); border-color: var(--tinta); }
.btn--linea:hover { background: var(--tinta); color: var(--fondo); border-color: var(--tinta); }
.oscuro .btn { background: var(--oro); border-color: var(--oro); color: var(--oliva-noche); }
.oscuro .btn:hover { background: #D4B87F; border-color: #D4B87F; }
.oscuro .btn--linea { background: transparent; color: var(--crema); border-color: var(--crema); }
.oscuro .btn--linea:hover { background: var(--crema); color: var(--oliva-noche); }
.btn--texto { background: none; border: 0; padding: 0.25rem 0; min-height: 0; text-decoration: underline; text-underline-offset: 0.25em; color: inherit; }
.btn--texto:hover { background: none; color: var(--oliva); }
.oscuro .btn--texto:hover { background: none; color: var(--oro); }
.btn svg { width: 1.1em; height: 1.1em; }

/* Iconos de línea fina */
.icono { width: 2.75rem; height: 2.75rem; stroke: currentColor; fill: none; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; color: var(--oliva); }
.oscuro .icono { color: var(--oro); }

/* ---------- 4. Animaciones de revelado (IntersectionObserver) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur) var(--curva), transform var(--dur) var(--curva); transition-delay: var(--retardo, 0ms); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 5. Barra de navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--alto-nav);
  display: flex; align-items: center;
  background: transparent; color: var(--tinta);
  transition: background 0.35s, box-shadow 0.35s;
}
.nav .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav--solida { background: rgba(245, 240, 232, 0.94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--linea); }
.nav__logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; opacity: 0; transform: translateY(-6px); transition: opacity 0.35s, transform 0.35s; }
.nav__logo .monograma { width: 34px; height: 34px; }
.nav__logo span { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.04em; }
.nav--solida .nav__logo { opacity: 1; transform: none; }
.nav__enlaces { display: none; }
.nav__derecha { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.idioma { display: inline-flex; border: 1px solid currentColor; border-radius: 999px; padding: 2px; }
.idioma button {
  border: 0; background: none; padding: 0.3rem 0.65rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; cursor: pointer; line-height: 1;
  min-height: 1.75rem; color: inherit;
}
.idioma button[aria-pressed="true"] { background: var(--tinta); color: var(--fondo); }
.nav__menu { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 0; background: none; cursor: pointer; }
.nav__menu svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.nav__menu .cerrar { display: none; }
.nav__menu[aria-expanded="true"] .abrir { display: none; }
.nav__menu[aria-expanded="true"] .cerrar { display: block; }

/* Menú móvil a pantalla completa */
.menu-movil {
  position: fixed; inset: 0; z-index: 40; padding: calc(var(--alto-nav) + 1.5rem) var(--gutter) 2rem;
  background: var(--oliva-noche); color: var(--crema);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s, visibility 0s 0.3s;
  overflow-y: auto;
}
.menu-movil.abierto { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s, transform 0.3s; }
.menu-movil a { display: block; padding: 0.7rem 0; font-family: var(--serif); font-size: clamp(1.75rem, 7vw, 2.4rem); text-decoration: none; border-bottom: 1px solid var(--linea-oscura); }
.menu-movil a:hover { color: var(--oro); }
body.menu-abierto { overflow: hidden; }
body.menu-abierto .nav { color: var(--crema); background: transparent; box-shadow: none; }
body.menu-abierto .nav .idioma button[aria-pressed="true"] { background: var(--crema); color: var(--oliva-noche); }

@media (min-width: 900px) {
  .nav__menu, .menu-movil { display: none; }
  .nav__enlaces { display: flex; gap: clamp(0.9rem, 1.8vw, 1.6rem); margin-inline: auto; }
  .nav__enlaces a { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; opacity: 0; transition: opacity 0.35s, color 0.2s; white-space: nowrap; }
  .nav--solida .nav__enlaces a { opacity: 1; }
  .nav__enlaces a:hover { color: var(--oliva); }
  .nav__derecha { margin-left: 0; }
}

/* ---------- 6. Portada ---------- */
.portada {
  min-height: 100svh; display: grid; align-content: center;
  padding-block: calc(var(--alto-nav) + 2rem) 3rem;
  overflow: hidden;
}
.portada .contenedor { display: grid; gap: 2.5rem; align-items: center; }
.portada__texto { text-align: center; }
.portada__monograma { width: min(52vw, 15rem); height: auto; aspect-ratio: 1; margin: 0 auto 1.5rem; color: var(--tinta); }
.portada__nombres { font-size: clamp(2.5rem, 11vw, 5.5rem); font-weight: 400; letter-spacing: 0.02em; white-space: nowrap; }
.portada__nombres .amp { font-style: italic; color: var(--oliva); }
.portada__fecha { margin-top: 0.75rem; font-family: var(--serif); font-size: clamp(1.4rem, 5vw, 2rem); letter-spacing: 0.22em; color: var(--tierra); }
.portada__sub { margin-top: 0.75rem; font-size: var(--texto-peq); letter-spacing: 0.06em; color: var(--tinta-suave); }
.portada__foto {
  /* FOTO PENDIENTE: retrato de portada. Proporción 4:5, recorte centrado en los rostros. */
  position: relative; width: min(100%, 26rem); margin-inline: auto; aspect-ratio: 4 / 5;
  background: var(--fondo-alt); border-radius: var(--radio); overflow: hidden;
}
.portada__foto::after { content: ""; position: absolute; inset: 1rem; border: 1px solid var(--oro-oscuro); opacity: 0.55; pointer-events: none; }
.portada__foto img { width: 100%; height: 100%; object-fit: cover; }
.portada__foto-marca { position: absolute; inset: 0; margin: auto; width: 38%; height: 38%; opacity: 0.08; color: var(--tinta); }
.portada__foto img + .portada__foto-marca { display: none; } /* la marca desaparece en cuanto haya foto */
.portada__scroll {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-top: 2rem;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--tinta-suave);
}
.portada__scroll svg { width: 18px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.25; animation: flecha 1.8s ease-in-out infinite; }
@keyframes flecha { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Aparición escalonada de los textos de portada después del dibujo del monograma */
.portada__aparece { opacity: 0; transform: translateY(12px); animation: aparecer 0.9s var(--curva) forwards; animation-delay: calc(1.7s + var(--i, 0) * 0.18s); }
@keyframes aparecer { to { opacity: 1; transform: none; } }

/* Dibujo trazo a trazo del monograma (pathLength="1" en los trazados) */
.monograma--dibuja use {
  fill: currentColor; fill-opacity: 0;
  stroke: currentColor; stroke-width: 14; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: trazo 1.8s ease-in-out forwards, relleno 0.7s ease-out 1.5s forwards;
}
@keyframes trazo { to { stroke-dashoffset: 0; } }
@keyframes relleno { to { fill-opacity: 1; stroke-width: 0; } }

@media (min-width: 900px) {
  .portada .contenedor { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
  .portada__texto { text-align: left; }
  .portada__monograma { margin-inline: 0; width: 13rem; }
  .portada__foto { margin-inline: 0 auto; width: min(100%, 30rem); }
  .portada__scroll { margin-top: 3rem; align-self: start; }
}

/* ---------- 7. Nos casamos ---------- */
/* Foto a ancho completo (4:3 en móvil, 16:9 en escritorio) y texto centrado en columna estrecha */
.casamos { padding-top: 0; }
.casamos__foto { margin: 0 0 2.75rem; }
.casamos__marco { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--fondo-alt); }
.casamos__marco img { width: 100%; height: 100%; object-fit: cover; display: block; }
.casamos__marco::after { content: ""; position: absolute; inset: 0.9rem; border: 1px solid rgba(245, 240, 232, 0.55); pointer-events: none; }
.casamos__pie { margin-top: 0.75rem; padding-inline: var(--gutter); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tinta-suave); text-align: center; }
.casamos__texto p { font-size: 1.05em; }
.casamos__firma { font-family: var(--serif); font-style: italic; font-size: 1.5rem; margin-top: 1.5rem; color: var(--oliva); }
@media (min-width: 900px) {
  .casamos__foto { max-width: var(--ancho-max); margin-inline: auto; padding-inline: var(--gutter); }
  .casamos__marco { aspect-ratio: 16 / 9; border-radius: var(--radio); }
  .casamos__marco::after { inset: 1.25rem; }
  .casamos__pie { text-align: right; padding-inline: 0; }
}

/* ---------- 8. Lugares (ceremonia y banquete) ---------- */
.lugar .contenedor { display: grid; gap: 2rem; }
.lugar__datos { display: grid; gap: 1.25rem; }
.lugar__dato { display: grid; grid-template-columns: auto 1fr; gap: 0 0.9rem; align-items: start; }
.lugar__dato .icono { width: 2.25rem; height: 2.25rem; grid-row: span 2; margin-top: 0.15rem; }
.lugar__etiqueta { font-size: var(--kicker); letter-spacing: 0.18em; text-transform: uppercase; color: var(--tinta-suave); }
.lugar__valor { font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; overflow-wrap: anywhere; }
.lugar__hora { font-size: 2rem; }
.lugar__mapa { aspect-ratio: 4 / 3; background: var(--fondo-alt); border-radius: var(--radio); overflow: hidden; border: 1px solid var(--linea); }
.lugar__mapa iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.35) sepia(0.12); }
.lugar__mapa--ancho { aspect-ratio: 16 / 10; }
.lugar__foto { position: relative; margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radio); background: var(--fondo-alt); width: min(100%, 26rem); margin-inline: auto; }
.lugar__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lugar__foto::after { content: ""; position: absolute; inset: 0.9rem; border: 1px solid rgba(245, 240, 232, 0.6); pointer-events: none; }
@media (min-width: 900px) {
  .lugar .contenedor { grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem 4rem; }
  .lugar--inverso .lugar__mapa { order: -1; }
  .lugar__foto { width: 100%; max-width: 26rem; margin-inline: auto 0; }
  .lugar__mapa--ancho { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
}

/* ---------- 9. Programa (cronograma con línea que se rellena) ---------- */
.programa { position: relative; overflow: hidden; }
.cronograma { position: relative; max-width: 36rem; margin: 2.5rem auto 0; padding-left: 3rem; }
.cronograma::before { /* línea de fondo */
  content: ""; position: absolute; left: 1rem; top: 0.5rem; bottom: 0.5rem; width: 1px; background: var(--linea);
}
.cronograma__progreso { /* línea que se rellena al hacer scroll */
  position: absolute; left: 1rem; top: 0.5rem; bottom: 0.5rem; width: 1px; background: var(--oliva);
  transform-origin: top; transform: scaleY(var(--progreso, 0)); transition: transform 0.15s linear;
}
.cronograma__item { position: relative; padding-bottom: 2.5rem; }
.cronograma__item:last-child { padding-bottom: 0; }
.cronograma__item::before { /* punto */
  content: ""; position: absolute; left: calc(-3rem + 1rem - 5px); top: 0.55rem; width: 11px; height: 11px; border-radius: 50%;
  background: var(--fondo); border: 1px solid var(--oliva); transition: background 0.3s;
}
.cronograma__item.activo::before { background: var(--oliva); }
.cronograma__hora { font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--tierra); }
.cronograma__titulo { font-size: 1.35rem; margin-top: 0.3rem; }
.cronograma__texto { color: var(--tinta-suave); font-size: var(--texto-peq); margin-top: 0.2rem; }
.programa__nota { max-width: 36rem; margin: 2.5rem auto 0; padding-left: 3rem; font-size: var(--texto-peq); color: var(--tinta-suave); }
@media (min-width: 600px) {
  .cronograma { padding-left: 5rem; }
  .cronograma::before, .cronograma__progreso { left: 1.5rem; }
  .cronograma__item::before { left: calc(-5rem + 1.5rem - 5px); }
  .programa__nota { padding-left: 5rem; }
}

/* ---------- 10. Cómo llegar ---------- */
.llegar__bloques { display: grid; gap: 2rem; margin-top: 2rem; }
.bloque-info { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; align-items: start; }
.bloque-info .icono { grid-row: span 3; }
.bloque-info h3 { font-size: 1.4rem; }
.bloque-info p { color: var(--tinta-suave); }
.bloque-info .btn { margin-top: 0.75rem; justify-self: start; }
.aviso-bus { grid-column: 2; padding: 0.9rem 1rem; border-left: 3px solid var(--tierra); background: var(--fondo); font-size: var(--texto-peq); }
.seccion--alt .aviso-bus { background: rgba(245, 240, 232, 0.7); }
@media (min-width: 900px) {
  .llegar__bloques { grid-template-columns: 1fr 1fr; gap: 3rem 4rem; }
  .llegar__bloques .bloque-info:first-child { grid-column: 1 / -1; max-width: 44rem; }
}

/* ---------- 11. Alojamiento ---------- */
.hotel .contenedor { display: grid; gap: 2rem; }
.hotel__sub { font-family: var(--serif); font-size: 1.3rem; color: var(--tinta-suave); margin-bottom: 1rem; }
.hotel__incentivo { display: grid; gap: 1.25rem; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); padding-block: 1.5rem; margin-block: 1.5rem; }
.hotel__cifra { font-family: var(--serif); font-size: clamp(2rem, 7vw, 2.8rem); line-height: 1; color: var(--tierra); }
.hotel__limite .hotel__cifra { color: var(--oliva); }
.hotel__incentivo p { font-size: var(--texto-peq); color: var(--tinta-suave); margin-top: 0.5rem; }
.hotel__pendiente { font-size: var(--texto-peq); color: var(--tinta-suave); font-style: italic; }
.hotel__foto {
  aspect-ratio: 4 / 3; background: var(--fondo-alt); border-radius: var(--radio); overflow: hidden;
}
.hotel__foto img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 600px) { .hotel__incentivo { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .hotel .contenedor { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; } }

/* ---------- 12. Dress code ---------- */
.dress__titulo { font-size: clamp(3rem, 12vw, 6rem); font-weight: 400; font-style: italic; color: var(--oliva); line-height: 1; margin-bottom: 1rem; }
.dress__texto { max-width: 30rem; margin-inline: auto; }
.dress__nota { font-size: var(--texto-peq); color: var(--tinta-suave); }
/* ---------- 13. Formulario de confirmación ---------- */
.rsvp { overflow: hidden; }
.rsvp__intro { max-width: var(--ancho-texto); margin-inline: auto; }
.rsvp__privacidad { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--texto-peq); color: rgba(245, 240, 232, 0.8); margin-top: 1.25rem; }
.rsvp__privacidad svg { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; stroke: var(--oro); fill: none; stroke-width: 1.5; }
.rsvp__previo { margin-top: 1.25rem; padding: 1rem 1.1rem; border: 1px solid var(--linea-oscura); font-size: var(--texto-peq); display: grid; gap: 0.75rem; justify-items: start; }
.formulario { max-width: 40rem; margin: 2.5rem auto 0; background: var(--fondo); color: var(--tinta); border-radius: var(--radio); padding: 1.5rem var(--gutter) 2rem; }
@media (min-width: 600px) { .formulario { padding: 2.25rem 2.5rem 2.5rem; } }

.progreso { display: grid; gap: 0.5rem; margin-bottom: 1.75rem; }
.progreso__texto { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tinta-suave); display: flex; justify-content: space-between; gap: 1rem; }
.progreso__barra { height: 2px; background: var(--linea); overflow: hidden; }
.progreso__relleno { height: 100%; width: 0; background: var(--oliva); transition: width 0.4s var(--curva); }

.paso { display: grid; gap: 1.25rem; }
.paso__titulo { font-size: clamp(1.6rem, 6vw, 2.1rem); }
.campo { display: grid; gap: 0.4rem; }
.campo label, .campo legend, .grupo > legend { font-weight: 500; font-size: var(--texto-peq); letter-spacing: 0.02em; }
.campo .opcional { font-weight: 400; color: var(--tinta-suave); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem; border: 1px solid var(--linea); border-radius: var(--radio);
  background: #fff; color: var(--tinta); font: inherit; font-size: max(16px, var(--texto-base)); line-height: 1.4;
}
.campo textarea { min-height: 6rem; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--oliva); outline: 2px solid var(--oliva); outline-offset: 0; }
.campo.invalido input, .campo.invalido select, .campo.invalido textarea { border-color: var(--error); }
.campo__ayuda { font-size: 0.8rem; color: var(--tinta-suave); }
.campo__error, .grupo__error { font-size: 0.8rem; color: var(--error); font-weight: 500; }
.campo__error:empty, .grupo__error:empty { display: none; }

/* Etiquetas que distinguen preferencia (menú) de seguridad (alergias) */
.etiqueta { display: inline-block; margin-left: 0.5rem; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; vertical-align: middle; }
.etiqueta--preferencia { background: var(--fondo-alt); color: var(--tinta-suave); }
.etiqueta--seguridad { background: var(--tierra); color: var(--crema); }
.campo--seguridad { padding-left: 0.9rem; border-left: 3px solid var(--tierra); }

/* Grupos de opciones (radio) presentados como botones */
.grupo { border: 0; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.grupo > legend { padding: 0; margin-bottom: 0.4rem; }
.opciones { display: grid; gap: 0.5rem; }
.opciones--fila { grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); }
.opcion { position: relative; }
.opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opcion label {
  display: flex; align-items: center; gap: 0.75rem; min-height: 3rem; padding: 0.7rem 1rem; border: 1px solid var(--linea); border-radius: var(--radio);
  cursor: pointer; font-weight: 400; font-size: var(--texto-base); background: #fff; transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.opcion label::before { content: ""; flex: none; width: 1rem; height: 1rem; border-radius: 50%; border: 1px solid var(--tinta-suave); transition: border 0.2s, background 0.2s; }
.opcion input:checked + label { border-color: var(--oliva); background: var(--oliva); color: var(--crema); }
.opcion input:checked + label::before { border: 4px solid var(--crema); background: var(--oliva); }
.opcion input:focus-visible + label { outline: 2px solid var(--tierra); outline-offset: 3px; }
.grupo.invalido .opcion label { border-color: var(--error); }

/* Aviso destacado del paso de acompañante */
.aviso-destacado { padding: 1rem 1.1rem; background: var(--tierra); color: var(--crema); border-radius: var(--radio); font-size: var(--texto-peq); line-height: 1.5; display: flex; gap: 0.75rem; }
.aviso-destacado svg { flex: none; width: 1.25rem; height: 1.25rem; stroke: currentColor; fill: none; stroke-width: 1.5; margin-top: 0.1rem; }
.mensaje-ok { padding: 0.9rem 1rem; border-left: 3px solid var(--oliva); background: var(--fondo-alt); font-size: var(--texto-peq); }

/* Bloques repetibles (acompañantes, niños, menús por persona) */
.bloque-persona { display: grid; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--linea); }
.bloque-persona__cabecera { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.bloque-persona__cabecera h4 { font-size: 1.35rem; }
.fila-2 { display: grid; gap: 1rem; }
@media (min-width: 600px) { .fila-2 { grid-template-columns: 1fr 1fr; } }

.paso__botones { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; margin-top: 0.5rem; }
.paso__botones .btn { flex: 1 1 auto; }
.paso__botones .btn--linea { flex: 0 1 auto; }

/* Resumen */
.resumen { display: grid; gap: 0; border-top: 1px solid var(--linea); }
.resumen__fila { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--linea); }
.resumen__etiqueta { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tinta-suave); }
.resumen__valor { grid-column: 1; overflow-wrap: anywhere; }
.resumen__valor ul { display: grid; gap: 0.25rem; }
.resumen__fila .btn--texto { grid-column: 2; grid-row: 1 / span 2; align-self: start; font-size: var(--texto-peq); }

/* Error de envío */
.envio-error { padding: 1rem 1.1rem; border: 1px solid var(--error); border-left-width: 3px; border-radius: var(--radio); background: #FBF3F1; display: grid; gap: 0.35rem; font-size: var(--texto-peq); }
.envio-error strong { color: var(--error); font-size: var(--texto-base); }
.envio-error code { font-family: ui-monospace, monospace; font-size: 0.8rem; word-break: break-all; }

/* Pantalla de éxito */
.exito { text-align: center; display: grid; gap: 1rem; justify-items: center; padding-block: 1rem; }
.exito .monograma { width: 9rem; height: 9rem; color: var(--oliva); }
.exito__dias { font-family: var(--serif); font-size: clamp(1.6rem, 6vw, 2.2rem); color: var(--tierra); }

/* ---------- 15. Cuenta atrás y cierre ---------- */
.cuenta { text-align: center; }
.cuenta__reloj { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; max-width: 34rem; margin: 2.5rem auto 0; }
.cuenta__unidad { display: grid; gap: 0.35rem; }
.cuenta__num { font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 4rem); line-height: 1; color: var(--oro); font-variant-numeric: tabular-nums; display: block; }
.cuenta__num.cambia { animation: digito 0.45s var(--curva); }
@keyframes digito { 0% { opacity: 0; transform: translateY(-0.35em); } 100% { opacity: 1; transform: none; } }
.cuenta__etiqueta { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245, 240, 232, 0.7); }
.cuenta__monograma { width: min(40vw, 11rem); height: auto; aspect-ratio: 1; margin: 3rem auto 0; color: var(--crema); opacity: 0.95; }
.pie { padding: 2rem var(--gutter) 2.5rem; text-align: center; font-size: var(--texto-peq); color: rgba(245, 240, 232, 0.7); border-top: 1px solid var(--linea-oscura); }
.pie p { margin: 0.25rem 0; }
.pie a { text-decoration: none; }
.pie a:hover { color: var(--oro); }

/* ---------- 16. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .portada__aparece { animation: none; opacity: 1; transform: none; }
  .monograma--dibuja use { animation: none; fill-opacity: 1; stroke-width: 0; stroke-dashoffset: 0; }
  .portada__scroll svg { animation: none; }
  .cuenta__num.cambia { animation: none; }
  .cronograma__progreso { transition: none; }
  .progreso__relleno { transition: none; }
  [data-parallax] { transform: none !important; }
}
