/* ============================================================
   SEMANAOS — Stylesheet
   v1.4.0
   Fuente: Poppins (Google Fonts)
   Modo oscuro. Sin frameworks externos.
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   0. VARIABLES CSS
──────────────────────────────────────────────────────────── */
:root {
  /* Colores principales */
  --bg-dark: #2c2a29;
  --bg-sidebar: #232120;
  --bg-card: #353230;
  --bg-input: #3d3a38;
  --bg-surface: #2d2d2d;
  --bg-light: #f0eceb;
  --bg-overlay: #000;

  /* Texto */
  --text-white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-on-accent: #1a1a1a;
  --text-on-light: #000;

  /* Acento azul */
  --accent-blue: #0f62a8;
  --accent-blue-hover: #0d5494;

  /* Colores de error / peligro */
  --color-danger: #ff4d4d;
  --color-danger-text: #ff6b6b;
  --color-danger-severe: #cc0000;

  /* Colores informativos */
  --color-info-bg: #1c3350;
  --color-info-border: #4a9eff;
  --color-info-text: #c0daff;
  --color-link: #5190ff;

  /* Bordes */
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-card: rgba(255, 255, 255, 0.13);

  /* Tipografía */
  --font-main: "Poppins", sans-serif;

  /* Dimensiones de layout */
  --sidebar-width: 250px;
  --topbar-height: 72px;

  /* Radios */
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-pill: 100px;
}

/* ────────────────────────────────────────────────────────────
   1. RESET BÁSICO
──────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ────────────────────────────────────────────────────────────
   2. BASE
──────────────────────────────────────────────────────────── */
html,
body {
  height: 100%;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-white);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ────────────────────────────────────────────────────────────
   3. APP SHELL — Grid principal
──────────────────────────────────────────────────────────── */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  height: 100vh;
  /* Fijo al alto de pantalla */
  overflow: hidden;
  /* Evita scroll global */
}

/* ────────────────────────────────────────────────────────────
   4. SIDEBAR
──────────────────────────────────────────────────────────── */
.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 28px 0 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

/* ── Header del sidebar ── */
.sidebar__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px 28px;
}

@font-face {
  font-family: "ChellaType";
  src: url("private/ChellaType-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.os-text {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

/* Logotipo texto */
.sidebar__logo {
  font-family: "ChellaType", sans-serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--text-white);
  white-space: nowrap;
  text-transform: none;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bg-card);
  /* Mantener caso original si la fuente lo requiere */
}

/* Línea separadora vertical */
.sidebar__divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

/* Bloque reloj/fecha */
.sidebar__clock {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.sidebar__time {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: 0.5px;
}

.sidebar__date {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Navegación ── */
.sidebar__nav {
  flex: 1;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 4px;
}

/* Ítem de navegación base */
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background 0.2s ease;
  user-select: none;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Ícono del ítem */
.nav-item__icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-item__icon svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

/* Etiqueta del ítem */
.nav-item__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  padding-bottom: 2px;
  /* espacio para el subrayado */
}

/* ── Estado ACTIVO del ítem ── */
.nav-item--active {
  background: rgba(15, 98, 168, 0.08);
}

.nav-item--active .nav-item__icon svg {
  color: var(--text-white);
}

.nav-item--active .nav-item__label {
  color: var(--text-white);
  font-weight: 600;
  border-bottom: 2px solid var(--accent-blue);
}

/* ────────────────────────────────────────────────────────────
   5. ÁREA DE CONTENIDO PRINCIPAL
──────────────────────────────────────────────────────────── */
.main-content {
  display: flex;
  flex-direction: column;
  padding: 36px 40px;
  height: 100vh;
  overflow-y: auto;
  /* Por defecto scrollea si el contenido crece */
  background: var(--bg-dark);
}

/* ── Top Bar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.topbar__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.3px;
}

/* ────────────────────────────────────────────────────────────
   6. BOTONES
──────────────────────────────────────────────────────────── */

/* Botón base */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-btn);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
}

/* Botón delineado (outline) azul */
.btn--outline {
  background: transparent;
  color: var(--accent-blue);
  border: 1.5px solid var(--accent-blue);
}

.btn--outline:hover {
  border-color: var(--accent-blue-hover);
  color: var(--accent-blue-hover);
}

/* Botón sólido (utilitario para otras vistas) */
.btn--solid {
  background: var(--accent-blue);
  color: var(--text-on-accent);
  border: 1.5px solid transparent;
}

.btn--solid:hover {
  background: var(--accent-blue-hover);
}

/* Ícono dentro del botón */
.btn__icon {
  display: flex;
  align-items: center;
}

.btn__icon svg {
  width: 16px;
  height: 16px;
}

/* ────────────────────────────────────────────────────────────
   7. GRID DE TARJETAS DE EQUIPOS
──────────────────────────────────────────────────────────── */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  align-content: start;
}

/* ── Tarjeta de equipo ── */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

/* Cabecera de la tarjeta */
.team-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 14px 10px;
  gap: 6px;
}

.team-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.2;
  word-break: break-word;
  display: block;
}

.team-card__public-id {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  opacity: 0.7;
  margin-top: 2px;
  display: block;
  text-transform: uppercase;
}

/* Botón lápiz (cabecera) */
.team-card__edit-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: color 0.2s ease;
  border-radius: 4px;
}

.team-card__edit-btn:hover {
  color: var(--accent-blue);
}

.team-card__edit-btn svg {
  width: 14px;
  height: 14px;
}

/* Imagen del equipo */
.team-card__image-wrap {
  flex: 1;
  overflow: hidden;
  line-height: 0;
  /* elimina espacio bajo inline img */
}

.team-card__image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.team-card:hover .team-card__image {
  transform: scale(1.04);
}

/* Pie de la tarjeta */
.team-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 12px;
  gap: 6px;
}

.team-card__url {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

/* Botón lápiz tiny (url) */
.team-card__url-edit {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: color 0.2s ease;
  border-radius: 4px;
}

.team-card__url-edit:hover {
  color: var(--accent-blue);
}

.team-card__url-edit svg {
  width: 11px;
  height: 11px;
}

/* Inline Editing Styles */
.team-card__input-inline {
  display: block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  padding: 2px 6px;
  width: 100%;
  outline: none;
  transition: all 0.2s ease;
}

.team-card__input-inline:focus {
  border-color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.1);
}

.team-card__url-input-inline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 10px;
  padding: 1px 4px;
  width: 100%;
  outline: none;
}

.team-card__save-btn {
  background: var(--accent-blue);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.team-card__save-btn:hover {
  transform: scale(1.1);
}

.team-card__save-btn svg {
  width: 14px;
  height: 14px;
}

.hidden {
  display: none !important;
}

.saving-loader {
  opacity: 0.5;
  pointer-events: none;
}

/* Botón Eliminar */
.team-card__delete-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
  border-radius: 4px;
}

.team-card__delete-btn:hover {
  color: var(--color-danger);
  background: rgba(255, 77, 77, 0.1);
}

.team-card__delete-btn svg {
  width: 11px;
  height: 11px;
}

/* ────────────────────────────────────────────────────────────
   8. UTILIDADES — Inputs y Formularios oscuros (para otras vistas)
──────────────────────────────────────────────────────────── */

/* Input oscuro estándar */
.input-dark {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-btn);
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 400;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.input-dark::placeholder {
  color: var(--text-muted);
}

.input-dark:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Textarea oscuro */
.textarea-dark {
  resize: vertical;
  min-height: 90px;
}

/* ────────────────────────────────────────────────────────────
   9. UTILIDADES — Píldoras / Tags
──────────────────────────────────────────────────────────── */

/* Píldora base */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

/* Píldora azul (principal) */
.pill--blue {
  background: var(--accent-blue);
  color: var(--text-on-accent);
}

/* Píldora oscura / sutil */
.pill--dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border: 1px solid var(--border-subtle);
}

/* Botón de cierre dentro de la píldora */
.pill__close {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.pill__close:hover {
  opacity: 1;
}

.pill__close::after {
  content: "×";
  font-size: 14px;
  line-height: 1;
}

/* ────────────────────────────────────────────────────────────
   10. SCROLLBAR personalizado (Webkit)
──────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 98, 168, 0.5);
}

/* ============================================================
   11. ENCUENTROS — Cronograma + Panel de Asignación
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   11a. Layout principal de la vista Encuentros
———————————————————————————————————————————————————————————— */

/* El main de Encuentros sobrescribe el padding base para
   tener más control sobre el scroll interno */
.enc-main {
  padding: 0;
  overflow: hidden;
  /* el scroll lo maneja cada sub-sección */
  display: flex;
  flex-direction: column;
}

/* Top bar dentro de enc-main */
.enc-main .topbar {
  padding: 24px 32px 20px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0;
}

/* Contenedor de dos columnas: 75% calendario | 25% panel */
.enc-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  /* los hijos manejan su propio scroll */
  min-height: 0;
}

/* ────────────────────────────────────────────────────────────
   11b. Sección del cronograma (izquierda)
———————————————————————————————————————————————————————————— */

.schedule-section {
  flex: 3;
  /* ~75% del espacio horizontal */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--border-subtle);
}

/* Wrapper: gutter de horas + área deslizable */
.schedule-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* ── Gutter de tiempo (columna de horas, fija a la izquierda) ── */
.time-gutter {
  width: 58px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
  border-right: 1px solid var(--border-subtle);
  z-index: 10;
}

/* Espaciador alineado con los dos headers (día + zona) del calendario */
.time-gutter__spacer {
  height: 88px;
  /* 48px day-hdr + 40px zone-hdr */
  flex-shrink: 0;
}

/* Cada etiqueta de hora */
.time-gutter__label {
  height: 80px;
  /* debe coincidir con .cal-row min-height */
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 6px 8px 0 0;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

/* ── Área deslizable del calendario ── */
.cal-scroll {
  flex: 1;
  overflow-x: auto;
  overflow-y: auto;
  min-width: 0;
  outline: none;
}

/* ── Grid interno: todo el contenido del calendario ── */
/* Usamos display: grid para poder poner los headers sticky */

/* ── Headers sticky (días + zonas) ── */
.cal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
}

/* Fila de headers de días */
.cal-days-row {
  display: flex;
  height: 48px;
}

/* Header de cada día (abarca 3 zonas) */
.cal-day-hdr {
  flex: 3;
  /* cada día ocupa 3 unidades = 3 zonas */
  min-width: calc(var(--zone-col-width, 120px) * 3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-right: 1px solid rgba(0, 0, 0, 0.15);
}

.cal-day-hdr span:first-child {
  color: rgba(0, 0, 0, 0.8);
}

.cal-day-date {
  font-size: 9px;
  font-weight: 400;
  opacity: 0.65;
  color: rgba(0, 0, 0, 0.7);
}

/* Alternancia de color de los headers de día */
.cal-day-hdr--blue {
  background: var(--accent-blue-hover);
}

.cal-day-hdr--white {
  background: rgb(229, 229, 229);
}

/* Fila de headers de zonas */
.cal-zones-row {
  display: flex;
  height: 40px;
}

/* Header de cada zona */
.cal-zone-hdr {
  flex: 1;
  min-width: 120px;
  /* ancho mínimo de columna de zona */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-on-accent);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

/* Zonas alternadas: azul sólido | blanco sólido */
.cal-zone-hdr--blue {
  background: var(--accent-blue);
}

.cal-zone-hdr--white {
  background: rgb(255, 255, 255);
}

/* ── Grid de eventos ── */
.cal-grid {
  display: flex;
  flex-direction: column;
}

/* Cada fila de hora */
.cal-row {
  display: flex;
  min-height: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Celda de cada zona dentro de una fila */
.cal-cell {
  flex: 1;
  min-width: 120px;
  padding: 6px 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}

/* Fondo ligeramente diferente por día (alternado) */
.cal-cell--d-odd {
  background: rgba(15, 98, 168, 0.04);
}

.cal-cell--d-even {
  background: rgba(255, 255, 255, 0.02);
}

/* ── Bloque de evento ── */
.evt {
  background: var(--color-info-bg);
  /* azul oscuro */
  border-left: 3px solid var(--color-info-border);
  /* borde azul brillante */
  border-radius: 4px;
  padding: 4px 6px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.evt:hover {
  background: #254267;
  transform: translateY(-1px);
}

.evt__title {
  font-size: 9px;
  font-weight: 600;
  color: #a8c8ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.evt__teams {
  font-size: 8.5px;
  font-weight: 400;
  color: rgba(200, 220, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ────────────────────────────────────────────────────────────
   11c. Panel lateral de asignación (derecha)
———————————————————————————————————————————————————————————— */

.assign-panel {
  flex: 1;
  /* ~25% del espacio horizontal */
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px 18px;
  gap: 14px;
  background: var(--bg-sidebar);
  min-width: 240px;
  max-width: 320px;
}

/* ── Tabs ── */
.assign-tabs {
  display: flex;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-subtle);
  flex-shrink: 0;
}

.assign-tab {
  background: transparent;
  border: none;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 0 8px;
  position: relative;
  transition: color 0.2s ease;
}

/* Tab activo con subrayado azul grueso */
.assign-tab--active {
  color: var(--text-white);
}

.assign-tab--active::after {
  content: "";
  position: absolute;
  bottom: -12px;
  /* justo en el borde del assign-tabs */
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-blue);
  border-radius: 2px;
}

/* ── Info del panel ── */
.assign-info {
  flex-shrink: 0;
}

.assign-info__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
  line-height: 1.2;
}

.assign-info__desc {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Botón NUEVO ENCUENTRO ── */
.assign-new-btn {
  width: 100%;
  padding: 11px 0;
  background: var(--text-white);
  color: var(--text-on-accent);
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.assign-new-btn:hover {
  background: var(--bg-light);
  transform: translateY(-1px);
}

/* ── Controles de búsqueda ── */
.assign-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Input de búsqueda */
.assign-search {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-btn);
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s ease;
}

.assign-search::placeholder {
  color: var(--text-muted);
}

.assign-search:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Select de ordenamiento */
.assign-sort {
  flex: 1;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-btn);
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 11px;
  outline: none;
  cursor: pointer;
  appearance: none;
  /* quita la flecha nativa en Firefox/Chrome */
  -webkit-appearance: none;
  /* Flecha custom con SVG inline */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  padding-right: 28px;
  transition: border-color 0.2s ease;
}

.assign-sort option {
  background: var(--bg-dark);
  color: var(--text-white);
}

.assign-sort:focus {
  border-color: var(--accent-blue);
}

/* ── Lista de tarjetas de encuentros ── */
.match-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
}

/* Tarjeta individual de encuentro */
.match-card {
  background: var(--bg-card);
  border: 1px solid rgba(100, 150, 255, 0.2);
  /* borde azul sutil */
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: grab;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.match-card:hover {
  border-color: rgba(100, 150, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Parte superior de la tarjeta: meta + stats */
.match-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.match-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.match-card__discipline {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-white);
}

.match-card__round {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
}

.match-card__stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.match-card__pts {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-blue);
}

.match-card__dur {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
}

/* Nombres de equipos */
.match-card__teams {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
}

/* Pie de la tarjeta: botón editar */
.match-card__foot {
  display: flex;
  justify-content: flex-end;
}

.match-card__edit {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  color: var(--text-muted);
  border-radius: 4px;
  transition: color 0.2s ease;
}

.match-card__edit:hover {
  color: var(--text-white);
}

.match-card__edit svg {
  width: 13px;
  height: 13px;
}

/* ── Cursor interactivo para el sidebar activo ── */
.nav-item {
  cursor: pointer;
}

/* ============================================================
   12. DISCIPLINAS — Lista + Panel de Configuración
   v1.3.0
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   12a. Layout principal de la vista Disciplinas
──────────────────────────────────────────────────────────── */

/* El main de Disciplinas controla su propio scroll interno */
.disc-main {
  padding: 0;
  height: 100vh;
  overflow: hidden;
  /* Muy importante para evitar scroll doble */
  display: flex;
  flex-direction: column;
}

.disc-main .topbar {
  padding: 24px 32px 20px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0;
}

/* Dos columnas: lista (30%) | config (70%) */
.disc-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* ────────────────────────────────────────────────────────────
   12b. Columna de lista (izquierda, 30%)
──────────────────────────────────────────────────────────── */

.disc-list-col {
  width: 30%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  border-right: 1px solid var(--border-subtle);
  background: var(--bg-sidebar);
  gap: 14px;
  overflow: hidden;
  /* el scroll lo hace .disc-list */
}

/* ── Input nueva disciplina ── */
.disc-new-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--accent-blue);
  border-radius: var(--radius-btn);
  overflow: hidden;
  flex-shrink: 0;
}

.disc-new-input {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 13px;
  outline: none;
}

.disc-new-input::placeholder {
  color: var(--text-muted);
}

.disc-new-add {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-blue);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-accent);
  transition: background 0.2s ease;
}

.disc-new-add:hover {
  background: var(--accent-blue-hover);
}

.disc-new-add svg {
  width: 16px;
  height: 16px;
}

/* ── Lista de disciplinas (solo esta tiene scroll) ── */
.disc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  /* <-- SOLO ESTA columna tiene overflow */
  flex: 1;
  padding-right: 4px;
}

/* Ítem de disciplina */
.disc-list__item {
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius-btn);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;

  /* Estado inactivo */
  background: transparent;
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.disc-list__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.disc-list__delete {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-muted);
  opacity: 0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.disc-list__item:hover .disc-list__delete {
  opacity: 0.6;
}

.disc-list__delete:hover {
  opacity: 1 !important;
  color: var(--color-danger);
  background: rgba(255, 77, 77, 0.1);
}

.disc-list__delete svg {
  width: 14px;
  height: 14px;
}

/* Estado ACTIVO */
.disc-list__item--active {
  background: var(--accent-blue);
  color: var(--bg-dark);
  font-weight: 600;
}

.disc-list__item--active:hover {
  background: var(--accent-blue-hover);
}

/* Ajuste del botón eliminar cuando el ítem está activo (fondo blanco) */
.disc-list__item--active .disc-list__delete {
  color: rgba(0, 0, 0, 0.4);
}

.disc-list__item--active:hover .disc-list__delete {
  opacity: 0.7;
}

.disc-list__item--active .disc-list__delete:hover {
  color: var(--color-danger-severe);
  background: rgba(204, 0, 0, 0.1);
  opacity: 1 !important;
}

/* ────────────────────────────────────────────────────────────
   12c. Panel de configuración (derecha, 70%)
──────────────────────────────────────────────────────────── */

.disc-config {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Ocupa todo el alto de .disc-body */
  overflow-y: auto;
  /* Scroll independiente */
  padding: 28px 32px;
  gap: 0;
}

/* Encabezado de la disciplina seleccionada */
.disc-config__head {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.disc-config__title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.disc-title-edit-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.disc-title-edit-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-blue);
  opacity: 1;
  transform: scale(1.1);
}

.disc-title-edit-btn svg {
  width: 18px;
  height: 18px;
}

/* Inner: detalles (izq) + sidebar (der) */
.disc-config__inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.disc-config__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── Sidebar lateral del config ── */
.disc-config__sidebar {
  width: 230px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.disc-side-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.disc-side-block__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

/* Selector de tipo (Custom Dropdown) */
.disc-custom-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--font-main);
  font-size: 13px;
  color: var(--text-white);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.disc-custom-select:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.disc-custom-select svg {
  width: 10px;
  height: 6px;
  opacity: 0.6;
}

/* Inline Title Editing Polish */
.disc-title-save-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  color: var(--accent-blue);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.disc-title-save-indicator--show {
  opacity: 1;
}

/* ────────────────────────────────────────────────────────────
   12d. Secciones internas del panel de detalles
──────────────────────────────────────────────────────────── */

/* Sección genérica */
.disc-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Título de sección — mayor peso visual */
.disc-section__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-white);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

/* ── Tags / Píldoras de equipos ── */
.disc-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Píldora de equipo (azul) */
.disc-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--accent-blue);
  color: var(--text-on-accent);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

/* Botón × dentro de la píldora */
.disc-tag__remove {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.55);
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
}

.disc-tag__remove:hover {
  color: rgba(0, 0, 0, 0.9);
}

/* Botón "+" para agregar equipo */
.disc-tags-add {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.disc-tags-add svg {
  width: 14px;
  height: 14px;
}

/* ────────────────────────────────────────────────────────────
   12e. Listas de puntajes (gráficas / certamen)
──────────────────────────────────────────────────────────── */

.disc-score-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding-top: 10px;
}

/* Fila de puntaje: label izq | valor der */
.disc-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.disc-score-row__label {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  flex: 1;
}

/* Cuadro azul con el valor numérico */
.disc-score-row__val {
  border: 1px solid var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 5px 10px;
  color: var(--accent-blue);
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  text-align: center;
}

/* Variant más pequeño para las fases del sidebar */
.disc-score-row__val--sm {
  min-width: 36px;
  font-size: 12px;
  padding: 4px 8px;
}

/* ────────────────────────────────────────────────────────────
   12f. Sidebar lateral: bloques de control
──────────────────────────────────────────────────────────── */

/* Bloque genérico del sidebar de config */
.disc-side-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.disc-side-block__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.disc-side-block__sublabel {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
}

/* ── Color picker ── */
.disc-color-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-btn);
  padding: 8px 12px;
}

/* Muestra del color */
.disc-color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Código hexadecimal resaltado en azul */
.disc-color-hex {
  flex: 1;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-link);
  letter-spacing: 0.5px;
}

/* Botón cuentagotas */
.disc-color-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
  border-radius: 4px;
}

.disc-color-btn:hover {
  color: var(--text-white);
}

.disc-color-btn svg {
  width: 16px;
  height: 16px;
}

/* ── Stepper de duración (Rediseño Estilo Badge) ── */
.disc-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  width: fit-content;
}

.disc-stepper:hover {
  border-color: var(--accent-blue);
  background: rgba(224, 136, 191, 0.05);
  transform: translateY(-1px);
}

.disc-stepper__value {
  color: var(--accent-blue);
  font-size: 22px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.disc-stepper__value::after {
  content: "min";
  font-size: 12px;
  font-weight: 500;
  opacity: 0.6;
  text-transform: lowercase;
}

/* ── Radio buttons de tipo de eliminación ── */
.disc-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.disc-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
}

.disc-radio input[type="radio"] {
  accent-color: var(--accent-blue);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  cursor: pointer;
}

.disc-radio:has(input:checked) {
  color: var(--text-white);
  font-weight: 500;
}

/* ── Botón Guardar ── */
.disc-save-btn {
  margin-top: auto;
  width: 100%;
  padding: 14px 0;
  background: var(--accent-blue);
  color: var(--text-on-accent);
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.15s ease;
}

.disc-save-btn:hover {
  transform: translateY(-2px);
}

.disc-save-btn svg {
  width: 18px;
  height: 18px;
}

/* Versión compacta de la lista de puntajes (para sidebar config) */
.disc-score-list--compact {
  gap: 6px;
}

.disc-score-list--compact .disc-score-row__label {
  font-size: 11px;
}

/* ────────────────────────────────────────────────────────────
   13. MODAL EQUIPOS + MATCH CARD DYNAMIC
──────────────────────────────────────────────────────────── */

/* Overlay */
.eq-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eq-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.eq-modal__box {
  position: relative;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px 32px;
  width: 420px;
  max-width: 95vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.eq-modal__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 20px;
}

/* Form */
.eq-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eq-form__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.eq-form__input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 9px 12px;
  font-family: var(--font-main);
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.eq-form__input:focus {
  border-color: var(--accent-blue);
}

.eq-form__actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  justify-content: flex-end;
}

.eq-form__cancel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 18px;
  font-family: var(--font-main);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s;
}

.eq-form__cancel:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}

.eq-form__save {
  background: var(--accent-blue);
  border: none;
  border-radius: 8px;
  padding: 8px 22px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  cursor: pointer;
  transition:
    opacity 0.15s,
    transform 0.15s;
}

.eq-form__save:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.eq-form__save:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* Match-card dynamic edit button */
.match-card__edit {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.match-card__edit:hover {
  color: var(--accent-blue);
}

.match-card__edit svg {
  width: 15px;
  height: 15px;
} /* -- Estilos Leaderboard de Inicio -- */
.leaderboard-sidebar::-webkit-scrollbar {
  width: 6px;
}
.leaderboard-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}
.leaderboard-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
.toggle-logs-btn:hover svg {
  transform: translateY(2px) !important;
}

/* --- Extracted from index.html --- */

/* ==========================================
           DASHBOARD CUSTOM STYLES
           ========================================== */
.kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 98, 168, 0.4) !important;
}

.next-match-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition:
    background 0.2s,
    transform 0.2s;
}

.next-match-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(4px);
}

/* --- Extracted from encuentros.html --- */

/* ================================================================
           ENCUENTROS v2 — Cronograma Grid Unificado + Panel Dinámico
           Estilos inline para no contaminar style.css durante prototipado
           ================================================================ */

* {
  box-sizing: border-box;
}

/* ── Layout del cronograma ── */
.enc-main {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.enc-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  background: var(--bg-dark);
}

.schedule-section {
  flex: 3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--border-subtle);
  min-width: 0;
}

.schedule-scroll {
  flex: 1;
  overflow: auto;
  min-height: 0;
  position: relative;
}

.schedule-scroll::-webkit-scrollbar {
  height: 6px;
}

.schedule-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.schedule-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

/* ── Grid Unificado ── */
.sched-grid {
  display: grid;
  /* 1 col hora (60px) + 15 cols zonas (5 días × 3 zonas) */
  /* Se aumentó el ancho base de 130px a 195px (50% más) */
  grid-template-columns: 60px repeat(15, minmax(195px, 1fr));
  min-width: fit-content;
  position: relative;
}

/* Marcador de hora actual (Pulso) */
#now-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: #ff485770;
  z-index: 30;
  /* Encima de todo */
  pointer-events: none;
  display: none;
  /* Se activa vía JS */
  will-change: top;
  transition: top 0.3s ease;
}

/* Optimizaciones para evitar el "lag" (jitter) al scrollear */
.sched-day-hdr,
.sched-zone-hdr,
.sched-corner,
.sched-hour {
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-font-smoothing: subpixel-antialiased;
}

/* ── Header Día (Fijo en Y, se mueve en X) ── */
.sched-day-hdr {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 48px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  /* Hardware acceleration similar al marcador de horas */
  backface-visibility: hidden;
  transform: translateZ(0);
}

.sched-day-hdr span:first-child {
  color: rgba(0, 0, 0, 0.8);
}

.sched-day-date {
  font-size: 9px;
  font-weight: 400;
  opacity: 0.65;
  color: rgba(0, 0, 0, 0.7);
}

.sched-day-hdr--blue {
  background: var(--accent-blue-hover);
}

.sched-day-hdr--white {
  background: rgb(229, 229, 229);
}

/* ── Header Zona (Fijo en Y con offset, se mueve en X) ── */
.sched-zone-hdr {
  position: sticky;
  top: 48px;
  /* Altura del day-hdr */
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-on-accent);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backface-visibility: hidden;
  transform: translateZ(0);
}

.sched-zone-hdr--blue {
  background: var(--accent-blue);
}

.sched-zone-hdr--white {
  background: var(--text-white);
}

/* Corner: La intersección perfecta (Fijo en X e Y) */
.sched-corner {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 50;
  background: var(--bg-dark);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.sched-corner--zone {
  position: sticky;
  top: 48px;
  left: 0;
  z-index: 45;
  background: var(--bg-dark);
}

/* ── Columna de Hora (Fijo en X, se mueve en Y) ── */
.sched-hour {
  position: sticky;
  left: 0;
  z-index: 20;
  background: var(--bg-dark);
  border-right: 1px solid var(--border-subtle);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 6px 8px 0 0;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  height: 156px;
  /* 1 hora = 156px (13px = 5 min) */
  box-sizing: border-box;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* ── Celda de evento ── */
.sched-cell {
  height: 156px;
  padding: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  box-sizing: border-box;
}

.sched-cell--odd {
  background: rgba(0, 0, 0, 0.05);
}

.sched-cell--even {
  background: transparent;
}

/* Columna contenedora para drop y eventos posicionados */
.sched-col {
  position: relative;
  height: 100%;
  grid-row: 3 / span 8;
  /* Cubre desde las 8:00 hasta las 16:00 (8 horas) */
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

/* ── Evento ── */
.sched-evt {
  position: absolute;
  left: 2px;
  /* Se anulará con JS para solapamientos */
  right: 2px;
  /* Se anulará con JS para solapamientos */
  border-radius: 6px;
  padding: 6px 8px;
  cursor: move;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    top 0.15s ease,
    width 0.2s ease,
    left 0.2s ease;
  z-index: 10;
  overflow: hidden;
  border-left: 4px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.sched-evt:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 20;
}

.evento-preview {
  border-radius: 6px;
  backdrop-filter: blur(2px);
  z-index: 100;
  pointer-events: none;
  /* Evitar que interfiera con dragover de la columna */
}

.evento-real {
  font-size: 11px;
  padding: 5px 7px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: var(--text-white);
  box-sizing: border-box;
  border-radius: 6px;
  transition:
    opacity 0.2s ease,
    top 0.15s ease;
}

.dragging,
.evento-preview {
  opacity: 0.35;
  pointer-events: none;
}

/* Ocultar contenido durante el arrastre para que solo se vea el borde */
.dragging > *,
.evento-preview > * {
  display: none !important;
}

.evento-hora {
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
  line-height: 1;
  margin-bottom: 2px;
}

.evento-etapa {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.evento-equipos {
  font-size: 10px;
  line-height: 1.1;
  opacity: 0.85;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: 2px;
}

.sched-evt__title {
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sched-evt__teams {
  font-size: 8px;
  font-weight: 400;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sched-evt__stage {
  font-size: 7px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.6;
  margin-top: auto;
}

/* Colores por disciplina */
.sched-evt--futvar {
  background: var(--color-info-bg);
  border-left: 3px solid var(--color-info-border);
  color: var(--color-info-text);
}

.sched-evt--futfem {
  background: #3a1c40;
  border-left: 3px solid #c862e0;
  color: #e8c0f0;
}

.sched-evt--basket {
  background: #3b2a10;
  border-left: 3px solid #f5a623;
  color: #f5ddb0;
}

.sched-evt--voley {
  background: #0d3328;
  border-left: 3px solid #2ecc71;
  color: #b0f0d0;
}

.sched-evt--ajedrez {
  background: #2a2a3a;
  border-left: 3px solid #9b59b6;
  color: #d8c0e8;
}

.sched-evt--tenis {
  background: #1a3030;
  border-left: 3px solid #1abc9c;
  color: #b0e8d8;
}

.sched-evt--atletismo {
  background: #3a1a1a;
  border-left: 3px solid #e74c3c;
  color: #f0c0b8;
}

/* ================================================================
           PANEL DERECHO — Vistas Dinámicas
           ================================================================ */
.panel-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0;
  background: var(--bg-sidebar);
  min-width: 260px;
  max-width: 340px;
}

.panel-view {
  display: none;
  flex-direction: column;
  padding: 20px 18px;
  gap: 14px;
  flex: 1;
  overflow-y: auto;
  /* El scrollbar ahora está aquí para que todo se alinee */
}

.panel-view--active {
  display: flex !important;
}

/* Tabs comunes */
.panel-tabs {
  display: flex;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-subtle);
  flex-shrink: 0;
}

.panel-tab {
  background: transparent;
  border: none;
  font-family: var(--font-main);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 0 8px;
  position: relative;
  transition: color 0.2s ease;
}

.panel-tab--active {
  color: var(--text-white);
}

.panel-tab--active::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-blue);
  border-radius: 2px;
}

/* Info header */
.panel-info__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
}

.panel-info__desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* CTA Button */
.panel-cta-btn {
  width: 100%;
  padding: 11px 0;
  background: var(--text-white);
  color: var(--text-on-accent);
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.panel-cta-btn:hover {
  background: var(--bg-light);
  transform: translateY(-1px);
}

/* ── Selector de Etiquetas (Chips) ── */
.chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  min-height: 42px;
  align-items: center;
  position: relative;
}

.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: chipIn 0.2s ease-out;
}

@keyframes chipIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.chip__remove {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}

.chip__remove:hover {
  opacity: 1;
  color: var(--accent-blue);
}

.chip.dragging {
  opacity: 0.5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transform: scale(1.05);
  transition: none; /* Disable transition during drag so it follows cursor smoothly */
  z-index: 1000;
}

.chip-add-btn {
  background: transparent;
  border: 1px dashed var(--text-muted);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chip-add-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.chip-dropdown {
  position: absolute;
  z-index: 100;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
  left: 0;
  top: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  display: none;
}

.chip-dropdown--active {
  display: block;
}

.chip-dropdown__item {
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--text-white);
}

.chip-dropdown__item:hover {
  background: rgba(15, 98, 168, 0.2);
}

.panel-form__group--disabled {
  opacity: 0.4;
  pointer-events: none;
}

.panel-form__group--hidden {
  display: none;
}

/* Match card */
.panel-match {
  background: var(--bg-card);
  border: 1px solid var(--color-disc, rgba(100, 150, 255, 0.2));
  border-left: 5px solid var(--color-disc, rgba(100, 150, 255, 0.2));
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: default;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.panel-match:hover {
  border-color: var(--color-disc, rgba(100, 150, 255, 0.45));
  transform: translateY(-2px);
}

.panel-match__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.panel-match__disc {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-white);
}

.panel-match__round {
  font-size: 10px;
  color: var(--text-muted);
}

.panel-match__pts {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-blue);
}

.panel-match__dur {
  font-size: 10px;
  color: var(--text-muted);
}

.panel-match__teams {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
}

.panel-match__foot {
  display: flex;
  justify-content: flex-end;
}

.panel-match__edit {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.panel-match__edit:hover {
  color: var(--accent-blue);
}

.panel-match__edit svg {
  width: 15px;
  height: 15px;
}

.panel-match__edit--danger:hover {
  color: var(--color-danger-text) !important;
}

/* Match list */
.panel-match-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  /* Ya no es flex-grow porque el scroll es del padre */
  padding-top: 10px;
}

/* ── Search & Sort ── */
.panel-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 1;
  width: 100%;
}

.panel-search {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s ease;
  width: 70%;
}

.panel-search:focus {
  border-color: var(--accent-blue);
}

.panel-sort {
  flex: 1;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 11px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  padding-right: 28px;
  transition: border-color 0.2s ease;
  width: 30%;
}

.panel-sort:focus {
  border-color: var(--accent-blue);
}

.panel-sort option {
  color: var(--text-on-light);
}

/* ── Form styles ── */
.panel-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.panel-form__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel-form__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.panel-form__input,
.panel-form__select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 9px 12px;
  font-family: var(--font-main);
  font-size: 13px;
  color: var(--text-white);
  outline: none;
  transition: border-color 0.15s;
}

.panel-form__input:focus,
.panel-form__select:focus {
  border-color: var(--accent-blue);
}

.panel-form__select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  padding-right: 28px;
}

.panel-form__select option {
  background: var(--bg-dark);
  color: var(--text-white);
}

/* Form buttons */
.panel-form__actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

.panel-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}

.panel-btn--primary {
  background: var(--accent-blue);
  color: var(--text-on-accent);
}

.panel-btn--primary:hover {
  transform: translateY(-1px);
}

.panel-btn--outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
}

.panel-btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text-white);
}

.panel-btn--danger {
  background: transparent;
  border: 1.5px solid var(--color-danger);
  color: var(--color-danger-text);
}

.panel-btn--danger:hover {
  background: rgba(255, 77, 77, 0.1);
}

/* Back button */
.panel-back {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  transition: color 0.15s;
  flex-shrink: 0;
}

.panel-back:hover {
  color: var(--text-white);
}

.panel-back svg {
  width: 14px;
  height: 14px;
}

/* ── Vista E: Equipos seleccionables ── */
.result-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.result-team:hover {
  border-color: var(--accent-blue);
  background: rgba(224, 136, 191, 0.05);
}

.result-team--selected {
  border-color: var(--accent-blue) !important;
  background: rgba(224, 136, 191, 0.12) !important;
}

.result-team__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
}

.result-team__check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.result-team--selected .result-team__check {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.result-team--selected .result-team__check::after {
  content: "✓";
  color: var(--text-on-accent);
  font-size: 11px;
  font-weight: 700;
}

.result-pts-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-pts-label {
  font-size: 12px;
  color: var(--text-muted);
}

.result-pts-input {
  width: 70px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-blue);
  outline: none;
  text-align: center;
}

.result-pts-input:focus {
  border-color: var(--accent-blue);
}

/* Animación de resaltado para doble clic — efecto "press" */
@keyframes highlightPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  30% {
    transform: scale(0.98);
    opacity: 0.9;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.panel-match--highlight {
  animation: highlightPulse 0.4s ease-in-out;
}

/* --- Extracted from disciplinas.html --- */

.panel-search {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s ease;
  width: 70%;
}

.panel-search:focus {
  border-color: var(--accent-blue);
}

.panel-sort {
  flex: 1;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 11px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  padding-right: 28px;
  transition: border-color 0.2s ease;
  width: 20%;
}

.panel-sort:focus {
  border-color: var(--accent-blue);
}

.panel-sort option {
  color: var(--text-on-light);
}

/* ==========================================
   UNIVERSAL LOADING SPINNER
   ========================================== */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-primary.is-loading,
.panel-cta-btn.is-loading,
button.is-loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}

.btn-primary.is-loading::after,
.panel-cta-btn.is-loading::after,
button.is-loading::after {
  content: \'\';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--text-white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ==========================================
   NON-INTERACTIVE RIGHT PANEL MATCHES
   ========================================== */
.panel-right .panel-match:hover {
  transform: none !important;
  border-color: var(--color-disc, rgba(100, 150, 255, 0.2)) !important;
  box-shadow: none !important;
  background: var(--bg-card);
}

/* =========================================================================
   LOGIN SYSTEM (Split-Screen)
   ========================================================================= */

@font-face {
  font-family: "Chella-type";
  src: url("private/ChellaType-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.login-split {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-overlay);
}

.login-left {
  width: 30%;
  min-width: 320px;
  background: var(--bg-card); /* Dark solid background */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  z-index: 10;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.login-right {
  width: 70%;
  position: relative;
  background-image: url("private/login.png");
  background-size: cover;
  background-position: center;
}

.login-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: grayscale(80%) sepia(20%) hue-rotate(180deg);
}

.login-form-container {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.login-title {
  font-family: "Chella-type", sans-serif;
  font-size: 48px;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.login-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  padding: 14px 16px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 15px;
  transition: all 0.2s ease;
  outline: none;
}

.login-input:focus {
  border-color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(15, 98, 168, 0.15);
}

/* Ocultar botones nativos de los navegadores (Edge/IE) */
.login-input::-ms-reveal,
.login-input::-ms-clear {
  display: none;
}

/* =========================================================================
   DISCIPLINAS SAVE BUTTON
   ========================================================================= */
.btn-save-bulk {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 8px;
  padding: 12px 16px;
  background: var(--accent-blue);
  color: var(--bg-dark);
  border: none;
  border-radius: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  margin-top: 24px;
}

.btn-save-bulk:hover:not(:disabled) {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-save-bulk:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.login-btn {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  background: var(--accent-blue);
  color: var(--bg-dark);
  border: none;
  border-radius: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.login-btn:hover {
  background: var(--accent-blue-hover);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Auth specific errors */
.login-error {
  color: var(--color-danger-text);
  font-size: 13px;
  text-align: center;
  margin-top: -12px;
  min-height: 20px;
}
