/*
  Invitación Victoria & Aarón.
  - Color: la paleta que eligió la pareja (salvia, terracota, ocre, azul grisáceo y azul pizarra). El azul pizarra,
    oscurecido para que el texto se lea, es el tono de los bloques oscuros; la terracota es el acento sobre claro
    y el fondo de "El lugar"; el azul grisáceo, el de la confirmación. Las fotos van sobre el azul pizarra oscuro,
    como en una pared de galería, para que resalten.
  - Tipografía: Bodoni Moda (títulos y nombres), Instrument Sans (textos y formularios), Pinyon Script en frases cortas.
  - Motivos: la cenefa (franja real del muro de azulejos de Talavera de la sesión), la estrella de ocho puntas del azulejo
    y el arco (los portales y ventanas de cantera de las fotos).
  - Sin sombras ni degradados decorativos; el único degradado oscurece la foto de portada para que el texto se lea.
*/
@font-face { font-family: "Bodoni Moda"; src: url(fonts/bodoni-moda-latin-wght-normal.woff2) format("woff2-variations"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url(fonts/bodoni-moda-latin-wght-italic.woff2) format("woff2-variations"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans-latin-wght-normal.woff2) format("woff2-variations"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Pinyon Script"; src: url(fonts/pinyon-script-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --noche: #34494d;       /* azul pizarra de la paleta, oscurecido */
  --noche-2: #46605f;
  --pizarra: #677f83;
  --azul: #859d9f;
  --salvia: #c3c391;
  --terracota: #8c522c;
  --porcelana: #f4f3e7;
  --porcelana-2: #e7e6d0;
  --papel: #fbfaf3;
  --texto: #2c3e42;
  --texto-2: #52625f;
  --ocre: #e6bd83;        /* ocre de la paleta aclarado, para usarse sobre oscuro */
  --ocre-oscuro: #8c522c; /* terracota, acento sobre claro */
  --linea: #b9bda6;
  --sobre-noche: #f4f3e7;
  --sobre-noche-2: #c9d3d1;
  --serif: "Bodoni Moda", "Didot", "Bodoni MT", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --pad: clamp(1.25rem, 5vw, 4rem);

  /* Nombres que usa el panel de invitados */
  --neutro: var(--porcelana);
  --neutro-2: var(--porcelana-2);
  --cobalto: var(--noche);
  --tinta: var(--texto);
  --tinta-2: var(--texto-2);
  --sobre-cobalto: var(--porcelana);
  --fuente: var(--sans);
  --borde: 1.5px solid var(--noche);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--porcelana); color: var(--texto); font-family: var(--sans); font-size: 1rem; line-height: 1.65; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::placeholder { color: #5a6966; opacity: 1; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.saltar { position: absolute; left: -999px; top: 0; background: var(--noche); color: var(--porcelana); padding: .75rem 1rem; z-index: 30; }
.saltar:focus { left: 1rem; top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.etiqueta { font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.titulo { font-family: var(--serif); font-style: italic; font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.1; padding-bottom: .1em; }
.script { font-family: var(--script); line-height: 1.15; }
.orn { width: 34px; height: 34px; color: var(--ocre-oscuro); display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .8rem 1.8rem;
  font: 600 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: var(--porcelana); background: var(--noche); border: 1px solid var(--noche); border-radius: 0; cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.btn:hover { background: var(--noche-2); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-linea { background: transparent; color: var(--noche); }
.btn-linea:hover { background: var(--noche); color: var(--porcelana); }
.btn-claro { background: var(--porcelana); color: var(--noche); border-color: var(--porcelana); }
.btn-claro:hover { background: #fff; }
.btn-linea-clara { background: transparent; color: var(--porcelana); border-color: var(--sobre-noche-2); }
.btn-linea-clara:hover { background: var(--porcelana); color: var(--noche); }

/* Barra */
.barra {
  position: fixed; inset: 0 0 auto; z-index: 20; height: 64px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad);
  color: #fff; transition: background-color .35s ease;
}
.barra.solida { background: rgb(52 73 77 / .96); }
.mono { justify-self: start; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgb(255 255 255 / .6); border-radius: 50%; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: inherit; text-decoration: none; }
.menu { display: flex; gap: 2.25rem; }
.menu a { color: inherit; text-decoration: none; font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; padding: .75rem 0; }
.menu a:hover { text-decoration: underline; text-underline-offset: 6px; }
.barra-rsvp { justify-self: end; color: inherit; text-decoration: none; border: 1px solid rgb(255 255 255 / .7); padding: .7rem 1.1rem; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.barra-rsvp:hover { background: #fff; color: var(--noche); }

/* Portada */
.portada { position: relative; min-height: 100dvh; display: grid; align-items: end; justify-items: start; color: #fff; overflow: hidden; }
.portada picture, .portada img { position: absolute; inset: 0; width: 100%; height: 100%; }
.portada img { object-fit: cover; object-position: 60% 70%; }
.portada::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 28 30 / .5) 0%, rgb(20 28 30 / 0) 22%), linear-gradient(90deg, rgb(20 28 30 / .88) 0%, rgb(20 28 30 / .6) 32%, rgb(20 28 30 / 0) 58%); }
.marco { position: absolute; inset: 76px 14px 14px; border: 1px solid rgb(255 255 255 / .38); z-index: 1; pointer-events: none; }
.portada-texto { position: relative; z-index: 2; display: grid; justify-items: start; text-align: left; max-width: 46rem; padding: 0 calc(var(--pad) + 14px) clamp(3.5rem, 9vh, 6rem); }
.portada .orn { color: var(--ocre); margin-bottom: 1.1rem; }
.nombres { font-family: var(--serif); font-style: italic; font-size: clamp(3.2rem, 6.6vw, 6.6rem); line-height: 1.08; margin: .9rem 0 1.6rem; padding-bottom: .08em; }
.nombres .amp { color: var(--ocre); }
.datos { display: flex; flex-wrap: wrap; justify-content: flex-start; margin-left: -1.4rem; font-size: .82rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.datos li { padding: .3rem 1.4rem; }
.datos li + li { border-left: 1px solid rgb(255 255 255 / .5); }

.portada-btn { margin-top: 1.75rem; }
.portada img { transform-origin: 60% 70%; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Cenefa: franja real del muro de azulejos de Talavera de la sesión de fotos */
.cenefa { height: clamp(44px, 6vw, 80px); background: var(--noche) url(../img/cenefa-2000.webp) center / auto 100% repeat-x; }

/* Cuenta regresiva */
.cuenta { background: var(--noche); color: var(--sobre-noche); text-align: center; padding: clamp(4rem, 8vw, 6.5rem) var(--pad); }
.titulo-claro { font-family: var(--script); font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1.15; color: var(--ocre); }
.cuenta-num { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 860px; margin: 2rem auto 0; border-top: 1px solid #5d7675; border-bottom: 1px solid #5d7675; }
.cuenta-num div { padding: clamp(1.25rem, 3vw, 2.25rem) .25rem; }
.cuenta-num div + div { border-left: 1px solid #5d7675; }
.cuenta-num span { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 7.5vw, 5.5rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.cuenta-num small { display: block; margin-top: .7rem; font-size: .76rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--sobre-noche-2); }
.cuenta-fin { font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 6vw, 4rem); margin-top: 1.5rem; }

/* Reserva la fecha: foto en arco + mini calendario */
.reserva { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; max-width: 1180px; margin: 0 auto; padding: clamp(4.5rem, 10vw, 8rem) var(--pad); }
.arco { justify-self: end; width: min(100%, 420px); padding: 10px; border: 1px solid var(--linea); border-radius: 999px 999px 0 0; }
.arco img { width: 100%; aspect-ratio: 3 / 4.3; object-fit: cover; object-position: 50% 62%; border-radius: 999px 999px 0 0; }
.reserva-texto { display: grid; justify-items: center; text-align: center; gap: 1.5rem; max-width: 400px; }
.reserva h2 { font-size: clamp(3.2rem, 7vw, 5rem); }
.calendario { width: 100%; max-width: 330px; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); padding: 1.25rem 0 1rem; }
.cal-mes { font-family: var(--serif); font-style: italic; font-size: 1.5rem; margin-bottom: .75rem; }
.cal-dias { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: .15rem; font-size: .95rem; font-variant-numeric: tabular-nums; }
.cal-dias li { display: grid; place-items: center; aspect-ratio: 1; color: var(--texto-2); }
.cal-dias .cal-cab { font-size: .72rem; font-weight: 600; letter-spacing: .1em; color: var(--texto); }
.cal-dias .cal-hoy { position: relative; }
.cal-dias .cal-hoy button {
  width: 100%; height: 100%; min-width: 40px; min-height: 40px; display: grid; place-items: center; padding: 0;
  font: inherit; font-weight: 700; color: var(--porcelana); background: var(--terracota); border: 1.5px solid var(--terracota); border-radius: 50%; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}
.cal-dias .cal-hoy button:hover { background: var(--noche); border-color: var(--noche); transform: scale(1.06); }
.cal-dias .cal-hoy button:focus-visible { outline: 2px solid var(--noche); outline-offset: 3px; }
.cal-pista { margin-top: .9rem; font-size: .8rem; color: var(--texto-2); }
.reserva-lugar { font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; }
.reserva-lugar span { font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--texto-2); }
.versiculo { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.5; color: var(--texto-2); }
.versiculo cite { display: block; margin-top: .6rem; font-family: var(--sans); font-style: normal; font-size: .76rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }

/* Galería: muro de fotos en columnas, cada una con su proporción real */
.galeria { background: var(--noche); padding: clamp(4rem, 9vw, 7rem) var(--pad); }
.historia-texto { max-width: 38rem; margin: 0 auto clamp(3rem, 6vw, 4.5rem); text-align: center; display: grid; justify-items: center; gap: 1rem; color: var(--texto-2); }
.historia-texto { color: var(--sobre-noche-2); }
.historia-texto .titulo { color: var(--sobre-noche); }
.historia-texto .orn { color: var(--ocre); }
.muro { columns: 3; column-gap: clamp(.75rem, 1.6vw, 1.25rem); max-width: 1180px; margin: 0 auto; }
.muro figure { break-inside: avoid; margin-bottom: clamp(.75rem, 1.6vw, 1.25rem); background: var(--papel); padding: 8px; }
.muro img { width: 100%; }

/* Programa y vestimenta */
.programa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; max-width: 1080px; margin: 0 auto; padding: clamp(4.5rem, 10vw, 8rem) var(--pad); }
.prog-col { display: grid; gap: 1rem; }
.linea { margin-top: 1rem; border-top: 1px solid var(--linea); }
.linea li { display: grid; grid-template-columns: 8.5rem 1fr; align-items: baseline; gap: 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--linea); }
.hora { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1; font-variant-numeric: lining-nums; }
.evento { font-size: .86rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.vestimenta { display: grid; justify-items: center; text-align: center; gap: .75rem; padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--linea); outline: 1px solid var(--linea); outline-offset: 6px; background: var(--papel); }
.vestimenta .etiqueta { color: var(--texto-2); }
.vestimenta-tipo { font-family: var(--serif); font-style: italic; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1.15; padding-bottom: .08em; }
.vestimenta-nota { color: var(--texto-2); max-width: 40ch; }
.paleta { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .5rem; }
.paleta li { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgb(44 62 66 / .25); }

/* Lugar */
.lugar { background: var(--terracota); color: var(--sobre-noche); padding: clamp(4.5rem, 10vw, 7.5rem) var(--pad); text-align: center; display: grid; justify-items: center; gap: .7rem; }
.lugar .orn { color: var(--ocre); margin-bottom: .5rem; }
.lugar .etiqueta, .lugar-dir { color: #f0dfcf; }
.lugar .btn-claro { color: var(--terracota); }
.lugar .btn-linea-clara { border-color: #e3c4ab; }
.lugar .btn-linea-clara:hover { color: var(--terracota); }
.lugar-nombre { font-family: var(--serif); font-style: italic; font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.12; padding-bottom: .08em; }
.acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.75rem; }

/* Regalos */
.regalos { background: var(--porcelana-2); padding: clamp(4.5rem, 10vw, 7rem) var(--pad); text-align: center; display: grid; justify-items: center; gap: 1.1rem; }
.regalos p { max-width: 46ch; color: var(--texto-2); }

/* Confirmar */
.confirmar { background: var(--azul); padding: clamp(4.5rem, 10vw, 8rem) var(--pad); }
.conf-caja { max-width: 40rem; margin: 0 auto; background: var(--papel); padding: clamp(2rem, 5vw, 3.5rem); outline: 1px solid var(--papel); outline-offset: 6px; }
.conf-caja .orn { margin: 0 auto 1rem; }
.conf-caja .titulo { text-align: center; }
.conf-nota { margin-top: 1rem; color: var(--texto-2); text-align: center; }
.conf-hecha { margin-top: 2rem; text-align: center; }
.conf-hecha:focus { outline: none; }
.conf-estado { font-family: var(--serif); font-style: italic; font-size: 1.7rem; line-height: 1.35; margin-bottom: 1.5rem; }
.form { margin-top: 2.25rem; display: grid; gap: 1.5rem; }
.opciones { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.opciones legend, .campo label { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 0; }
.opciones legend { margin-bottom: .8rem; }
.opcion { position: relative; display: block; cursor: pointer; }
.opcion input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opcion span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 56px; padding: .75rem 1rem; border: 1px solid #8a968c; line-height: 1.25; transition: background-color .2s ease, color .2s ease; }
.opcion input:checked + span { background: var(--noche); border-color: var(--noche); color: var(--porcelana); }
.opcion input:focus-visible + span { outline: 2px solid var(--noche); outline-offset: 3px; }
.campo { display: grid; gap: .45rem; }
.opcional { font-weight: 400; letter-spacing: .02em; text-transform: none; color: var(--texto-2); }
select, textarea, input[type="text"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"] {
  font: inherit; color: var(--texto); background: #fff; border: 1px solid #8a968c; border-radius: 0; padding: .75rem .85rem; min-height: 50px; width: 100%;
}
select:focus-visible, textarea:focus-visible, input:focus-visible { outline: 2px solid var(--noche); outline-offset: 1px; }
textarea { resize: vertical; }
.form-error { color: #8f1d1d; font-weight: 600; }
#rsvp-enviar { width: 100%; }

/* Ventana del mapa */
.mapa { border: 0; border-radius: 0; padding: 0; background: var(--papel); color: var(--texto); width: min(680px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); outline: 1px solid var(--papel); outline-offset: 6px; }
.mapa::backdrop { background: rgb(19 30 33 / .7); }
.mapa-cabeza { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.5rem 1.5rem 1rem; }
.mapa-cabeza .etiqueta { color: var(--texto-2); }
.mapa h2 { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; margin-top: .25rem; padding-bottom: .05em; }
.mapa-dir { color: var(--texto-2); margin-top: .2rem; }
.mapa-cerrar { flex: none; width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; color: var(--texto); background: transparent; border: 1px solid var(--linea); border-radius: 0; cursor: pointer; }
.mapa-cerrar:hover { background: var(--noche); color: var(--porcelana); border-color: var(--noche); }
.mapa-marco { position: relative; background: var(--porcelana-2); }
.mapa-marco iframe { display: block; width: 100%; height: min(380px, 48dvh); border: 0; }
.mapa-cargando { position: absolute; inset: 0; display: grid; place-items: center; color: var(--texto-2); pointer-events: none; }
.mapa-pie { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; padding: 1rem 1.5rem 1.5rem; }
@media (max-width: 520px) { .mapa-pie .btn { flex: 1 1 100%; } }

/* Pie */
.pie { background: var(--noche); color: var(--sobre-noche); text-align: center; padding: clamp(3.5rem, 8vw, 5.5rem) var(--pad); display: grid; gap: .4rem; justify-items: center; }
.sello { display: grid; place-items: center; width: 74px; height: 74px; border: 1px solid var(--ocre); border-radius: 50%; outline: 1px solid #5d7675; outline-offset: 5px; font-family: var(--serif); font-style: italic; font-size: 1.6rem; margin-bottom: 1.25rem; }
.pie .script { font-size: clamp(2.4rem, 6vw, 3.4rem); color: var(--ocre); }
.pie-nombres { font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.pie .etiqueta { color: var(--sobre-noche-2); margin-top: .6rem; }

/* Vestimenta: detalle para damas y caballeros */
.vest-detalle { margin: 1rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; text-align: left; width: 100%; border-top: 1px solid var(--linea); padding-top: 1.5rem; }
.vest-detalle dt { font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: .4rem; }
.vest-detalle dd { margin: 0; color: var(--texto-2); font-size: .95rem; line-height: 1.55; }
.reservado { display: block; margin-top: .6rem; color: var(--terracota); font-weight: 600; }

/* Regalos: transferencia */
.transferencia { margin-top: 1.5rem; padding-top: 2rem; border-top: 1px solid var(--linea); width: 100%; max-width: 26rem; display: grid; justify-items: center; gap: 1rem; }
.transferencia .etiqueta { color: var(--texto-2); }
.transferencia dl { margin: 0; width: 100%; display: grid; gap: .6rem; }
.transferencia dl div { display: grid; gap: .1rem; }
.transferencia dt { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--texto-2); }
.transferencia dd { margin: 0; font-size: 1.05rem; }
.clabe { font-family: var(--serif); font-size: 1.35rem !important; letter-spacing: .04em; font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.copiado { min-height: 1.5em; color: var(--texto); font-weight: 600; }

/* Confirmación en tres pasos */
.pasos-rsvp { display: flex; justify-content: center; align-items: center; margin: 1.75rem 0 0; font-size: .82rem; color: var(--texto-2); }
.pasos-rsvp li { display: flex; align-items: center; gap: .5rem; }
.pasos-rsvp li + li::before { content: ""; width: clamp(1.25rem, 6vw, 2.75rem); height: 1px; background: var(--linea); margin: 0 .6rem; transition: background-color .4s ease; }
.pasos-rsvp span { display: flex; align-items: center; gap: .5rem; }
.pasos-rsvp span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--linea); background: transparent; box-shadow: inset 0 0 0 3px var(--papel); transition: background-color .4s ease, border-color .4s ease; }
.pasos-rsvp .activo, .pasos-rsvp .hecho { color: var(--texto); font-weight: 600; }
.pasos-rsvp .activo span::before, .pasos-rsvp .hecho span::before { border-color: var(--noche); background: var(--noche); }
.pasos-rsvp .hecho span::before { box-shadow: none; }
.pasos-rsvp .hecho + li::before, .pasos-rsvp .activo::before { background: var(--noche); }
.paso { display: grid; gap: 1.5rem; }
.paso > .btn { width: 100%; }
.paso-titulo { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.25; text-align: center; padding-bottom: .05em; }
.paso-titulo:focus, .conf-estado:focus { outline: none; }
.paso .conf-nota { margin-top: -.75rem; }
.paso-botones { display: grid; grid-template-columns: auto 1fr; gap: .6rem; }
.paso-listo { justify-items: center; text-align: center; }
.paso-listo .conf-estado { margin: .5rem 0 0; }

.candidatos { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; }
.candidatos legend { font-weight: 600; margin-bottom: .6rem; padding: 0; }
.candidatos .opcion span { justify-content: flex-start; text-align: left; min-height: 52px; }

/* Movimiento. Cada animación tiene un motivo:
   - portada: las piezas llegan en orden de lectura (ornamento, nombres, fecha, botón);
   - bloques: aparecen al entrar en pantalla, en secuencia, para guiar la lectura hacia abajo;
   - fotos: llegan giradas y se acomodan, como fotos que se ponen sobre la mesa;
   - arco: la foto se descubre de abajo hacia arriba;
   - día de la boda: el círculo del calendario late una vez para señalar la fecha;
   - pasos del formulario: el paso nuevo entra desde la derecha para marcar avance. */
@media (prefers-reduced-motion: no-preference) {
  .js .revela { opacity: 0; transition: opacity .9s cubic-bezier(.16,1,.3,1) var(--d, 0ms), transform .9s cubic-bezier(.16,1,.3,1) var(--d, 0ms), clip-path 1.2s cubic-bezier(.16,1,.3,1) var(--d, 0ms); }
  .js .revela[data-anim="sube"] { transform: translateY(22px); }
  .js .revela[data-anim="pop"] { transform: scale(.92); }
  .js .revela[data-anim="gira"] { transform: translateY(26px) rotate(-3deg); }
  .js .revela[data-anim="gira"]:nth-child(even) { transform: translateY(26px) rotate(3deg); }
  .js .revela[data-anim="arco"] { opacity: 1; }
  .js .revela[data-anim="arco"] img { clip-path: inset(100% 0 0 0 round 999px 999px 0 0); transition: clip-path 1.3s cubic-bezier(.16,1,.3,1) .15s; }
  .js .revela.visible, .js .revela.visible[data-anim="gira"]:nth-child(n) { opacity: 1; transform: none; }
  .js .revela[data-anim="arco"].visible img { clip-path: inset(0 0 0 0 round 999px 999px 0 0); }
  .js .reserva-texto .calendario.visible .cal-hoy button { animation: late 1.1s cubic-bezier(.16,1,.3,1) .7s both; }
  .mapa[open] { animation: entra .35s cubic-bezier(.16,1,.3,1) both; }
  @keyframes late { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.18); opacity: 1; } 100% { transform: none; } }

  .portada img { animation: abre 2.2s cubic-bezier(.16,1,.3,1) both; }
  @keyframes abre { from { transform: scale(1.06); } to { transform: none; } }
  .portada-texto > * { animation: entra 1.1s cubic-bezier(.16,1,.3,1) both; }
  .portada-texto > :nth-child(1) { animation-delay: .2s; }
  .portada-texto > :nth-child(2) { animation-delay: .35s; }
  .portada-texto > :nth-child(3) { animation-delay: .5s; }
  .portada-texto > :nth-child(4) { animation-delay: .75s; }
  .portada-texto > :nth-child(5) { animation-delay: .95s; }
  .marco { animation: marco 1.6s ease .3s both; }
  @keyframes entra { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes marco { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }

  .paso.entra { animation: paso .5s cubic-bezier(.16,1,.3,1) both; }
  @keyframes paso { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 860px) {
  .reserva, .programa { grid-template-columns: 1fr; justify-items: center; }
  .arco { justify-self: center; width: min(78%, 340px); }
  .prog-col { width: 100%; max-width: 30rem; justify-items: center; text-align: center; }
  .linea { width: 100%; text-align: left; }
  .vestimenta { width: calc(100% - 12px); max-width: 30rem; }
  .vest-detalle { grid-template-columns: 1fr; }
  .muro { columns: 2; }
}
@media (max-width: 760px) {
  .barra { grid-template-columns: 1fr auto; }
  .menu { display: none; }
  .marco { inset: 72px 10px 10px; }
  /* En vertical la pareja queda abajo: el texto sube sobre los azulejos para no tapar sus caras */
  .portada { align-items: start; justify-items: center; }
  .datos { justify-content: center; margin-left: 0; }
  .portada img { object-position: 50% 100%; }
  .portada::after { background: linear-gradient(180deg, rgb(20 28 30 / .88) 0%, rgb(20 28 30 / .7) 40%, rgb(20 28 30 / 0) 64%); }
  .portada-texto { padding: 6.5rem var(--pad) 0; justify-items: center; text-align: center; }
  .nombres { font-size: clamp(3rem, 14.5vw, 4.4rem); }
  .nombres .amp { display: block; font-size: .7em; line-height: 1.05; }
  .datos li { padding: .3rem .8rem; letter-spacing: .14em; font-size: .76rem; }
  .opciones { grid-template-columns: 1fr; }
  .acciones, .acciones .btn { width: 100%; }
  .conf-caja { outline-offset: 4px; }
  .confirmar { padding-left: calc(var(--pad) * .6 + 5px); padding-right: calc(var(--pad) * .6 + 5px); }
}
@media (max-width: 420px) {
  .cuenta-num small { letter-spacing: .06em; font-size: .7rem; text-transform: none; }
  .datos { flex-direction: column; gap: .2rem; }
  .datos li + li { border-left: 0; }
  .linea li { grid-template-columns: 6.5rem 1fr; gap: 1rem; }
  .btn { letter-spacing: .1em; padding: .8rem 1.1rem; }
}
