/* ==========================================================================
   Tema In Motion 2026
   Capa de override sobre academy.css. No modifica nada del archivo base:
   si borras este archivo y su <link> en index.html, la app vuelve al estilo
   anterior tal cual estaba.
   ========================================================================== */

:root {
  --paper: #ffffff;
  --mist: #f6f7f9;
  --muted: #6b6e76;
  --line: #eeeff2;
  /* Un solo rojo desde el 16/09/2026: el acento de accion se alineo al rojo de
     marca. Las dos variables se conservan por si alguna vez vuelven a separarse. */
  --red: #e20c14;        /* acento de accion: botones, links, estado activo */
  --red-dark: #ab0a0f;
  --brand-red: #e20c14;  /* rojo de marca: logo y brochazos */
  --radius-lg: 22px;
  --radius-md: 18px;
  --shadow: 0 18px 44px rgba(16, 16, 20, 0.08);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

/* Acciones que aun no corresponden a esta sesion o a este pago. */
.button {
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.button:active:not(:disabled) {
  transform: scale(0.985);
}
.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

/* ---- Intro / bienvenida ----
   Ahora es el logo animado: el brochazo rojo se pinta solo y despues entra
   el wordmark. La animacion vive dentro de inmotion-logo-animado.svg, por eso
   aqui se apaga el orbit viejo y el fade del <img>, y se atrasa la salida de
   la cortina hasta que la animacion termina (~2.2s). */
.intro {
  background: #0b0b0c;
  animation-delay: 2.45s;
}
.intro-orbit { display: none; }
.intro-mark { width: min(86vw, 520px); }
.intro-mark .intro-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}
.intro > span { animation-delay: 1.95s; }

/* ---- Pantalla de acceso ---- */
.access-logo {
  width: auto;
  height: 62px;
  padding: 14px 20px;
  margin-bottom: 44px;
  border-radius: 16px;
  background: #0b0b0c;
  mix-blend-mode: normal;
}

/* ---- Panel de la pantalla de acceso ----
   Reemplaza el poster rosado (MOVE + aro) por la foto. El ::before de la base
   pasa a ser el degradado que hace legible el rotulo de la esquina. */
.access-poster { background: #0b0b0c; }
.access-photo {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.access-poster::before {
  z-index: 1;
  background: linear-gradient(to top, rgba(11, 11, 12, 0.75), transparent 34%);
}
.access-poster p { z-index: 2; }

/* Enlace a comparación de planes en pantalla de bienvenida */
.access-plan-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--red);
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.access-plan-link:hover { background: var(--red-dark); }
.access-plan-link:active { transform: scale(0.99); }

/* ---- Barra superior negra con el logo real ---- */
.topbar {
  min-height: 70px;
  border-bottom: 0;
  background: #0b0b0c;
  color: #fff;
  backdrop-filter: none;
}
.topbar-kicker { color: rgba(255, 255, 255, 0.55); }
.topbar-date { color: #fff; }
.topbar-logo { display: none; height: 34px; width: auto; }
.role-switcher select {
  background: #2a2a2e;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}
.profile-chip { background: #2a2a2e; color: #fff; }
.menu-button { background: transparent; border-color: rgba(255, 255, 255, 0.24); cursor: pointer; }
.menu-button span { background: #fff; }

/* ---- Inicio del alumno ----
   Fondo decorativo de ondas rojas (ondas-rojas.webp) sobre fondo negro,
   eliminación del aro ovalado tosco, saludo compacto que prioriza la acción
   principal y la próxima clase, y botón píldora unificado. */
.student-hero {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border-radius: var(--radius-lg);
  background-color: #0b0b0c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.22);
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(280px, 0.58fr);
}

.student-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3.8vw, 36px);
  min-height: 250px;
  background-color: #0b0b0c;
  background-image:
    linear-gradient(105deg, rgba(11, 11, 12, 0.97) 0%, rgba(11, 11, 12, 0.88) 45%, rgba(11, 11, 12, 0.45) 80%, rgba(11, 11, 12, 0.15) 100%),
    url('../ondas-rojas.webp');
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
}

.student-hero-copy::after {
  display: none !important;
}

.student-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.student-hero .eyebrow::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 8px var(--brand-red);
}

.student-hero .hero-title {
  max-width: 580px;
  margin: 0;
  font-size: clamp(1.85rem, 3.8vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.student-hero .hero-title span {
  color: var(--brand-red);
}

.student-hero .hero-foot {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.student-hero .hero-foot .button--red {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 0.94rem;
  background: var(--brand-red);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 1px 4px rgba(226, 12, 20, 0.2);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.student-hero .hero-foot .button--red:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(226, 12, 20, 0.3);
}

.student-hero .hero-foot p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  line-height: 1.45;
  max-width: 380px;
}

.next-class {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3.2vw, 32px);
  background: var(--brand-red);
  color: #ffffff;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.08);
}

.next-class::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  pointer-events: none;
}

.next-class-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 1;
}

.next-class-label span {
  color: #ffffff;
  opacity: 1;
}

.next-class time strong {
  font-size: clamp(3.2rem, 5vw, 4.4rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
  font-weight: 800;
  color: #ffffff;
}

.next-class time span {
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  opacity: 1;
}

.next-class h2 {
  margin: 0 0 4px;
  font-size: 1.4rem;
  line-height: 1.1;
  font-weight: 800;
  color: #ffffff;
}

.next-class p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
  opacity: 1;
}

/* Accesos rápidos de descubrimiento en el dashboard */
.journey-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 22px 0 36px;
}
.journey-actions > * {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.journey-actions > *:hover {
  border-color: var(--red);
  box-shadow: 0 8px 24px rgba(16, 16, 20, 0.08);
  transform: translateY(-1px);
}
.journey-actions strong, .journey-actions small { display: block; }
.journey-actions small { margin-top: 5px; color: var(--muted); line-height: 1.4; }
.journey-actions > * > span:last-child { margin-left: auto; }
.journey-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 42px;
  border-radius: 12px;
  background: #f6f7f9;
  color: var(--red);
  font-size: 26px;
}
.journey-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* Barra de progreso de asistencias del mes */
.attendance-progress {
  display: block;
  width: 100%;
  height: 8px;
  margin: 20px 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--mist);
  accent-color: var(--red);
}
.attendance-progress::-webkit-progress-bar { background: var(--mist); }
.attendance-progress::-webkit-progress-value { background: var(--red); border-radius: 20px; }
.attendance-progress::-moz-progress-bar { background: var(--red); }

/* Estado vacío en horarios */
.schedule-empty {
  padding: 40px 24px;
  border: 1px dashed #c7c9cf;
  border-radius: 20px;
  text-align: center;
}
.schedule-empty p { color: var(--muted); margin-bottom: 24px; }

/* ---- Buscador de alumnos ----
   La base apaga el outline del input; el anillo de foco se dibuja en el
   contenedor para que el teclado no quede sin indicador visible. */
.search-box:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(226, 12, 20, 0.2);
}

/* Inputs y controles de formulario */
.field input,
.field select,
.field textarea,
.search-box input,
.role-switcher select {
  font-size: 16px !important; /* Previene auto-zoom forzado en Safari iOS */
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(226, 12, 20, 0.15);
  background: #fff;
}

/* ---- Superficies ---- */
.class-card,
.surface-card,
.compact-card {
  border-radius: 20px;
  border-color: var(--line);
}
/* ---- Carné Permanente y Credencial Digital ---- */
.member-card-wrap {
  display: grid;
  grid-template-columns: minmax(340px, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.member-card {
  position: relative;
  min-height: auto;
  align-self: start;
  padding: 26px 28px;
  overflow: hidden;
  border-radius: 20px;
  background: #0d0e10;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.35);
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Ondas rojas discretas en sustitución del aro */
.member-card::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  right: 0;
  bottom: 0;
  border: none;
  border-radius: 0;
  transform: none;
  background-image:
    linear-gradient(to right, rgba(13, 14, 16, 0.85) 0%, rgba(13, 14, 16, 0.4) 60%, rgba(13, 14, 16, 0.18) 100%),
    url('../ondas-rojas.webp');
  background-repeat: no-repeat;
  background-position: right -15px bottom -20px;
  background-size: 260px auto;
  opacity: 0.36;
  pointer-events: none;
  z-index: 0;
}

.member-card-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.member-logo {
  width: auto;
  height: 24px;
  max-width: 125px;
  mix-blend-mode: normal;
  display: block;
}

.member-validity-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.member-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.member-card-identity {
  flex: 1;
  min-width: 0;
}

.member-card-label {
  margin: 0 0 6px 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.member-card h2,
.member-name {
  margin: 0 0 10px 0;
  color: #ffffff;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.member-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.member-id-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.member-id-label {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.member-id-number {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.member-level {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 500;
}

.member-validity {
  display: none;
}

/* Representación QR integrada dentro de la credencial */
.member-qr-block {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.member-qr-frame {
  background: #ffffff;
  padding: 9px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
}

.member-qr-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}

.member-qr-note {
  display: block;
  margin-top: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

/* Ficha informativa de uso del carné */
.member-info-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.member-info-card h2 {
  margin: 4px 0 10px;
  font-size: 1.25rem;
}

.member-info-badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.info-badge {
  background: #f8f9fa;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-badge-label {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.info-badge strong {
  font-size: 0.88rem;
  color: var(--ink);
}

/* ---- Estados ---- */
.status-pill { background: #f1f2f5; }
.status-pill.is-paid { background: #d8f3ea; color: #0e7c61; }
.status-pill.is-due { background: #fdebcb; color: #96620a; }
.status-pill.is-mora { background: #fee2e2; color: #b91c1c; }
.status-pill.is-undefined { background: #f1f2f5; color: #64748b; }

/* ---- Filtros ---- */
.filter-chip {
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-chip:hover:not(.is-active) {
  border-color: #c7c9cf;
  color: var(--ink);
}

/* ---- Tablas de datos ---- */
.table-wrap {
  border-color: var(--line);
  box-shadow: 0 4px 16px rgba(16, 16, 20, 0.03);
}
.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fbfbfc;
  border-bottom: 1px solid var(--line);
}
.data-table tbody tr {
  transition: background-color 0.15s ease;
}
.data-table tbody tr:hover td {
  background: rgba(246, 247, 249, 0.65);
}
.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.table-action:hover,
.table-action:focus-visible {
  border-color: var(--red);
  color: var(--red);
  background: rgba(226, 12, 20, 0.04);
}

/* ---- Modales y Diálogos ---- */
.modal {
  box-shadow: 0 24px 60px rgba(11, 11, 12, 0.28);
}
.modal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
}
.modal-header .icon-button {
  min-width: 42px;
  min-height: 42px;
  border-color: var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.modal-header .icon-button:hover,
.modal-header .icon-button:focus-visible {
  border-color: var(--red);
  color: var(--red);
  background: rgba(226, 12, 20, 0.05);
}

/* ---- Notificaciones Toast ---- */
.toast-region {
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  box-shadow: 0 14px 40px rgba(11, 11, 12, 0.22);
}

/* ---- Comparación de Planes (Desktop / General) ---- */
.plan-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 0 40px;
}
.plan-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 4.6vw, 4.8rem);
  letter-spacing: -.065em;
  line-height: 1.03;
}
.plan-hero h1 span { color: var(--red); }
.plan-hero p:not(.eyebrow) {
  max-width: 510px;
  color: var(--muted);
  line-height: 1.65;
  margin: 20px 0 0;
}
.plan-hero-fee-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 250px;
  padding: 16px 20px;
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.plan-hero-fee-box .fee-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
}
.plan-hero-fee-box span:not(.fee-title) {
  font-size: 0.92rem;
  color: #1a1a1e;
}
.plan-hero-fee-box small {
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ---- Comparador de Horarios y Pases (SelectorPlanes) ---- */
.schedule-comparator-section {
  margin-bottom: 40px;
}
.schedule-comparator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.schedule-poster-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 24px;
  box-shadow: var(--shadow);
}
.schedule-poster-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.schedule-poster-header h2 {
  font-size: 1.4rem;
  margin: 0 0 6px;
  letter-spacing: -.03em;
}
.schedule-poster-header p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}
.schedule-actions {
  display: flex;
  gap: 8px;
}
.schedule-poster-shell {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--mist);
  padding: 12px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03);
}
.schedule-poster-grid {
  min-width: 960px;
  display: grid;
  grid-template-columns: 125px repeat(6, minmax(130px, 1fr));
  gap: 8px;
}
.schedule-poster-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.schedule-col-header {
  position: relative;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 8px;
  background: #0b0b0c;
  color: #ffffff;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
}
.schedule-col-header.is-weekend {
  background: var(--red);
}
.schedule-col-header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #0b0b0c;
}
.schedule-col-header.is-weekend::after {
  border-top-color: var(--red);
}
.schedule-slots-list {
  display: grid;
  grid-template-rows: repeat(7, 82px);
  gap: 8px;
}
.schedule-cell {
  min-width: 0;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px dashed #d9dee7;
  padding: 4px;
}
.schedule-cell.is-time {
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.schedule-cell.has-class {
  align-items: stretch;
}
.schedule-class-card {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 6px 1fr;
  gap: 8px;
  align-items: center;
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--paper);
  color: #1a1a1e;
  box-shadow: 0 2px 8px rgba(16, 16, 20, 0.05);
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: transform .12s ease, border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.schedule-class-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(16, 16, 20, 0.1);
  border-color: #cbd0d8;
}
.schedule-class-card.is-selected {
  border-color: var(--red);
  background: #fff5f5;
  box-shadow: 0 4px 16px rgba(226, 12, 20, 0.16);
}
.schedule-track-dot {
  width: 6px;
  height: 100%;
  min-height: 32px;
  border-radius: 4px;
}
.schedule-class-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.schedule-class-title {
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1e;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.schedule-class-time {
  font-size: .68rem;
  color: var(--muted);
  font-weight: 500;
}
.schedule-class-card.is-selected .schedule-class-title {
  color: var(--red-dark);
}
.schedule-poster-footer {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.55;
}
.poster-footer-col strong {
  display: block;
  color: #1a1a1e;
  margin-bottom: 4px;
  font-size: .84rem;
}

/* ---- Panel de Recomendaciones de Pases ---- */
.schedule-summary-card {
  position: sticky;
  top: 86px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.schedule-summary-card h2 {
  font-size: 1.2rem;
  margin: 0;
  letter-spacing: -.03em;
}
.schedule-selection-summary {
  padding: 12px 14px;
  background: var(--mist);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  font-size: .8rem;
  line-height: 1.5;
}
.selection-count-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: #0b0b0c;
  color: #ffffff;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.selection-days {
  margin: 0 0 6px;
  color: #1a1a1e;
}
.selection-class-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  max-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .74rem;
  color: var(--muted);
}
.selection-class-list li {
  position: relative;
  padding-left: 12px;
}
.selection-class-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--red);
}
.selection-empty p,
.schedule-empty-rec p {
  margin: 4px 0 0;
  color: var(--muted);
}
.schedule-recommendations {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rec-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.rec-card.is-best {
  border: 2px solid var(--red);
  background: linear-gradient(180deg, #fffafa 0%, #ffffff 100%);
  box-shadow: 0 8px 24px rgba(226, 12, 20, 0.08);
}
.rec-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.rec-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.02em;
}
.badge--best {
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--red);
  color: #fff;
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
}
.rec-prices {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  margin: 8px 0;
  font-size: .8rem;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}
.price-row strong {
  color: #1a1a1e;
  font-size: .88rem;
}
.price-row.total-row {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}
.price-row.total-row span {
  font-weight: 700;
  color: #1a1a1e;
}
.price-row.total-row strong {
  font-size: 1.15rem;
  color: var(--red);
  letter-spacing: -.03em;
}
.rec-note {
  margin: 0 0 4px;
  font-size: .74rem;
  color: var(--muted);
  line-height: 1.45;
}
.rec-subnote {
  margin: 0;
  font-size: .68rem;
  color: #8c909a;
  line-height: 1.4;
}

/* Membresías regulares debajo del comparador */
.plan-overview-section {
  margin: 48px 0 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #dddfe4;
  border-radius: 20px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.plan-card:hover {
  border-color: #c0c2c8;
  box-shadow: 0 8px 24px rgba(16, 16, 20, 0.06);
  transform: translateY(-2px);
}
.plan-card.is-recommended {
  border: 2px solid var(--red);
  padding: 23px;
  box-shadow: 0 12px 35px rgba(226, 12, 20, 0.1);
}
.plan-card.is-recommended:hover {
  box-shadow: 0 16px 40px rgba(226, 12, 20, 0.18);
  transform: translateY(-2px);
}
.plan-card-label { align-self: flex-start; padding: 6px 9px; border-radius: 6px; background: var(--mist); font-size: .66rem; font-weight: 700; line-height: 1.4; }
.is-recommended .plan-card-label { background: var(--red); color: #fff; }
.plan-card h2 { margin: 24px 0 10px; font-size: 1.8rem; letter-spacing: -.045em; }
.plan-description { min-height: 44px; margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.plan-price { margin: 26px 0 6px; font-size: 2.6rem; font-weight: 700; letter-spacing: -.06em; }
.plan-price span { margin-left: 8px; font-size: .8rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.plan-unit { margin: 0; min-height: 34px; font-size: .75rem; line-height: 1.5; color: var(--muted); }
.plan-card ul { list-style: none; padding: 20px 0; margin: 18px 0 12px; border-top: 1px solid var(--line); font-size: .79rem; line-height: 1.55; }
.plan-card li { position: relative; padding-left: 20px; margin-bottom: 12px; }
.plan-card li::before { content: '✓'; position: absolute; left: 0; color: var(--red); }
.plan-card .button { margin-top: auto; padding-inline: 12px; font-size: .8rem; }
.plan-disclaimer { margin: 20px 0 32px; color: var(--muted); font-size: .75rem; line-height: 1.7; max-width: 760px; }
.plan-next { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid #dddfe4; border-bottom: 1px solid #dddfe4; padding: 28px 0; }
.plan-next h2 { margin: 0; font-size: 1.6rem; letter-spacing: -.04em; }
.plan-next p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.plan-faq { margin-top: 36px; }
.plan-faq > h2 { font-size: 1.2rem; }
.plan-faq details { border-bottom: 1px solid #dddfe4; }
.plan-faq summary { padding: 20px 0; cursor: pointer; font-weight: 500; }
.plan-faq details p { max-width: 720px; line-height: 1.7; color: var(--muted); padding-bottom: 12px; }
.plan-detail-list { padding-left: 20px; line-height: 1.8; }

/* ---- Rediseño de Hero Banners (Profesor y Administración) ----
   Profesor: Fondo decorativo de ondas rojas (ondas-rojas.webp) sobre fondo negro,
   eliminación de aros wireframe, saludo compacto de jerarquía equilibrada,
   espaciado y botones píldora unificados con el portal de alumno.
   Administración: Fondo de bailarines con gradiente oscuro y métricas operativas. */

.teacher-hero {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: clamp(24px, 3.8vw, 36px);
  border-radius: var(--radius-lg);
  background-color: #0b0b0c;
  background-image:
    linear-gradient(105deg, rgba(11, 11, 12, 0.97) 0%, rgba(11, 11, 12, 0.88) 45%, rgba(11, 11, 12, 0.45) 80%, rgba(11, 11, 12, 0.15) 100%),
    url('../ondas-rojas.webp');
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.22);
}

.teacher-hero::after,
.teacher-hero::before {
  display: none !important;
}

.teacher-hero > * {
  position: relative;
  z-index: 2;
}

.teacher-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.teacher-hero .eyebrow::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 8px var(--brand-red);
}

.teacher-hero h1 {
  max-width: 580px;
  margin: 0;
  font-size: clamp(1.85rem, 3.8vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.teacher-hero h1 span {
  color: var(--brand-red);
}

.teacher-hero-foot {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.teacher-hero-foot .button--red {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 0.94rem;
  background: var(--brand-red);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 1px 4px rgba(226, 12, 20, 0.2);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.teacher-hero-foot .button--red::after {
  content: '→';
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-block;
  transition: transform 0.15s ease;
}

.teacher-hero-foot .button--red:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(226, 12, 20, 0.3);
}

.teacher-hero-foot .button--red:hover::after {
  transform: translateX(3px);
}

.teacher-hero-foot p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  line-height: 1.45;
  max-width: 440px;
}

.admin-intro {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  padding: clamp(28px, 4.5vw, 44px);
  border-radius: var(--radius-lg);
  background-color: #0b0b0c;
  background-image:
    linear-gradient(105deg, rgba(11, 11, 12, 0.95) 0%, rgba(11, 11, 12, 0.86) 42%, rgba(11, 11, 12, 0.52) 74%, rgba(11, 11, 12, 0.25) 100%),
    url('../acceso-bailarines.webp');
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.4);
}

.admin-intro::after {
  display: none;
}

.admin-intro::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -30px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(226, 12, 20, 0.38) 0%, rgba(226, 12, 20, 0.12) 50%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.admin-intro > * {
  position: relative;
  z-index: 2;
}

.admin-intro .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.admin-intro .eyebrow::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 10px var(--brand-red);
}

.admin-intro h1 {
  max-width: 580px;
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.admin-intro-meta {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}

.admin-intro-meta div {
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.admin-intro-meta strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.admin-intro-meta span {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Acciones agrupadas en cabeceras de página ---- */
.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---- Barra de acciones de asistencia (Profesor) ---- */
.roster-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: var(--mist);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.roster-quick-actions {
  display: flex;
  gap: 8px;
}

/* ---- Pantallas medianas / tablets (1100px) ---- */
@media (max-width: 1100px) {
  .schedule-comparator-layout { grid-template-columns: 1fr; }
  .schedule-summary-card { position: static; }
  .plan-hero { flex-direction: column; align-items: flex-start; }
  .plan-hero-fee-box { align-self: stretch; }
  .plan-card { padding: 18px; }
  .plan-card.is-recommended { padding: 17px; }
  .plan-price { font-size: 2.1rem; }
}

/* ---- Pantallas móviles y tablets compactas (<= 780px) ---- */
@media (max-width: 780px) {
  /* 1. Barra superior móvil y navegación inferior */
  .topbar { min-height: 62px; gap: 10px; padding-inline: 14px; }
  .topbar > div:not(.topbar-actions) { display: none; }
  .topbar-logo { display: block; margin-right: auto; height: 30px; }
  .topbar-actions { gap: 8px; }
  .menu-button {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0 9px;
    border-radius: 12px;
  }
  .role-switcher select {
    min-height: 36px;
    max-width: 118px;
    padding: 0 24px 0 10px;
    font-size: 0.64rem;
    text-overflow: ellipsis;
  }
  .profile-chip { width: 36px; height: 36px; }

  .bottom-nav {
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 76px;
    padding: 6px 6px 14px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 -8px 30px rgba(16, 16, 20, 0.06);
    backdrop-filter: none;
  }
  .bottom-nav .nav-item { position: relative; color: var(--muted); }
  .bottom-nav .nav-item.is-active {
    background: transparent;
    color: var(--red);
    font-weight: 700;
  }
  .bottom-nav .nav-item.is-active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 56px;
    height: 4px;
    transform: translateX(-50%);
    border-radius: 9999px 9999px 0 0;
    background: var(--red);
  }

  .main-content {
    padding: 20px 14px calc(100px + env(safe-area-inset-bottom));
  }
  .app-shell:not(.menu-open) .sidebar { box-shadow: none; }

  /* 2. Pantalla de bienvenida (Acceso) - optimización vertical */
  .access {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .access-card {
    min-height: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    padding: 24px 16px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .access-logo {
    height: 46px;
    max-width: 100%;
    padding: 8px 14px;
    margin-bottom: 22px;
    border-radius: 12px;
    object-fit: contain;
  }
  .access .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }
  .access h1 {
    font-size: clamp(2rem, 9.2vw, 3.2rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .access-copy {
    margin: 14px 0 18px;
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .role-options {
    width: 100%;
    max-width: 100%;
  }
  .role-option {
    padding: 12px 10px;
    gap: 10px;
    max-width: 100%;
  }
  .role-option strong {
    font-size: 0.95rem;
  }
  .role-option small {
    font-size: 0.72rem;
  }
  .access-plan-link {
    margin-top: 16px;
    padding: 14px 16px;
    font-size: 0.86rem;
    max-width: 100%;
  }
  .catalog-link {
    display: inline-block;
    margin-top: 16px;
    text-align: center;
    font-size: 0.82rem;
    max-width: 100%;
  }

  /* 3. Hero del Alumno - balance funcional */
  .student-hero {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
    min-height: auto;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .student-hero-copy {
    min-height: auto;
    padding: 22px 18px;
    border-radius: var(--radius-md);
    background-color: #0b0b0c;
    background-image:
      linear-gradient(100deg, rgba(11, 11, 12, 0.96) 0%, rgba(11, 11, 12, 0.88) 55%, rgba(11, 11, 12, 0.35) 100%),
      url('../ondas-rojas.webp');
    background-position: 80% center;
    background-size: cover;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.25);
  }
  .student-hero-copy::after { display: none !important; }
  .student-hero .hero-title {
    font-size: clamp(1.7rem, 6.5vw, 2.1rem);
    letter-spacing: -0.04em;
    line-height: 1.1;
  }
  .student-hero .hero-foot {
    flex-direction: column;
    align-items: stretch;
    margin-top: 16px;
    gap: 10px;
  }
  .student-hero .hero-foot .button--red {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 1px 4px rgba(226, 12, 20, 0.2);
  }
  .student-hero .hero-foot p {
    font-size: 0.78rem;
    line-height: 1.45;
  }
  .next-class {
    min-height: auto;
    padding: 20px 18px;
    border-radius: var(--radius-md);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.2);
  }
  .next-class-label {
    grid-column: 1 / -1;
    margin-bottom: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 1;
  }
  .next-class-label span {
    color: #ffffff;
    opacity: 1;
  }
  .next-class time {
    display: flex;
    flex-direction: column;
  }
  .next-class time strong {
    font-size: 2.8rem;
    line-height: 0.9;
    color: #ffffff;
  }
  .next-class time span {
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 4px;
    color: #ffffff;
    opacity: 1;
  }
  .next-class h2 {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 4px;
    color: #ffffff;
  }
  .next-class p {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    color: #ffffff;
    opacity: 1;
  }

  /* Acciones de descubrimiento y strip de semana */
  .journey-actions {
    gap: 10px;
    margin: 18px 0 28px;
  }
  .journey-actions > * { padding: 14px; }
  .journey-icon { display: none; }
  .journey-actions strong { font-size: .85rem; }
  .journey-actions small { font-size: .7rem; }

  /* 4. Carné compacto y QR integrado para móvil (375px) */
  .member-card-wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .member-card {
    min-height: auto;
    padding: 18px 18px 20px;
  }
  .member-card::after {
    width: 100%;
    height: 100%;
    right: 0;
    bottom: 0;
    border: none;
    border-radius: 0;
    transform: none;
    background-size: 200px auto;
    background-position: right -10px bottom -20px;
    opacity: 0.32;
  }
  .member-card-header {
    margin-bottom: 14px;
  }
  .member-logo {
    height: 20px;
    max-width: 105px;
  }
  .member-validity-badge {
    padding: 3px 8px;
    font-size: 0.62rem;
  }
  .member-card-body {
    gap: 12px;
  }
  .member-card-label {
    margin-top: 0;
    font-size: 0.62rem;
  }
  .member-card h2,
  .member-name {
    font-size: clamp(1.1rem, 4.5vw, 1.35rem);
    margin-bottom: 6px;
    line-height: 1.15;
  }
  .member-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .member-id-tag {
    padding: 2px 6px;
  }
  .member-id-label {
    font-size: 0.58rem;
  }
  .member-id-number {
    font-size: 0.82rem;
  }
  .member-level {
    font-size: 0.72rem;
  }
  .member-validity {
    display: none;
  }
  .member-qr-frame {
    width: 94px;
    height: 94px;
    padding: 7px;
    border-radius: 10px;
  }
  .member-qr-note {
    font-size: 0.55rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.02em;
    line-height: 1.2;
    max-width: 94px;
    white-space: normal;
  }
  .member-info-card {
    padding: 18px;
  }
  .member-info-card h2 {
    font-size: 1.15rem;
  }

  /* 5. Vista de Horarios y Clases */
  .schedule-row .button {
    width: 42px;
    min-height: 42px;
  }

  /* 6. Modales en pantalla móvil: estabilidad ante teclado virtual y scroll interno */
  body.modal-open {
    overflow: hidden;
    touch-action: none;
  }
  .modal-layer {
    padding: 0;
    align-items: flex-end;
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: auto;
  }
  .modal {
    width: 100%;
    max-height: var(--modal-max-height, 88dvh);
    border-radius: 24px 24px 0 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-top: 70px;
    scroll-padding-bottom: 30px;
    padding-bottom: env(safe-area-inset-bottom, 16px);
    touch-action: pan-y;
  }
  .modal-header {
    padding: 16px 20px 12px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
  }
  .modal-body {
    padding: 16px 20px 24px;
    overscroll-behavior: contain;
  }
  .modal .form-actions {
    flex-direction: column-reverse;
    gap: 10px;
    width: 100%;
    margin-top: 24px;
  }
  .modal .form-actions .button {
    width: 100%;
  }

  /* 7. Comparador de planes móvil */
  .schedule-poster-card { padding: 14px; }
  .schedule-poster-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .schedule-actions { width: 100%; }
  .schedule-actions .button { flex: 1; text-align: center; }
  .schedule-poster-footer { grid-template-columns: 1fr; gap: 14px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card, .plan-card.is-recommended { padding: 20px; border-radius: var(--radius-md); }
  .plan-hero { padding-bottom: 18px; }
  .plan-hero h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
  .plan-description, .plan-unit { min-height: 0; }
  .plan-card h2 { margin-top: 16px; }
  .plan-next { flex-direction: column; align-items: flex-start; }
  .plan-next .button { width: 100%; }


  /* 8. Información financiera y paneles: sin recortes y 1 columna en móvil */
  .split-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .payment-meta {
    display: block;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    font-size: 0.8rem;
    line-height: 1.5;
  }
  .payment-status {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .payment-status .button {
    width: 100%;
  }

  /* 9. Notificaciones Toast móvil */
  .toast-region {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  /* 10. Hero Banners móvil (Profesor y Administración) */
  .teacher-hero {
    min-height: auto;
    padding: 22px 18px;
    border-radius: var(--radius-md);
    background-color: #0b0b0c;
    background-image:
      linear-gradient(100deg, rgba(11, 11, 12, 0.96) 0%, rgba(11, 11, 12, 0.88) 55%, rgba(11, 11, 12, 0.35) 100%),
      url('../ondas-rojas.webp');
    background-position: 80% center;
    background-size: cover;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.25);
  }

  .teacher-hero h1 {
    font-size: clamp(1.7rem, 6.5vw, 2.1rem);
    letter-spacing: -0.04em;
    line-height: 1.1;
  }

  .teacher-hero-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 16px;
  }

  .teacher-hero-foot .button--red {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 1px 4px rgba(226, 12, 20, 0.2);
  }

  .teacher-hero-foot p {
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
  }

  .admin-intro {
    min-height: auto;
    padding: 24px 18px;
    background-image:
      linear-gradient(100deg, rgba(11, 11, 12, 0.96) 0%, rgba(11, 11, 12, 0.88) 58%, rgba(11, 11, 12, 0.46) 100%),
      url('../acceso-bailarines.webp');
    background-position: 72% center;
  }

  .admin-intro h1 {
    font-size: clamp(1.85rem, 6.8vw, 2.35rem);
    line-height: 1.1;
  }

  .admin-intro-meta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 18px;
  }

  /* 11. Acciones de cabecera y lista de asistencia móvil */
  .heading-actions {
    width: 100%;
    margin-top: 12px;
  }
  .heading-actions .button {
    flex: 1;
    text-align: center;
  }
  .roster-actions-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .roster-quick-actions {
    width: 100%;
  }
  .roster-quick-actions .button {
    flex: 1;
  }
}

/* ---- Preferencias de movimiento reducido ---- */
@media (prefers-reduced-motion: reduce) {
  .button,
  .plan-card,
  .journey-actions > *,
  .filter-chip,
  .table-action {
    transition: none;
  }
}

/* Estados del indicador de modo de datos */
.demo-badge i.is-connected {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.demo-badge i.is-offline {
  background: #eab308;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.6);
}
/* Comparación breve: una sugerencia y alternativas opcionales. */
.plan-alternatives { min-width: 0; }
.plan-alternatives summary { padding: 18px 0; cursor: pointer; font-weight: 600; line-height: 1.5; }
.plan-alternatives .rec-card { margin-top: 12px; }
.plan-hero .plan-disclaimer { margin-bottom: 0; }
.schedule-comparator-layout > * { min-width: 0; }
@media (max-width: 1100px) {
  .schedule-comparator-layout { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   La Rockola In Motion · Sugerencias Musicales Alumno-Maestro
   ========================================================================== */
.music-section {
  margin-top: 36px;
}

/* Selector de clase inicial para sugerir */
.music-class-picker {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 20px;
  margin-top: 14px;
}

.music-picker-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #101014;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.music-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.music-class-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.music-class-btn:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 16, 20, 0.06);
}

.music-class-btn-icon {
  font-size: 1.25rem;
}

.music-class-btn-info {
  flex: 1;
  min-width: 0;
}

.music-class-btn-info strong {
  display: block;
  font-size: 0.9rem;
  color: #101014;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-class-btn-info small {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
}

.music-class-btn-action {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}

.music-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  margin-bottom: 12px;
}

.music-subhead h3 {
  font-size: 1.05rem;
  margin: 0;
}

.music-count-badge {
  font-size: 0.76rem;
  font-weight: 600;
  background: var(--mist);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.music-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.music-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 4px 16px rgba(16, 16, 20, 0.04);
}

.music-card:hover {
  border-color: rgba(226, 12, 20, 0.28);
  box-shadow: 0 10px 24px rgba(16, 16, 20, 0.07);
  transform: translateY(-2px);
}

.music-card.is-accepted {
  border-color: rgba(226, 12, 20, 0.45);
  background: linear-gradient(180deg, rgba(226, 12, 20, 0.02) 0%, var(--paper) 100%);
}

.music-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.music-student-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.avatar-mini {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mist);
  color: #101014;
  font-weight: 700;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.music-student-info strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-student-info small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Badges de Vibe / Motivo con Emojis */
.mood-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--mist);
  color: #101014;
  border: 1px solid var(--line);
}

.mood-badge .mood-emoji {
  font-size: 1.05rem;
  line-height: 1;
}

.mood-badge--sed { background: #fff8eb; border-color: #fde68a; color: #92400e; }
.mood-badge--duela { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.mood-badge--perdio { background: #fdf2f8; border-color: #fbcfe8; color: #9d174d; }
.mood-badge--fuego { background: #fff1f2; border-color: #fecdd3; color: #be123c; }
.mood-badge--piso { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.mood-badge--velocidad { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.mood-badge--algo-asi { background: #f5f3ff; border-color: #ddd6fe; color: #6d28d9; }
.mood-badge--prohibidos { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.mood-badge--chilera { background: #ecfeff; border-color: #a5f3fc; color: #0e7490; }
.mood-badge--oila { background: #f8fafc; border-color: #cbd5e1; color: #334155; }
.mood-badge--chille { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.mood-badge--chancla { background: #fefce8; border-color: #fef08a; color: #854d0e; }

/* Status pill */
.music-status-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 8px;
}

.music-status-pill.is-accepted {
  background: rgba(226, 12, 20, 0.08);
  color: var(--red);
  border: 1px solid rgba(226, 12, 20, 0.2);
}

.music-status-pill.is-pending {
  background: var(--mist);
  color: var(--muted);
  border: 1px solid var(--line);
}

.music-card-body {
  flex: 1;
}

.music-song-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #101014;
  margin: 0 0 2px;
  line-height: 1.3;
}

.music-song-artist {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 8px;
}

.music-class-meta {
  font-size: 0.8rem;
  color: #101014;
  font-weight: 600;
  margin-bottom: 0;
}

.music-class-meta small {
  color: var(--muted);
  font-weight: 400;
}

.music-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  gap: 10px;
}

.music-card-footer--teacher {
  gap: 8px;
}

.music-badge-liked {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red);
}

.music-pending-label {
  font-size: 0.78rem;
  color: var(--muted);
}

.icon-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--mist);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: transform 0.1s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.icon-action-btn:hover {
  transform: scale(1.08);
  border-color: rgba(226, 12, 20, 0.4);
}

.icon-action-btn.is-liked {
  background: #fff1f2;
  border-color: #fecdd3;
}

.button.is-accepted-btn {
  color: var(--red);
  font-weight: 600;
}

/* Selector de Etiquetas en Modal */
.mood-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.mood-random-btn {
  background: none;
  border: none;
  padding: 2px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.mood-random-btn:hover {
  color: var(--red);
  background: rgba(226, 12, 20, 0.06);
}

.music-mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.mood-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}

.mood-chip:hover {
  border-color: rgba(226, 12, 20, 0.4);
  background: #fffdfd;
}

.mood-chip.is-selected {
  border-color: var(--red);
  background: rgba(226, 12, 20, 0.04);
  box-shadow: 0 0 0 1px var(--red);
}

.mood-chip-emoji {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.mood-chip-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #101014;
  line-height: 1.25;
}

.split-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .music-picker-grid {
    grid-template-columns: 1fr;
  }
  .music-mood-grid {
    grid-template-columns: 1fr 1fr;
  }
  .split-fields {
    grid-template-columns: 1fr;
  }
  .music-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .music-mood-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .music-card,
  .mood-chip,
  .music-class-btn,
  .icon-action-btn {
    transition: none;
    transform: none;
  }
}

/* ==========================================================================
   Mejoras Inicio y Calendario del Alumno
   ========================================================================== */

/* ---- Tarjeta Próxima Clase (Hero) ---- */
.next-class.is-clickable {
  cursor: pointer;
  border-radius: var(--radius-lg);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.next-class.is-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(226, 12, 20, 0.35);
}

.next-class.is-clickable:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

.next-class-info {
  margin-top: 12px;
}

.next-class-date {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 6px 0 2px;
}

.next-class-btn-wrap {
  margin-top: 14px;
}

.next-class-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  transition: background 0.15s ease, transform 0.15s ease;
}

.next-class.is-clickable:hover .next-class-cta {
  background: rgba(255, 255, 255, 0.35);
  transform: translateX(2px);
}

.next-class.is-empty {
  background: #18191d;
  color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   Inicio editorial 2026
   Reutiliza la imagen WebP que ya carga el acceso: no suma requests, librerias
   ni trabajo de JavaScript al dashboard.
   ========================================================================== */
.student-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 24px;
}

.student-welcome h1,
.student-welcome p {
  margin: 0;
}

.student-welcome h1 {
  font-size: clamp(2.15rem, 4.5vw, 4.15rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.student-welcome > div > p:last-child {
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(.92rem, 1.3vw, 1.08rem);
  text-transform: capitalize;
}

.student-welcome-kicker {
  margin-bottom: 10px !important;
  color: var(--red);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.student-welcome-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: -.04em;
  box-shadow: 0 8px 20px rgba(226, 12, 20, .22);
}

.student-hero {
  min-height: 360px;
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, .5fr);
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  gap: 18px;
}

.student-hero-copy {
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-image:
    linear-gradient(90deg, rgba(9, 9, 10, .96) 0%, rgba(9, 9, 10, .84) 42%, rgba(9, 9, 10, .18) 100%),
    url('../acceso-bailarines.webp');
  background-position: center 62%;
  background-size: cover;
  box-shadow: var(--shadow);
}

.student-hero .hero-title {
  font-size: clamp(2.55rem, 5vw, 4.85rem);
  letter-spacing: -.055em;
}

.student-hero .hero-title span { color: #fff; }

.student-hero .hero-foot p {
  color: rgba(255, 255, 255, .78);
}

.student-hero .next-class {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.student-hero .next-class::before { display: none; }
.student-hero .next-class-label,
.student-hero .next-class-label span {
  color: var(--red);
}
.student-hero .next-class time strong,
.student-hero .next-class time span,
.student-hero .next-class h2,
.student-hero .next-class p,
.student-hero .next-class-date {
  color: var(--ink);
}
.student-hero .next-class p { color: var(--muted); }
.student-hero .next-class-cta {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.student-hero .next-class.is-clickable:hover {
  box-shadow: 0 18px 42px rgba(16, 16, 20, .12);
}
.student-hero .next-class.is-clickable:focus-visible {
  outline-color: var(--red);
}

@media (max-width: 780px) {
  .student-welcome {
    align-items: center;
    margin-bottom: 20px;
    padding: 4px 2px 0;
  }
  .student-welcome h1 {
    font-size: clamp(1.95rem, 9vw, 2.6rem);
  }
  .student-welcome > div > p:last-child {
    margin-top: 7px;
    font-size: .9rem;
  }
  .student-welcome-kicker { display: none; }
  .student-welcome-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .student-hero {
    gap: 14px;
    margin-bottom: 24px;
  }
  .student-hero-copy {
    min-height: 360px;
    padding: 24px 22px;
    border-radius: 20px;
    background-image:
      linear-gradient(90deg, rgba(9, 9, 10, .94) 0%, rgba(9, 9, 10, .72) 56%, rgba(9, 9, 10, .08) 100%),
      url('../acceso-bailarines.webp');
    background-position: center 65%;
    box-shadow: 0 12px 30px rgba(16, 16, 20, .16);
  }
  .student-hero .hero-title {
    max-width: 280px;
    font-size: clamp(2.25rem, 11vw, 3rem);
    line-height: .98;
  }
  .student-hero .hero-foot {
    align-items: flex-start;
  }
  .student-hero .hero-foot .button--red {
    width: auto;
    min-height: 50px;
    padding-inline: 22px;
  }
  .student-hero .hero-foot p {
    max-width: 235px;
    font-size: .78rem;
  }

  .student-hero .next-class {
    min-height: 0;
    padding: 20px;
    grid-template-columns: 82px minmax(0, 1fr);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(16, 16, 20, .08);
  }
  .student-hero .next-class-label {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }
  .student-hero .next-class time strong {
    font-size: 2.45rem;
  }
  .student-hero .next-class time span { color: var(--muted); }
  .student-hero .next-class h2 { font-size: 1.08rem; }
  .student-hero .next-class-date { display: none; }
  .student-hero .next-class-info { margin-top: 0; }
  .student-hero .next-class-btn-wrap { margin-top: 10px; }
  .student-hero .next-class-cta {
    padding: 7px 12px;
    font-size: .72rem;
  }

  .journey-actions {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .student-hero .next-class.is-clickable,
  .student-hero .hero-foot .button--red { transition: none; }
}

.next-class.is-empty::before {
  display: none;
}

.next-class-empty-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 6px;
}

.next-class-empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.next-class-empty-text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

/* ---- Botones de días en "Esta semana" (Inicio) ---- */
button.day-pill.is-clickable {
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

button.day-pill.is-clickable:hover {
  border-color: #0b0b0c;
  transform: translateY(-2px);
}

button.day-pill.is-clickable:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* ---- Tarjetas de clases en Inicio ---- */
.class-card-date {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red);
  margin: 2px 0;
}

.class-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---- Calendario del Alumno: Barra de Navegación Diaria ---- */
.calendar-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 16px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(16, 16, 20, 0.04);
}

.calendar-nav-arrow {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--mist);
  color: #0b0b0c;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.calendar-nav-arrow:hover {
  background: #ffffff;
  border-color: #0b0b0c;
  transform: scale(1.04);
}

.calendar-nav-arrow:active {
  transform: scale(0.96);
}

.calendar-nav-center {
  text-align: center;
  flex: 1;
  min-width: 0;
}

.calendar-nav-heading {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: #0b0b0c;
  line-height: 1.25;
}

.calendar-nav-sub {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.calendar-nav-badge-today {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(226, 12, 20, 0.1);
  color: var(--red);
}

.calendar-nav-btn-today {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(226, 12, 20, 0.08);
  border: 1px solid rgba(226, 12, 20, 0.25);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 32px;
}

.calendar-nav-btn-today:hover {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
}

/* ---- Calendario del Alumno: Tira Semanal ---- */
.calendar-week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.calendar-day-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 56px;
  padding: 10px 4px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  position: relative;
}

.calendar-day-pill:hover {
  border-color: #0b0b0c;
}

.calendar-pill-day {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
  line-height: 1;
}

.calendar-pill-num {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0b0b0c;
  margin: 5px 0 3px;
  line-height: 1;
}

.calendar-pill-meta {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1;
}

/* Estado: Hoy (no seleccionado) */
.calendar-day-pill.is-today:not(.is-selected) {
  border: 2px solid var(--red);
  background: #ffffff;
}

.calendar-day-pill.is-today:not(.is-selected) .calendar-pill-day,
.calendar-day-pill.is-today:not(.is-selected) .calendar-pill-num {
  color: var(--red);
}

/* Estado: Seleccionado (distinto de Hoy) */
.calendar-day-pill.is-selected:not(.is-today) {
  background: #0b0b0c;
  border-color: #0b0b0c;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(11, 11, 12, 0.22);
}

.calendar-day-pill.is-selected:not(.is-today) .calendar-pill-day,
.calendar-day-pill.is-selected:not(.is-today) .calendar-pill-meta {
  color: rgba(255, 255, 255, 0.7);
}

.calendar-day-pill.is-selected:not(.is-today) .calendar-pill-num {
  color: #ffffff;
}

/* Estado: Hoy Y Seleccionado */
.calendar-day-pill.is-today.is-selected {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(226, 12, 20, 0.38);
}

.calendar-day-pill.is-today.is-selected .calendar-pill-day,
.calendar-day-pill.is-today.is-selected .calendar-pill-meta {
  color: rgba(255, 255, 255, 0.88);
}

.calendar-day-pill.is-today.is-selected .calendar-pill-num {
  color: #ffffff;
}

/* Indicador si el alumno tiene clase inscrita ese día */
.calendar-day-pill.has-enrolled::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.calendar-day-pill.is-selected.has-enrolled::after {
  background: #ffffff;
}

/* ---- Agenda del Día: Lista de Clases ---- */
.calendar-agenda-container {
  margin-top: 16px;
}

.calendar-agenda-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calendar-agenda-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(16, 16, 20, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.calendar-agenda-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 16, 20, 0.07);
}

.calendar-agenda-card.is-enrolled {
  border-left: 5px solid var(--red);
  background: #fffdfd;
}

.calendar-agenda-time-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: flex-start;
}

.calendar-agenda-time {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0b0b0c;
  line-height: 1.15;
}

.tag--ended {
  background: #ebecef;
  color: #6b6e76;
}

.calendar-agenda-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.calendar-agenda-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.calendar-agenda-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0b0b0c;
  line-height: 1.25;
}

.calendar-agenda-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.agenda-meta-item {
  display: inline;
}

.calendar-agenda-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.calendar-agenda-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Estado Vacío de Agenda ---- */
.calendar-empty-card {
  padding: 36px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.calendar-empty-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin: 0;
}

.calendar-empty-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0b0b0c;
}

.calendar-empty-desc {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 360px;
  margin: 0;
  line-height: 1.45;
}

.calendar-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

/* ---- Responsive Móvil (375px y 320px) ---- */
@media (max-width: 600px) {
  .calendar-agenda-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .calendar-agenda-time-col {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .calendar-agenda-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .calendar-agenda-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .calendar-agenda-actions .button {
    flex: 1;
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  .calendar-week-strip {
    gap: 3px;
  }

  .calendar-day-pill {
    min-width: 38px;
    padding: 8px 2px;
  }

  .calendar-pill-day {
    font-size: 0.62rem;
  }

  .calendar-pill-num {
    font-size: 1.1rem;
    margin: 3px 0 2px;
  }

  .calendar-pill-meta {
    font-size: 0.58rem;
  }

  .calendar-nav-bar {
    padding: 10px 8px;
  }

  .calendar-nav-heading {
    font-size: 0.98rem;
  }

  .calendar-nav-arrow {
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   Pases individuales: Clases de prueba y clases particulares
   ========================================================================== */

/* Monospace y códigos */
.code-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.07em;
  font-weight: 700;
}

/* Píldoras de estado para pases */
.status-pill.is-trial {
  background: rgba(226, 12, 20, 0.12);
  color: var(--brand-red);
  border: 1px solid rgba(226, 12, 20, 0.25);
  font-weight: 700;
}
.status-pill.is-private {
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid rgba(109, 40, 217, 0.25);
  font-weight: 700;
}
.status-pill.is-available {
  background: #d8f3ea;
  color: #0e7c61;
  border: 1px solid rgba(14, 124, 97, 0.25);
  font-weight: 700;
}
.status-pill.is-used {
  background: #f1f2f5;
  color: #4b5563;
  border: 1px solid rgba(107, 114, 128, 0.2);
  font-weight: 600;
}
.status-pill.is-cancelled {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid rgba(185, 28, 28, 0.25);
  font-weight: 600;
}
.status-pill.is-expired {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid rgba(146, 64, 14, 0.25);
  font-weight: 600;
}
.status-pill.is-pending {
  background: #fdebcb;
  color: #96620a;
  border: 1px solid rgba(150, 98, 10, 0.25);
  font-weight: 700;
}

/* Tabla y tarjetas móviles de pases */
.pass-actions-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pass-actions-cell .button--small {
  padding: 6px 10px;
  min-height: 36px;
  font-size: 0.82rem;
}

.pass-cards-mobile {
  display: none;
}

@media (max-width: 768px) {
  .pass-table-wrap {
    display: none !important;
  }
  .pass-cards-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

.pass-mobile-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pass-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.pass-mobile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pass-mobile-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pass-mobile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  font-size: 0.88rem;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.pass-mobile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.pass-mobile-actions .button {
  flex: 1 1 auto;
  min-height: 44px;
  justify-content: center;
}

/* Ticket del pase e impresión */
.pass-ticket-print {
  background: #18181b;
  color: #fafafa;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  max-width: 460px;
  margin: 0 auto;
}
.pass-ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
}
.pass-ticket-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pass-ticket-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pass-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 16px 14px 14px;
  border-radius: 16px;
  color: #111;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.pass-qr-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
}
.pass-code-display {
  text-align: center;
  margin-top: 8px;
}
.pass-code-display small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: #666;
  font-weight: 700;
  text-transform: uppercase;
}
.pass-code-display strong {
  font-size: 1.45rem;
  color: #0b0b0c;
  line-height: 1.2;
}
.pass-details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pass-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pass-detail-item .detail-label {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.pass-detail-item .detail-val {
  font-size: 0.96rem;
  color: #ffffff;
}
.pass-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pass-usage-box {
  padding: 10px 12px;
  background: rgba(16, 185, 129, 0.12);
  border-left: 3px solid #10b981;
  border-radius: 8px;
}
.pass-cancel-box {
  padding: 10px 12px;
  background: rgba(226, 12, 20, 0.12);
  border-left: 3px solid var(--brand-red);
  border-radius: 8px;
}
.pass-demo-notice {
  font-size: 0.78rem;
  opacity: 0.7;
  text-align: center;
  margin-top: 14px;
}
.modal-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  justify-content: stretch;
}
.modal-actions-bar .button {
  flex: 1 1 calc(50% - 10px);
  min-height: 44px;
  justify-content: center;
}

/* Tarjeta y modal de validación */
.validation-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.validation-summary-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}
.validation-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.validation-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  font-size: 0.9rem;
}
.quick-pass-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
}
.quick-pass-card {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
  text-align: left;
  min-height: 48px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.quick-pass-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}
.quick-pass-card:focus-visible {
  outline: 2px solid var(--brand-red);
}
.quick-pass-card-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.quick-pass-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.exception-details {
  border: 1px dashed rgba(226, 12, 20, 0.4);
  border-radius: 12px;
  background: rgba(226, 12, 20, 0.04);
  padding: 14px 16px;
}
.exception-summary {
  color: var(--brand-red);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

/* Pantallas pequeñas (<= 480px / 375px / 320px) */
@media (max-width: 480px) {
  .pass-filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .pass-filter-row .input-icon-wrap,
  .pass-filter-row #passDateInput {
    width: 100%;
  }
  .pass-chips-group {
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .pass-ticket-print {
    padding: 16px;
    border-radius: 14px;
  }
  .pass-detail-grid {
    grid-template-columns: 1fr;
  }
  .modal-actions-bar .button {
    flex: 1 1 100%;
    min-height: 44px;
  }
}

/* Estilos de impresión de pase */
@media print {
  body * {
    visibility: hidden !important;
  }
  #modalLayer, #modalLayer * {
    visibility: visible !important;
  }
  #modalLayer {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
  }
  .modal-window {
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .modal-header, .modal-actions-bar, [data-close-modal], .pass-demo-notice {
    display: none !important;
  }
  .pass-ticket-print {
    display: block !important;
    color: #000000 !important;
    border: 1px solid #ddd !important;
    padding: 24px !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }
  .pass-ticket-print * {
    color: #000000 !important;
  }
  .pass-qr-container {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
}

/* ==========================================================================
   Seguimiento semiautomático por WhatsApp (Pagos y Ausencias)
   ========================================================================== */

.table-actions-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table-action[disabled],
.table-action.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--surface-subtle, #f4f5f7);
  border-color: var(--line, #e2e4e8);
  color: var(--muted, #64748b);
}

.attendance-followup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.attendance-followup-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 16px);
  background: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.attendance-followup-card:hover {
  box-shadow: var(--shadow-sm, 0 4px 16px rgba(0, 0, 0, 0.06));
}

.attendance-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.attendance-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.attendance-card-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.attendance-missed-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.86rem;
  color: var(--ink);
}

.attendance-missed-list li {
  padding-left: 12px;
  position: relative;
}

.attendance-missed-list li::before {
  content: "•";
  color: var(--red);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.attendance-card-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.whatsapp-preview-card {
  background: #fafafa;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm, 8px);
  padding: 14px 16px;
  margin: 16px 0;
}

.whatsapp-preview-card .eyebrow {
  margin: 0 0 6px 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.whatsapp-preview-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 480px) {
  .attendance-followup-grid {
    grid-template-columns: 1fr;
  }
  .attendance-followup-card {
    padding: 16px;
  }
  .attendance-card-actions .button {
    width: 100%;
    min-height: 44px;
  }
  .table-actions-cell .table-action {
    min-height: 44px;
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .attendance-followup-card {
    transition: none !important;
  }
}

/* ---- Gestión del Estado del Alumno (Suspender, Archivar, Eliminar) ---- */
.status-pill.is-archived {
  background: #e2e8f0;
  color: #475569;
}

.is-row-archived td {
  opacity: 0.78;
}

.member-validity-badge.is-suspended {
  background: rgba(226, 12, 20, 0.2);
  border-color: rgba(226, 12, 20, 0.5);
  color: #ff8a8a;
}

.member-validity-badge.is-archived {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.65);
}

.member-card.is-card-suspended {
  border-color: rgba(226, 12, 20, 0.35);
}

.member-qr-frame.is-disabled {
  opacity: 0.35;
  filter: grayscale(1);
}

.student-detail-status-banner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm, 8px);
  font-size: 0.82rem;
  line-height: 1.45;
}

.student-detail-status-banner.is-suspended {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-left: 4px solid var(--red);
  color: #9b2c2c;
}

.student-detail-status-banner.is-archived {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #718096;
  color: #4a5568;
}

.student-detail-status-banner strong {
  font-size: 0.88rem;
  font-weight: 700;
}

/* Menú desplegable "Más acciones" en ficha de alumno */
.more-actions-menu {
  position: relative;
  display: inline-block;
}

.more-actions-menu summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.more-actions-menu summary::-webkit-details-marker {
  display: none;
}

.more-actions-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 210px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 12px 32px rgba(16, 16, 20, 0.16);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dropdown-action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-action-item:hover,
.dropdown-action-item:focus-visible {
  background: #f4f5f7;
  outline: none;
}

.dropdown-action-item--danger {
  color: var(--red);
}

.dropdown-action-item--danger:hover,
.dropdown-action-item--danger:focus-visible {
  background: #fff1f1;
  color: var(--red);
}

/* Modales de bloqueo y confirmación de eliminación */
.delete-blocked-card {
  background: #fffaf0;
  border: 1px solid #feebc8;
  border-left: 4px solid #dd6b20;
  border-radius: var(--radius-sm, 8px);
  padding: 16px;
}

.delete-blocked-lead {
  margin: 0 0 10px 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #7b341e;
  line-height: 1.45;
}

.delete-reasons-list ul {
  margin: 6px 0 0 18px;
  padding: 0;
  color: #9c4221;
  font-size: 0.82rem;
  line-height: 1.5;
}

.danger-zone-box {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm, 8px);
  padding: 16px;
}

.danger-zone-box p {
  margin: 0 0 8px 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #742a2a;
}

#deleteConfirmInput {
  border: 1.5px solid #cbd5e0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1rem;
  width: 100%;
  margin-top: 6px;
  background: #ffffff;
  color: var(--ink);
}

#deleteConfirmInput:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(226, 12, 20, 0.15);
  outline: none;
}

@media (max-width: 480px) {
  .dropdown-action-item {
    min-height: 44px;
    font-size: 0.88rem;
  }
}
