/* =========================================================
   INVITACIÓN · secciones
   ========================================================= */
:root {
  --oro-claro: #f3e3b3;
  --oro-medio: #d9b968;
  --oro-osc:   #a07a2e;
  --champan:   #ecd9a8;
  --tinta:     #2b2722;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Montserrat", system-ui, sans-serif;
  --script: "Great Vibes", cursive;
  /* Proporción de la columna central en pantallas anchas */
  --col: .56;
}

[hidden] { display: none !important; }

/* ---------- Contenedor con scroll por secciones ---------- */
#invitacion {
  height: var(--alto);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  outline: none;
  background: #f7f5f1;
}
#invitacion::-webkit-scrollbar { display: none; }

.seccion {
  position: relative;
  height: var(--alto);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  place-items: center;
  isolation: isolate;
}

/* ---------- Fondo lateral (solo visible en pantallas anchas) ---------- */
.fondo-lateral {
  position: absolute;
  inset: -4%;
  z-index: -1;
  overflow: hidden;
}
.fondo-lateral img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(.9);
}
.fondo-lateral::after {           /* velo claro, como en el diseño */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .55);
}

/* ---------- Columna central (tarjeta) ---------- */
.tarjeta {
  position: relative;
  height: 100%;
  width: min(100%, calc(var(--alto) * var(--col)));
  overflow: hidden;
  container-type: size;
  box-shadow: 0 0 60px rgba(40, 30, 15, .18);
  transform: translateY(calc(var(--p, 0) * 6%));
}
.tarjeta-blanca { background: #fff; }

/* En pantallas angostas la tarjeta ocupa todo y el fondo lateral sobra */
@media (max-aspect-ratio: 9/14) {
  .fondo-lateral { display: none; }
  .tarjeta { box-shadow: none; }
}

.bn { filter: grayscale(1) contrast(1.05) brightness(.95); }
.fondo-lateral img.bn { filter: grayscale(1) blur(2px); }

/* Contenido que se desvanece mientras se desliza entre secciones */
.desvanecer {
  position: absolute;
  inset: 0;
  opacity: var(--v, 1);
}

/* =========================================================
   1 · PORTADA
   ========================================================= */
.tarjeta-foto {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.tarjeta-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 30%;
}
.velo-portada {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(to bottom, rgba(0,0,0,0) 38%, rgba(0,0,0,.45) 58%, rgba(0,0,0,.82) 80%, rgba(0,0,0,.9) 100%);
}

/* Luces */
.luces {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 17cqh;
  overflow: visible;
}
.luces .cable { fill: none; stroke: rgba(255, 236, 190, .55); stroke-width: .8; }
.luces .foco { transform-box: fill-box; transform-origin: center; }
.luces .halo { fill: url(#halo-luz); }
.luces .bombilla { fill: #fff8e4; }

/* Monograma */
/* El monograma va dentro del bloque de texto: siempre justo encima de los nombres */
.monograma {
  position: relative;
  width: min(42cqw, 22cqh);
  aspect-ratio: 200 / 220;
  margin: 0 auto 2.2cqh;
}
.corazon { width: 100%; height: 100%; overflow: visible; }
.corazon path {
  fill: none;
  stroke: url(#oro-corazon);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 3px rgba(240, 210, 140, .55));
}
.mono-letra {
  position: absolute;
  top: 26%;
  width: 46%;
  color: #fff;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, .95)) drop-shadow(0 0 12px rgba(255, 238, 200, .75));
}
.mono-letra path { stroke-width: 1.4; }
.mono-a { left: -6%; }
.mono-r { right: -8%; top: 30%; }

/* Textos inferiores */
.portada-texto {
  position: absolute;
  left: 0; right: 0;
  bottom: 11cqh;
  padding: 0 6cqw;
  text-align: center;
  color: #fff;
}
.nombres {
  margin: 0 0 1.6cqh;
  font-family: var(--serif);
  font-weight: 600;
  font-size: min(9.4cqw, 5cqh);
  letter-spacing: .06em;
  line-height: 1;
  color: var(--champan);
  text-shadow: 0 0 18px rgba(236, 210, 150, .35), 0 2px 6px rgba(0, 0, 0, .4);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .25em;
  white-space: nowrap;
}
.nombres-y {
  display: inline-block;
  width: 1.05em;
  margin: 0 -.05em;
  transform: translateY(-.08em);
}
.nombres-y path { stroke-width: 1.6; }

.frase {
  margin: 0 0 2.2cqh;
  font-family: var(--sans);
  font-weight: 400;
  font-size: min(2.85cqw, 1.7cqh);
  letter-spacing: .1em;
  line-height: 1.7;
}
.frase span { display: block; --ls: .1em; --ls-desde: .5em; white-space: nowrap; }

.fecha-bloque {
  font-family: var(--serif);
  color: #fff;
  margin: 0 auto 2.4cqh;
  width: min(84cqw, 48cqh);
}
.f-mes {
  font-size: min(6.2cqw, 3.2cqh);
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--oro-claro);
  margin-bottom: .6cqh;
}
.f-fila {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 3cqw;
}
.f-lado {
  display: grid;
  gap: .9cqh;
  font-size: min(4.2cqw, 2.2cqh);
  font-weight: 500;
  letter-spacing: .06em;
}
.f-linea {
  display: block;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(255,255,255,.2), #fff, rgba(255,255,255,.2));
}
.f-dia {
  font-size: min(10.5cqw, 5.6cqh);
  font-weight: 500;
  line-height: 1;
  padding: 0 1cqw;
}
.f-anio {
  font-size: min(5.4cqw, 2.8cqh);
  font-weight: 500;
  letter-spacing: .14em;
  margin-top: .5cqh;
}
.lugar {
  margin: 0;
  font-family: var(--sans);
  font-size: min(3.3cqw, 1.75cqh);
  letter-spacing: .12em;
  line-height: 1.5;
}

/* Indicador para deslizar */
.deslizar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.2cqh;
  display: grid;
  justify-items: center;
  gap: .6cqh;
  color: rgba(255, 255, 255, .85);
  font-family: var(--sans);
  font-size: min(2.6cqw, 1.3cqh);
  letter-spacing: .3em;
  text-transform: uppercase;
  pointer-events: none;
}
.deslizar span { padding-left: .3em; }   /* compensa el espaciado final */

/* Gesto: mano que sube con estela dorada */
.gesto {
  --mano: min(6.4cqw, 3.3cqh);
  position: relative;
  width: var(--mano);
  height: calc(var(--mano) * 1.9);
}
.gesto-mano {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--mano);
  fill: none;
  stroke: #fff;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(255, 240, 210, .55));
  animation: gesto-mano 2.6s cubic-bezier(.45, .05, .35, 1) infinite;
}
/* La yema del dedo está a 1/3 del ancho del ícono */
.gesto-estela, .gesto-onda {
  position: absolute;
  left: calc(var(--mano) * .333);
}
.gesto-estela {
  bottom: calc(var(--mano) * .92);
  width: 1.5px;
  height: calc(var(--mano) * .9);
  margin-left: -.75px;
  border-radius: 2px;
  background: linear-gradient(to top, rgba(233, 209, 141, .95), rgba(233, 209, 141, 0));
  transform-origin: bottom;
  animation: gesto-estela 2.6s cubic-bezier(.45, .05, .35, 1) infinite;
}
.gesto-onda {
  bottom: calc(var(--mano) * .92);
  width: calc(var(--mano) * .55);
  aspect-ratio: 1;
  border: 1px solid rgba(243, 227, 179, .9);
  border-radius: 50%;
  transform: translate(-50%, 50%) scale(.3);
  opacity: 0;
  animation: gesto-onda 2.6s ease-out infinite;
}
@keyframes gesto-mano {
  0%       { transform: translateY(0);    opacity: 0; }
  14%      { transform: translateY(0);    opacity: 1; }
  62%      { transform: translateY(-48%); opacity: 1; }
  80%,100% { transform: translateY(-58%); opacity: 0; }
}
@keyframes gesto-estela {
  0%, 14%  { transform: scaleY(0); opacity: .9; }
  62%      { transform: scaleY(1); opacity: .9; }
  85%,100% { transform: scaleY(1); opacity: 0; }
}
@keyframes gesto-onda {
  0%, 12%  { transform: translate(-50%, 50%) scale(.3); opacity: 0; }
  16%      { opacity: .9; }
  42%,100% { transform: translate(-50%, 50%) scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gesto-mano, .gesto-estela, .gesto-onda { animation: none; }
  .gesto-estela, .gesto-onda { display: none; }
}


/* =========================================================
   COMPONENTES COMUNES DE LAS SECCIONES
   ========================================================= */
.tarjeta-blanca {
  background: #fffdf9 url("../assets/img/web/papel.webp") center / 520px repeat;
}
.contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.9cqh;
  padding: 6cqh 9cqw;
  text-align: center;
  color: var(--tinta);
}
.encabezado { display: grid; justify-items: center; gap: .2cqh; }

/* Manuscritos (el tamaño de la letra define todo) */
.script-xs { font-size: min(10cqw, 5.2cqh); }
.script-md { font-size: min(10cqw, 5.2cqh); }
.script-lg { font-size: min(10.5cqw, 5.6cqh); }
.script-xl { font-size: min(20cqw, 10cqh); }
.oro { color: var(--oro-osc); }
:is(.script-xs, .script-md, .script-lg, .script-xl) svg { margin: -.12em 0; }

.sub-oro {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: min(4.2cqw, 2.2cqh);
  color: #b39253;
  --ls: .3em;
  letter-spacing: .3em;
}
.titulo-caps {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: min(8.5cqw, 4.4cqh);
  --ls: .18em;
  letter-spacing: .18em;
  line-height: 1.1;
}
.titulo-caps-sm { font-size: min(6cqw, 3.2cqh); }
.etiqueta {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: min(3cqw, 1.6cqh);
  color: #a8873f;
  --ls: .32em;
  letter-spacing: .32em;
}
.cuerpo {
  margin: 0;
  max-width: 74cqw;
  font-family: var(--serif);
  font-size: min(4.4cqw, 2.25cqh);
  line-height: 1.4;
  color: #4a443b;
}

/* Botones */
.boton {
  display: inline-flex;
  align-items: center;
  gap: .8em;
  padding: 1.05em 2.1em;
  border: 1px solid #b39253;
  border-radius: 999px;
  background: #fff;
  color: var(--tinta);
  font: 500 min(3.1cqw, 1.65cqh) / 1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(120, 90, 30, .12);
  -webkit-tap-highlight-color: transparent;
}
.boton svg { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.boton:hover { background: #b39253; color: #fff; }
.boton:focus-visible { outline: 2px solid #b39253; outline-offset: 3px; }
.boton-negro { background: #151310; color: #f1dfae; border-color: #151310; box-shadow: 0 8px 22px rgba(0,0,0,.25), 0 0 0 1px rgba(214,180,100,.35) inset; }
.boton-negro:hover { background: #2a251d; color: #f8e9be; }
.boton-claro { background: rgba(255, 255, 255, .8); backdrop-filter: blur(4px); }
.boton-blanco { background: #fff; border-color: #fff; }
.boton-ancho { width: 100%; justify-content: center; }

/* Botones: palpitar suave + onda dorada que se expande */
.boton { position: relative; isolation: isolate; }
.boton::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid rgba(201, 155, 69, .7);
  opacity: 0;
  pointer-events: none;
}
.is-in .boton { animation: boton-latir 3s ease-in-out var(--amb-d, 4.5s) infinite; }
.is-in .boton::after { animation: boton-onda 3s ease-out var(--amb-d, 4.5s) infinite; }
.boton:hover, .boton:focus-visible { animation-play-state: paused; }
@keyframes boton-latir {
  0%, 100% { scale: 1; }
  12%      { scale: 1.035; }
  24%      { scale: 1; }
  36%      { scale: 1.02; }
  48%      { scale: 1; }
}
@keyframes boton-onda {
  0%       { opacity: .75; transform: scale(1); }
  55%, 100%{ opacity: 0;   transform: scale(1.08, 1.4); }
}
.boton-blanco::after { border-color: rgba(255, 255, 255, .85); }
@media (prefers-reduced-motion: reduce) {
  .is-in .boton, .is-in .boton::after { animation: none; }
}

/* =========================================================
   2 · CUENTA REGRESIVA
   ========================================================= */
#cuenta .contenido { gap: 2.6cqh; }
.contador {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.6cqw;
}
.c-celda { display: grid; justify-items: center; gap: .6cqh; min-width: 15cqw; }
.c-celda b {
  font-family: var(--serif);
  font-weight: 600;
  font-size: min(12cqw, 6.2cqh);
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  color: #1d1a16;
  transition: transform .45s cubic-bezier(.22,.61,.36,1), opacity .45s ease;
}
.c-celda b.tic { animation: tic .6s cubic-bezier(.22,.61,.36,1); }
@keyframes tic { from { transform: translateY(-.25em); opacity: .2; } }
.c-celda small {
  font-family: var(--sans);
  font-size: min(2.5cqw, 1.3cqh);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6f675b;
}
.c-oro b { color: #b39253; }
.c-sep {
  font-family: var(--serif);
  font-size: min(9cqw, 4.6cqh);
  line-height: 1.1;
  color: #c9b48a;
}
.ilustracion-anillos {
  position: relative;
  width: min(46cqw, 24cqh);
  aspect-ratio: 200 / 150;
  margin: 3.5cqh 0 0;
}
.corazon-fondo {
  position: absolute;
  z-index: -1;
  width: 125%;
  left: -12.5%;
  top: -38%;
  overflow: visible;
}
.corazon-fondo path { fill: none; stroke: #ebe4d6; stroke-width: 7; stroke-linecap: round; }
.anillos { position: relative; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 8px rgba(120, 90, 30, .25)); }
.anillos .anillo { fill: none; stroke: url(#oro-anillo); stroke-width: 8; }
.anillos .brillo { fill: none; stroke: rgba(255, 250, 235, .8); stroke-width: 1.2; }
.anillos .diamante { fill: rgba(255,255,255,.6); stroke: #c99b45; stroke-width: 1.6; stroke-linejoin: round; }
.frase-script { display: grid; justify-items: center; gap: .4cqh; position: relative; }

/* =========================================================
   3 y 4 · CEREMONIA / RECEPCIÓN
   ========================================================= */
.lugar-evento { gap: 1.5cqh; }
.lugar-evento .etiqueta { margin-bottom: .6cqh; }
.foto-arco {
  margin: 1.2cqh 0 .6cqh;
  width: min(62cqw, 34cqh);
  aspect-ratio: 4 / 5;
  padding: 1.2cqh;
  border: 1px solid rgba(179, 146, 83, .65);
  border-radius: 999px 999px 10px 10px;
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 14px 30px rgba(80, 60, 20, .14);
}
.foto-arco > div {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 999px 999px 6px 6px;
}
.foto-arco img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hora-evento { margin: 0; font-family: var(--serif); font-weight: 500; font-size: min(6.4cqw, 3.4cqh); letter-spacing: .06em; }
.direccion { margin: -.6cqh 0 .6cqh; font-family: var(--sans); font-size: min(2.9cqw, 1.5cqh); letter-spacing: .26em; text-transform: uppercase; color: #8a7d68; }

/* =========================================================
   5 · ITINERARIO
   ========================================================= */
#itinerario .contenido { gap: 3.4cqh; }
.linea-tiempo {
  --g: 4.5cqw;
  --dot: min(3.8cqw, 2cqh);
  position: relative;
  list-style: none;
  margin: 0;
  padding: 1cqh 0;
  width: min(84cqw, 46cqh);
  display: grid;
  gap: 3.4cqh;
}
.lt-eje {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  left: calc((100% - 2 * var(--g) - var(--dot)) / 2.3 + var(--g) + var(--dot) / 2);
  background: linear-gradient(to bottom, transparent, #6d6456 6%, #6d6456 94%, transparent);
}
.linea-tiempo li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--dot) minmax(0, 1.3fr);
  align-items: center;
  gap: var(--g);
}
.lt-icono {
  justify-self: end;
  width: min(10cqw, 5.2cqh);
  fill: none;
  stroke: #2b2722;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lt-punto {
  width: var(--dot);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6e5b0, #c99b45 60%, #8f6a27);
  box-shadow: 0 0 0 3px #fffdf9, 0 2px 6px rgba(120, 90, 30, .4);
  position: relative;
  z-index: 1;
}
.lt-texto { text-align: left; display: grid; gap: .3cqh; }
.lt-texto b { font-family: var(--serif); font-weight: 600; font-size: min(6.4cqw, 3.3cqh); line-height: 1; }
.lt-texto span { font-family: var(--serif); font-size: min(4.2cqw, 2.15cqh); text-transform: uppercase; letter-spacing: .04em; color: #3d372f; border-top: 1px solid #d8ccb0; padding-top: .4cqh; }
/* Escalonado de cada hito (entrada y movimiento de ambiente) */
.linea-tiempo .lt-icono { --amb-d: calc(3.6s + var(--n) * .35s); }
.linea-tiempo .lt-punto { --amb-d: calc(3.8s + var(--n) * .35s); }
.linea-tiempo .lt-icono { --d: calc(1100ms + var(--n) * 420ms); }
.linea-tiempo .lt-punto { --d: calc(1250ms + var(--n) * 420ms); }
.linea-tiempo .lt-texto { --d: calc(1350ms + var(--n) * 420ms); }

/* =========================================================
   6 · LOS DETALLES
   ========================================================= */
.tarjeta-velada .tarjeta-foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 253, 249, .84);
}
#detalles .contenido { gap: 1.7cqh; }
.detalle { display: grid; justify-items: center; gap: .7cqh; max-width: 78cqw; }
.detalle-icono { width: min(7.5cqw, 3.8cqh); fill: none; stroke: #a8873f; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.detalle h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: min(5.2cqw, 2.7cqh); letter-spacing: .1em; text-transform: uppercase; }
.detalle p { margin: 0; font-family: var(--serif); font-size: min(4.2cqw, 2.1cqh); line-height: 1.38; color: #4a443b; }
.separador-oro { width: min(2.4cqw, 1.2cqh); aspect-ratio: 1; border-radius: 50%; background: #c99b45; }
#detalles .boton { margin-top: 1cqh; }

/* =========================================================
   7 · RSVP
   ========================================================= */
#rsvp .contenido { gap: 2cqh; }
.rsvp-letras { display: flex; gap: 3cqw; line-height: .9; margin-top: 1cqh; }
.rsvp-letras span {
  font-family: var(--serif);
  font-weight: 500;
  font-size: min(21cqw, 11cqh);
  background: linear-gradient(160deg, #e9d18d, #b48a3a 45%, #f3e3b3 60%, #9a7428);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 6px rgba(120, 90, 30, .2));
}
.filete { display: block; width: min(56cqw, 30cqh); height: 1px; background: linear-gradient(90deg, transparent, #b39253, transparent); }

/* =========================================================
   8 · FORMULARIO
   ========================================================= */
.contenido-form { gap: 1.3cqh; }
.form-rsvp {
  width: min(84cqw, 48cqh);
  display: grid;
  gap: 1.8cqh;
  margin-top: 1cqh;
  text-align: left;
}
.campo { display: grid; gap: .5cqh; border: 0; margin: 0; padding: 0; min-width: 0; }
.campo > span, .campo legend, .campo-fila > span {
  font-family: var(--sans);
  font-weight: 500;
  font-size: min(2.8cqw, 1.45cqh);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a7d68;
  padding: 0;
  margin-bottom: .5cqh;
}
.campo em { font-style: normal; text-transform: none; letter-spacing: .02em; opacity: .8; }
.campo input[type="text"], .campo textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #cdbf9f;
  background: transparent;
  padding: .35em 0;
  font-family: var(--serif);
  font-size: max(16px, min(4.4cqw, 2.25cqh));   /* ≥16px: evita el zoom automático en iPhone */
  color: var(--tinta);
  border-radius: 0;
  outline: none;
  resize: none;
  transition: border-color .3s ease;
}
.campo input::placeholder, .campo textarea::placeholder { color: #b6ab97; font-style: italic; }
.campo input:focus, .campo textarea:focus { border-bottom-color: #b39253; }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5cqw; }
.opciones label { position: relative; }
.opciones input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opciones span {
  display: block;
  text-align: center;
  padding: .7em .4em;
  border: 1px solid #d8ccb0;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: max(15px, min(4cqw, 2.05cqh));
  background: rgba(255, 255, 255, .7);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.opciones input:checked + span { background: #151310; border-color: #151310; color: #f1dfae; }
.opciones input:focus-visible + span { outline: 2px solid #b39253; outline-offset: 2px; }
.campo-fila { display: flex; align-items: center; justify-content: space-between; }
.campo-fila > span { margin: 0; }
.contador-num { display: flex; align-items: center; gap: 2.5cqw; }
.contador-num button {
  width: max(34px, min(9cqw, 4.6cqh));
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #b39253;
  background: #fff;
  color: #8f6a27;
  font: 400 max(18px, min(5cqw, 2.6cqh)) / 1 var(--serif);
  cursor: pointer;
}
.contador-num output { min-width: 1.6em; text-align: center; font: 600 max(18px, min(5.6cqw, 2.9cqh)) var(--serif); }
.solo-si-asiste { display: grid; gap: 1.8cqh; }
.form-rsvp[data-asiste="no"] .solo-si-asiste { display: none; }
.form-error { margin: 0; font-family: var(--serif); font-size: max(14px, min(3.8cqw, 1.9cqh)); color: #a03a2c; text-align: center; }
.form-rsvp button[type="submit"][disabled] { opacity: .6; cursor: progress; }
.gracias { display: grid; justify-items: center; gap: 2cqh; }
.enlace-sutil {
  border: 0; background: none; cursor: pointer;
  font-family: var(--sans); font-size: max(12px, min(2.8cqw, 1.45cqh));
  letter-spacing: .14em; text-transform: uppercase; color: #8a7d68; text-decoration: underline;
}

/* =========================================================
   9 · RESERVA LA FECHA
   ========================================================= */
.tarjeta-completa { width: 100%; box-shadow: none; }
.tarjeta-completa .tarjeta-foto img { object-position: 62% 30%; }   /* ajustar según la foto definitiva */
.velo-fecha {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,.1) 35%, rgba(0,0,0,.55) 65%, rgba(0,0,0,.82) 100%);
}
.contenido-fecha { justify-content: flex-end; padding-bottom: 15cqh; gap: 1.6cqh; color: #fff; }
.fecha-mes {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: min(8cqw, 4.4cqh);
  color: #f3e3b3;
  --ls: .12em;
  letter-spacing: .12em;
  text-shadow: 0 0 18px rgba(243, 227, 179, .55);
}
.fecha-dia {
  margin: -1cqh 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: min(28cqw, 15cqh);
  line-height: .9;
  color: #fff9ec;
  text-shadow: 0 0 24px rgba(255, 240, 210, .45);
}
.contenido-fecha .script-lg { font-size: min(12cqw, 6.4cqh); margin-bottom: 1.5cqh; }
.contenido-fecha .oro { color: #e9d18d; }
.firma {
  margin: 1.5cqh 0 0;
  font-family: var(--sans);
  font-size: min(2.6cqw, 1.35cqh);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}

/* Crédito del estudio */
.credito {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(2.4cqh, env(safe-area-inset-bottom));
  display: grid;
  justify-items: center;
  gap: .3cqh;
  text-align: center;
  color: rgba(255, 255, 255, .72);
  pointer-events: none;
}
.credito p { margin: 0; }
.credito-linea {
  display: block;
  width: min(14cqw, 7cqh);
  height: 1px;
  margin-bottom: .9cqh;
  background: linear-gradient(90deg, transparent, rgba(233, 209, 141, .8), transparent);
}
.credito-marca {
  font-family: var(--serif);
  font-weight: 500;
  font-size: min(4cqw, 2.1cqh);
  letter-spacing: .22em;
  padding-left: .22em;
  text-transform: uppercase;
  color: #e9d18d;
}
.credito-texto, .credito-lugar {
  font-family: var(--sans);
  font-size: min(2.3cqw, 1.2cqh);
  letter-spacing: .24em;
  padding-left: .24em;
  text-transform: uppercase;
}
.credito-lugar { opacity: .75; }

/* =========================================================
   NAVEGACIÓN POR PUNTOS
   ========================================================= */
.puntos-nav {
  position: fixed;
  right: max(10px, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: grid;
  gap: 12px;
  padding: 8px 4px;
}
.puntos-nav button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(179, 146, 83, .95);
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: transform .4s ease, background .4s ease;
}
.puntos-nav button[aria-current="true"] { background: #b39253; transform: scale(1.35); }
.puntos-nav button::before { content: ""; position: absolute; inset: -8px; }   /* área táctil mayor */
.puntos-nav button { position: relative; }
