/* ==========================================================================
   Invitacion de boda - hoja de estilos
   Mobile first: todo esta pensado para celular, el escritorio es el ajuste.
   ========================================================================== */

:root {
  /* Paleta cowboy / desierto de Baja. Cambia estos seis valores y cambia
     toda la invitacion. */
  --crema:    #F2E4C5;  /* papel de pergamino */
  --crema-2:  #DEC69B;  /* arena mas oscura, para secciones alternas */
  --tinta:    #281510;  /* cuero oscuro, texto principal */
  --tinta-2:  #6E4B32;  /* cuero curtido, texto secundario */
  --rust:     #A54124;  /* terracota / oxido, secciones oscuras */
  --mostaza:  #B77B26;  /* dorado mostaza, acentos y filigranas */

  /* Serif con caracter para titulos, "Rye" (letrero de madera del viejo
     oeste) para los detalles pequenos en mayusculas: antetitulos, etc.
     "Stardos Stencil" solo para los nombres de la portada, como el
     titulo grande del flyer de referencia. */
  --serif:    "Playfair Display", Georgia, "Times New Roman", serif;
  --western:  "Rye", var(--serif);
  --stencil:  "Stardos Stencil", var(--serif);
  --sans:     "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ancho: 640px;
  --sec-y: 4.5rem; /* aire vertical entre secciones */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--crema) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cg fill='%233A2314' fill-opacity='0.05'%3E%3Cg transform='translate(30,150) scale(0.4)'%3E%3Crect x='-7' y='-72' width='14' height='72' rx='7'/%3E%3Crect x='7' y='-48' width='24' height='11' rx='5.5'/%3E%3Crect x='20' y='-68' width='11' height='30' rx='5.5'/%3E%3C/g%3E%3Crect x='118' y='38' width='11' height='11' transform='rotate(45 123 43)'/%3E%3Ccircle cx='138' cy='108' r='2.2'/%3E%3Ccircle cx='150' cy='122' r='1.6'/%3E%3Ccircle cx='128' cy='124' r='1.6'/%3E%3Crect x='75' y='15' width='7' height='7' transform='rotate(45 78 18)'/%3E%3C/g%3E%3C/svg%3E") repeat;
  background-size: 170px 170px;
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Grano de papel envejecido sobre toda la pagina. Es ruido generado por
   SVG (feTurbulence), no una foto: pesa unos bytes y no depende de nada
   externo. Muy sutil a proposito, para no pelearse con la lectura del texto. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

@media (prefers-contrast: more) {
  body::before { display: none; }
}

img { max-width: 100%; display: block; }

a { color: inherit; }

/* ---- Tipografia ---------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

.seccion__titulo {
  font-family: var(--western);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: 0.4rem;
}

.antetitulo {
  display: block;
  text-align: center;
  font-family: var(--western);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mostaza);
  margin-bottom: 0.9rem;
}

/* ---- Estructura ---------------------------------------------------------- */

.seccion {
  padding: var(--sec-y) 1.5rem;
  max-width: var(--ancho);
  margin: 0 auto;
  position: relative;
}

.seccion--crema {
  background: var(--crema-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cg fill='%233A2314' fill-opacity='0.06'%3E%3Cg transform='translate(30,150) scale(0.4)'%3E%3Crect x='-7' y='-72' width='14' height='72' rx='7'/%3E%3Crect x='7' y='-48' width='24' height='11' rx='5.5'/%3E%3Crect x='20' y='-68' width='11' height='30' rx='5.5'/%3E%3C/g%3E%3Crect x='118' y='38' width='11' height='11' transform='rotate(45 123 43)'/%3E%3Ccircle cx='138' cy='108' r='2.2'/%3E%3Ccircle cx='150' cy='122' r='1.6'/%3E%3Ccircle cx='128' cy='124' r='1.6'/%3E%3Crect x='75' y='15' width='7' height='7' transform='rotate(45 78 18)'/%3E%3C/g%3E%3C/svg%3E") repeat;
  background-size: 170px 170px;
  max-width: none;
}
.seccion--crema > * { max-width: var(--ancho); margin-inline: auto; }

.seccion--rust {
  background: var(--rust) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cg fill='%23F5E6C4' fill-opacity='0.09'%3E%3Crect x='18' y='18' width='10' height='10' transform='rotate(45 23 23)'/%3E%3Ccircle cx='105' cy='35' r='2.2'/%3E%3Ccircle cx='118' cy='48' r='1.6'/%3E%3Crect x='95' y='100' width='10' height='10' transform='rotate(45 100 105)'/%3E%3Ccircle cx='30' cy='110' r='1.6'/%3E%3Ccircle cx='40' cy='95' r='1.2'/%3E%3C/g%3E%3C/svg%3E") repeat;
  background-size: 150px 150px;
  color: var(--crema);
  max-width: none;
}
.seccion--rust > * { max-width: var(--ancho); margin-inline: auto; }
.seccion--rust .antetitulo { color: var(--crema-2); opacity: 0.75; }

/* Filigrana decorativa entre secciones: una vid con una chispa al centro,
   como el grabado de un letrero de rancho viejo. El dibujo esta definido
   una sola vez en index.html (symbol#adorno-filigrana); aqui solo se
   colorea y se le da tamano. */
.filigrana {
  display: block;
  width: 170px;
  height: 22px;
  margin: 1.8rem auto;
  overflow: visible;
}
.filigrana__linea {
  fill: none;
  stroke: var(--mostaza);
  stroke-width: 1.3;
  stroke-linecap: round;
  opacity: 0.8;
}
.filigrana__punto { fill: var(--mostaza); opacity: 0.65; }
.filigrana__chispa { fill: var(--mostaza); }
.seccion--rust .filigrana__linea,
.seccion--rust .filigrana__punto,
.seccion--rust .filigrana__chispa { opacity: 1; }

/* Estrellitas de remache en las esquinas de las tarjetas (lugares, regalos,
   vestimenta): el detalle que hace que se sientan cortadas de un cartel
   de rancho y no de una plantilla generica. */
.lugar, .regalo {
  position: relative;
}
.lugar::before, .lugar::after,
.regalo::before, .regalo::after {
  content: "\2605";
  position: absolute;
  font-size: 0.5rem;
  line-height: 1;
  color: var(--mostaza);
  opacity: 0.55;
}
.lugar::before, .regalo::before { top: 0.6rem; left: 0.6rem; }
.lugar::after, .regalo::after { top: 0.6rem; right: 0.6rem; }

/* ==========================================================================
   PORTADA
   ========================================================================== */

.portada {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5.5rem 2rem 8rem;
  position: relative;
  background:
    radial-gradient(circle at 20% 18%, rgba(165,65,36,.12) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 72%, rgba(40,21,16,.12) 0 1px, transparent 2px),
    radial-gradient(120% 80% at 50% 0%, #F9EDCF 0%, var(--crema) 52%, var(--crema-2) 100%);
  background-size: 53px 47px, 71px 67px, auto;
  isolation: isolate;
}

.portada__marco {
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(40, 21, 16, .42);
  box-shadow: inset 0 0 0 5px rgba(242, 228, 197, .5), inset 0 0 0 6px rgba(40, 21, 16, .18);
  pointer-events: none;
  z-index: -1;
}
.portada__marco::before,
.portada__marco::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border-color: var(--rust);
  opacity: .75;
}
.portada__marco::before { top: 8px; left: 8px; border-top: 4px double; border-left: 4px double; }
.portada__marco::after { right: 8px; bottom: 8px; border-right: 4px double; border-bottom: 4px double; }

.portada__ornamento {
  width: min(78vw, 330px);
  height: auto;
  margin-bottom: 1.1rem;
  fill: none;
  stroke: var(--tinta);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portada__ornamento path:nth-child(2) { fill: var(--rust); stroke: none; }

/* Se activa por JS solo si BODA.fondoPortada tiene una ruta y la foto carga bien */
.portada--foto {
  background:
    linear-gradient(180deg, rgba(58,35,20,.4) 0%, rgba(58,35,20,.15) 35%, rgba(58,35,20,.6) 100%),
    var(--foto-portada) center/cover no-repeat;
}
.portada--foto .portada__saludo,
.portada--foto .portada__fecha,
.portada--foto .portada__ciudad,
.portada--foto .scroll-hint { color: var(--crema); opacity: 0.95; }
.portada--foto .portada__nombres { color: var(--crema); }
.portada--foto .portada__amp { color: var(--crema-2); }
.portada--foto .cuenta__bloque { border-color: rgba(250, 246, 240, 0.4); }
.portada--foto .cuenta__num { color: var(--crema); }
.portada--foto .cuenta__lbl { color: var(--crema-2); }

.portada__saludo {
  font-family: var(--western);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tinta-2);
  margin-bottom: 1.5rem;
  min-height: 1.2em;
}
.portada__saludo strong { font-weight: 500; color: var(--mostaza); }

.portada__nombres {
  font-family: var(--western);
  font-size: clamp(3rem, 16vw, 6.5rem);
  line-height: .95;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(242,228,197,.8), 0 3px 0 rgba(110,75,50,.12);
}
.portada__amp {
  display: block;
  font-size: 0.42em;
  color: var(--mostaza);
  font-style: italic;
  margin: 0.35em 0;
}

.portada__fecha {
  margin: 2rem 0 0;
  padding: .75rem 1.1rem;
  font-family: var(--western);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tinta-2);
  border-top: 1px solid rgba(40,21,16,.45);
  border-bottom: 1px solid rgba(40,21,16,.45);
}
.portada__ciudad {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--tinta-2);
  opacity: 0.7;
}

.portada__sello {
  margin-top: 1rem;
  font-size: .55rem;
  letter-spacing: .24em;
  color: var(--rust);
  font-weight: 500;
}

.scroll-hint {
  position: absolute;
  bottom: 5.25rem;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tinta-2);
  opacity: 0.6;
  animation: flota 2.6s ease-in-out infinite;
}
@keyframes flota {
  0%, 100% { transform: translateY(0);   opacity: 0.6; }
  50%      { transform: translateY(6px); opacity: 0.3; }
}

/* Silueta de desierto al pie de la portada: pasto, tierra y cactus.
   Dibujada en SVG (ver index.html), coloreada aqui para que siga la
   paleta si algun dia cambias --tinta o --rust. */
.portada__horizonte {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 80px;
  display: block;
}
.horizonte__montana { fill: var(--rust); opacity: .22; }
.horizonte__tierra   { fill: var(--tinta); }
.horizonte__pasto     { fill: var(--rust); }
.horizonte__pasto-fondo { opacity: 0.92; }
.horizonte__cactus rect { fill: var(--tinta); }
.horizonte__jinete { fill: var(--tinta); }

/* Encima de la silueta, el fondo con foto no debe quedar tapado por ella */
.portada--foto .portada__horizonte { opacity: 0.9; }

/* ==========================================================================
   CUENTA REGRESIVA
   ========================================================================== */

.cuenta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 2.5rem;
  width: 100%;
  max-width: 380px;
}

.cuenta__bloque {
  padding: 0.85rem 0.25rem;
  border: 1px solid rgba(40, 21, 16, 0.42);
  background: rgba(242, 228, 197, .36);
  box-shadow: inset 0 0 0 3px rgba(242,228,197,.55);
}

.cuenta__num {
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1;
  display: block;
  font-variant-numeric: tabular-nums;
}

.cuenta__lbl {
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tinta-2);
  margin-top: 0.35rem;
  display: block;
}

.cuenta--fin {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
}

/* ==========================================================================
   FRASE
   ========================================================================== */

.frase { text-align: center; }
.frase::before {
  content: "✦  EST. 2026  ✦";
  display: block;
  margin-bottom: 1.4rem;
  font-family: var(--western);
  font-size: .7rem;
  letter-spacing: .22em;
  color: var(--rust);
}
.frase__texto {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.45;
  margin: 0;
}
.frase__autor {
  display: block;
  margin-top: 1.2rem;
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mostaza);
}

/* ==========================================================================
   HISTORIA
   ========================================================================== */

.historia__texto { text-align: center; }
.historia__texto p { margin: 0 0 1.1rem; }

.historia__foto {
  margin-top: 2rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

/* ==========================================================================
   LUGARES
   ========================================================================== */

.lugares { display: grid; gap: 2rem; }
.lugares > :only-child {
  width: 100%;
  max-width: 540px;
  justify-self: center;
}

.lugar,
.seccion--crema .lugar {
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--crema);
  border: 1px solid rgba(40, 21, 16, 0.42);
  box-shadow: inset 0 0 0 6px #FFFDFA, inset 0 0 0 7px rgba(40,21,16,.16), 0 10px 26px rgba(40,21,16,.08);
}
.seccion--crema .lugar { background: #FFFDFA; }

.lugar__tipo {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mostaza);
}
.lugar__nombre {
  font-family: var(--western);
  font-size: 1.75rem;
  margin: 0.5rem 0 0.6rem;
}
.lugar__hora {
  font-family: var(--western);
  font-size: 2rem;
  color: var(--rust);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.lugar__dir {
  font-size: 0.85rem;
  color: var(--tinta-2);
  margin-bottom: 1.4rem;
}

/* ==========================================================================
   ITINERARIO
   ========================================================================== */

.itinerario {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.itinerario::before {
  content: "";
  position: absolute;
  /* Centrado en la columna de los rombos: ancho hora + gap + medio rombo */
  left: calc(3.4rem + 0.4rem + 0.8rem);
  top: 0.6rem;
  bottom: 0.6rem;
  width: 1px;
  background: rgba(250, 246, 240, 0.3);
}

.itinerario li {
  display: grid;
  grid-template-columns: 3.4rem 1.6rem 1fr;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0;
}

.itinerario__hora {
  font-family: var(--serif);
  font-size: 1.15rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.itinerario__punto { justify-self: center; }
.itinerario__punto::before {
  content: "";
  display: block;
  width: 7px; height: 7px;
  background: var(--crema);
  transform: rotate(45deg);
}

.itinerario__evento { font-size: 0.95rem; }

/* ==========================================================================
   VESTIMENTA
   ========================================================================== */

.vestimenta { text-align: center; }
.vestimenta__codigo {
  font-family: var(--western);
  font-size: 2.65rem;
  color: var(--rust);
  margin-bottom: 0.5rem;
}
.vestimenta__nota { color: var(--tinta-2); margin-bottom: 1.8rem; }

/* Foto de inspiracion (por ejemplo, de Pinterest). Enmarcada como una
   tarjeta de referencia, no a todo el ancho, para que se lea como
   "esto es un ejemplo" y no como parte de la galeria real de la pareja. */
#vest-imagen {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}
.vestimenta__foto {
  width: calc(50% - 0.45rem);
  max-width: 220px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin: 0;
  border: 6px solid #FFFDFA;
  outline: 1px solid rgba(124, 90, 58, 0.3);
  box-shadow: 0 6px 18px rgba(58, 35, 20, 0.18);
}

/* ==========================================================================
   GALERIA
   ========================================================================== */

.galeria {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.galeria img,
.galeria .ph {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}
.galeria > *:nth-child(1) { grid-column: 1 / -1; }
.galeria > *:nth-child(1) img,
.galeria > *:nth-child(1).ph { aspect-ratio: 4 / 3; }

/* Marcador que aparece si la foto todavia no existe */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg, var(--crema-2), var(--crema-2) 10px, #EAE0D2 10px, #EAE0D2 20px);
  color: var(--tinta-2);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 0.5rem;
}

/* ==========================================================================
   REGALOS
   ========================================================================== */

.regalos__intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1rem, 2.1vw, 1.35rem);
}
.regalos__intro--sola { margin-bottom: 0; }

.regalos__sobres {
  max-width: 700px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(165, 65, 36, 0.35);
  border-bottom: 1px solid rgba(165, 65, 36, 0.35);
  color: var(--rust);
  font-style: italic;
  line-height: 1.75;
  text-align: center;
}

.regalos { display: grid; gap: 1rem; }
.regalos > :only-child {
  width: 100%;
  max-width: 340px;
  justify-self: center;
}

.regalo {
  padding: 1.5rem 1.25rem;
  background: #FFFDFA;
  border: 1px solid rgba(40, 21, 16, 0.38);
  box-shadow: inset 0 0 0 5px #FFFDFA, inset 0 0 0 6px rgba(40,21,16,.13);
  text-align: center;
}
.regalo__tipo {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mostaza);
}
.regalo__titulo {
  font-family: var(--western);
  font-size: 1.5rem;
  margin: 0.35rem 0 0.7rem;
}
.regalo__detalle {
  font-size: 0.85rem;
  color: var(--tinta-2);
  white-space: pre-line;
  margin-bottom: 1rem;
}

.copiar {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  cursor: pointer;
  padding: 0.4rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   NOTAS
   ========================================================================== */

.notas { display: grid; gap: 1.75rem; text-align: center; }
.notas > :only-child {
  width: 100%;
  max-width: 340px;
  justify-self: center;
}
.nota h3 {
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mostaza);
  margin-bottom: 0.5rem;
}
.nota p { margin: 0; font-size: 0.92rem; color: var(--tinta-2); }

/* ==========================================================================
   RSVP
   ========================================================================== */

.rsvp { text-align: center; }

.rsvp__invitado {
  padding: 1.25rem;
  margin-bottom: 1.75rem;
  border: 1px solid rgba(250, 246, 240, 0.35);
}
.rsvp__invitado-nombre {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.2;
}
.rsvp__invitado-pases {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 0.4rem;
}

.campo { text-align: left; margin-bottom: 1.1rem; }

.campo label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  font-family: var(--sans);
  font-size: 1rem; /* 16px evita que iOS haga zoom al enfocar */
  font-weight: 300;
  color: var(--tinta);
  background: var(--crema);
  border: 1px solid transparent;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.campo select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%236B655C' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}
.campo textarea { min-height: 90px; resize: vertical; }
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--mostaza);
}

/* Opciones asistire / no asistire */
.asistencia { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 1.1rem; }
.asistencia input { position: absolute; opacity: 0; pointer-events: none; }
.asistencia label {
  display: block;
  text-align: center;
  padding: 0.95rem 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(250, 246, 240, 0.5);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin: 0;
}
.asistencia input:checked + label {
  background: var(--crema);
  color: var(--rust);
  border-color: var(--crema);
}
.asistencia input:focus-visible + label { outline: 2px solid var(--mostaza); outline-offset: 2px; }

.rsvp__limite {
  font-size: 0.72rem;
  opacity: 0.8;
  margin-top: 1.5rem;
}

.rsvp__gracias {
  padding: 2.5rem 1rem;
}
.rsvp__gracias h3 { font-size: 2rem; margin-bottom: 0.6rem; }

/* ==========================================================================
   BOTONES
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-family: var(--western);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--crema);
  background: var(--rust);
  border: 2px solid var(--rust);
  box-shadow: 3px 3px 0 rgba(40,21,16,.22);
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(40,21,16,.22); }
.btn:disabled { opacity: 0.5; cursor: default; }

.btn--linea {
  background: none;
  color: var(--rust);
  border-color: var(--rust);
}
.btn--claro {
  background: var(--crema);
  color: var(--rust);
  border-color: var(--crema);
}
.btn--bloque { width: 100%; }

.btn + .btn { margin-top: 0.6rem; }

/* ==========================================================================
   NUESTRA CANCION
   ========================================================================== */

.seccion.seccion--cancion {
  text-align: center;
  background:
    linear-gradient(rgba(242, 228, 197, .88), rgba(242, 228, 197, .88)),
    url("../img/fondo-papel-botanico-v1.jpg") center / cover no-repeat;
}

.cancion {
  width: min(100%, 520px);
  margin-inline: auto;
  padding: 1.4rem;
  color: var(--tinta);
  background: rgba(251, 242, 222, .82);
  border: 1px solid rgba(40, 21, 16, .3);
  outline: 1px solid rgba(165, 65, 36, .35);
  outline-offset: -8px;
  box-shadow: 0 12px 30px rgba(40, 21, 16, .1);
}

.cancion__cabecera {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.cancion__reproducir {
  position: relative;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--crema);
  background: var(--rust);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 7px rgba(165, 65, 36, .12), 0 7px 18px rgba(40, 21, 16, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}

.cancion__reproducir:hover { transform: translateY(-2px); }
.cancion__reproducir:focus-visible {
  outline: 3px solid var(--mostaza);
  outline-offset: 5px;
}
.cancion__reproducir svg { width: 28px; height: 28px; position: relative; z-index: 1; }
.cancion__reproducir.sonando {
  box-shadow: 0 0 0 7px rgba(165, 65, 36, .12), 0 0 0 14px rgba(183, 123, 38, .1);
}
.cancion__reproducir.sonando .cancion__ondas {
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(165, 65, 36, .42);
  border-radius: 50%;
  animation: onda-cancion 1.8s ease-out infinite;
}
@keyframes onda-cancion {
  from { transform: scale(.82); opacity: .8; }
  to { transform: scale(1.28); opacity: 0; }
}

.cancion__datos { min-width: 0; }
.cancion__etiqueta {
  display: block;
  margin-bottom: .25rem;
  font-family: var(--sans);
  font-size: .56rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mostaza);
}

.cancion__titulo {
  display: block;
  font-family: var(--western);
  font-size: clamp(1.05rem, 4.8vw, 1.45rem);
  line-height: 1.18;
  font-weight: 400;
  color: var(--rust);
}

.cancion__artista {
  display: block;
  margin-top: .3rem;
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--tinta-2);
}

.cancion__linea {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: .65rem;
  margin-top: 1.25rem;
  font-family: var(--sans);
  font-size: .6rem;
  color: var(--tinta-2);
}

.cancion__progreso {
  width: 100%;
  height: 4px;
  margin: 0;
  accent-color: var(--rust);
  cursor: pointer;
}

.cancion__audio {
  display: block;
  width: 100%;
  height: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.cancion__estado {
  min-height: 1.2em;
  margin: .85rem 0 0;
  font-size: .66rem;
  letter-spacing: .08em;
  color: var(--tinta-2);
}

@media (max-width: 420px) {
  .cancion { padding: 1.25rem 1rem; }
  .cancion__cabecera { grid-template-columns: 68px minmax(0, 1fr); gap: .85rem; }
  .cancion__reproducir { width: 62px; height: 62px; }
}

/* Boton flotante: acceso secundario cuando la persona sigue bajando. */

.musica {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(124, 90, 58, 0.5);
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(6px);
  color: var(--rust);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 3px 14px rgba(51, 48, 43, 0.14);
}
.musica svg { width: 17px; height: 17px; }
.musica.sonando { animation: pulso 2.4s ease-in-out infinite; }
@keyframes pulso {
  0%, 100% { box-shadow: 0 3px 14px rgba(51, 48, 43, 0.14); }
  50%      { box-shadow: 0 3px 14px rgba(124, 139, 114, 0.5); }
}

/* ==========================================================================
   PIE
   ========================================================================== */

.pie {
  text-align: center;
  padding: 3.5rem 1.5rem 4.5rem;
}
.pie__iniciales {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--mostaza);
}
.pie__hashtag {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--tinta-2);
  margin-top: 0.5rem;
}

/* ==========================================================================
   ANIMACION DE ENTRADA
   ========================================================================== */

.revela {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.revela.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .revela { opacity: 1; transform: none; transition: none; }
  .scroll-hint, .musica.sonando, .cancion__ondas { animation: none; }
}

/* ==========================================================================
   ESCRITORIO
   ========================================================================== */

@media (min-width: 700px) {
  :root { --sec-y: 6rem; }
  body { font-size: 17px; }
  .seccion__titulo { font-size: 2.55rem; }
  .portada__horizonte { height: 150px; }
  .portada__marco { inset: 1.5rem; }
  .lugares { grid-template-columns: 1fr 1fr; }
  .lugares > :only-child { grid-column: 1 / -1; }
  .regalos { grid-template-columns: repeat(3, 1fr); }
  .notas { grid-template-columns: repeat(3, 1fr); }
  .galeria { grid-template-columns: repeat(3, 1fr); }
  .galeria > *:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .galeria > *:nth-child(1) img,
  .galeria > *:nth-child(1).ph { aspect-ratio: auto; height: 100%; }
  .musica { right: 1.5rem; bottom: 1.5rem; }
}

/* ==========================================================================
   VERSION 12 · WESTERN EDITORIAL
   Menos patron repetido, mas jerarquia de cartel impreso.
   ========================================================================== */

body {
  background-color: var(--crema);
  background-image: none;
}

.seccion--crema {
  background-color: #DEC69B;
  background-image: none;
}

.seccion--rust {
  background-color: var(--tinta);
  background-image:
    radial-gradient(circle at 20% 25%, rgba(242,228,197,.08) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 70%, rgba(242,228,197,.06) 0 1px, transparent 1.5px);
  background-size: 74px 68px, 91px 83px;
}

.antetitulo { letter-spacing: .2em; }
.seccion__titulo { font-size: clamp(2.15rem, 9vw, 3.2rem); }
.filigrana { width: 210px; height: 28px; margin-block: 1.25rem 2.2rem; }

.lugar,
.regalo,
.reservado,
.vestimenta__look {
  background: #F8EDCF;
  border: 1px solid rgba(40,21,16,.42);
  box-shadow: inset 0 0 0 6px #F8EDCF, inset 0 0 0 7px rgba(40,21,16,.15), 0 12px 30px rgba(40,21,16,.09);
}

.lugar { padding: 2.5rem 1.4rem; }
.lugar__tipo { color: var(--rust); font-family: var(--western); }
.lugar__fecha {
  width: fit-content;
  margin: .85rem auto 1.35rem;
  padding: .45rem .8rem;
  border-block: 1px solid rgba(40,21,16,.35);
  font-family: var(--western);
  font-size: .72rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.lugar__nombre { max-width: 430px; margin-inline: auto; }

.itinerario { max-width: 560px !important; }
.itinerario::before {
  left: calc(4.2rem + 1.55rem);
  background: rgba(242,228,197,.26);
}
.itinerario li {
  grid-template-columns: 4.2rem 3.1rem 1fr;
  gap: .55rem;
  min-height: 78px;
  padding: .55rem 0;
}
.itinerario__punto {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242,228,197,.4);
  border-radius: 50%;
  background: var(--tinta);
  z-index: 1;
}
.itinerario__punto::before { display: none; }
.itinerario__punto svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: var(--crema);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.itinerario__hora { font-family: var(--western); font-size: 1rem; }
.itinerario__evento { font-family: var(--serif); font-size: 1.05rem; }

#vest-imagen { align-items: stretch; gap: 1rem; }
.vestimenta__look {
  width: calc(50% - .5rem);
  max-width: 230px;
  margin: 0;
  padding: 8px 8px 0;
  display: flex;
  flex-direction: column;
}
.vestimenta__foto {
  width: 100%;
  max-width: none;
  flex: 1;
  border: 0;
  outline: 0;
  box-shadow: none;
}
.vestimenta__look figcaption {
  padding: .75rem .3rem .8rem;
  font-family: var(--western);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rust);
}

#confirmar { background-color: var(--tinta); }
.rsvp {
  position: relative;
  padding: 2.2rem 1.35rem;
  color: var(--tinta);
  background: var(--crema);
  border: 1px solid rgba(242,228,197,.55);
  box-shadow: inset 0 0 0 6px var(--crema), inset 0 0 0 7px rgba(40,21,16,.2);
}
.rsvp::before,
.rsvp::after {
  content: "";
  position: absolute;
  top: 34%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tinta);
}
.rsvp::before { left: -12px; }
.rsvp::after { right: -12px; }
.rsvp form { padding-top: .3rem; }
.rsvp .campo label { color: var(--tinta-2); font-weight: 500; }
.rsvp .campo input,
.rsvp .campo select,
.rsvp .campo textarea {
  background: #FBF2DE;
  border-color: rgba(40,21,16,.25);
}
.rsvp .asistencia label { border-color: rgba(40,21,16,.35); color: var(--tinta); }
.rsvp .asistencia input:checked + label { background: var(--rust); border-color: var(--rust); color: var(--crema); }
.rsvp__limite { color: var(--tinta-2); }

.pie {
  position: relative;
  overflow: hidden;
  padding-top: 8.5rem;
  background: var(--crema);
}
.pie__paisaje {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 150px;
}
.pie__sol,
.pie__rayos { fill: none; stroke: var(--rust); stroke-width: 2; }
.pie__montanas { fill: var(--rust); opacity: .18; }
.pie__suelo,
.pie__agave { fill: var(--tinta); }
.pie__iniciales { font-family: var(--western); color: var(--rust); }
.pie__despedida {
  margin: .8rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--tinta-2);
}

@media (min-width: 700px) {
  .rsvp { padding: 3rem 3.5rem; }
  .vestimenta__look { max-width: 250px; }
  .pie { padding-top: 10rem; }
  .pie__paisaje { height: 180px; }
}

/* ==========================================================================
   VERSION 13 · FONDOS ILUSTRADOS
   Sustituye los dibujos geometricos por grabados raster sin deformacion.
   ========================================================================== */

body {
  background: var(--crema) url("../img/fondo-papel-botanico-v1.jpg") center top / 100% auto repeat-y;
}

.portada {
  background: var(--crema) url("../img/fondo-portada-western-v1.jpg") center / cover no-repeat;
  padding-bottom: 8.5rem;
}
.portada > * { position: relative; z-index: 1; }
.portada__ornamento,
.portada__horizonte,
.portada__marco { display: none; }

.seccion,
.seccion--crema {
  background-color: rgba(242,228,197,.82);
  background-image: url("../img/fondo-papel-botanico-v1.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: soft-light;
}
.seccion--crema { background-color: rgba(222,198,155,.9); }

.seccion--rust,
#confirmar {
  background-color: var(--tinta);
  background-image: url("../img/fondo-noche-western-v1.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: normal;
}

.filigrana { display: none; }

.itinerario { counter-reset: programa; }
.itinerario li { counter-increment: programa; }
.itinerario__punto svg { display: none; }
.itinerario__punto::after {
  content: counter(programa, decimal-leading-zero);
  font-family: var(--western);
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--crema);
}

.pie {
  padding-top: 5rem;
  background: var(--crema) url("../img/fondo-portada-western-v1.jpg") center bottom / cover no-repeat;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.pie__paisaje { display: none; }
.pie__iniciales,
.pie__hashtag,
.pie__despedida { position: relative; z-index: 1; }

@media (max-width: 699px) {
  .portada { background-position: center; }
  .seccion,
  .seccion--crema,
  .seccion--rust,
  #confirmar { background-size: auto 100%; }
  .pie { min-height: 360px; background-size: auto 100%; }
}

/* ==========================================================================
   VERSION 19 · RSVP COMPACTO Y PERSONALIZADO
   ========================================================================== */

#confirmar > .rsvp {
  width: min(100%, 700px);
  max-width: 700px;
  margin-inline: auto;
}

.rsvp__invitado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.8rem;
  text-align: left;
  background: rgba(183,123,38,.09);
  border: 1px solid rgba(40,21,16,.28);
}
.rsvp__invitado-etiqueta {
  display: block;
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--tinta-2);
}
.rsvp__invitado-nombre { margin-top: .15rem; color: var(--tinta); }
.rsvp__pases-sello {
  flex: 0 0 92px;
  min-height: 82px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--crema);
  background: var(--rust);
  border: 2px solid var(--rust);
  outline: 1px solid rgba(242,228,197,.45);
  outline-offset: -6px;
}
.rsvp__pases-sello strong {
  display: block;
  font-family: var(--western);
  font-size: 1.55rem;
  line-height: 1;
}
.rsvp__pases-sello span {
  display: block;
  max-width: 72px;
  margin-top: .25rem;
  font-size: .52rem;
  line-height: 1.25;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rsvp__decision { padding: 0; margin: 0 0 1.35rem; border: 0; }
.rsvp__decision legend {
  width: 100%;
  padding: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: var(--tinta);
}
.rsvp__decision-ayuda {
  margin: .35rem 0 1rem;
  font-size: .74rem;
  color: var(--tinta-2);
}
.rsvp .asistencia { gap: .8rem; margin-bottom: 0; }
.rsvp .asistencia label {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem .75rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: none;
  background: rgba(251,242,222,.7);
  border-width: 2px;
}
.asistencia__marca {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.rsvp .asistencia input:checked + label {
  box-shadow: inset 0 0 0 3px var(--rust), inset 0 0 0 4px rgba(242,228,197,.55);
}
.campo__ayuda {
  margin: .4rem 0 0;
  font-size: .68rem;
  color: var(--tinta-2);
}
.rsvp .btn--bloque { min-height: 58px; }

.rsvp__gracias { padding: 1rem 0 .35rem; }
.rsvp__gracias-sello {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  font-size: 1.8rem;
  color: var(--crema);
  background: var(--rust);
  border-radius: 50%;
}
.rsvp__gracias h3 { font-family: var(--western); color: var(--rust); }
.rsvp__gracias > p { margin: .55rem auto 1.5rem; max-width: 480px; }
.rsvp__resumen {
  max-width: 480px;
  margin: 0 auto 1.2rem;
  padding: .45rem 1rem;
  border-top: 1px solid rgba(40,21,16,.25);
  border-bottom: 1px solid rgba(40,21,16,.25);
}
.rsvp__resumen > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  text-align: left;
}
.rsvp__resumen span {
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tinta-2);
}
.rsvp__resumen strong { font-family: var(--serif); font-weight: 700; text-align: right; }
.rsvp__editar {
  padding: .4rem;
  font: 500 .7rem var(--sans);
  letter-spacing: .08em;
  color: var(--tinta-2);
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
}

@media (max-width: 520px) {
  #confirmar { padding-inline: 1rem; }
  .rsvp { padding: 1.65rem 1.1rem; }
  .rsvp__invitado { align-items: stretch; padding: .9rem; }
  .rsvp__invitado-nombre { font-size: 1.25rem; }
  .rsvp__pases-sello { flex-basis: 78px; min-height: 72px; }
  .rsvp .asistencia { grid-template-columns: 1fr; }
  .rsvp .asistencia label { min-height: 58px; }
  .rsvp__resumen > div { align-items: baseline; }
}

@media (min-width: 700px) {
  .portada {
    background: var(--crema) url("../img/fondo-papel-botanico-v1.jpg") center / cover no-repeat;
  }
  .portada::before,
  .portada::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("../img/fondo-portada-western-v1.jpg");
    background-repeat: no-repeat;
    background-size: 100% auto;
  }
  .portada::before {
    display: none;
  }
  .portada::after {
    bottom: 0;
    height: 175px;
    background-position: center bottom;
  }
  .cuenta__bloque { background: rgba(242,228,197,.82); }
}

/* ==========================================================================
   VERSION 14 · PATRON WESTERN ILUSTRADO
   Motivos repetibles sin deformacion y tratamiento de cartel sepia.
   ========================================================================== */

.seccion:not(.seccion--rust) { overflow: hidden; }
.seccion:not(.seccion--rust)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../img/patron-western-lineal-v1.png") center / 430px 430px repeat;
  opacity: .07;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 24%, transparent 76%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 24%, transparent 76%, #000 100%);
}
.seccion:not(.seccion--rust) > * { position: relative; z-index: 1; }

.lugar,
.seccion--crema .lugar {
  background-color: #D7B47B;
  background-image:
    linear-gradient(rgba(232,203,153,.88), rgba(216,178,119,.9)),
    url("../img/patron-western-lineal-v1.png"),
    url("../img/fondo-portada-western-v1.jpg");
  background-size: auto, 540px 540px, cover;
  background-position: center;
  background-blend-mode: normal, soft-light, multiply;
  border: 3px double rgba(40,21,16,.72);
  box-shadow: inset 0 0 32px rgba(40,21,16,.13), 0 16px 34px rgba(40,21,16,.16);
}
.lugar::before,
.lugar::after { color: var(--tinta); opacity: .72; }
.lugar__tipo {
  font-size: clamp(1.65rem, 7vw, 2.4rem);
  line-height: 1;
  letter-spacing: .08em;
  color: var(--tinta);
}
.lugar__fecha {
  border-color: rgba(40,21,16,.62);
  font-size: .8rem;
}
.lugar__nombre {
  font-size: clamp(1.8rem, 7vw, 2.5rem);
  color: var(--tinta);
}
.lugar__hora { color: var(--tinta); }
.lugar__dir { color: rgba(40,21,16,.8); }
.lugar .btn--linea {
  color: var(--tinta);
  border-color: var(--tinta);
  background: rgba(242,228,197,.28);
}

.regalo {
  background-image:
    linear-gradient(rgba(248,237,207,.94), rgba(248,237,207,.94)),
    url("../img/patron-western-lineal-v1.png");
  background-size: auto, 360px 360px;
}

.seccion:not(.seccion--rust)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88px;
  z-index: 0;
  pointer-events: none;
  background: url("../img/patron-western-lineal-v1.png") center / 260px 260px repeat-x;
  opacity: .11;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000);
  mask-image: linear-gradient(180deg, transparent, #000);
}

@media (max-width: 699px) {
  .seccion:not(.seccion--rust)::before {
    background-size: 310px 310px;
    opacity: .075;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 19%, transparent 81%, #000 100%);
    mask-image: linear-gradient(90deg, #000 0%, transparent 19%, transparent 81%, #000 100%);
  }
  .lugar { background-size: auto, 390px 390px, cover; }
  .seccion:not(.seccion--rust)::after {
    height: 76px;
    background-size: 220px 220px;
    opacity: .13;
  }
}

/* ==========================================================================
   VERSION 17 · ITINERARIO ILUSTRADO
   Alineacion estable de hora, grabado tematico y actividad.
   ========================================================================== */

.itinerario {
  max-width: 700px !important;
  width: min(100%, 700px);
  margin-inline: auto !important;
  counter-reset: none;
}
.itinerario::before {
  left: calc(5rem + 1rem + 2.75rem);
  top: 2.5rem;
  bottom: 2.5rem;
  background: linear-gradient(var(--mostaza), rgba(242,228,197,.22), var(--mostaza));
  opacity: .7;
}
.itinerario li {
  grid-template-columns: 5rem 5.5rem minmax(0, 1fr);
  gap: 1rem;
  min-height: 112px;
  padding: .8rem 0;
}
.itinerario__hora {
  font-size: 1.05rem;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}
.itinerario__punto {
  width: 76px;
  height: 76px;
  justify-self: center;
  border-color: rgba(242,228,197,.52);
  background: rgba(40,21,16,.88);
  box-shadow: 0 0 0 5px rgba(40,21,16,.72), 0 0 0 6px rgba(183,123,38,.35);
}
.itinerario__punto::after { display: none; }
.itinerario__punto img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}
.itinerario__evento {
  font-size: 1.2rem;
  line-height: 1.25;
}

@media (max-width: 699px) {
  .itinerario::before {
    left: calc(3.9rem + .65rem + 2.125rem);
    top: 2.25rem;
    bottom: 2.25rem;
  }
  .itinerario li {
    grid-template-columns: 3.9rem 4.25rem minmax(0, 1fr);
    gap: .65rem;
    min-height: 100px;
    padding: .65rem 0;
  }
  .itinerario__hora { font-size: .88rem; }
  .itinerario__punto { width: 62px; height: 62px; }
  .itinerario__punto img { width: 49px; height: 49px; }
  .itinerario__evento { font-size: 1.04rem; }
}

/* ==========================================================================
   VERSION 24 · CIERRE A PANTALLA MÓVIL
   El cartel final conserva la proporción 2:3 del grabado y ocupa todo el
   ancho del dispositivo, sin dejarlo reducido en el centro.
   ========================================================================== */

@media (max-width: 820px) {
  .pie {
    width: 100vw;
    max-width: none;
    margin-inline: calc(50% - 50vw);
    min-height: 0;
    aspect-ratio: 3 / 5;
    padding: clamp(7rem, 31vw, 12rem) 1rem 1.5rem;
    background-size: auto 100%;
    background-position: center top;
    background-repeat: no-repeat;
    justify-content: flex-start;
  }
  .pie__iniciales {
    font-size: clamp(2.7rem, 13vw, 5.4rem);
    line-height: 1;
  }
  .pie__hashtag {
    margin-top: clamp(1.25rem, 5vw, 2.6rem);
    font-size: clamp(.68rem, 2.7vw, 1.05rem);
    letter-spacing: .18em;
  }
  .pie__despedida {
    margin-top: clamp(1.25rem, 5vw, 2.8rem);
    font-size: clamp(1.25rem, 5.5vw, 2.25rem);
    line-height: 1.25;
  }
}
