/* JC Escuela de Manejo LR — estilos (mobile-first)
   Marca: amarillo #FFC107, blanco y negro. Tipografía: Montserrat (títulos en Bold).
   Regla de marca: nunca achicar títulos para que entren. Sin letter-spacing negativo ni font-stretch.
   Si un título no entra: más líneas (wrapping) o más ancho. */

:root {
  --amarillo: #FFC107;
  --negro: #000000;
  --negro-suave: #111111;
  --blanco: #FFFFFF;
  --gris: #F4F4F4;
  --texto: #1A1A1A;
  --radio: 14px;
  --ancho: 1120px;
  --promo: #FF5722;
  --promo-oscuro: #E64A19;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(84px + var(--promo-alto, 0px)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--blanco);
  --promo-alto: 0px;
}
body.tiene-promo {
  --promo-alto: 56px;
  padding-top: var(--promo-alto);
}
img, iframe { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
}
h1 { font-size: 2.375rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3125rem; }
p { margin: 0 0 1em; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 22px; }
.contenedor--angosto { max-width: 780px; }
.sin-relleno { padding: 0; margin: 0; }

.saltar { position: absolute; left: -9999px; }
.saltar:focus { left: 12px; top: 12px; z-index: 100; background: var(--amarillo); color: var(--negro); padding: 8px 14px; border-radius: 8px; }

/* Cabecera */
.cabecera { position: sticky; top: var(--promo-alto, 0px); z-index: 50; background: var(--negro); border-bottom: 3px solid var(--amarillo); }
.cabecera__fila { display: flex; align-items: center; justify-content: flex-start; gap: 16px; min-height: 68px; }
.cabecera__logo img { width: 168px; height: auto; }
.cabecera__logo { flex: 0 1 auto; min-width: 0; }
.cabecera__ig {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
}
.ig-sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 3px solid var(--blanco);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
  line-height: 1;
}
.ig-sticker:focus-visible {
  outline: 3px solid var(--amarillo);
  outline-offset: 3px;
}
.ig-sticker--pill {
  gap: 6px;
  height: auto;
  min-height: 44px;
  padding: 4px 12px 4px 6px;
  border-radius: 999px;
  background: #E3F2FD;
  color: #0D47A1;
  font-family: inherit;
  font-weight: 800;
  font-size: .78rem;
  transform: rotate(5deg);
}
.ig-sticker__mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--blanco);
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  flex: 0 0 auto;
}
.ig-sticker__mini svg { display: block; width: 12px; height: 12px; }
.ig-sticker__texto {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Kalam", "Segoe Script", "Comic Sans MS", cursive;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.05;
  letter-spacing: 0;
  white-space: normal;
  text-align: center;
}
.ig-sticker__linea { display: block; }
@media (max-width: 719px) {
  .cabecera__fila { gap: 10px; }
  .cabecera__ig { margin-left: auto; }
  .ig-sticker--pill { min-height: 36px; height: auto; padding: 3px 8px 3px 4px; font-size: .7rem; border-width: 2px; gap: 4px; }
  .ig-sticker__texto { font-size: .62rem; line-height: 1.05; }
  .ig-sticker__mini { width: 18px; height: 18px; }
  .ig-sticker__mini svg { width: 10px; height: 10px; }
}
@media (max-width: 359px) {
  .ig-sticker--pill { min-height: 34px; padding: 2px 6px 2px 3px; }
  .ig-sticker__texto { font-size: .55rem; }
  .ig-sticker__mini { width: 16px; height: 16px; }
}

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 14px 26px;
  background: var(--amarillo); color: var(--negro);
  font-weight: 700; font-size: 1.0625rem; line-height: 1.3; text-decoration: none;
  border: 2px solid var(--amarillo); border-radius: 999px;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.boton:hover, .boton:focus-visible { transform: translateY(-2px); }
.boton:focus-visible { outline: 3px solid var(--negro); outline-offset: 3px; }
.boton--chico { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.boton--grande { min-height: 64px; padding: 18px 34px; font-size: 1.25rem; width: 100%; }
.boton--borde { background: transparent; border-color: var(--negro); color: var(--negro); }
.boton--borde:hover { background: var(--negro); color: var(--amarillo); }
.boton--negro { background: var(--negro); border-color: var(--negro); color: var(--amarillo); }
.boton--borde-claro { background: transparent; border-color: var(--blanco); color: var(--blanco); }
.boton--borde-claro:hover { background: var(--blanco); color: var(--negro); }
.botonera { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.botonera .boton { width: 100%; }

/* Etiquetas de sección */
.etiqueta {
  display: inline-block; margin: 0 0 12px; padding: 4px 12px;
  background: var(--amarillo); color: var(--negro);
  font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; border-radius: 6px;
}
.etiqueta--negra { background: var(--negro); color: var(--amarillo); }

/* Portada */
.portada { background: var(--negro); color: var(--blanco); padding: 48px 0 56px; }
.portada__grilla { display: grid; gap: 32px; }
.portada h1 { color: var(--blanco); }
.resaltado { color: var(--amarillo); }
.portada__subtitulo { font-size: 1.25rem; font-weight: 700; color: var(--amarillo); margin-bottom: .6em; }
.portada__bajada { color: #DDDDDD; margin-bottom: 1.6em; }
.portada__logo { order: -1; }
.portada__logo img { width: 100%; max-width: 260px; height: auto; margin: 0 auto; }
.portada .boton {
  max-width: 100%;
  height: auto;
  white-space: normal;
  text-wrap: balance;
  text-align: center;
  line-height: 1.3;
}
@media (max-width: 719px) {
  .portada .boton { padding: 12px 18px; }
}

/* Secciones */
.seccion { padding: 64px 0; }
.seccion--gris { background: var(--gris); }
.seccion--negra { background: var(--negro); color: var(--blanco); }
.seccion--amarilla { background: var(--amarillo); color: var(--negro); }
.seccion h3 { margin-top: 1.2em; }

/* Tarjetas de servicios */
.tarjetas { display: grid; gap: 18px; margin-top: 8px; }
.tarjeta { background: var(--blanco); border-radius: var(--radio); padding: 24px 22px; border-top: 6px solid var(--amarillo); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.tarjeta h3 { margin-top: 0; }
.tarjeta p:last-child { margin-bottom: 0; }
.tarjeta--ancha { grid-column: 1 / -1; }

/* Datos del curso */
.datos { list-style: none; padding: 0; margin: 8px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.datos li { background: var(--negro); color: var(--blanco); border-radius: var(--radio); padding: 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.datos__numero { font-weight: 800; font-size: 1.5rem; line-height: 1.2; color: var(--amarillo); overflow-wrap: break-word; }
.datos__texto { font-size: .95rem; }

/* Pasos */
.pasos { list-style: none; counter-reset: paso; padding: 0; margin: 8px 0 0; display: grid; gap: 18px; }
.pasos li { counter-increment: paso; position: relative; padding: 22px 20px 22px; background: var(--negro-suave); border: 1px solid #2A2A2A; border-radius: var(--radio); }
.pasos li::before {
  content: counter(paso); margin-bottom: 12px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--amarillo); color: var(--negro); font-weight: 800; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
}
.pasos h3 { margin: 0 0 .4em; color: var(--amarillo); }
.pasos p { margin: 0; color: #E6E6E6; }

/* Zona y horarios */
.dos-columnas { display: grid; gap: 18px; }
.bloque { border-left: 6px solid var(--amarillo); padding: 4px 0 4px 18px; }
.bloque h3 { margin-top: 0; }
.bloque p:last-child { margin-bottom: 0; }

/* Ubicación */
.ubicacion { display: grid; gap: 24px; align-items: start; }
.enlace-flecha { display: inline-block; font-weight: 700; text-decoration: none; border-bottom: 3px solid var(--amarillo); padding-bottom: 2px; }
.enlace-flecha::after { content: " →"; }
.mapa { border-radius: var(--radio); overflow: hidden; border: 3px solid var(--negro); background: #DDD; }
.mapa iframe { width: 100%; height: 320px; border: 0; }

/* Cierre / costo */
.cierre { text-align: center; padding: 72px 0 96px; }
.cierre h2 { color: var(--blanco); }
.cierre__bajada { font-size: 1.25rem; margin-bottom: 28px; }
.botonera--cierre { margin-top: 16px; }

/* Pendientes de confirmar (solo para la revisión de Javier: borrar antes de publicar) */
.pendiente {
  display: inline-block; margin: 8px 0 0; padding: 6px 12px;
  border: 2px dashed #C62828; border-radius: 8px; background: #FFF4F4; color: #8E1B1B;
  font-size: .9rem; font-weight: 600; line-height: 1.4;
}

/* Pie */
.pie { background: var(--negro); color: #CCCCCC; padding: 36px 0 110px; border-top: 3px solid var(--amarillo); font-size: .95rem; }
.pie__fila { display: grid; gap: 12px; }
.pie p { margin: 0; }
.pie strong { color: var(--blanco); }
.pie a { color: var(--amarillo); }

/* Botón flotante de WhatsApp */
.whatsapp-flotante {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: var(--blanco);
  border: 3px solid var(--blanco);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.whatsapp-flotante:hover { transform: scale(1.06); }



/* Nota al pie en requisitos (distinta del enlace (aprox.)*) */
.nota-ref {
  font-weight: 700;
  font-size: .75em;
  line-height: 0;
}
.nota-ref a {
  color: #555555;
  text-decoration: none;
  padding: 0 .15em;
}
.nota-ref a:hover,
.nota-ref a:focus-visible { text-decoration: underline; }
.nota-al-pie {
  margin: 1.1em 0 0;
  font-size: .875rem;
  color: #555555;
  line-height: 1.5;
}



/* Aviso de promo. Interruptor en promo.json: "estilo": "sticker" | "barra".
   "sticker" (por defecto): flotante tipo sticker, sin corrimiento del encabezado
   (no se aplica body.tiene-promo ni --promo-alto).
   "barra": la barra fija de arriba; el markup y estos estilos se mantienen como respaldo. */
.promo[hidden] { display: none !important; }
.promo.is-on {
  display: block;
  position: fixed;
  z-index: 80;
}
.promo.is-on.promo--barra {
  top: 0;
  left: 0;
  right: 0;
  height: var(--promo-alto);
}
.promo__barra {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--promo-alto);
  padding: 0 8px 0 16px;
  overflow: hidden;
  color: var(--blanco);
  background: linear-gradient(90deg, #C62818 0%, #E64A19 18%, var(--promo) 48%, #FF6D00 78%, var(--promo) 100%);
  border-bottom: 3px solid var(--amarillo);
  box-shadow: 0 4px 18px rgba(198, 40, 24, .35);
}
.promo__barra::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 40%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 193, 7, .0) 35%, rgba(255, 255, 255, .35) 50%, rgba(255, 193, 7, .4) 58%, transparent 80%);
  animation: promo-brillo 3.6s ease-in-out infinite;
  pointer-events: none;
}
.promo__sticker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blanco);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.promo__sticker:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; border-radius: 8px; }
.promo__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--amarillo);
  color: var(--negro);
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
  animation: promo-badge 1.8s ease-in-out infinite;
}
.promo__icono { display: block; }
.promo__texto {
  margin: 0;
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.promo__cta {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--amarillo);
  color: var(--negro);
  font-weight: 800;
  font-size: .9rem;
  line-height: 1.2;
  white-space: nowrap;
}
.promo__sticker:hover .promo__cta,
.promo__sticker:focus-visible .promo__cta { background: var(--blanco); }
.promo__cerrar,
.promo__panel-cerrar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--blanco);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.promo__cerrar:hover,
.promo__cerrar:focus-visible,
.promo__panel-cerrar:hover,
.promo__panel-cerrar:focus-visible { background: rgba(0,0,0,.28); color: var(--blanco); }
.promo__cerrar:focus-visible,
.promo__panel-cerrar:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; }
.promo__panel[hidden] { display: none !important; }
.promo__panel:not([hidden]) {
  display: block;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 24px));
  background: var(--blanco);
  color: var(--negro);
  border-radius: var(--radio);
  border: 2px solid var(--amarillo);
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
  text-align: left;
  overflow: hidden;
  padding: 0;
  z-index: 81;
}
.promo__cabecera {
  background: #0D47A1;
  color: var(--blanco);
  padding: 14px 44px 14px 16px;
  border-radius: calc(var(--radio) - 2px) calc(var(--radio) - 2px) 0 0;
}
.promo__titulo {
  margin: 0;
  color: var(--blanco);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.25;
}
.promo__cuerpo { padding: 16px; }
.promo__lista {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.promo__lista li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.promo__check {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  background: #2E7D32;
  color: var(--blanco);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.promo__lista li > span:last-child {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--negro);
  padding-top: 3px;
}
.promo__whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: auto;
  min-height: 44px;
  padding: 0;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  color: #128C7E;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.promo__whatsapp-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: #25D366;
  background: none;
  border: 0;
  border-radius: 0;
}
.promo__whatsapp:hover,
.promo__whatsapp:focus-visible {
  filter: none;
  color: #075E54;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.promo__whatsapp:focus-visible { outline: 3px solid var(--negro); outline-offset: 3px; }
.promo__panel-cerrar {
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--blanco);
}
.promo__panel-cerrar:hover,
.promo__panel-cerrar:focus-visible { background: rgba(0, 0, 0, .28); color: var(--blanco); }
@keyframes promo-brillo {
  0% { transform: translateX(0); }
  100% { transform: translateX(350%); }
}
@keyframes promo-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}
@media (prefers-reduced-motion: reduce) {
  .promo__barra::after,
  .promo__badge,
  .promo__chip-mov { animation: none; }
  .promo__chip-mov { transform: rotate(-7deg); }
}
@media (max-width: 719px) {
  body.tiene-promo { --promo-alto: 48px; }
  .promo__barra { padding: 0 4px 0 10px; gap: 8px; }
  .promo__sticker { gap: 8px; }
  .promo__texto { font-size: .95rem; }
  .promo__cta { font-size: .8rem; padding: 5px 10px; }
  .promo__cta-resto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
}

/* Sticker flotante (estilo: sticker). La barra queda oculta; el panel es el mismo. */
.promo--barra .promo__flotante { display: none; }
.promo--sticker .promo__barra { display: none; }
.promo.is-on.promo--sticker {
  /* Fijo arriba a la derecha, justo debajo de la cabecera sticky (min-height 68px + borde 3px). */
  top: 80px;
  right: 14px;
  left: auto;
  bottom: auto;
  height: auto;
  width: auto;
}
.promo__flotante {
  position: relative;
  width: 136px;
  height: 136px;
}
.promo__chip {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  color: var(--blanco);
  cursor: pointer;
}
.promo__chip-mov {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotate(-7deg);
  animation: promo-flotar 3.8s ease-in-out infinite;
}
.promo__chip-svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .32)) drop-shadow(0 1px 0 rgba(255, 255, 255, .8));
  overflow: visible;
}
.promo__chip-copy {
  position: absolute;
  inset: 27% 24% 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
  text-align: center;
}
.promo__chip-badge {
  display: inline-block;
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--amarillo);
  color: var(--negro);
  font-weight: 800;
  font-size: .62rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
}
.promo__chip .promo__texto {
  margin: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  font-weight: 800;
  font-size: .84rem;
  line-height: 1.15;
  color: var(--blanco);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}
.promo--texto-largo .promo__chip .promo__texto { font-size: .74rem; line-height: 1.12; }
.promo__chip:focus-visible {
  outline: 3px solid var(--amarillo);
  outline-offset: 5px;
  border-radius: 50%;
}
.promo__chip:hover .promo__chip-mov,
.promo__chip:focus-visible .promo__chip-mov {
  animation-play-state: paused;
  transform: rotate(-7deg) scale(1.06);
}
.promo__cerrar-chip {
  position: absolute;
  top: 0;
  left: -6px;
  right: auto;
  z-index: 2;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid var(--blanco);
  border-radius: 50%;
  background: var(--negro);
  color: var(--blanco);
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}
.promo__cerrar-chip:hover,
.promo__cerrar-chip:focus-visible {
  background: #333333;
  color: var(--blanco);
}
.promo__cerrar-chip:focus-visible {
  outline: 3px solid var(--amarillo);
  outline-offset: 2px;
}
.promo--sticker .promo__panel:not([hidden]) {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
}
.promo__cerrar-chip::before {
  content: "";
  position: absolute;
  inset: -8px;
}
@keyframes promo-flotar {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-5px); }
}
@media (min-width: 720px) {
  .promo.is-on.promo--sticker { top: 84px; right: 24px; left: auto; bottom: auto; }
  .promo__flotante { width: 168px; height: 168px; }
  .promo__chip .promo__texto { font-size: .95rem; }
  .promo--texto-largo .promo__chip .promo__texto { font-size: .82rem; }
  .promo__chip-badge { font-size: .68rem; padding: 4px 9px; }
  .promo__cerrar-chip { width: 30px; height: 30px; }
}
@media (max-width: 719px) {
  .promo.is-on.promo--sticker { top: 80px; right: 8px; left: auto; bottom: auto; }
  .promo__flotante { width: 128px; height: 128px; }
  /* En páginas internas, reserva el ancho del burst solo en el bloque del título. La portada del inicio no se toca. */
  body.tiene-promo-sticker.pagina-interna .encabezado-pagina {
    padding-right: 136px;
  }
  .promo__chip .promo__texto { font-size: .76rem; }
  .promo--texto-largo .promo__chip .promo__texto { font-size: .68rem; }
  .promo__chip-badge { font-size: .55rem; padding: 2px 6px; }
  .promo__chip-copy { inset: 26% 23% 24%; gap: 4px; }
}

/* Carrusel de requisitos */
.carrusel {
  --carrusel-gap: 14px;
  --carrusel-card: 84%;
  margin: 8px 0 8px;
}
.carrusel__pista {
  display: flex;
  gap: var(--carrusel-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px 0 10px;
  outline: none;
}
.carrusel__pista::after {
  content: "";
  flex: 0 0 calc(100% - var(--carrusel-card));
}
.carrusel__pista::-webkit-scrollbar { display: none; }
.carrusel__pista:focus-visible { box-shadow: 0 0 0 3px var(--amarillo); border-radius: var(--radio); }
.carrusel__tarjeta {
  flex: 0 0 var(--carrusel-card);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--blanco);
  border: 1px solid #E6E6E6;
  border-top: 6px solid var(--amarillo);
  border-radius: var(--radio);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  padding: 24px 22px;
  min-height: 220px;
}
.carrusel__tarjeta h4 { margin: 0 0 .6em; font-size: 1.25rem; }
.carrusel__tarjeta p:last-child { margin-bottom: 0; }
.carrusel__porque {
  margin: 1em 0 0;
  font-size: .95rem;
  color: #444;
  border-left: 4px solid var(--amarillo);
  padding: 6px 0 6px 14px;
}
.dato-pendiente {
  display: inline-block;
  margin: 8px 0 0;
  padding: 6px 12px;
  border: 2px dashed #C62828;
  border-radius: 8px;
  background: #FFF4F4;
  color: #8E1B1B;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
}
.carrusel__controles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
.carrusel__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--negro);
  background: var(--blanco);
  color: var(--negro);
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.carrusel__btn:hover,
.carrusel__btn:focus-visible { background: var(--amarillo); }
.carrusel__btn:focus-visible { outline: 3px solid var(--negro); outline-offset: 2px; }
.carrusel__btn:disabled { opacity: .35; cursor: default; background: var(--blanco); }
.carrusel__puntos { display: flex; align-items: center; gap: 8px; }
.carrusel__punto {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #C8C8C8;
  cursor: pointer;
  position: relative;
}
.carrusel__punto::before {
  content: "";
  position: absolute;
  inset: -10px;
}
.carrusel__punto.is-activo { background: var(--negro); }
.carrusel__punto:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; }

/* Enlace a la explicación de las dos horas */
a.aprox-link {
  position: relative;
  display: inline;
  color: #B8860B;
  font-weight: inherit;
  font-size: inherit;
  line-height: 1.2;
  text-decoration: underline dotted;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: #B8860B;
  white-space: nowrap;
  margin-left: .15em;
  padding: .05em .12em;
}
a.aprox-link::before {
  content: "";
  position: absolute;
  inset: -12px -8px;
}
a.aprox-link:hover,
a.aprox-link:focus-visible {
  color: var(--negro);
  background: var(--amarillo);
  text-decoration-color: var(--negro);
  border-radius: 4px;
}
a.aprox-link:focus-visible {
  outline: 3px solid var(--negro);
  outline-offset: 2px;
  border-radius: 4px;
}
.seccion--negra a.aprox-link { color: var(--amarillo); text-decoration-color: var(--amarillo); }
.seccion--negra a.aprox-link:hover,
.seccion--negra a.aprox-link:focus-visible { color: var(--negro); background: var(--amarillo); text-decoration-color: var(--negro); }
.seccion--negra a.aprox-link:focus-visible { outline-color: var(--amarillo); }
.seccion--amarilla a.aprox-link { color: var(--negro); text-decoration-color: var(--negro); }
.datos__texto a.aprox-link { font-size: .85em; color: var(--amarillo); text-decoration-color: var(--amarillo); }
.datos__texto a.aprox-link:hover,
.datos__texto a.aprox-link:focus-visible { color: var(--negro); background: var(--amarillo); text-decoration-color: var(--negro); }

@media (hover: hover) and (pointer: fine) {
  a.aprox-link[title]:hover::after,
  a.aprox-link[title]:focus-visible::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    background: var(--negro);
    color: var(--blanco);
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 8px;
    border-bottom: 3px solid var(--amarillo);
    z-index: 30;
    pointer-events: none;
  }
}


/* Páginas internas */
.volver {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  margin: 0 0 18px;
  border-bottom: 3px solid var(--amarillo);
  padding-bottom: 2px;
}
.volver::before { content: "← "; }
.texto-propuesta { font-size: 1.125rem; }
.recomendacion {
  margin: 8px 0 0;
  padding: 20px 22px;
  background: var(--negro);
  color: var(--blanco);
  border-radius: var(--radio);
  border-left: 6px solid var(--amarillo);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.recomendacion p { margin: 0; font-weight: 600; line-height: 1.5; }
.recomendacion strong { font-weight: 800; color: var(--amarillo); }
.destacados {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.destacados li {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 18px 20px;
  border-left: 6px solid var(--negro);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.destacados strong { display: block; font-size: 1.05rem; margin-bottom: .2em; }
.linea-tiempo {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 16px;
  counter-reset: paso;
}
.linea-tiempo li {
  counter-increment: paso;
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 22px 20px;
  border-top: 6px solid var(--amarillo);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.linea-tiempo li::before {
  content: counter(paso);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--amarillo); color: var(--negro); font-weight: 800; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.linea-tiempo h3 { margin: 0 0 .4em; }
.linea-tiempo p { margin: 0; }

/* Tablet en adelante */
@media (min-width: 720px) {
  .contenedor { padding: 0 32px; }
  h1 { font-size: 3rem; }
  h2 { font-size: 2.375rem; }
  .cabecera__logo img { width: 200px; }
  .tarjetas { grid-template-columns: 1fr 1fr; }
  .datos { grid-template-columns: repeat(4, 1fr); }
  .dos-columnas { grid-template-columns: 1fr 1fr; gap: 32px; }
  .botonera { flex-direction: row; flex-wrap: wrap; }
  .botonera .boton { width: auto; }
  .botonera--cierre { justify-content: center; }
  .boton--grande { width: auto; }
  .pasos { grid-template-columns: 1fr 1fr; }
  .pie__fila { grid-template-columns: repeat(3, auto); justify-content: space-between; align-items: end; }
  .pie { padding-bottom: 40px; }
  .destacados { grid-template-columns: 1fr 1fr 1fr; }
  .linea-tiempo { grid-template-columns: 1fr 1fr; }
}

/* Escritorio */
@media (min-width: 1024px) {
  .carrusel {
    --carrusel-gap: 16px;
    --carrusel-card: calc((100% - 2 * var(--carrusel-gap)) / 2.4);
  }
  .seccion { padding: 88px 0; }
  .portada { padding: 72px 0 88px; }
  .portada__grilla { grid-template-columns: 1.3fr 1fr; align-items: center; gap: 48px; }
  .portada__logo { order: 0; }
  .portada__logo img { max-width: 420px; }
  h1 { font-size: 3.5rem; }
  .ubicacion { grid-template-columns: 1fr 1.3fr; gap: 40px; }
  .mapa iframe { height: 380px; }
  .linea-tiempo { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boton, .whatsapp-flotante { transition: none; }
}

/* Historias de éxito: espacios para fotos, todavía vacíos */
.historias__grilla {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.historias__hueco {
  aspect-ratio: 1;
  margin: 0;
  border-radius: var(--radio);
  border: 2px dashed #C8C8C8;
  background: var(--gris);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #6A6A6A;
  font-weight: 600;
  font-size: .9rem;
  text-align: center;
  padding: 16px;
}
.historias__hueco svg { opacity: .55; }
@media (min-width: 720px) {
  .historias__grilla { grid-template-columns: 1fr 1fr 1fr; }
}
