/* =========================================================
   NIVEL · Fútbol para Adultos — hoja de estilos
   ---------------------------------------------------------
   Identidad: blanco y negro con amarillo NIVEL como color de acción.
   Tema oscuro por defecto y tema claro (botón del encabezado).

   ÍNDICE
    1. Tokens (colores, tipografías, medidas) y base
    2. Botones, encabezado, menú y portada
    3. Secciones, sedes, planes, tablas, FAQ, contacto y pie
    4. Ventanas (modales) e inscripción con pago Yape
    5. Identidad blanco y negro
    6. Dinámica: navegación, animaciones, buscador, avisos
    7. Tema claro
    8. Efectos (títulos, foco, tarjetas 3D, balón)
    9. Legal: Libro de Reclamaciones, privacidad, cookies
   10. Precios por sede y turnos
   11. Clase gratis (sello, banda, reserva en 3 pasos)
   12. Amarillo NIVEL — color de acción
   13. Buscador de sedes y ubicación en Google Maps
   14. Páginas de sede (SEO local)
   15. Fotos: tarjetas de sede, galería y visor
   ========================================================= */
:root {
  /* Identidad NIVEL: blanco y negro. Solo Yape y WhatsApp conservan su color. */
  --bg: #0a0a0a;
  --bg-2: #111111;
  --surface: #171717;
  --surface-2: #202020;
  --line: #2a2a2a;
  --fg: #f5f5f5;
  --fg-2: #cfcfcf;
  --muted: #8e8e8e;
  --accent: #ffffff;
  --accent-2: #d9d9d9;
  --on-accent: #0a0a0a;
  --tint: rgba(255, 255, 255, 0.08);
  --tint-2: rgba(255, 255, 255, 0.14);
  --header-bg: rgba(10, 10, 10, 0.82);
  --card: #161616;
  --card-2: #0d0d0d;
  --yape: #742284;
  --yape-2: #8d2ea1;
  --wsp: #25d366;
  --danger: #ff5c5c;

  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
  --f-brush: "Permanent Marker", "Comic Sans MS", cursive;

  --r: 12px;
  --r-sm: 8px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  color-scheme: dark;
  --amarillo: #f6b800;
  --amarillo-2: #ffc928;
  --on-amarillo: #111111;
  --amarillo-txt: #f6b800;
  --amarillo-tint: rgba(246, 184, 0, 0.12);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.sin-scroll {
  overflow: hidden;
}
img {
  max-width: 100%;
  display: block;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
}
svg {
  width: 1em;
  height: 1em;
  flex: none;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1;
  text-wrap: balance;
}
h1,
h2 {
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
h2 {
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
}
h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.55rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
h4,
.titulo-mini {
  font-family: var(--f-body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
p {
  margin: 0;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}
.lead {
  font-size: 1.15rem;
  color: var(--fg-2);
  max-width: 38rem;
}
.muted {
  color: var(--muted);
}
.brush {
  font-family: var(--f-brush);
  font-weight: 400;
  text-transform: none;
  color: var(--accent);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font: 700 0.95rem/1 var(--f-body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  border: 0;
  border-radius: var(--r-sm);
  padding: 1rem 1.5rem;
  min-height: 50px;
  cursor: pointer;
  transition:
    transform 0.15s,
    background-color 0.15s,
    box-shadow 0.15s;
}
.btn:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -12px rgba(255, 255, 255, 0.25);
}
.btn svg {
  width: 1.2em;
  height: 1.2em;
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover {
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--muted);
}
.btn-sm {
  padding: 0.65rem 1.1rem;
  min-height: 0;
  font-size: 0.82rem;
}
.btn-block {
  width: 100%;
}
.btn-yape {
  background: var(--yape);
  color: #fff;
}
.btn-yape:hover {
  background: var(--yape-2);
  box-shadow: 0 10px 30px -12px rgba(141, 46, 161, 0.8);
}
.btn-wsp {
  background: var(--wsp);
  color: #04260f;
}
.btn-wsp:hover {
  background: #45e283;
  box-shadow: none;
}
.btn-text {
  background: none;
  border: 0;
  color: var(--muted);
  font: 600 0.95rem var(--f-body);
  cursor: pointer;
  padding: 0.7rem 0.4rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-text:hover {
  color: var(--fg);
}

/* ---------- Encabezado ---------- */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.topbar.con-sombra {
  border-bottom-color: var(--line);
}
.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand-logo {
  width: 44px;
  height: 44px;
  padding: 6px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 0 0 2px var(--fg);
}
.brand-text {
  font: italic 900 1.5rem/1 var(--f-display);
  letter-spacing: 0.05em;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-text small {
  font: 600 0.8rem/1.2 var(--f-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  position: relative;
}
.nav a:not(.btn):hover {
  color: var(--fg);
}
.nav a[aria-current="page"] {
  color: var(--fg);
}
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
}
.nav-cta {
  margin-left: 0.6rem;
}
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--fg);
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  font-size: 1.4rem;
  cursor: pointer;
  place-items: center;
}
@media (max-width: 920px) {
  .menu-btn {
    display: grid;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px));
    background: var(--bg);
    border-top: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.2s,
      transform 0.2s,
      visibility 0.2s;
    overflow-y: auto;
  }
  .nav.abierto {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav a:not(.btn) {
    font: 800 1.9rem/1 var(--f-display);
    text-transform: uppercase;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--fg-2);
  }
  .nav a[aria-current="page"] {
    color: var(--accent);
  }
  .nav a[aria-current="page"]::after {
    display: none;
  }
  .nav-cta {
    margin: 1.5rem 0 0;
    padding: 1.1rem;
    font-size: 1rem;
  }
}

/* ---------- Héroe de inicio ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.35;
  filter: saturate(1.1);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      var(--bg) 15%,
      color-mix(in srgb, var(--bg) 70%, transparent) 55%,
      color-mix(in srgb, var(--bg) 40%, transparent)
    ),
    linear-gradient(0deg, var(--bg), transparent 45%);
}
.hero-in {
  padding-block: clamp(4rem, 10vw, 8rem) clamp(3rem, 7vw, 5.5rem);
}
.hero h1 {
  font-size: clamp(3.6rem, 12vw, 8.4rem);
  line-height: 0.86;
  font-style: italic;
}
.hero h1 .brush {
  display: block;
  font-size: 0.7em;
  transform: rotate(-3deg);
  transform-origin: left;
  margin-top: 0.12em;
  font-style: normal;
  -webkit-text-stroke: 1.5px var(--fg);
}
.hero .lead {
  margin-top: 1.6rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}
.hero-datos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 3rem;
  margin-top: 3.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  max-width: 44rem;
}
.hero-datos div {
  display: grid;
}
.hero-datos strong {
  font: 900 2.6rem/1 var(--f-display);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.hero-datos span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Cabecera de páginas internas ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, 0.07), transparent 55%), linear-gradient(180deg, var(--bg-2), var(--bg));
}
.page-head::before {
  content: "";
  position: absolute;
  right: -120px;
  top: 50%;
  width: 360px;
  height: 360px;
  border: 2px solid var(--line);
  border-radius: 50%;
  transform: translateY(-50%);
}
.page-head::after {
  content: "";
  position: absolute;
  right: 60px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.page-head-in {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.page-head h1 {
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 0.9;
}
.page-head .lead {
  margin-top: 1.2rem;
}
.migas {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.migas a {
  text-decoration: none;
}
.migas a:hover {
  color: var(--fg);
}

/* ---------- Franja de aviso ---------- */
.aviso {
  background: var(--accent);
  color: var(--on-accent);
}
.aviso-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.2rem;
  padding-block: 0.85rem;
}
.aviso-tag {
  background: var(--on-accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}
.aviso p {
  flex: 1 1 18rem;
  min-width: 0;
}
.aviso a {
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.aviso a:hover {
  text-decoration: underline;
}

/* ---------- Secciones ---------- */
.section {
  padding-block: clamp(4rem, 9vw, 6.5rem);
}
.section-alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2.6rem;
}
.section-head > div {
  max-width: 40rem;
  min-width: 0;
}
.section-head p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 1rem;
}
.link-flecha {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.link-flecha:hover {
  gap: 0.7rem;
}
.link-flecha,
.link-flecha svg {
  transition: gap 0.15s;
}

/* ---------- Pilares ---------- */
.pilares {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: visible;
}
.pilar {
  background: var(--bg);
  padding: 2rem 1.6rem;
  display: grid;
  gap: 0.7rem;
  align-content: start;
}
.section-alt .pilar {
  background: var(--bg-2);
}
.pilar-ico {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--tint-2);
  color: var(--accent);
  font: 900 1.3rem var(--f-display);
}
.pilar p {
  color: var(--muted);
}

/* ---------- Sedes ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}
.chip {
  font: 600 0.9rem var(--f-body);
  color: var(--fg-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}
.chip span {
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.chip[aria-pressed="true"] {
  color: var(--on-accent);
  background: var(--amarillo);
  border-color: var(--amarillo);
}
.chip[aria-pressed="true"] span {
  color: var(--on-accent);
  opacity: 0.7;
}

.sedes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}
.sede {
  position: relative;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r);
  padding: 1.4rem 1.3rem 1.2rem;
  background:
    linear-gradient(
      90deg,
      transparent calc(100% - 46px),
      rgba(255, 255, 255, 0.07) calc(100% - 46px) calc(100% - 44px),
      transparent calc(100% - 44px)
    ),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 30px, transparent 30px 60px),
    linear-gradient(160deg, var(--card), var(--card-2));
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition:
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
  --fg: #f5f5f5;
  --accent: #ffffff;
  --on-accent: #0a0a0a;
  color: var(--fg);
  min-height: 200px;
}
.sede::after {
  content: "";
  position: absolute;
  right: -40px;
  top: 50%;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  transform: translateY(-50%);
}
.sede:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8);
}
.sede-zona {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
}
.sede-nombre {
  font-family: var(--f-brush);
  font-size: 1.7rem;
  line-height: 1.1;
  margin-top: 0.2rem;
}
.sede-distrito {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}
.sede-distrito svg {
  color: var(--accent);
}
.sede-ver {
  margin-top: auto;
  padding-top: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.sede-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
}

/* ---------- Destacado San Miguel ---------- */
.destacado {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 820px) {
  .destacado {
    grid-template-columns: minmax(0, 1fr);
  }
}
.destacado-img {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
}
.destacado-img img {
  width: 100%;
  height: auto;
}
.destacado p:not(.eyebrow) {
  color: var(--fg-2);
  margin-top: 1rem;
}
.destacado .btn {
  margin-top: 1.8rem;
}

/* ---------- Planes ---------- */
.planes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.8rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.plan-dest {
  background: linear-gradient(180deg, var(--tint), var(--surface) 40%);
  border-color: var(--accent);
}
.plan-chip {
  position: absolute;
  top: -12px;
  left: 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}
.plan-resumen {
  color: var(--muted);
  font-size: 0.95rem;
  min-height: 3em;
}
.plan-precio {
  font: 900 3.4rem/1 var(--f-display);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.plan-precio > span {
  font-size: 1.4rem;
  color: var(--accent);
}
.plan-precio small {
  font: 500 0.95rem var(--f-body);
  color: var(--muted);
  margin-left: 0.3rem;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.6rem;
  display: grid;
  gap: 0.55rem;
  color: var(--fg-2);
  font-size: 0.97rem;
}
.check-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.check-list svg {
  color: var(--accent);
  margin-top: 0.25em;
}
.plan .btn {
  margin-top: auto;
}

.tabla-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.tabla {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.tabla th,
.tabla td {
  padding: 1rem 1.1rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.tabla thead th {
  font: 800 1.05rem var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--surface);
}
.tabla tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--fg-2);
}
.tabla .si {
  color: var(--accent);
  font-size: 1.2rem;
}
.tabla .no {
  color: var(--muted);
}

/* ---------- Pasos ---------- */
.pasos-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 2rem;
  counter-reset: paso;
}
.pasos-lista li {
  counter-increment: paso;
  display: grid;
  gap: 0.6rem;
  padding-top: 1.4rem;
  border-top: 2px solid var(--line);
  position: relative;
}
.pasos-lista li::before {
  content: "0" counter(paso);
  font: 900 3.4rem/1 var(--f-display);
  color: var(--accent);
}
.pasos-lista p {
  color: var(--muted);
}

/* ---------- Banda con imagen ---------- */
.banda {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-block: 1px solid var(--line);
  --bg: #0a0a0a;
  --bg-2: #111111;
  --surface: #171717;
  --surface-2: #202020;
  --line: #2a2a2a;
  --fg: #f5f5f5;
  --fg-2: #cfcfcf;
  --muted: #8e8e8e;
  --accent: #ffffff;
  --accent-2: #d9d9d9;
  --on-accent: #0a0a0a;
  --tint: rgba(255, 255, 255, 0.08);
  --tint-2: rgba(255, 255, 255, 0.14);
  --header-bg: rgba(10, 10, 10, 0.82);
  color: var(--fg);
}
.banda > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.banda::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.95) 30%, rgba(10, 10, 10, 0.55));
}
.banda-in {
  padding-block: clamp(4rem, 9vw, 6.5rem);
  display: grid;
  gap: 1.2rem;
  max-width: 40rem;
}
.banda-in p:not(.eyebrow) {
  color: var(--fg-2);
}
.banda-in .hero-cta {
  margin-top: 0.8rem;
}

/* ---------- Bloques de contenido (Nosotros, Torneo) ---------- */
.dos-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 820px) {
  .dos-col {
    grid-template-columns: minmax(0, 1fr);
  }
}
.prosa {
  display: grid;
  gap: 1.1rem;
  color: var(--fg-2);
  max-width: 38rem;
}
.prosa strong {
  color: var(--fg);
}
.cifras {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.cifras div {
  background: var(--surface);
  padding: 1.6rem 1.4rem;
  display: grid;
  gap: 0.3rem;
}
.cifras strong {
  font: 900 3rem/1 var(--f-display);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.cifras span {
  color: var(--muted);
  font-size: 0.92rem;
}

.sesion {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.sesion div {
  padding: 1.6rem 1.4rem;
  display: grid;
  gap: 0.5rem;
  align-content: start;
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.sesion div:last-child {
  border-right: 0;
}
.sesion .min {
  font: 900 2.2rem/1 var(--f-display);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.sesion .min small {
  font: 600 0.8rem var(--f-body);
  color: var(--muted);
  margin-left: 0.2rem;
}
.sesion p {
  color: var(--muted);
  font-size: 0.95rem;
}

.final-card {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.final-card img {
  width: 100%;
  height: auto;
}
.final-datos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
}
.final-datos div {
  padding: 1.1rem 1.3rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.2rem;
}
.final-datos dt {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.final-datos dd {
  margin: 0;
  font-weight: 600;
}
.vs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem;
  border-top: 1px solid var(--line);
}
.vs span {
  font-family: var(--f-brush);
  font-size: 1.6rem;
}
.vs b {
  font: italic 900 2rem var(--f-display);
  color: var(--accent);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 0.6rem;
  max-width: 52rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 1.3rem;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-mas {
  width: 14px;
  height: 14px;
  position: relative;
  flex: none;
}
.faq-mas::before,
.faq-mas::after {
  content: "";
  position: absolute;
  inset: 6px 0 auto;
  height: 2px;
  background: var(--accent);
  transition: transform 0.2s;
}
.faq-mas::after {
  transform: rotate(90deg);
}
.faq-item[open] .faq-mas::after {
  transform: rotate(0);
}
.faq-item[open] {
  border-color: var(--amarillo);
}
.faq-item p {
  padding: 0 1.3rem 1.2rem;
  color: var(--fg-2);
  max-width: 44rem;
}

/* ---------- Contacto ---------- */
.contacto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}
.contacto-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.6rem;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}
.contacto-card .ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: var(--tint-2);
  color: var(--accent);
}
.contacto-card.wsp .ico {
  background: rgba(37, 211, 102, 0.14);
  color: var(--wsp);
}
.contacto-card p {
  color: var(--muted);
}
.contacto-card .grande {
  font: 800 1.5rem var(--f-display);
  color: var(--fg);
  letter-spacing: 0.02em;
}
.contacto-card .btn {
  margin-top: 0.6rem;
}

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--accent);
  color: var(--on-accent);
}
.cta-final-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(2.5rem, 6vw, 3.8rem);
}
.cta-final h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 30rem;
}
.cta-final .btn {
  background: var(--on-accent);
  color: var(--accent);
}
.cta-final .btn:hover {
  background: #000;
  color: var(--amarillo-2);
  opacity: 1;
  box-shadow: none;
}

/* ---------- Pie ---------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding-top: 3.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 460px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.footer-brand p {
  color: var(--muted);
  margin-top: 1rem;
  max-width: 22rem;
  font-size: 0.95rem;
}
.footer .titulo-mini {
  margin-bottom: 1rem;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
}
.footer ul a {
  text-decoration: none;
  color: var(--fg-2);
}
.footer ul a:hover {
  color: var(--accent);
}
.footer-contacto li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--fg-2);
}
.footer-contacto svg {
  color: var(--accent);
  margin-top: 0.3em;
}
.redes {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.2rem;
}
.redes a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 1.1rem;
}
.redes a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 1.4rem;
}

.wsp-flotante {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wsp);
  color: #fff;
  font-size: 1.9rem;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.7);
  transition: transform 0.15s;
}
.wsp-flotante:hover {
  transform: scale(1.07);
}

/* ---------- Modales ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-fondo {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(3px);
}
.modal-caja {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  animation: subir 0.25s ease-out;
}
@keyframes subir {
  from {
    transform: translateY(18px);
    opacity: 0.5;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.modal-x {
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--fg);
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s;
  position: sticky;
  top: 12px;
  margin: 12px 12px -54px auto;
  right: auto;
}
.modal-x:hover {
  transform: rotate(90deg);
}
.modal-x svg {
  width: 1em;
  height: 1em;
}
.modal-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.modal-cancha {
  aspect-ratio: 16 / 7;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 34px, transparent 34px 68px),
    linear-gradient(160deg, var(--card), var(--card-2));
  --fg: #f5f5f5;
  color: var(--fg);
}
.modal-cancha::before {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}
.modal-cancha::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.14);
}
.modal-cancha span {
  position: relative;
  z-index: 1;
  font-family: var(--f-brush);
  font-size: 2rem;
  background: rgba(10, 10, 10, 0.6);
  padding: 0.1rem 0.8rem;
  border-radius: 6px;
}
.modal-cuerpo {
  padding: 1.5rem;
  display: grid;
  gap: 0.9rem;
}
.modal-cuerpo .eyebrow {
  margin-bottom: 0;
}
.modal-cuerpo h3 {
  font-size: 2rem;
}
.sede-ref {
  display: flex;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  align-items: flex-start;
}
.sede-ref svg {
  color: var(--accent);
}
.horarios {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.horarios li {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.8rem 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  row-gap: 0.15rem;
}
.horarios svg {
  color: var(--accent);
}
.modal-acciones {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

/* ---------- Inscripción ---------- */
.insc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 900px) {
  .insc {
    grid-template-columns: minmax(0, 1fr);
  }
  .insc-resumen {
    order: -1;
  }
}

.stepper {
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}
.stepper li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  min-width: 0;
}
.stepper li.hecho {
  cursor: pointer;
  color: var(--fg-2);
}
.stepper li.activo {
  color: var(--fg);
}
.stepper .num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  font: 800 1rem var(--f-display);
  background: var(--bg);
}
.stepper li.activo .num {
  border-color: var(--accent);
  color: var(--on-accent);
  background: var(--amarillo);
}
.stepper li.hecho .num {
  border-color: var(--accent);
  color: var(--accent);
}
.stepper .txt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .stepper .txt {
    display: none;
  }
  .stepper li {
    justify-content: center;
  }
}
.progreso {
  height: 4px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.progreso span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.35s ease;
}

.paso {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.3rem, 3.5vw, 2.2rem);
  display: grid;
  gap: 1.4rem;
}
.paso h2 {
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  outline: none;
}
.paso-sub {
  color: var(--muted);
  margin-top: -0.6rem;
}
.campos {
  display: grid;
  gap: 1.1rem;
}
.campo {
  display: grid;
  gap: 0.45rem;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.fila {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}
@media (max-width: 520px) {
  .fila {
    grid-template-columns: minmax(0, 1fr);
  }
}
label,
legend {
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0;
}
.opcional {
  color: var(--muted);
  font-weight: 400;
}
input[type="text"],
input[type="tel"],
input[type="number"],
input[type="email"],
input[type="search"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.85rem 1rem;
  min-height: 52px;
  transition: border-color 0.15s;
}
input:hover,
select:hover {
  border-color: #4a4a4a;
}
input:focus,
select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--tint-2);
}
input::placeholder {
  color: #6a6a6a;
}
[aria-invalid="true"] {
  border-color: var(--danger) !important;
}
.error {
  color: var(--danger);
  font-size: 0.85rem;
}
.error:empty {
  display: none;
}
.ayuda {
  color: var(--muted);
  font-size: 0.85rem;
}

.op-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: 0.6rem;
}
.op-card {
  position: relative;
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}
.op-card:hover {
  border-color: #4a4a4a;
}
.op-card input,
.op-fila input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.op-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--tint);
}
.op-card:has(input:focus-visible),
.op-fila:has(input:focus-visible) {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}
.op-card:has(input:checked)::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230a0a0a' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4Z'/%3E%3C/svg%3E")
    center/12px no-repeat;
}
.op-titulo {
  font-weight: 700;
  padding-right: 1.6rem;
}
.op-sub {
  color: var(--muted);
  font-size: 0.86rem;
}
.op-precio {
  font: 900 1.8rem/1.1 var(--f-display);
  font-variant-numeric: tabular-nums;
}
.op-precio small {
  font: 500 0.85rem var(--f-body);
  color: var(--muted);
}
.op-plan {
  padding-top: 1.2rem;
}
.mini-badge {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  vertical-align: middle;
}
.op-plan .mini-badge {
  position: absolute;
  top: -9px;
  left: 1rem;
}
.op-lista {
  display: grid;
  gap: 0.5rem;
}
.op-fila {
  position: relative;
  display: block;
  cursor: pointer;
}
.op-fila > span {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.op-fila > span > svg {
  color: var(--muted);
}
.op-fila:has(input:checked) > span {
  border-color: var(--accent);
  background: var(--tint);
}
.op-fila:has(input:checked) svg {
  color: var(--accent);
}
.vacio {
  color: var(--muted);
  padding: 1rem;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-sm);
  text-align: center;
}

.acciones {
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
.acciones .btn {
  min-width: 200px;
}
@media (max-width: 520px) {
  .acciones .btn {
    width: 100%;
  }
  .acciones {
    justify-content: center;
  }
}

.conf {
  margin: 0;
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.conf div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}
.conf div:last-child {
  border-bottom: 0;
}
.conf dt {
  color: var(--muted);
}
.conf dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  min-width: 0;
}
.conf .conf-total {
  align-items: center;
  background: var(--amarillo-tint);
}
.conf .conf-total dd {
  font: 900 1.9rem var(--f-display);
  color: var(--accent);
}
.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 400;
  color: var(--fg-2);
  cursor: pointer;
}
.check input {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  flex: none;
  accent-color: var(--amarillo);
}

.insc-resumen {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.res-head {
  padding: 1.2rem 1.3rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.res-head img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
}
.res-head strong {
  font: 800 1.2rem var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.res-lista {
  margin: 0;
  padding: 0.6rem 1.3rem;
  display: grid;
}
.res-lista div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.93rem;
}
.res-lista div:last-child {
  border-bottom: 0;
}
.res-lista dt {
  color: var(--muted);
}
.res-lista dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}
.res-total {
  padding: 1.1rem 1.3rem;
  background: var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.res-total span {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.res-total strong {
  font: 900 2.2rem/1 var(--f-display);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.res-pie {
  padding: 1rem 1.3rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.yape-logo {
  flex: none;
  font: 900 0.85rem var(--f-body);
  color: #fff;
  background: var(--yape);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
@media (max-width: 900px) {
  .insc-resumen {
    position: static;
  }
  .res-lista {
    display: none;
  }
}

/* Modal de pago */
.modal-pago {
  max-width: 420px;
}
.pago {
  padding: 1.7rem 1.5rem 1.5rem;
  display: grid;
  gap: 1.1rem;
}
.pago-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-right: 2.6rem;
}
.pago-top h3 {
  font-size: 1.8rem;
}
.pago-monto {
  text-align: center;
  display: grid;
  gap: 0.1rem;
}
.pago-monto strong {
  font: 900 3rem/1 var(--f-display);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.pago-monto span {
  color: var(--muted);
  font-size: 0.9rem;
}
.qr-marco {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  width: min(100%, 250px);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 6px var(--yape),
    0 20px 50px -20px rgba(141, 46, 161, 0.8);
}
.qr-marco img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qr-vacio {
  color: #4b4b4b;
  text-align: center;
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  width: 100%;
  height: 100%;
  place-content: center;
  border: 2px dashed #c9c9c9;
  border-radius: 8px;
  padding: 0.8rem;
}
.qr-vacio strong {
  color: var(--yape);
  font-size: 1.15rem;
}
.pasos-yape {
  list-style: none;
  counter-reset: py;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.93rem;
  color: var(--fg-2);
}
.pasos-yape li {
  counter-increment: py;
  display: flex;
  gap: 0.6rem;
}
.pasos-yape li::before {
  content: counter(py);
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
  font: 800 0.8rem/22px var(--f-body);
  text-align: center;
}
.datos-yape {
  margin: 0;
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.datos-yape div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.datos-yape div:last-child {
  border-bottom: 0;
}
.datos-yape dt {
  color: var(--muted);
  font-size: 0.88rem;
}
.datos-yape dd {
  margin: 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-variant-numeric: tabular-nums;
}
.codigo {
  white-space: nowrap;
  font-family: ui-monospace, Consolas, monospace;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.copiar {
  background: var(--surface-2);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 5px;
  font: 600 0.8rem var(--f-body);
  padding: 0.3rem 0.55rem;
  cursor: pointer;
}
.copiar:hover {
  border-color: var(--accent);
}

.redir {
  text-align: center;
  display: grid;
  gap: 1rem;
  justify-items: center;
}
.anillo {
  --dur: 4s;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: conic-gradient(var(--wsp) var(--p, 0%), var(--surface-2) 0);
}
.anillo::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--bg-2);
}
.anillo span {
  position: relative;
  font: 900 2.4rem var(--f-display);
  color: var(--wsp);
}
@property --p {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}
.anillo.corre {
  animation: llenar var(--dur) linear forwards;
}
@keyframes llenar {
  to {
    --p: 100%;
  }
}
.redir p {
  color: var(--fg-2);
}
.redir .btn {
  width: 100%;
}

/* =========================================================
   IDENTIDAD BLANCO Y NEGRO
   ========================================================= */
/* Secciones claras: invierten los tokens y alternan con las oscuras */
.claro,
.section-alt {
  --bg: #ffffff;
  --bg-2: #f3f3f3;
  --surface: #ffffff;
  --surface-2: #ececec;
  --line: #dcdcdc;
  --fg: #0a0a0a;
  --fg-2: #2a2a2a;
  --muted: #686868;
  --accent: #0a0a0a;
  --accent-2: #3a3a3a;
  --on-accent: #ffffff;
  --tint: rgba(0, 0, 0, 0.05);
  --tint-2: rgba(0, 0, 0, 0.08);
  background: var(--bg-2);
  color: var(--fg);
  color-scheme: light;
  --amarillo-txt: #8f6900;
}
/* Las tarjetas de sede siempre oscuras, como una cancha de noche */
.section-alt .sede {
  border-color: transparent;
}

/* Fotos en blanco y negro; toman color al pasar el mouse */
.hero-bg img,
.banda > img {
  filter: grayscale(1) contrast(1.1);
  will-change: transform;
}
.final-card img,
.destacado-img img {
  filter: grayscale(1);
  transition: filter 0.5s ease;
}
.final-card:hover img,
.destacado-img:hover img {
  filter: none;
}
.hero h1 .brush {
  color: transparent;
}
@supports not (-webkit-text-stroke: 1px #fff) {
  .hero h1 .brush {
    color: var(--fg);
  }
}

/* Marquesina de sedes */
.marquesina {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg);
  padding-block: 1rem;
}
.marquesina-pista {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: desfile 38s linear infinite;
}
.marquesina:hover .marquesina-pista {
  animation-play-state: paused;
}
.marquesina span {
  font: italic 900 clamp(1.6rem, 4vw, 2.6rem)/1 var(--f-display);
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--muted);
}
.marquesina span:nth-child(odd) {
  color: var(--fg);
  -webkit-text-stroke: 0;
}
@keyframes desfile {
  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   DINÁMICA
   ========================================================= */
/* Barra de carga entre páginas */
.carga {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  z-index: 70;
  height: 3px;
  width: 0;
  background: var(--fg);
  transition:
    width 0.25s ease,
    opacity 0.3s;
  pointer-events: none;
}
.carga.activa {
  width: 70%;
  transition: width 1.2s cubic-bezier(0.1, 0.6, 0.2, 1);
}
.carga.fin {
  width: 100%;
  opacity: 0;
}

/* El encabezado se esconde al bajar y aparece al subir */
.topbar {
  transition:
    transform 0.3s ease,
    border-color 0.2s;
}
.topbar.oculto {
  transform: translateY(-100%);
}

/* Aparición al hacer scroll (solo para lo que aún no se ve) */
.aparece {
  opacity: 0;
  transform: translateY(24px);
}
.aparece.visto {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--retraso, 0s);
}

/* Transición entre páginas */
@view-transition {
  navigation: auto;
}
::view-transition-old(contenido) {
  animation: salir 0.18s ease both;
}
::view-transition-new(contenido) {
  animation: entrar 0.28s ease both;
}
main {
  view-transition-name: contenido;
}
@keyframes salir {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@keyframes entrar {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* Buscador de sedes */
.buscador {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}
.buscador .chips {
  margin: 0;
}
.buscar {
  position: relative;
  flex: 1 1 260px;
  max-width: 360px;
  display: block;
}
.buscar input {
  padding-left: 2.6rem;
  min-height: 54px;
  font-weight: 600;
}
.buscar svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.1rem;
}
.sin-resultados {
  color: var(--muted);
  padding: 2.5rem 1rem;
  border: 1.5px dashed var(--line);
  border-radius: var(--r);
  grid-column: 1 / -1;
  display: grid;
  gap: 0.4rem;
  text-align: center;
}
.sede.entra {
  animation: entrar 0.35s ease both;
  animation-delay: var(--retraso, 0s);
}

/* Aviso flotante (toast) */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  transform: translate(-50%, 20px);
  opacity: 0;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  padding: 0.8rem 1.2rem;
  border-radius: 99px;
  transition:
    opacity 0.2s,
    transform 0.2s;
  pointer-events: none;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.ver {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Validación en vivo */
.campo.ok input {
  border-color: #8a8a8a;
}
.campo.ok label::after {
  content: " ✓";
  color: var(--fg);
}
.borrador {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.borrador::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wsp);
}

@media (prefers-reduced-motion: reduce) {
  .aparece {
    opacity: 1;
    transform: none;
  }
  .marquesina-pista {
    animation: none;
  }
  .topbar.oculto {
    transform: none;
  }
}

/* =========================================================
   TEMA CLARO (blanco)
   Se activa con el botón del encabezado o si el sistema está en modo claro.
   En tema claro las secciones alternas pasan a negro, al revés que en oscuro.
   ========================================================= */
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f4f4f4;
  --surface: #ffffff;
  --surface-2: #ececec;
  --line: #e0e0e0;
  --fg: #0a0a0a;
  --fg-2: #2a2a2a;
  --muted: #666666;
  --accent: #0a0a0a;
  --accent-2: #3a3a3a;
  --on-accent: #ffffff;
  --tint: rgba(0, 0, 0, 0.05);
  --tint-2: rgba(0, 0, 0, 0.09);
  --header-bg: rgba(255, 255, 255, 0.86);
  color-scheme: light;
  --amarillo-txt: #8f6900;
}
:root[data-theme="light"] .section-alt,
:root[data-theme="light"] .claro,
:root[data-theme="light"] .banda {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --surface: #171717;
  --surface-2: #202020;
  --line: #2a2a2a;
  --fg: #f5f5f5;
  --fg-2: #cfcfcf;
  --muted: #8e8e8e;
  --accent: #ffffff;
  --accent-2: #d9d9d9;
  --on-accent: #0a0a0a;
  --tint: rgba(255, 255, 255, 0.08);
  --tint-2: rgba(255, 255, 255, 0.14);
  --header-bg: rgba(10, 10, 10, 0.82);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #ffffff;
    --bg-2: #f4f4f4;
    --surface: #ffffff;
    --surface-2: #ececec;
    --line: #e0e0e0;
    --fg: #0a0a0a;
    --fg-2: #2a2a2a;
    --muted: #666666;
    --accent: #0a0a0a;
    --accent-2: #3a3a3a;
    --on-accent: #ffffff;
    --tint: rgba(0, 0, 0, 0.05);
    --tint-2: rgba(0, 0, 0, 0.09);
    --header-bg: rgba(255, 255, 255, 0.86);
    color-scheme: light;
    --amarillo-txt: #8f6900;
  }
  :root:not([data-theme="dark"]) .section-alt,
  :root:not([data-theme="dark"]) .claro,
  :root:not([data-theme="dark"]) .banda {
    --bg: #0a0a0a;
    --bg-2: #111111;
    --surface: #171717;
    --surface-2: #202020;
    --line: #2a2a2a;
    --fg: #f5f5f5;
    --fg-2: #cfcfcf;
    --muted: #8e8e8e;
    --accent: #ffffff;
    --accent-2: #d9d9d9;
    --on-accent: #0a0a0a;
    --tint: rgba(255, 255, 255, 0.08);
    --tint-2: rgba(255, 255, 255, 0.14);
    --header-bg: rgba(10, 10, 10, 0.82);
    color-scheme: dark;
  }
}
/* La banda del torneo y las tarjetas de sede siempre van sobre foto o cancha oscura */
.section-alt,
.claro,
.banda {
  color: var(--fg);
}
body,
.topbar,
.section,
.footer,
.plan,
.faq-item,
.paso,
.insc-resumen,
.modal-caja {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

/* Botón de tema */
.tema-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--fg);
  cursor: pointer;
  font-size: 1.15rem;
  flex: none;
  transition:
    transform 0.3s ease,
    background-color 0.2s;
}
.tema-btn:hover {
  background: var(--surface-2);
}
.tema-btn:active {
  transform: rotate(25deg) scale(0.92);
}
.tema-btn .ico-sol {
  display: none;
}
:root[data-theme="light"] .tema-btn .ico-sol {
  display: block;
}
:root[data-theme="light"] .tema-btn .ico-luna {
  display: none;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .tema-btn .ico-sol {
    display: block;
  }
  :root:not([data-theme="dark"]) .tema-btn .ico-luna {
    display: none;
  }
}
.topbar-acciones {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* =========================================================
   EFECTOS "WOW"
   ========================================================= */
/* Intro con logo */

/* Títulos que se revelan */
.rv-palabra {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.rv-letra {
  display: inline-block;
  animation: subeLetra 0.8s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}
.rv-letras .rv-letra {
  animation-delay: calc(var(--i) * 0.035s + var(--base, 0.1s));
}
.rv-palabras .rv-letra {
  animation-delay: calc(var(--i) * 0.08s + 0.05s);
}
.hero h1 .brush .rv-palabra {
  overflow: visible;
}
.hero h1 .brush .rv-letra {
  animation-name: subeBrush;
}
@keyframes subeLetra {
  from {
    transform: translateY(105%) skewY(6deg);
  }
}
@keyframes subeBrush {
  from {
    transform: translateY(40%);
    opacity: 0;
    filter: blur(6px);
  }
}

/* Foco de estadio */
.hero,
.page-head {
  --mx: 70%;
  --my: 30%;
}
.hero::before,
.page-head .page-head-in::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(520px circle at var(--mx) var(--my), color-mix(in srgb, var(--fg) 13%, transparent), transparent 60%);
}
.hero.foco-on::before,
.page-head.foco-on .page-head-in::before {
  opacity: 1;
}
.hero::before {
  z-index: -1;
}
.page-head .page-head-in {
  isolation: isolate;
}
.page-head .page-head-in::before {
  z-index: -1;
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
}

/* Líneas de cancha */
.cancha-svg {
  position: absolute;
  z-index: -1;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(70%, 820px);
  height: auto;
  aspect-ratio: 3 / 2;
  fill: none;
  stroke: color-mix(in srgb, var(--fg) 20%, transparent);
  stroke-width: 1.5;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 5%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 5%, #000 55%);
}
.cancha-svg * {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: dibujar 2.4s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}
.cancha-svg :nth-child(2) {
  animation-delay: 0.3s;
}
.cancha-svg :nth-child(3) {
  animation-delay: 0.5s;
}
.cancha-svg :nth-child(n + 5) {
  animation-delay: 0.8s;
}
.cancha-svg .punto {
  fill: color-mix(in srgb, var(--fg) 40%, transparent);
}
@keyframes dibujar {
  to {
    stroke-dashoffset: 0;
  }
}
@media (max-width: 700px) {
  .cancha-svg {
    width: 120%;
    right: -50%;
    opacity: 0.45;
  }
}

/* Tarjetas 3D */
.plan,
.sede,
.pilar,
.contacto-card,
.op-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.2s,
    box-shadow 0.3s,
    background-color 0.3s;
}
.tilt-on {
  transition:
    transform 0.08s linear,
    border-color 0.2s,
    box-shadow 0.3s;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}
.pilar,
.contacto-card {
  position: relative;
}
.brillo {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
  background: radial-gradient(
    380px circle at var(--gx, 50%) var(--gy, 50%),
    color-mix(in srgb, var(--fg) 14%, transparent),
    transparent 55%
  );
  mix-blend-mode: plus-lighter;
}
:root[data-theme="light"] .plan .brillo,
:root[data-theme="light"] .pilar .brillo,
:root[data-theme="light"] .contacto-card .brillo {
  mix-blend-mode: normal;
}
.tilt-on > .brillo {
  opacity: 1;
}

/* Botones magnéticos */
.btn {
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.15s,
    box-shadow 0.2s;
}

/* Parallax */
.hero-bg img,
.banda > img {
  transform: scale(1.15);
}

/* Balón: progreso de lectura y volver arriba */
.balon {
  position: fixed;
  left: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 0;
  padding: 5px;
  cursor: pointer;
  background: conic-gradient(var(--fg) var(--p, 0%), var(--line) 0);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.balon.ver {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.balon svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  background: var(--bg);
}
.balon:hover {
  transform: translateY(-3px) scale(1.05);
}

/* Grano de película sobre la portada */
.hero::after {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grano 1.2s steps(6) infinite;
}
@keyframes grano {
  0%,
  100% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-4%, 3%);
  }
  40% {
    transform: translate(3%, -5%);
  }
  60% {
    transform: translate(-6%, 2%);
  }
  80% {
    transform: translate(5%, 4%);
  }
}

/* Subrayado animado en el menú */
@media (min-width: 921px) {
  .nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: -2px;
    height: 2px;
    background: var(--fg);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .nav a:not(.btn):hover::after,
  .nav a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv-letra,
  .cancha-svg *,
  .hero::after {
    animation: none !important;
    stroke-dashoffset: 0;
  }
}

/* Correcciones: menú móvil y cabecera del modal de sede */
@media (max-width: 920px) {
  .topbar:has(.nav.abierto) {
    transform: none;
  }
}
.modal-cancha span {
  background: rgba(0, 0, 0, 0.55);
}

/* La X siempre visible aunque la ventana tenga scroll */
.modal-caja > .modal-x + * {
  margin-top: 0;
}
body.sin-scroll .balon,
body.sin-scroll .wsp-flotante {
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   LEGAL
   ========================================================= */
textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}
.pendiente {
  background: repeating-linear-gradient(45deg, rgba(255, 92, 92, 0.18) 0 6px, transparent 6px 12px);
  outline: 1px dashed var(--danger);
  border-radius: 3px;
  padding-inline: 0.2em;
}
.nota-precios {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.nota-precios a {
  color: var(--fg);
}

/* Pie: libro y enlaces legales */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.libro-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem 0.7rem 0.8rem;
  border: 1.5px solid var(--fg);
  border-radius: var(--r-sm);
  text-decoration: none;
  font: 800 0.82rem/1.15 var(--f-body);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg);
  transition:
    background-color 0.2s,
    color 0.2s;
}
.libro-btn svg {
  font-size: 1.9rem;
}
.libro-btn:hover {
  background: var(--fg);
  color: var(--bg);
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-size: 0.9rem;
}
.footer-legal-links a {
  color: var(--fg-2);
  text-decoration: none;
}
.footer-legal-links a:hover {
  color: var(--fg);
  text-decoration: underline;
}

/* Aviso de cookies */
.cookies {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  max-width: 560px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.2rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  animation: entrar 0.35s ease both;
}
.cookies p {
  flex: 1 1 260px;
  min-width: 0;
  font-size: 0.88rem;
  color: var(--fg-2);
}
.cookies a {
  color: var(--fg);
}
.cookies.cerrando {
  opacity: 0;
  transform: translateY(10px);
  transition: 0.25s;
}
body:has(.cookies) .balon,
body:has(.cookies) .wsp-flotante {
  bottom: calc(110px + env(safe-area-inset-bottom, 0px));
}

/* Páginas de texto legal */
.legal {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) {
  .legal {
    grid-template-columns: minmax(0, 1fr);
  }
}
.legal-indice {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
@media (max-width: 860px) {
  .legal-indice {
    position: static;
  }
}
.legal-indice ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.93rem;
}
.legal-indice a {
  color: var(--fg-2);
  text-decoration: none;
}
.legal-indice a:hover {
  color: var(--fg);
  text-decoration: underline;
}
.legal-texto {
  max-width: 44rem;
}
.legal-texto h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-top: 1.4rem;
}
.legal-texto ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}
.legal-texto a {
  color: var(--fg);
}
.legal-datos {
  margin: 0;
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.legal-datos div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
}
.legal-datos div:last-child {
  border-bottom: 0;
}
.legal-datos dt {
  color: var(--muted);
  font-size: 0.88rem;
}
.legal-datos dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.legal-datos a {
  color: var(--fg);
}

/* Libro de Reclamaciones */
.lr {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 900px) {
  .lr {
    grid-template-columns: minmax(0, 1fr);
  }
}
.lr-info {
  display: grid;
  gap: 1.2rem;
}
.lr-info h2 {
  font-size: 1.6rem;
}
.lr-sello {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  justify-self: start;
  padding: 0.9rem 1.2rem;
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--r-sm);
  font: 900 1.05rem/1.1 var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.lr-sello svg {
  font-size: 2.4rem;
}
.lr-def {
  display: grid;
  gap: 0.6rem;
  font-size: 0.93rem;
  color: var(--fg-2);
  padding: 1rem;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}
.lr-nota {
  font-size: 0.88rem;
}
.lr-cabecera {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 0.9rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  font-variant-numeric: tabular-nums;
}
.lr-leyenda {
  font: 800 1.15rem var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0 0 0.2rem;
  margin-bottom: 0.3rem;
  border-bottom: 1px solid var(--line);
  width: 100%;
}
fieldset.campos {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.lbl {
  font-weight: 600;
  font-size: 0.92rem;
}
.lr-tipo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
}
.lr-mini {
  font-size: 0.85rem;
}
.lr-ok {
  display: grid;
  gap: 1rem;
}
.lr-ok h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.lr-hoja {
  margin: 0;
  padding: 1.1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font:
    0.85rem/1.55 ui-monospace,
    Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 420px;
  overflow: auto;
}
.lr-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.consent {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.check a {
  color: var(--fg);
}

/* Impresión de la hoja de reclamación */
@media print {
  .topbar,
  .footer,
  .wsp-flotante,
  .balon,
  .cookies,
  .page-head,
  .lr-info,
  .lr-acciones,
  .carga,
  .marquesina {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .section {
    padding: 0;
  }
  .paso {
    border: 0;
    padding: 0;
    background: #fff;
  }
  .lr-hoja {
    max-height: none;
    border: 1px solid #000;
    color: #000;
    background: #fff;
  }
}

/* =========================================================
   PRECIOS POR SEDE Y TURNOS
   ========================================================= */
s,
.antes {
  color: var(--muted);
  text-decoration-thickness: 1.5px;
  font-weight: 500;
}
.planes-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  max-width: 820px;
}
.plan-desde {
  margin-bottom: -0.7rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.plan-desde s {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.95rem;
  margin-left: 0.3rem;
}
.plan-ahorro {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg);
  background: var(--tint);
  border-radius: 6px;
  padding: 0.45rem 0.7rem;
  justify-self: start;
}

/* Cobros de ingreso */
.cuotas-head {
  margin: 3.2rem 0 1.4rem;
}
.cuotas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  max-width: 820px;
}
.cuota {
  display: grid;
  gap: 0.2rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.cuota-t {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cuota-v {
  font: 900 2.2rem/1.05 var(--f-display);
  font-variant-numeric: tabular-nums;
}
.cuota-v s {
  font-size: 1.2rem;
  margin-right: 0.3rem;
}
.cuota-n {
  font-size: 0.9rem;
  color: var(--fg-2);
}

/* Tabla de precios por sede */
.tabla-precios {
  min-width: 760px;
}
.tabla-precios thead th small {
  display: block;
  font: 500 0.8rem var(--f-body);
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.tabla-precios tbody th {
  font-weight: 700;
  color: var(--fg);
}
.tabla-precios tbody th a {
  color: inherit;
  text-decoration: none;
}
.tabla-precios tbody th a:hover {
  text-decoration: underline;
}
.tabla-precios td b {
  font: 800 1.15rem var(--f-display);
}
.tabla-precios td s {
  font-size: 0.85rem;
  margin-right: 0.2rem;
}
.tabla-precios .fila-zona th {
  text-align: left;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-2);
  padding-block: 0.55rem;
}
.td-horario {
  font-size: 0.86rem;
  color: var(--fg-2);
  text-align: left !important;
  white-space: nowrap;
}
.tabla-precios th[scope="row"] {
  white-space: nowrap;
}

/* Tarjeta de sede */
.sede-distrito,
.sede-horario {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.88rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.75);
}
.sede-distrito svg,
.sede-horario svg {
  margin-top: 0.15em;
  flex: none;
  color: var(--fg);
}
.sede-pie {
  margin-top: auto;
  padding-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.sede-pie .sede-ver {
  margin: 0;
  padding: 0;
}
.sede-precio {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
.sede-precio b {
  font: 800 1.15rem var(--f-display);
  color: var(--fg);
}

/* Ventana de sede */
.sede-ref svg {
  margin-top: 0.2em;
}
.sede-aviso {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-sm);
  background: var(--tint);
  border: 1px dashed var(--line);
}
.turno {
  display: grid;
  gap: 0.45rem;
}
.turno-id {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.horarios li {
  flex-wrap: wrap;
}
.horarios li span {
  flex: 1;
  min-width: 0;
}
.horarios li em {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.sede-precios {
  display: grid;
  gap: 0.45rem;
}
.sede-precios div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  grid-template-columns: minmax(0, 1fr) 84px 104px;
}
.sede-precios span {
  color: var(--fg-2);
  font-size: 0.93rem;
}
.sede-precios strong b {
  font: 900 1.45rem var(--f-display);
  font-variant-numeric: tabular-nums;
}
.sede-precios s {
  font-size: 0.9rem;
  margin-right: 0.25rem;
}
.sede-nota {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Inscripción */
.op-zona {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.op-zona:first-child {
  margin-top: 0;
}
.op-desde {
  font-weight: 600;
  color: var(--fg-2);
}
.op-turno > span {
  align-items: flex-start;
}
.op-turno > span > svg {
  margin-top: 0.25em;
}
.turno-txt {
  display: grid;
  gap: 0.2rem;
  font-weight: 500;
}
.turno-txt em {
  font-style: normal;
  color: var(--muted);
}
.op-precio s {
  font: 500 1rem var(--f-body);
}
.res-desglose {
  margin: 0;
  padding: 0.4rem 1.3rem 0.8rem;
  display: grid;
  border-top: 1px solid var(--line);
}
.res-desglose div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.res-desglose dt {
  color: var(--muted);
}
.res-desglose dd {
  margin: 0;
  font-weight: 600;
}
.conf .conf-sep {
  border-top: 2px solid var(--line);
}
@media (max-width: 900px) {
  .res-desglose {
    display: grid;
  }
}

/* =========================================================
   CLASE GRATIS
   ========================================================= */
/* Cinta superior en todas las páginas */
.cinta-gratis {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 36px;
  padding: 0.35rem var(--gutter);
  background: var(--fg);
  text-decoration: none;
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.3;
  color: var(--on-amarillo);
}
.cinta-gratis b {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cinta-gratis svg {
  flex: none;
  transition: transform 0.2s;
}
.cinta-gratis:hover svg {
  transform: translateX(4px);
}
.cinta-pill {
  flex: none;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 99px;
  border: 1.5px solid var(--bg);
  border-color: var(--on-amarillo);
}
@media (max-width: 920px) {
  .topbar:has(.cinta-gratis:not([hidden])) .nav {
    height: calc(100dvh - var(--header-h) - 36px - env(safe-area-inset-top, 0px));
  }
}

/* Menú */
.nav-insc {
  font-weight: 700 !important;
  color: var(--fg) !important;
}
@media (min-width: 921px) {
  .nav {
    gap: 0.1rem;
  }
  .nav a:not(.btn) {
    padding-inline: 0.6rem;
    font-size: 0.92rem;
  }
  .nav-cta {
    margin-left: 0.4rem;
  }
}
@media (min-width: 921px) and (max-width: 1100px) {
  .nav a:not(.btn) {
    padding-inline: 0.4rem;
    font-size: 0.86rem;
  }
  .brand-text small {
    display: none;
  }
}

/* Botón principal de clase gratis */
.btn-gratis {
  position: relative;
  background: var(--fg);
  color: var(--bg);
}
.btn-gratis:hover {
  background: var(--fg);
  opacity: 0.9;
}
.btn-gratis::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--r-sm) + 4px);
  border: 2px solid var(--fg);
  opacity: 0;
  animation: latido 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes latido {
  0% {
    opacity: 0.7;
    transform: scale(0.96);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}
.btn-xl {
  padding: 1.15rem 1.8rem;
  font-size: 1.02rem;
  min-height: 58px;
}
.hero-nota {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--fg-2);
}
.hero-nota a {
  color: var(--fg);
  font-weight: 600;
}

/* Sello giratorio en la portada */
.sello-gratis {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 7vw, 120px);
  top: clamp(40px, 9vw, 110px);
  width: clamp(140px, 15vw, 190px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--fg);
  text-decoration: none;
  transition: transform 0.3s;
}
.sello-gratis:hover {
  transform: scale(1.06) rotate(-4deg);
}
.sello-gratis svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: girar 18s linear infinite;
}
.sello-gratis text {
  font: 800 15px var(--f-body);
  fill: currentColor;
}
.sello-centro {
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--fg);
  color: var(--bg);
  font: 800 0.8rem/1.05 var(--f-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.5);
}
.sello-centro b {
  display: block;
  font: italic 900 2.1rem/1 var(--f-display);
  letter-spacing: 0;
  text-transform: none;
}
@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 760px) {
  .sello-gratis {
    display: none;
  }
}

/* Banda "Prueba antes de pagar" en el inicio */
.gratis-banda {
  padding-block: clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.gratis-banda-in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .gratis-banda-in {
    grid-template-columns: minmax(0, 1fr);
  }
}
.gratis-banda-num {
  font: italic 900 clamp(5rem, 14vw, 10rem)/0.85 var(--f-display);
  color: transparent;
  letter-spacing: -0.02em;
  white-space: nowrap;
  -webkit-text-stroke: 2px var(--fg);
}
@supports not (-webkit-text-stroke: 1px #000) {
  .gratis-banda-num {
    color: var(--fg);
  }
}
.gratis-banda-txt p:not(.eyebrow) {
  color: var(--fg-2);
  margin-top: 0.9rem;
  max-width: 34rem;
}
.gratis-chips {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.gratis-chips li {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 99px;
  border: 1.5px solid var(--fg);
}

/* Tarjeta de sede */
.sede-gratis {
  align-self: flex-start;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 99px;
  background: #fff;
  color: #0a0a0a;
}

/* Aviso en Planes e Inscripción */
.aviso-gratis {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  padding: 1rem 1.2rem;
  margin-bottom: 1.8rem;
  border: 2px solid var(--fg);
  border-radius: var(--r);
  color: var(--fg);
  text-decoration: none;
  max-width: 820px;
  transition:
    background-color 0.2s,
    color 0.2s;
  border-color: var(--amarillo);
}
.aviso-gratis:hover {
  color: var(--bg);
  background: var(--amarillo);
}
.aviso-gratis > span:nth-child(2) {
  flex: 1 1 240px;
  min-width: 0;
}
.aviso-gratis-pill {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 99px;
  background: var(--fg);
  color: var(--bg);
}
.aviso-gratis:hover .aviso-gratis-pill {
  background: var(--on-amarillo);
  color: var(--amarillo);
}
.aviso-gratis-cta {
  font-weight: 800;
  white-space: nowrap;
}
.aviso-gratis-sm {
  padding: 0.8rem 1rem;
  font-size: 0.93rem;
  margin-bottom: 1.4rem;
}

/* CTA final */
.cta-eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.75;
}
.cta-botones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
}
.cta-link {
  color: inherit;
  font-weight: 700;
}

/* Página de reserva */
.gratis-head h1 {
  font-size: clamp(3rem, 9.5vw, 6.6rem);
}
.gratis {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 900px) {
  .gratis {
    grid-template-columns: minmax(0, 1fr);
  }
  .gratis-info {
    order: 0;
  }
}
.gratis-info {
  display: grid;
  position: sticky;
  gap: 1.2rem;
  top: calc(var(--header-h) + 56px);
}
@media (max-width: 900px) {
  .gratis-info {
    position: static;
  }
}
.gratis-info h2 {
  font-size: 1.7rem;
}
.gratis-info h3 {
  font-size: 1.2rem;
}
.gratis-precio {
  display: grid;
  justify-items: start;
  padding: 1.3rem 1.4rem;
  border-radius: var(--r);
  background: var(--fg);
  color: var(--bg);
}
.gratis-precio strong {
  font: italic 900 4.6rem/0.9 var(--f-display);
}
.gratis-precio span {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Fechas */
.fechas {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
}
.fecha-op {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  padding: 0.9rem 0.6rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  cursor: pointer;
  text-align: center;
  transition:
    border-color 0.15s,
    background-color 0.15s,
    color 0.15s;
}
.fecha-op:hover {
  border-color: var(--amarillo);
}
.fecha-op input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.fecha-op:has(input:checked) {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.fecha-op:has(input:focus-visible) {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}
.fecha-dia {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fecha-num {
  font: 900 2.4rem/1 var(--f-display);
  font-variant-numeric: tabular-nums;
}
.fecha-mes {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}
.fecha-hora {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.fecha-tipo {
  font-size: 0.8rem;
  opacity: 0.7;
}
.fechas .vacio {
  grid-column: 1 / -1;
}

/* Confirmación */
.gratis-ok {
  display: grid;
  gap: 1.1rem;
}
.gratis-sello {
  justify-self: start;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 99px;
  background: var(--fg);
  color: var(--bg);
}
.gratis-ok h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}
.gratis-ticket {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1.5px dashed var(--fg);
  border-radius: var(--r);
  overflow: hidden;
}
.gratis-ticket div {
  padding: 0.9rem 1.1rem;
  display: grid;
  gap: 0.15rem;
  border-bottom: 1px dashed var(--line);
}
.gratis-ticket div:nth-child(odd) {
  border-right: 1px dashed var(--line);
}
.gratis-ticket div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.gratis-ticket dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.gratis-ticket dd {
  margin: 0;
  font-weight: 700;
  font-size: 1.02rem;
}
.gratis-ticket dd small {
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--muted);
}
@media (max-width: 460px) {
  .gratis-ticket {
    grid-template-columns: minmax(0, 1fr);
  }
  .gratis-ticket div:nth-child(odd) {
    border-right: 0;
  }
  .gratis-ticket div:nth-last-child(2) {
    border-bottom: 1px dashed var(--line);
  }
}
.gratis-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.gratis-llevar {
  padding: 1rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.6rem;
}
.gratis-llevar h3 {
  font-size: 1.1rem;
}

@media (prefers-reduced-motion: reduce) {
  .sello-gratis svg,
  .btn-gratis::after {
    animation: none;
  }
}

/* =========================================================
   AMARILLO NIVEL — color de acción
   Botones, selección, etiquetas y clase gratis. La base sigue en B/N.
   --amarillo-txt es la versión para textos: más oscura sobre fondo claro.
   ========================================================= */
:root[data-theme="light"] .section-alt,
:root[data-theme="light"] .claro,
.banda {
  --amarillo-txt: #f6b800;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .section-alt,
  :root:not([data-theme="dark"]) .claro {
    --amarillo-txt: #f6b800;
  }
}

/* Botones */
.btn:where(:not(.btn-ghost, .btn-wsp, .btn-yape)) {
  background: var(--amarillo);
  color: var(--on-amarillo);
}
.btn:where(:not(.btn-ghost, .btn-wsp, .btn-yape)):hover {
  background: var(--amarillo-2);
  box-shadow: 0 12px 30px -12px rgba(246, 184, 0, 0.75);
  opacity: 1;
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--amarillo);
}
.btn-gratis::after {
  border-color: var(--amarillo);
}
:focus-visible,
.op-card:has(input:focus-visible),
.op-fila:has(input:focus-visible),
.fecha-op:has(input:focus-visible) {
  outline-color: var(--amarillo);
}

/* Navegación y barras */
.nav a:not(.btn)::after,
.nav a[aria-current="page"]::after {
  background: var(--amarillo) !important;
}
.carga,
.progreso span {
  background: var(--amarillo);
}
.balon {
  background: conic-gradient(var(--amarillo) var(--p, 0%), var(--line) 0);
}
.cinta-gratis {
  background: var(--amarillo);
}

/* Textos de acento */
.eyebrow,
.link-flecha,
.plan-precio > span,
.pasos-lista li::before,
.hero-datos strong {
  color: var(--amarillo-txt);
}
.check-list svg,
.tabla .si,
.horarios svg,
.sede-ref svg,
.footer-contacto svg {
  color: var(--amarillo-txt);
}
.faq-mas::before,
.faq-mas::after {
  background: var(--amarillo);
}
.footer ul a:hover,
.redes a:hover {
  color: var(--amarillo-txt);
  border-color: var(--amarillo);
}

/* Etiquetas */
.sede-badge,
.plan-chip,
.mini-badge,
.gratis-sello,
.aviso-gratis-pill,
.sede-gratis,
.aviso-tag {
  background: var(--amarillo);
  color: var(--on-amarillo);
}
.aviso-gratis:hover {
  color: var(--on-amarillo);
}
.gratis-chips li {
  border-color: var(--amarillo);
}

/* Planes y sedes */
.plan-dest {
  border-color: var(--amarillo);
  background: linear-gradient(180deg, var(--amarillo-tint), var(--surface) 45%);
}
.plan-ahorro {
  background: var(--amarillo-tint);
}
.sede:hover {
  border-color: var(--amarillo);
}
.sede-precio b {
  color: var(--amarillo);
}
.chip[aria-pressed="true"] {
  color: var(--on-amarillo);
}
.chip[aria-pressed="true"] span {
  color: var(--on-amarillo);
}

/* Formularios y selección */
input:focus,
select:focus,
textarea:focus {
  border-color: var(--amarillo);
  box-shadow: 0 0 0 3px rgba(246, 184, 0, 0.28);
}
.op-card:has(input:checked),
.op-fila:has(input:checked) > span {
  border-color: var(--amarillo);
  background: var(--amarillo-tint);
}
.op-card:has(input:checked)::after {
  background-color: var(--amarillo);
}
.op-fila:has(input:checked) svg {
  color: var(--amarillo-txt);
}
.fecha-op:has(input:checked) {
  background: var(--amarillo);
  color: var(--on-amarillo);
  border-color: var(--amarillo);
}
.stepper li.activo .num {
  border-color: var(--amarillo);
  color: var(--on-amarillo);
}
.stepper li.hecho .num {
  border-color: var(--amarillo);
  color: var(--amarillo-txt);
}
.conf .conf-total dd,
.res-total strong,
.pago-monto strong {
  color: var(--amarillo-txt);
}

/* Clase gratis */
.sello-centro {
  background: var(--amarillo);
  color: var(--on-amarillo);
}
.gratis-precio {
  background: var(--amarillo);
  color: var(--on-amarillo);
}
.gratis-banda-num {
  color: var(--amarillo);
}

/* CTA final en amarillo */
.cta-final {
  background: var(--amarillo);
  color: var(--on-amarillo);
}
.cta-final .btn {
  background: var(--on-amarillo);
  color: var(--amarillo);
}
.cta-final .btn-gratis::after,
.cta-final .btn::after {
  border-color: var(--on-amarillo);
}
.hero-datos strong {
  color: var(--fg);
}
.hero-datos div {
  border-left: 3px solid var(--amarillo);
  padding-left: 0.8rem;
}

/* =========================================================
   CLASE GRATIS · flujo en 3 pasos
   ========================================================= */
.gratis {
  grid-template-columns: minmax(0, 1fr) 300px;
}
@media (max-width: 900px) {
  .gratis {
    grid-template-columns: minmax(0, 1fr);
  }
  .gratis-info .gratis-precio {
    display: none;
  }
}
.g-flujo {
  display: grid;
  gap: 1.2rem;
  min-width: 0;
}
.g-paso h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  outline: none;
}

/* Pasos */
.g-stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}
.g-stepper li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--muted);
  min-width: 0;
}
.g-stepper .num {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  font: 800 0.95rem var(--f-display);
}
.g-stepper .txt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.g-stepper li.activo {
  color: var(--fg);
  border-color: var(--amarillo);
  box-shadow: inset 0 -3px 0 var(--amarillo);
}
.g-stepper li.activo .num {
  background: var(--amarillo);
  border-color: var(--amarillo);
  color: var(--on-amarillo);
}
.g-stepper li.hecho {
  color: var(--fg-2);
  cursor: pointer;
}
.g-stepper li.hecho .num {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
  font-size: 0;
}
.g-stepper li.hecho .num::before {
  content: "✓";
  font: 800 0.9rem var(--f-body);
}

.g-volver {
  justify-self: start;
  background: none;
  border: 0;
  padding: 0.2rem 0;
  color: var(--muted);
  font: 700 0.9rem var(--f-body);
  cursor: pointer;
}
.g-volver:hover {
  color: var(--fg);
}

/* Paso 1: sedes */
.g-zonas {
  margin: 0;
}
.g-sedes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 0.6rem;
}
.g-sede {
  position: relative;
  display: grid;
  gap: 0.25rem;
  align-content: start;
  text-align: left;
  padding: 1rem 2.6rem 1rem 1.1rem;
  min-height: 112px;
  background: var(--bg);
  color: var(--fg);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  font: inherit;
  transition:
    border-color 0.15s,
    background-color 0.15s,
    transform 0.15s;
  cursor: pointer;
}
.g-sede:hover {
  border-color: var(--amarillo);
  transform: translateY(-2px);
}
.g-sede.elegida {
  border-color: var(--amarillo);
  background: var(--amarillo-tint);
}
.g-sede .mini-badge {
  justify-self: start;
  margin-bottom: 0.2rem;
}
.g-sede-nombre {
  font: 800 1.35rem/1.1 var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.g-sede-lugar {
  font-size: 0.86rem;
  color: var(--fg-2);
  line-height: 1.35;
}
.g-sede-hora {
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 0.2rem;
}
.g-sede-hora svg {
  margin-top: 0.15em;
}
.g-sede-ir {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  transition: background-color 0.15s;
}
.g-sede:hover .g-sede-ir,
.g-sede.elegida .g-sede-ir {
  background: var(--amarillo);
  color: var(--on-amarillo);
}

/* Paso 2: turno y días */
.g-turnos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 0.5rem;
}
.g-turnos-t {
  grid-column: 1 / -1;
  font-weight: 700;
  font-size: 0.92rem;
}
.g-turno {
  display: grid;
  gap: 0.15rem;
  text-align: left;
  padding: 0.85rem 1rem;
  background: var(--bg);
  color: var(--fg);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font: inherit;
  cursor: pointer;
}
.g-turno span {
  font-size: 0.88rem;
  color: var(--fg-2);
}
.g-turno[aria-pressed="true"] {
  border-color: var(--amarillo);
  background: var(--amarillo-tint);
}
button.fecha-op {
  font: inherit;
  color: var(--fg);
}
.fecha-op .fecha-dia {
  text-transform: capitalize;
  letter-spacing: 0.02em;
  font-size: 0.8rem;
}
.fecha-op.elegida {
  background: var(--amarillo);
  color: var(--on-amarillo);
  border-color: var(--amarillo);
}

/* Paso 3: datos */
.nacimiento {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(70px, 0.9fr) minmax(0, 1.6fr) minmax(88px, 1.1fr);
}
.nacimiento select {
  width: 100%;
  min-width: 0;
}
.g-nivel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.g-nivel label {
  position: relative;
  cursor: pointer;
}
.g-nivel input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.g-nivel span {
  display: block;
  padding: 0.6rem 1rem;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--bg);
  transition:
    border-color 0.15s,
    background-color 0.15s;
}
.g-nivel label:hover span {
  border-color: var(--muted);
}
.g-nivel input:checked + span {
  background: var(--amarillo);
  border-color: var(--amarillo);
  color: var(--on-amarillo);
}
.g-nivel input:focus-visible + span {
  outline: 3px solid var(--amarillo);
  outline-offset: 2px;
}

/* Resumen lateral */
.g-resumen {
  padding: 1.1rem 1.2rem;
  border: 1.5px dashed var(--line);
  border-radius: var(--r);
  background: var(--surface);
  display: grid;
  gap: 0.7rem;
}
.g-resumen h3 {
  font-size: 1.15rem;
}
.g-resumen dl {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.g-resumen dl div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 0.6rem;
  align-items: baseline;
}
.g-resumen dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.g-resumen dd {
  margin: 0;
  font-weight: 700;
  color: var(--muted);
}
.g-resumen dd small {
  display: block;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--muted);
}
.g-resumen .listo dd {
  color: var(--fg);
}
.g-resumen .listo dt::before {
  content: "✓ ";
  color: var(--amarillo-txt);
}
@media (max-width: 900px) {
  .g-resumen {
    display: none;
  }
}
.nacimiento select {
  padding-inline: 0.7rem 1.6rem;
}
@media (max-width: 480px) {
  .g-stepper li {
    padding: 0.6rem;
    gap: 0.4rem;
    font-size: 0.85rem;
  }
  .nacimiento {
    gap: 0.4rem;
  }
  .nacimiento select {
    padding-inline: 0.55rem 1.3rem;
    font-size: 0.95rem;
  }
}

/* =========================================================
   BUSCADOR DE SEDES
   ========================================================= */
.buscar-full {
  max-width: none;
  width: 100%;
}
.buscar input {
  padding-right: 2.8rem;
  font-size: 1.02rem;
}
.buscar input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.buscar-x {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--surface-2);
  color: var(--fg);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: none;
  place-items: center;
}
.buscar.con-texto .buscar-x {
  display: grid;
}
.buscar-x:hover {
  background: var(--amarillo);
  color: var(--on-amarillo);
}
.buscar input:focus + .buscar-x,
.buscar:focus-within svg {
  color: var(--fg);
}
.g-conteo {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  min-height: 0;
  margin: -0.4rem 0 0;
}
.g-conteo:empty {
  display: none;
}
.tag-cerca {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  justify-self: start;
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.55rem;
  border-radius: 99px;
  background: var(--amarillo);
  color: var(--on-amarillo);
}
.tag-cerca svg {
  width: 0.9em;
  height: 0.9em;
  color: inherit !important;
  margin: 0 !important;
}
.sede .tag-cerca {
  margin: 0.2rem 0 0.1rem;
}
.op-card .tag-cerca {
  margin: 0.15rem 0;
}
.sin-resultados {
  color: var(--fg-2);
  padding: 2rem 1.2rem;
  border: 1.5px dashed var(--line);
  border-radius: var(--r);
}
.sin-resultados a {
  color: var(--fg);
  font-weight: 700;
}
#opSedes + .error,
.buscar + #opSedes {
  margin-top: 0.2rem;
}

/* =========================================================
   UBICACIÓN EN GOOGLE MAPS
   ========================================================= */
.link-maps {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-self: start;
  align-self: flex-start;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--fg);
  padding: 0.4rem 0.75rem;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.link-maps svg {
  width: 1em;
  height: 1em;
  color: var(--amarillo-txt);
  margin: 0 !important;
}
.link-maps:hover {
  background: var(--amarillo);
  border-color: var(--amarillo);
  color: var(--on-amarillo);
}
.link-maps:hover svg {
  color: var(--on-amarillo);
}
.link-maps-grande {
  font-size: 0.95rem;
  padding: 0.65rem 1rem;
  border-color: var(--amarillo);
}
.link-maps-inline {
  padding: 0.15rem 0.55rem;
  font-size: 0.8rem;
  margin-left: 0.25rem;
  vertical-align: middle;
}

/* Tarjetas de la página Sedes: botón que cubre la tarjeta + enlace a Maps encima */
.sede {
  position: relative;
}
.sede-abrir {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: inherit;
  cursor: pointer;
}
.sede:has(.sede-abrir:focus-visible) {
  outline: 3px solid var(--amarillo);
  outline-offset: 3px;
}
.sede-abrir:focus-visible {
  outline: none;
}
.sede .sede-badge {
  z-index: 2;
}
.sede-maps {
  margin-top: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f5f5f5;
}
.sede-maps svg {
  color: var(--amarillo);
}

/* Tarjetas de la clase gratis */
.g-sede-btn {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: inherit;
  cursor: pointer;
}
.g-sede:has(.g-sede-btn:focus-visible) {
  outline: 3px solid var(--amarillo);
  outline-offset: 2px;
}
.g-sede-btn:focus-visible {
  outline: none;
}
.g-sede-maps {
  margin-top: 0.45rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
}
.g-sede .mini-badge,
.g-sede .tag-cerca {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* Inscripción y tabla de precios */
.op-maps {
  margin-top: 0.35rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
}
.tabla-mapa {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  white-space: normal;
}
.tabla-mapa svg {
  color: var(--amarillo-txt);
  flex: none;
}
.tabla-mapa:hover {
  color: var(--fg) !important;
}
.g-resumen dd .link-maps {
  margin: 0.4rem 0 0;
}
.conf dd .link-maps {
  margin: 0.3rem 0 0;
}

/* Precios: regular vs promocional, con nombre (como en el Excel) */
.plan-regular {
  margin-top: -0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.tabla-precios thead tr:first-child th {
  border-bottom: 0;
}
.tabla-precios .th-plan {
  text-align: center;
}
.tabla-precios .th-tipo {
  font: 700 0.8rem var(--f-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-block: 0.45rem 0.7rem;
}
.tabla-precios .th-tipo.col-vigente {
  color: var(--amarillo-txt);
}
.tabla-precios td.col-otra {
  color: var(--muted);
  font-weight: 500;
}
.tabla-precios td.col-vigente {
  font: 800 1.15rem var(--f-display);
  background: var(--amarillo-tint);
}
.sede-precios .sp-cab {
  border: 0;
  background: none;
  padding: 0 1rem;
}
.sede-precios .sp-cab span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.sede-precios div {
  display: grid !important;
  align-items: center;
}
.sede-precios div > :nth-child(n + 2) {
  text-align: right;
}
.sede-precios span small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}
.sede-precios b {
  font: 600 1rem var(--f-display);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sede-precios b.vigente {
  font: 900 1.45rem var(--f-display);
  color: var(--fg);
}
.op-regular {
  font-size: 0.8rem;
}
.conf-nota {
  display: block;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Inscripción · sede elegida: lista recogida y horarios a la vista */
#form2.con-sede .buscar,
#form2.con-sede #opSedes {
  display: none;
}
.sede-elegida {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 2px solid var(--amarillo);
  border-radius: var(--r);
  background: var(--amarillo-tint);
}
.sede-elegida[hidden] {
  display: none;
}
.se-check {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--amarillo);
  color: var(--on-amarillo);
  font-size: 1.1rem;
}
.se-info {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}
.se-info b {
  font: 800 1.25rem/1.1 var(--f-display);
  text-transform: uppercase;
}
.se-info span {
  font-size: 0.9rem;
  color: var(--fg-2);
}
.se-info .link-maps {
  justify-self: start;
  margin: 0.25rem 0 0;
}
.se-cambiar {
  flex: none;
  align-self: flex-start;
}
@media (max-width: 480px) {
  .sede-elegida {
    flex-wrap: wrap;
  }
  .se-cambiar {
    order: 3;
    padding-left: 0;
  }
}
.campo-horario[hidden] {
  display: none;
}
.op-turno > span {
  cursor: pointer;
}
.op-turno:hover > span {
  border-color: var(--amarillo);
}

.op-fila .turno-txt {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}
.op-fila .turno-txt > span {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 500;
}
@media (max-width: 520px) {
  .sede-elegida {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
  }
  .se-cambiar {
    grid-column: 2;
    justify-self: start;
    padding: 0.2rem 0 0;
  }
}

/* =========================================================
   PÁGINAS DE SEDE (SEO local)
   ========================================================= */
.sl-head .hero-cta {
  margin-top: 1.6rem;
}
.sl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  align-items: start;
}
.sl-bloque {
  display: grid;
  gap: 0.9rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.sl-bloque h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
}
.sl-bloque .eyebrow {
  margin-bottom: -0.4rem;
}
.sl-lugar {
  font-size: 1.05rem;
  color: var(--fg-2);
  line-height: 1.5;
}
.sl-lugar strong {
  color: var(--fg);
}
.sl-bloque .horarios li em {
  margin-left: auto;
}
.sl-precios {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.sl-precios th,
.sl-precios td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
.sl-precios th:first-child {
  text-align: left;
}
.sl-precios thead th {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.sl-precios tbody th small {
  display: block;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--muted);
}
.sl-precios td {
  color: var(--muted);
}
.sl-precios td.col-vigente {
  font: 900 1.35rem var(--f-display);
  color: var(--fg);
  background: var(--amarillo-tint);
}
.sl-distritos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 10px;
}
.sl-distritos a {
  display: grid;
  gap: 0.2rem;
  height: 100%;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.sl-distritos a:hover {
  border-color: var(--amarillo);
  transform: translateY(-2px);
}
.sl-distritos b {
  font-size: 0.98rem;
}
.sl-distritos span {
  font-size: 0.85rem;
  color: var(--muted);
}
.sede-pagina {
  font-size: 0.92rem;
  justify-self: start;
}
.sl-head h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.4rem);
  max-width: 18ch;
}

/* =========================================================
   FOTOS: TARJETAS DE SEDE, GALERÍA Y VISOR
   ========================================================= */
.sede-foto {
  display: block;
  position: relative;
  margin: -1.4rem -1.3rem 0.8rem;
  aspect-ratio: 20 / 9;
  overflow: hidden;
  background: #111111;
}
.sede-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.sede-foto::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, var(--card));
}
.sede:hover .sede-foto img {
  transform: scale(1.05);
}
.sede-foto-vacia {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 26px, transparent 26px 52px),
    linear-gradient(160deg, #1f1f1f, #0d0d0d);
}
.sede-foto-vacia img {
  width: 56px;
  height: 56px;
  opacity: 0.3;
}
.sede-foto-vacia::after {
  display: none;
}

/* Página de sede con foto de fondo */
.page-head.con-foto {
  isolation: isolate;
}
.page-head.con-foto .hero-bg img {
  object-position: center 35%;
}

/* Galería */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}
.galeria-item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
}
.galeria-item.vertical {
  aspect-ratio: 4 / 5;
}
.galeria-item.cuadrada {
  aspect-ratio: 1;
  max-width: 420px;
}
.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.galeria-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s;
}
.galeria-item:hover img {
  transform: scale(1.04);
}
.galeria-item:hover::after {
  background: rgba(0, 0, 0, 0.12);
}
.galeria-item:focus-visible {
  outline: 3px solid var(--amarillo);
  outline-offset: 3px;
}
.galeria-mosaico {
  grid-template-columns: 1.15fr 1fr 1fr;
}
.galeria-mosaico .vertical {
  grid-row: span 2;
  aspect-ratio: auto;
}
.galeria-mosaico .vertical img {
  position: absolute;
  inset: 0;
}
.galeria-accion {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.6rem;
}
.galeria-titulo {
  margin: 2.4rem 0 1rem;
}
@media (max-width: 760px) {
  .galeria-mosaico {
    grid-template-columns: 1fr 1fr;
  }
  .galeria-mosaico .vertical {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
  .galeria-accion {
    grid-template-columns: repeat(3, 72%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  .galeria-accion .galeria-item {
    scroll-snap-align: start;
  }
}

/* Visor de fotos */
.visor-caja {
  max-width: min(1200px, 100%);
  width: auto;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  justify-items: center;
}
.visor-caja .modal-x {
  position: absolute;
  top: -8px;
  right: -8px;
  margin: 0;
}
.visor-img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 110px);
  width: auto;
  height: auto;
  border-radius: 10px;
  background: #111111;
}
.visor-pie {
  margin: 0.7rem 0 0;
  max-width: 60ch;
  text-align: center;
  font-size: 0.88rem;
  color: #d9d9d9;
}
.visor-nav {
  position: absolute;
  top: calc(50% - 30px);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(10, 10, 10, 0.7);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s;
}
.visor-nav:hover {
  background: var(--amarillo);
  color: #0a0a0a;
}
.visor-nav svg {
  width: 20px;
  height: 20px;
}
.visor-ant {
  left: 10px;
}
.visor-ant svg {
  transform: rotate(180deg);
}
.visor-sig {
  right: 10px;
}

/* =========================================================
   PENSADO PARA ADULTOS: dudas, ayuda humana y barra en celular
   ========================================================= */
.dudas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}
.duda {
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amarillo);
  border-radius: var(--r);
  background: var(--surface);
}
.duda p {
  margin: 0;
  color: var(--fg-2);
  font-size: 1rem;
}
.duda .duda-q {
  margin-bottom: 0.45rem;
  color: var(--fg);
  font-weight: 800;
  font-size: 1.15rem;
}
.dudas-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.8rem;
}
.ayuda-wsp {
  margin: 0.4rem 0 1.2rem;
  padding: 0.8rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--fg-2);
}
.ayuda-wsp a {
  color: var(--fg);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--wsp);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.barra-movil {
  display: none;
}
@media (max-width: 700px) {
  .wsp-flotante,
  .balon {
    display: none !important;
  }
  .barra-movil:not([hidden]) {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .barra-movil .btn {
    flex: 1;
    min-height: 52px;
    font-size: 1rem;
  }
  .barra-movil .btn[hidden] {
    display: none;
  }
  .barra-wsp {
    background: var(--wsp);
    color: #ffffff;
    border-color: var(--wsp);
  }
  .barra-wsp svg {
    width: 1.3em;
    height: 1.3em;
  }
  body:has(.barra-movil:not([hidden])) {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
  body.sin-scroll .barra-movil,
  body:has(.cookies) .barra-movil {
    display: none;
  }
  .dudas-cta .btn {
    flex: 1 1 100%;
  }
}

/* Seis razones en 3 columnas (3 + 3) */
.pilares-6 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .pilares-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .pilares-6 {
    grid-template-columns: 1fr;
  }
}

/* Portada del inicio: foto más visible */
.hero > .hero-bg img,
.page-head.con-foto .hero-bg img {
  opacity: 0.75;
}
.hero > .hero-bg::after,
.page-head.con-foto .hero-bg::after {
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--bg) 92%, transparent) 0%,
      color-mix(in srgb, var(--bg) 72%, transparent) 38%,
      color-mix(in srgb, var(--bg) 25%, transparent) 70%,
      transparent
    ),
    linear-gradient(0deg, var(--bg), transparent 30%);
}
@media (max-width: 700px) {
  .hero > .hero-bg::after,
  .page-head.con-foto .hero-bg::after {
    background:
      linear-gradient(color-mix(in srgb, var(--bg) 55%, transparent), color-mix(in srgb, var(--bg) 70%, transparent)),
      linear-gradient(0deg, var(--bg), transparent 30%);
  }
}

/* =========================================================
   TIENDA
   ========================================================= */
.tienda {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}
.productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 16px;
}
.producto {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.producto-foto {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 26px, transparent 26px 52px),
    linear-gradient(160deg, #1f1f1f, #0d0d0d);
}
.producto-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.producto-foto img.sin-foto {
  width: 80px;
  height: 80px;
  opacity: 0.35;
}
.producto-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: #0a0a0a;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}
.producto.agotado .producto-foto {
  opacity: 0.5;
}
.producto-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  padding: 1rem 1.1rem 1.2rem;
}
.producto-info h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
}
.producto-info p {
  margin: 0;
  color: var(--fg-2);
  font-size: 0.95rem;
}
.producto-info .producto-precio {
  color: var(--fg);
  font-size: 1.35rem;
  font-weight: 800;
}
.producto-info .btn {
  margin-top: auto;
}
.btn.agregado {
  background: var(--wsp);
  border-color: var(--wsp);
  color: #ffffff;
}
.tallas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.talla input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.talla span {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.talla input:checked + span {
  border-color: var(--amarillo);
  background: var(--amarillo);
  color: #0a0a0a;
}
.talla input:focus-visible + span {
  outline: 3px solid var(--amarillo);
  outline-offset: 2px;
}
.carrito {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.carrito h2 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
}
.carrito-vacio {
  margin: 0;
  color: var(--fg-2);
}
.carrito-items {
  margin: 0;
  padding: 0;
  list-style: none;
}
.carrito-items li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 0.8rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.ci-nombre {
  grid-column: 1 / -1;
  font-weight: 600;
}
.ci-cant {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.ci-cant button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font-size: 1.2rem;
  cursor: pointer;
}
.ci-precio {
  align-self: center;
  font-weight: 700;
}
.carrito-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 1rem 0 1.2rem;
}
.carrito-total strong {
  font-size: 1.6rem;
  color: var(--amarillo-txt, var(--fg));
}
.carrito .campo {
  margin-bottom: 0.9rem;
}
@media (max-width: 900px) {
  .tienda {
    grid-template-columns: 1fr;
  }
  .carrito {
    position: static;
  }
}

/* Tienda con un solo producto: tarjeta grande en horizontal */
.producto:only-child {
  grid-column: 1 / -1;
}
@media (min-width: 640px) {
  .producto:only-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .producto:only-child .producto-info {
    justify-content: center;
    padding: 1.6rem;
  }
  .producto:only-child .producto-info h3 {
    font-size: 1.6rem;
  }
  .producto:only-child .producto-info .producto-precio {
    font-size: 2rem;
  }
  .producto:only-child .producto-info .btn {
    margin-top: 0.6rem;
  }
}
