/* ==========================================================================
   Clase Demo · E4CC
   Hoja única del formulario. Sin dependencias externas: fuentes del sistema
   e iconos SVG en línea.

   Ajustá SOLO las variables de :root para reajustar color, ritmo y radios.
   ========================================================================== */

:root {
  /* ── Marca E4CC ────────────────────────────────────────────────────── */
  /* El naranja #ff5110 es el color de acción dominante. El azul noche
       #1a1f36 sostiene texto y superficies oscuras. El azul #0460AC queda
       reservado a lo informativo.
       Los tres tonos de naranja son el MISMO matiz (hsl 16°, sat 100%) bajando
       luminosidad: 53% / 45% / 38%. Por eso el hover y el pressed se leen como
       el mismo color con más peso, y no como tres naranjas distintos. */
  --c-ink: #1a1f36; /* azul noche · texto y superficies oscuras */
  --c-ink-soft: #2a3054;
  --c-brand: #ff5110; /* naranja E4CC · acción, foco, paso activo */
  --c-brand-strong: #e63d00; /* hover */
  --c-brand-deep: #c23400; /* active/pressed y naranja legible en texto chico */
  --c-brand-tint: #ffece6;
  --c-accent: #f55145; /* coral · destaques suaves y acentos sobre oscuro */
  --c-accent-tint: #ffedeb;
  --c-info: #0460ac; /* azul institucional · avisos y enlaces */
  --c-info-tint: #e8f1f9;

  /* ── Semánticos ────────────────────────────────────────────────────── */
  /* Semáforo de cupo: verde / ámbar / rojo. NO son colores de marca:
       comunican disponibilidad y no deben teñirse de naranja. */
  --c-ok: #107a52; /* verde apenas más oscuro: 4.8:1 sobre su tinte */
  --c-ok-tint: #e7f6ef;
  --c-warn: #9a5b00;
  --c-warn-tint: #fff4e0;
  --c-danger: #c22b23;
  --c-danger-tint: #fdecea;

  /* ── Superficies y texto ───────────────────────────────────────────── */
  --c-canvas: #f4f5f8;
  --c-surface: #ffffff;
  --c-surface-alt: #f8f9fb;
  --c-text: #1a1f36;
  --c-text-soft: #565e7a;
  --c-text-faint: #6b7386;
  --c-border: #e4e6ed;
  --c-border-strong: #b9becd;

  /* ── Tipografía ────────────────────────────────────────────────────── */
  --font:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.3rem, 1.1rem + 1vw, 1.6rem);
  --fs-2xl: clamp(1.5rem, 1.2rem + 1.6vw, 1.95rem);
  --lh-tight: 1.2;
  --lh-base: 1.55;

  /* ── Espaciado (escala de 4) ───────────────────────────────────────── */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 56px;

  /* ── Formas ────────────────────────────────────────────────────────── */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(26, 31, 54, 0.06);
  --sh-md: 0 4px 14px rgba(26, 31, 54, 0.08);
  --sh-lg: 0 18px 44px rgba(26, 31, 54, 0.14);
  --sh-focus: 0 0 0 3px rgba(255, 81, 16, 0.4);

  --dur: 220ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ── Reset acotado ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body,
h1,
p,
dl,
dd,
dt,
figure,
ol,
ul,
fieldset,
legend {
  margin: 0;
  padding: 0;
}
ol,
ul {
  list-style: none;
}
fieldset {
  border: 0;
  min-width: 0;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  /* Banda superior en azul noche: el encabezado de marca va en texto blanco,
       así que el fondo debe mantenerse opaco hasta pasado el logo. */
  background:
    radial-gradient(
      1200px 620px at 50% -130px,
      var(--c-ink) 0%,
      var(--c-ink) 36%,
      rgba(26, 31, 54, 0.55) 56%,
      rgba(26, 31, 54, 0) 74%
    ),
    var(--c-canvas);
  background-repeat: no-repeat;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--s-4) var(--s-4) var(--s-8);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--s-2);
  background: var(--c-surface);
  color: var(--c-ink);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-sm);
  z-index: 20;
}
.skip-link:focus {
  left: var(--s-4);
}

.shell {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════════════
   Encabezado de marca
   ══════════════════════════════════════════════════════════════════════ */
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-1) var(--s-5);
  flex-wrap: wrap;
}

/* El logo es a color con fondo blanco, así que va dentro de un chip blanco:
   sobre el header azul noche, ese fondo se lee como parte del chip y no como un
   recuadro suelto. El chip también da contraste al "E4" azul oscuro del logo. */
.brand__chip {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border-radius: var(--r-md);
  padding: 7px 12px;
  box-shadow: 0 4px 14px rgba(7, 12, 26, 0.25);
  flex: none;
}
.brand__logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: 56vw;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px var(--s-3);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex: none;
}

/* "Clase Demo" con su badge de modalidad MONTADO en la esquina, estilo contador
   de notificación. El wrap es el ancla de posicionamiento. */
.brand__pillwrap {
  position: relative;
  display: inline-flex;
  flex: none;
}

/* Badge de modalidad: chiquito, superpuesto arriba-derecha del pill "Clase Demo".
   Online en amarillo, Presencial en celeste; el anillo (border) del color del
   header azul noche hace que se lea "montado". */
.pill-modo {
  position: absolute;
  top: -9px;
  right: -8px;
  z-index: 2;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 2px solid var(--c-ink);
  box-shadow: 0 2px 5px rgba(7, 12, 26, 0.4);
}
.pill-modo[data-modalidad="online"] {
  background: #fde68a;
  color: #7c4a03;
}
.pill-modo[data-modalidad="presencial"] {
  background: #bae6fd;
  color: #075985;
}

@media (max-width: 380px) {
  .brand__logo {
    height: 28px;
  }
  .brand__chip {
    padding: 6px 10px;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   Tarjeta
   ══════════════════════════════════════════════════════════════════════ */
.card {
  background: var(--c-surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: var(--s-5) var(--s-5) var(--s-6);
  overflow: hidden;
}

/* ── Progreso ──────────────────────────────────────────────────────────── */
.progress {
  margin-bottom: var(--s-6);
}
.progress__label {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: var(--c-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: var(--s-3);
}
.progress__title {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--c-text-soft);
  font-size: var(--fs-sm);
}

.progress__track {
  display: none;
}

.progress__bar {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--c-border);
  overflow: hidden;
}
.progress__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--c-brand-deep) 0%,
    var(--c-brand) 60%,
    var(--c-accent) 140%
  );
  transition: width var(--dur) var(--ease);
}

/* Escritorio: pasos con números y línea */
@media (min-width: 560px) {
  .progress__bar {
    display: none;
  }
  .progress__track {
    display: flex;
    align-items: flex-start;
    gap: var(--s-1);
  }
  .progress__step {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    color: var(--c-text-faint);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-align: center;
  }
  .progress__step::before {
    content: "";
    position: absolute;
    top: 13px;
    left: calc(-50% + 16px);
    width: calc(100% - 32px);
    height: 2px;
    background: var(--c-border);
    border-radius: 2px;
  }
  .progress__step:first-child::before {
    display: none;
  }
  .progress__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--c-surface);
    border: 2px solid var(--c-border);
    color: var(--c-text-faint);
    font-size: var(--fs-sm);
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition:
      background var(--dur) var(--ease),
      border-color var(--dur) var(--ease),
      color var(--dur) var(--ease);
  }
  /* El aro y el relleno llevan el naranja de marca; el texto usa el naranja
       profundo, que sí alcanza contraste a 12–13 px. */
  .progress__step.is-current {
    color: var(--c-brand-deep);
  }
  .progress__step.is-current .progress__num {
    border-color: var(--c-brand);
    color: var(--c-brand-deep);
    background: var(--c-brand-tint);
    box-shadow: 0 0 0 3px rgba(255, 81, 16, 0.16);
  }
  .progress__step.is-done {
    color: var(--c-text-soft);
  }
  .progress__step.is-done .progress__num {
    background: var(--c-brand);
    border-color: var(--c-brand);
    color: #ffffff;
    font-size: 0;
  }
  .progress__step.is-done .progress__num::after {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
  }
  .progress__step.is-done::before,
  .progress__step.is-current::before {
    background: var(--c-brand);
  }
}

/* ══════════════════════════════════════════════════════════════════════
   Pasos
   ══════════════════════════════════════════════════════════════════════ */
.step[hidden] {
  display: none;
}
.step {
  animation: stepIn var(--dur) var(--ease) both;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.step__title {
  font-size: var(--fs-2xl);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: var(--s-2);
  text-wrap: balance;
}
.step__lead {
  color: var(--c-text-soft);
  font-size: var(--fs-base);
  margin-bottom: var(--s-6);
}
.step__title--center,
.step__lead--center {
  text-align: center;
}

/* ── Campos ────────────────────────────────────────────────────────────── */
.field {
  margin-bottom: var(--s-5);
}
.field:last-child {
  margin-bottom: 0;
}

.field__label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 6px;
}
.field__input {
  width: 100%;
  padding: 14px var(--s-4);
  font-size: var(--fs-md);
  background: var(--c-surface-alt);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text);
  transition:
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field__input::placeholder {
  color: var(--c-text-faint);
}
.field__input:hover {
  border-color: var(--c-border-strong);
}
.field__input:focus {
  outline: none;
  background: var(--c-surface);
  border-color: var(--c-brand);
  box-shadow: 0 0 0 4px rgba(255, 81, 16, 0.16);
}
.field__input[aria-invalid="true"] {
  border-color: var(--c-danger);
  background: var(--c-danger-tint);
}
.field__input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(194, 43, 35, 0.14);
}

.field__selectwrap {
  position: relative;
}
.field__select {
  padding-right: var(--s-8);
  cursor: pointer;
}
.field__chevron {
  position: absolute;
  right: var(--s-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-text-soft);
  pointer-events: none;
}

.field__hint {
  font-size: var(--fs-sm);
  color: var(--c-text-faint);
  margin-top: 6px;
}
.field__error {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-danger);
  margin-top: 6px;
  display: none;
}
.field__error.is-visible {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.field__error.is-visible::before {
  content: "!";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--c-danger);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

/* Teléfono: prefijo pegado al input */
.phone {
  display: flex;
  align-items: stretch;
  background: var(--c-surface-alt);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease);
}
.phone:hover {
  border-color: var(--c-border-strong);
}
.phone:focus-within {
  background: var(--c-surface);
  border-color: var(--c-brand);
  box-shadow: 0 0 0 4px rgba(255, 81, 16, 0.16);
}
.phone--invalid {
  border-color: var(--c-danger);
  background: var(--c-danger-tint);
}
.phone__input {
  border: 0;
  background: transparent;
  border-radius: 0;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.phone__input:focus {
  box-shadow: none;
  background: transparent;
}

/* ── intl-tel-input: ajustes de marca ──────────────────────────────────────
   La librería trae su propio look genérico. Acá solo se corrigen las piezas
   que chocan con el diseño: el contenedor tiene que ocupar todo el ancho, y
   el selector de bandera tiene que leerse como parte del mismo campo, no
   como un control pegado encima. */
.phone .iti {
  display: block;
  width: 100%;
}
.phone .iti__flag-container {
  border-right: 1.5px solid var(--c-border);
}

.phone .iti--separate-dial-code .iti__selected-flag {
  background: transparent; /* el fondo lo pone .phone */
  padding: 0 var(--s-3) 0 var(--s-4);
  border-radius: var(--r-md) 0 0 var(--r-md);
}
.phone .iti--separate-dial-code .iti__selected-dial-code {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--c-text-soft);
}
.phone .iti__selected-flag:hover,
.phone .iti__selected-flag:focus {
  background: rgba(255, 81, 16, 0.06);
}

/* El foco del selector de país debe verse: por defecto la librería solo
   cambia el fondo, que sobre un campo claro casi no se nota. */
.phone .iti__selected-flag:focus-visible {
  outline: 3px solid var(--c-brand);
  outline-offset: -3px;
}

.phone .iti--separate-dial-code input.phone__input {
  padding-left: var(--s-3);
}

/* El país se elige en el campo #paisSel: dentro del input NO se muestra la
   banderita (se ve en el campo País), pero SÍ se mantiene el código de área
   (+503), que se autocompleta según el país elegido. */
.phone .iti__selected-flag .iti__flag {
  display: none;
}

/* ══════════════════════════════════════════════════════════════════════
   Campo País propio (botón con bandera + panel buscable)
   ══════════════════════════════════════════════════════════════════════ */
.paissel {
  position: relative;
}
.paissel__btn {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  padding-right: var(--s-8);
  text-align: left;
  cursor: pointer;
}
.paissel__btn:disabled {
  cursor: default;
  opacity: 0.7;
}
.paissel__btn[aria-expanded="true"] {
  background: var(--c-surface);
  border-color: var(--c-brand);
  box-shadow: 0 0 0 4px rgba(255, 81, 16, 0.16);
}
.paissel__flag {
  flex: none;
  display: inline-block;
}
.paissel__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.paissel .field__chevron {
  right: var(--s-4);
}

.paissel__panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: 0 18px 40px rgba(26, 31, 54, 0.18);
  overflow: hidden;
}
.paissel__panel[hidden] {
  display: none;
}
.paissel__search {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  font: inherit;
  /* 16px evita que iOS haga zoom al enfocar el campo en el teléfono. */
  font-size: 16px;
  color: var(--c-text);
  background: var(--c-surface-alt);
  border: 0;
  border-bottom: 1.5px solid var(--c-border);
  outline: none;
}
.paissel__search:focus {
  background: var(--c-surface);
  border-bottom-color: var(--c-brand);
}
.paissel__list {
  margin: 0;
  padding: 0;
  list-style: none;
  /* Alto relativo al viewport: en pantallas chicas no se sale de la pantalla y
     la lista scrollea por dentro (el buscador queda fijo arriba). */
  max-height: min(320px, 50vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.paissel__opt {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;          /* target táctil cómodo en móvil */
  padding: 11px 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 81, 16, 0.12);
}
.paissel__opt:hover,
.paissel__opt:focus,
.paissel__opt:active {
  background: var(--c-brand-tint);
}
.paissel__opt.cd-oculto {
  display: none;
}
.paissel__opt .iti__flag {
  flex: none;
  display: inline-block;
}
.paissel__optname {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Desplegable de países */
.iti__country-list {
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: 0 18px 40px rgba(26, 31, 54, 0.18);
  font-size: 15px;
  max-height: 280px;
}
.iti__country {
  padding: 10px 12px;
  color: var(--c-text);
}
.iti__country.iti__highlight {
  background: var(--c-brand-tint);
}
.iti__dial-code {
  color: var(--c-text-faint);
}
.iti__divider {
  border-bottom-color: var(--c-border);
}

/* Un país filtrado por el buscador. Con !important porque la librería fija el
   display inline en algunos temas. */
.iti__country.cd-oculto {
  display: none !important;
}

/* Buscador de países: fijo arriba del desplegable mientras la lista scrollea. */
.cd-country-search {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px;
  background: var(--c-surface);
  border-bottom: 1.5px solid var(--c-border);
}
.cd-country-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--c-text);
  background: var(--c-surface-alt);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  outline: none;
}
.cd-country-search input:focus {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(255, 81, 16, 0.16);
  background: var(--c-surface);
}

/* En pantallas chicas el desplegable nativo se sale del campo: se ancla al
   ancho del contenedor para que no desborde. */
@media (max-width: 480px) {
  .iti__country-list {
    width: 100%;
    white-space: normal;
  }
  .iti__country-name {
    display: inline-block;
    max-width: 60%;
  }
  /* Campo País en móvil: opciones y texto más grandes para el tacto y la
     lectura, y lista un poco más alta (la mayoría entra desde el teléfono). */
  .paissel__opt {
    padding: 13px 14px;
  }
  .paissel__name,
  .paissel__optname {
    font-size: 16px;
  }
  .paissel__list {
    max-height: min(340px, 55vh);
  }
}

/* ══════════════════════════════════════════════════════════════════════
   Opciones seleccionables
   Se construyen con <label> + <input type="radio"> real: el radio queda
   invisible pero enfocable, así el teclado y los lectores de pantalla
   funcionan sin JavaScript de por medio.
   ══════════════════════════════════════════════════════════════════════ */
.choice__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.option,
.day,
.slot {
  position: relative;
}

/* El anillo de foco es naranja de marca. En las tarjetas ya seleccionadas
   (que también son naranjas) se interpone un aro blanco para que el foco
   siga distinguiéndose del estado "elegido". */
.option.is-focus,
.day.is-focus,
.slot.is-focus {
  outline: 3px solid var(--c-brand);
  outline-offset: 3px;
}
/* Mayor especificidad que .is-selected para poder ganarle a su aro naranja. */
.option.is-selected.is-focus,
.day.is-selected.is-focus,
.slot.is-selected.is-focus {
  box-shadow: 0 0 0 3px var(--c-surface);
}

/* ── Sucursales ────────────────────────────────────────────────────────── */
.options {
  display: grid;
  gap: var(--s-3);
}

.option {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  width: 100%;
  text-align: left;
  padding: var(--s-4);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.option:hover {
  border-color: var(--c-border-strong);
  box-shadow: var(--sh-sm);
}
.option:active {
  transform: scale(0.995);
}
.option.is-selected {
  border-color: var(--c-brand);
  background: var(--c-brand-tint);
  box-shadow: 0 0 0 1.5px var(--c-brand);
}
.option__radio {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  /* El aro sin marcar necesita leerse como control, no como borde decorativo. */
  border: 2px solid var(--c-text-faint);
  display: grid;
  place-items: center;
  transition: border-color var(--dur) var(--ease);
}
.option.is-selected .option__radio {
  border-color: var(--c-brand);
}
.option__radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-brand);
  transform: scale(0);
  transition: transform var(--dur) var(--ease);
}
.option.is-selected .option__radio::after {
  transform: scale(1);
}
.option__body {
  display: block;
  min-width: 0;
}
.option__name {
  display: block;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.35;
}
.option__meta {
  display: block;
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  margin-top: 3px;
}

/* ══════════════════════════════════════════════════════════════════════
   Días y horarios
   ══════════════════════════════════════════════════════════════════════ */
.group {
  margin-bottom: var(--s-6);
}
.group:last-of-type {
  margin-bottom: 0;
}
.group[hidden] {
  display: none;
}
.group__legend {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-faint);
  margin-bottom: var(--s-3);
}
.group__legendday {
  text-transform: none;
  letter-spacing: 0;
  color: var(--c-brand-deep);
}

.days {
  display: flex;
  gap: var(--s-2);
  overflow-x: auto;
  padding-top: 10px;
  padding-bottom: var(--s-2);
  margin: 0 calc(var(--s-5) * -1);
  padding-left: var(--s-5);
  padding-right: var(--s-5);
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.day {
  flex: none;
  scroll-snap-align: start;
  width: 78px;
  padding: var(--s-3) var(--s-2);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: center;
  transition:
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.day:hover {
  border-color: var(--c-border-strong);
}
/* Seleccionado = naranja de marca, igual que sucursal y horario. Antes iba en
   azul noche (casi negro) y, entre opciones naranjas, el día elegido parecía
   "apagado/cancelado" en vez de activo. */
.day.is-selected {
  background: var(--c-brand-tint);
  border-color: var(--c-brand);
  box-shadow: 0 0 0 1.5px var(--c-brand);
  color: var(--c-ink);
}
.day__dow {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-faint);
}
.day.is-selected .day__dow {
  color: var(--c-brand-deep);
}
.day__num {
  display: block;
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
}
.day.is-selected .day__num {
  color: var(--c-ink);
}
.day__month {
  display: block;
  font-size: var(--fs-xs);
  color: var(--c-text-faint);
  text-transform: uppercase;
}
.day.is-selected .day__month {
  color: var(--c-brand-deep);
}

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: var(--s-3);
}
.slot {
  padding: var(--s-3) var(--s-3);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: left;
  transition:
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.slot:hover:not(.is-disabled) {
  border-color: var(--c-border-strong);
}
.slot.is-selected {
  border-color: var(--c-brand);
  background: var(--c-brand-tint);
  box-shadow: 0 0 0 1.5px var(--c-brand);
}
.slot__hora {
  display: block;
  font-weight: 700;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
}
.slot__cupo {
  display: inline-block;
  margin-top: 6px;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 2px var(--s-2);
  border-radius: var(--r-pill);
  background: var(--c-ok-tint);
  color: var(--c-ok);
}
.slot__cupo--pocos {
  background: var(--c-warn-tint);
  color: var(--c-warn);
}
.slot__cupo--lleno {
  background: var(--c-danger-tint);
  color: var(--c-danger);
}
.slot.is-disabled {
  cursor: not-allowed;
  background: var(--c-surface-alt);
  border-style: dashed;
  opacity: 0.78;
}
.slot.is-disabled .slot__hora {
  color: var(--c-text-faint);
  text-decoration: line-through;
}

/* Los slots y días son <label>: el contenido va apilado. */
.slot,
.day {
  display: block;
}

/* ── Estado vacío ──────────────────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: var(--s-7) var(--s-4);
  border: 1.5px dashed var(--c-border-strong);
  border-radius: var(--r-lg);
  background: var(--c-surface-alt);
  color: var(--c-text-soft);
}
.empty__title {
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: var(--s-1);
}
.empty__text {
  font-size: var(--fs-sm);
}

/* ── Esqueletos de carga ───────────────────────────────────────────────── */
.skeleton {
  display: grid;
  gap: var(--s-3);
}
.skeleton span {
  display: block;
  height: 72px;
  border-radius: var(--r-lg);
  background: linear-gradient(90deg, #e7e9ef 25%, #f5f6f9 50%, #e7e9ef 75%);
  background-size: 300% 100%;
  animation: shimmer 1.35s linear infinite;
}
.skeleton--days {
  display: flex;
  gap: var(--s-2);
}
.skeleton--days span {
  width: 78px;
  height: 82px;
  border-radius: var(--r-md);
}
@keyframes shimmer {
  from {
    background-position: 150% 0;
  }
  to {
    background-position: -150% 0;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   Confirmación
   ══════════════════════════════════════════════════════════════════════ */
.step--done {
  text-align: left;
}
.done__icon {
  display: grid;
  place-items: center;
  color: var(--c-ok);
  margin: var(--s-2) auto var(--s-5);
}
.done__circle {
  stroke-dasharray: 152;
  stroke-dashoffset: 152;
  animation: draw 0.5s var(--ease) forwards;
}
.done__check {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 0.35s var(--ease) 0.38s forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.resumen {
  margin-top: var(--s-6);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.resumen__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}
.resumen__row:last-child {
  border-bottom: 0;
}
.resumen__row:nth-child(odd) {
  background: var(--c-surface-alt);
}
.resumen dt {
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  flex: none;
}
.resumen dd {
  font-weight: 700;
  color: var(--c-ink);
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Bloque "Mi Clase Demo" — la página propia de la cita. Va antes del bloque de
   Zoom porque es la acción principal de esta pantalla: desde ahí el prospecto
   entra el día de la clase y toma su asistencia. */
.micita {
  margin-top: var(--s-5);
  text-align: center;
}
.micita[hidden] {
  display: none;
}
.micita__btn {
  width: 100%;
  justify-content: center;
}
.micita__hint {
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  margin-top: var(--s-2);
}

.zoom {
  margin-top: var(--s-5);
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: var(--c-ink);
  color: #ffffff;
}
.zoom[hidden] {
  display: none;
}
.zoom__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: var(--s-2);
}
.zoom__row {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.zoom__link {
  flex: 1 1 200px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--c-accent);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.zoom__link:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.zoom__hint {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.66);
  margin-top: var(--s-3);
}

/* Aviso informativo → azul institucional (el ámbar queda libre para el cupo). */
.nota {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  margin-top: var(--s-5);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--c-info-tint);
  color: var(--c-info);
  font-size: var(--fs-sm);
  font-weight: 600;
}
/* `display: flex` de arriba pisa el atributo `hidden` (que es display:none de
   baja especificidad del user-agent). Sin esta regla, .nota[hidden] igual se ve. */
.nota[hidden] {
  display: none;
}
.nota__icon {
  flex: none;
  margin-top: 1px;
}

/* ══════════════════════════════════════════════════════════════════════
   Alertas
   ══════════════════════════════════════════════════════════════════════ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--c-danger-tint);
  border: 1px solid rgba(194, 43, 35, 0.24);
  color: var(--c-danger);
}
.alert[hidden] {
  display: none;
}
.alert__icon {
  flex: none;
  margin-top: 2px;
}
.alert__body {
  min-width: 0;
}
.alert__text {
  font-size: var(--fs-sm);
  font-weight: 600;
}
.alert--info {
  background: var(--c-info-tint);
  border-color: rgba(4, 96, 172, 0.26);
  color: var(--c-info);
}
/* Mensaje de estudiante: más grande y visible, en la marca naranja. Es una
   decisión importante para la persona, no un aviso de paso. */
.alert--estudiante {
  background: linear-gradient(135deg, #fff4ef, var(--c-brand-tint));
  border: 1.5px solid rgba(255, 81, 16, 0.3);
  color: var(--c-ink);
  padding: var(--s-5);
  box-shadow: 0 10px 30px rgba(255, 81, 16, 0.16);
  animation: alertPop 0.45s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
.alert--estudiante .alert__icon {
  color: var(--c-brand);
}
.alert--estudiante .alert__text {
  font-size: var(--fs-base);
  line-height: 1.55;
}
.alert--estudiante .btn--ghost {
  margin-top: var(--s-3);
  background: var(--c-brand);
  color: #fff;
  border-color: var(--c-brand);
  font-weight: 800;
}
/* :not(:disabled) para ganarle en especificidad a `.btn--ghost:hover:not(:disabled)`,
   que si no pone el fondo casi blanco y deja el texto blanco ilegible. */
.alert--estudiante .btn--ghost:hover:not(:disabled) {
  background: var(--c-brand-strong);
  border-color: var(--c-brand-strong);
  color: #fff;
}
@keyframes alertPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.alert .btn--ghost {
  margin-top: var(--s-2);
}

/* ══════════════════════════════════════════════════════════════════════
   Botones y acciones
   ══════════════════════════════════════════════════════════════════════ */
.actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-7);
}
.actions[hidden] {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 14px var(--s-5);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  font-size: var(--fs-md);
  font-weight: 700;
  cursor: pointer;
  background: none;
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.btn--primary {
  flex: 1 1 auto;
  background: var(--c-brand);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(255, 81, 16, 0.28);
}
.btn--primary:hover:not(:disabled) {
  background: var(--c-brand-strong);
}
.btn--primary:active:not(:disabled) {
  background: var(--c-brand-deep);
}

.btn--back {
  flex: none;
  color: var(--c-text-soft);
  border-color: var(--c-border);
  padding-left: var(--s-4);
  padding-right: var(--s-4);
}
.btn--back:hover:not(:disabled) {
  border-color: var(--c-border-strong);
  color: var(--c-ink);
}
.btn--back[hidden] {
  display: none;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: currentColor;
  color: inherit;
  padding: 8px var(--s-3);
  font-size: var(--fs-sm);
}
.btn--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.22);
}
.btn--sm {
  padding: 6px var(--s-3);
  font-size: var(--fs-sm);
}
.btn--copy {
  flex: none;
}

.btn--block {
  width: 100%;
}

/* "Ver más días": va sobre la tarjeta blanca del wizard, no sobre fondo oscuro,
   así que no usa el ghost translúcido. */
.btn--more {
  margin-top: var(--s-3);
  padding: 11px var(--s-4);
  background: var(--c-surface-alt);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-info);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.btn--more:hover:not(:disabled) {
  border-color: var(--c-info);
  background: var(--c-info-tint);
}
.btn--more[hidden] {
  display: none;
}
.btn--more svg {
  transition: transform var(--dur) var(--ease);
}
.btn--more:hover:not(:disabled) svg {
  transform: translateY(2px);
}
.btn--copy.is-done {
  background: var(--c-ok);
  border-color: var(--c-ok);
  color: #fff;
}

/* Foco visible y consistente en todo lo interactivo */
:where(button, [href], input, select, .option, .day, .slot):focus-visible {
  outline: 3px solid var(--c-brand);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.field__input:focus-visible {
  outline: 3px solid var(--c-brand);
  outline-offset: 1px;
}
/* Sobre el azul noche el naranja pierde separación: ahí el foco va en coral. */
.zoom :where(button, [href]):focus-visible {
  outline-color: var(--c-accent);
}

/* Spinner del botón */
.btn__spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .btn__spinner {
  display: block;
}
.btn.is-loading .btn__arrow {
  display: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.status {
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--c-text-faint);
  text-align: center;
  min-height: 1.2em;
}

/* ── Honeypot: fuera de vista y del árbol accesible ────────────────────── */
.hp {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Pie ───────────────────────────────────────────────────────────────── */
.foot {
  text-align: center;
  margin-top: var(--s-5);
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
}

/* ── Modal "¿Eres tú?" ─────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: var(--s-4);
}
.modal[hidden] {
  display: none;
}
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 26, 0.62);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.modal__box {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--c-surface);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(7, 12, 26, 0.4);
  padding: var(--s-6) var(--s-5);
  text-align: center;
}
.modal__title {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--c-ink);
  letter-spacing: -0.01em;
  margin-bottom: var(--s-3);
}
.modal__text {
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  line-height: var(--lh-base);
}
.modal__nombre {
  margin: var(--s-3) 0;
  padding: var(--s-3) var(--s-4);
  background: var(--c-brand-tint);
  border: 1.5px solid var(--c-brand);
  border-radius: var(--r-md);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--c-ink);
  word-break: break-word;
}
.modal__actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.modal__hint {
  margin-top: var(--s-3);
  font-size: var(--fs-xs);
  color: var(--c-text-faint);
  min-height: 1em;
}

/* ══════════════════════════════════════════════════════════════════════
   Ajustes por tamaño
   ══════════════════════════════════════════════════════════════════════ */
@media (min-width: 560px) {
  body {
    padding: var(--s-7) var(--s-5) var(--s-9);
  }
  .card {
    padding: var(--s-7);
  }
  .days {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 380px) {
  .actions {
    flex-wrap: wrap;
  }
  .btn--back {
    width: 100%;
  }
  .btn--primary {
    width: 100%;
    flex: 1 1 100%;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   Preferencias del usuario
   ══════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .done__circle,
  .done__check {
    stroke-dashoffset: 0;
  }
}

@media (forced-colors: active) {
  .option.is-selected,
  .slot.is-selected,
  .day.is-selected {
    border: 3px solid Highlight;
  }
  .btn {
    border: 1px solid ButtonText;
  }
}
