/* assets/css/style.css - Sistema de Asistencia I.E.S.T. La Recoleta
   Diseño Clásico, Limpio, Ordenado y Profesional (Azul Oscuro, Blanco y Gris) */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Paleta Institucional Clásica: Azul Oscuro, Blanco y Gris */
  --primary-navy: #0f2744;          /* Azul marino institucional profundo */
  --primary-navy-dark: #0a192f;     /* Azul noche / fondo oscuro */
  --primary-navy-light: #1b3a5b;    /* Azul clásico medio */
  --primary-blue: #1e3a8a;          /* Azul formal */
  --accent-blue: #2563eb;           /* Azul acento sutil */
  --accent-hover: #1d4ed8;

  /* Escala de Grises y Fondos */
  --bg-page: #f8fafc;               /* Gris muy claro institucional */
  --bg-card: #ffffff;               /* Blanco puro */
  --bg-subtle: #f1f5f9;             /* Gris suave para contenedores */
  --border-color: #e2e8f0;          /* Gris bordes */
  --border-dark: #cbd5e1;           /* Gris bordes destacados */
  
  --text-main: #0f172a;             /* Texto principal carbón oscuro */
  --text-secondary: #334155;        /* Texto secundario gris oscuro */
  --text-muted: #64748b;            /* Texto atenuado */

  /* Estados de Asistencia (Semáforo Institucional) */
  --color-verde: #047857;           /* Verde formal éxito */
  --color-verde-bg: #ecfdf5;
  --color-verde-border: #a7f3d0;
  --color-verde-text: #065f46;

  --color-amarillo: #b45309;         /* Ámbar formal tardanza */
  --color-amarillo-bg: #fffbeb;
  --color-amarillo-border: #fde68a;
  --color-amarillo-text: #92400e;

  --color-rojo: #b91c1c;             /* Rojo carmesí falta */
  --color-rojo-bg: #fef2f2;
  --color-rojo-border: #fecaca;
  --color-rojo-text: #991b1b;

  /* Geometría y Sombras Clásicas */
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
}

/* Reset Universal y Tipografía */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ENCABEZADO INSTITUCIONAL */
.recoleta-navbar {
  background: var(--primary-navy);
  border-bottom: 2px solid var(--primary-navy-light);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.navbar-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: #ffffff;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  object-fit: contain;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-user-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-role-badge {
  background: var(--primary-navy-light);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-live-clock-badge {
  background: #09121d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #60a5fa;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* BOTONES PROFESIONALES */
.btn-recoleta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
  border: 1px solid transparent;
  line-height: 1.3;
}

.btn-primary {
  background-color: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}

.btn-primary:hover {
  background-color: var(--primary-navy-light);
  border-color: var(--primary-navy-light);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-secondary);
  border-color: var(--border-dark);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  color: var(--text-main);
  border-color: #94a3b8;
}

.btn-success {
  background-color: var(--color-verde);
  color: #ffffff;
  border-color: var(--color-verde);
}

.btn-success:hover {
  background-color: #065f46;
  color: #ffffff;
}

.btn-danger {
  background-color: var(--color-rojo);
  color: #ffffff;
  border-color: var(--color-rojo);
}

.btn-danger:hover {
  background-color: #991b1b;
  color: #ffffff;
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary-navy);
  border-color: var(--primary-navy);
}

.btn-outline-primary:hover {
  background-color: var(--primary-navy);
  color: #ffffff;
}

/* TARJETAS INSTITUCIONALES (CARDS) */
.recoleta-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s ease;
}

.recoleta-card:hover {
  box-shadow: var(--shadow-md);
}

.card-header-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card-title-clean {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* FORMULARIOS Y CONTROLES */
.form-group-clean {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-control-custom {
  width: 100%;
  padding: 0.65rem 0.95rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: #ffffff;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.form-control-custom:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* TABLAS CLÁSICAS ORDENADAS */
.table-responsive-clean {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #ffffff;
}

.recoleta-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.recoleta-table thead {
  background-color: var(--primary-navy);
  color: #ffffff;
}

.recoleta-table th {
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--primary-navy-light);
  white-space: nowrap;
}

.recoleta-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  color: var(--text-secondary);
}

.recoleta-table tbody tr:nth-child(even) {
  background-color: #fafbfc;
}

.recoleta-table tbody tr:hover {
  background-color: #f1f5f9;
}

/* BADGES DE ESTADO (SEMÁFORO) */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge-asistio {
  background-color: var(--color-verde-bg);
  color: var(--color-verde-text);
  border: 1px solid var(--color-verde-border);
}

.badge-tarde {
  background-color: var(--color-amarillo-bg);
  color: var(--color-amarillo-text);
  border: 1px solid var(--color-amarillo-border);
}

.badge-falta {
  background-color: var(--color-rojo-bg);
  color: var(--color-rojo-text);
  border: 1px solid var(--color-rojo-border);
}

.badge-neutral {
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   PANEL ADMIN INSTITUCIONAL CON SIDEBAR MODERNO (AZUL MARINO Y GRIS)
   ========================================================================== */
.admin-layout-wrapper {
  display: flex;
  min-height: 100vh;
  background-color: #f8fafc;
  width: 100%;
}

/* SIDEBAR INSTITUCIONAL */
.admin-sidebar {
  width: 270px;
  min-width: 270px;
  background: linear-gradient(180deg, #0f2744 0%, #152c4a 50%, #0d1e33 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
  z-index: 100;
}

.sidebar-header {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(0, 0, 0, 0.15);
}

.sidebar-brand-text h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.sidebar-brand-text span {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

/* TARJETA DE USUARIO EN SIDEBAR */
.sidebar-user-card {
  margin: 1rem 1.1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.sidebar-user-card .sub-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 2px;
}

.sidebar-user-card .user-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-card .user-role {
  display: inline-block;
  margin-top: 4px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* MENÚ DE NAVEGACIÓN EN SIDEBAR */
.sidebar-menu,
.sidebar-nav-list {
  list-style: none;
  padding: 0.5rem 0.85rem;
  margin: 0;
  flex: 1;
}

.sidebar-menu-item,
.sidebar-nav-item {
  margin-bottom: 0.3rem;
}

.sidebar-link,
.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.18s ease;
  position: relative;
}

.sidebar-link .icon,
.sidebar-nav-link .icon {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  flex-shrink: 0;
}

.sidebar-link:hover,
.sidebar-nav-link:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  transform: translateX(3px);
}

.sidebar-link.active,
.sidebar-nav-link.active {
  background: #ffffff;
  color: #0f2744 !important;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.sidebar-link.active .icon,
.sidebar-nav-link.active .icon {
  transform: scale(1.1);
}

/* ÁREA DE CONTENIDO PRINCIPAL */
.admin-main-content,
.admin-content-area {
  flex: 1;
  padding: 2rem 2.25rem;
  overflow-y: auto;
  max-width: 1450px;
  background-color: #f8fafc;
}

/* BARRA SUPERIOR DEL PANEL ADMIN */
.admin-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 39, 68, 0.05);
  margin-bottom: 1.75rem;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.admin-title-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-title-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.admin-title-box h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f2744;
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}

.admin-title-box p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

.top-date-clock-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-badge-date,
.top-badge-clock {
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e2e8f0;
}

.top-badge-date {
  background: #f8fafc;
  color: #334155;
}

.top-badge-clock {
  background: #0f2744;
  color: #60a5fa;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  border-color: #0f2744;
}

/* KPI CARDS (DASHBOARD) */
.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.kpi-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(15, 39, 68, 0.06);
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 39, 68, 0.1);
}

.kpi-dark {
  background: linear-gradient(135deg, #0f2744 0%, #1b3a5b 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.kpi-dark .kpi-num { color: #ffffff; }
.kpi-dark .kpi-title { color: #cbd5e1; }
.kpi-dark .kpi-sub { color: #94a3b8; }
.kpi-dark .kpi-icon-badge { background: rgba(255, 255, 255, 0.12); color: #ffffff; }

.kpi-orange,
.kpi-blue {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.kpi-orange .kpi-num,
.kpi-blue .kpi-num { color: #ffffff; }
.kpi-orange .kpi-title,
.kpi-blue .kpi-title { color: #dbeafe; }
.kpi-orange .kpi-sub,
.kpi-blue .kpi-sub { color: #bfdbfe; }
.kpi-orange .kpi-icon-badge,
.kpi-blue .kpi-icon-badge { background: rgba(255, 255, 255, 0.15); color: #ffffff; }

.kpi-white-blue,
.kpi-white-orange {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.kpi-white-blue .kpi-num { color: #0f2744; }
.kpi-white-blue .kpi-title { color: #64748b; }
.kpi-white-blue .kpi-sub { color: #94a3b8; }
.kpi-white-blue .kpi-icon-badge { background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; }

.kpi-white-orange .kpi-num { color: #0f2744; }
.kpi-white-orange .kpi-title { color: #64748b; }
.kpi-white-orange .kpi-sub { color: #94a3b8; }
.kpi-white-orange .kpi-icon-badge { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }

.kpi-num {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 0.35rem;
}

.kpi-title {
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.kpi-sub {
  font-size: 0.76rem;
}

.kpi-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

/* GRÁFICOS (DASHBOARD) */
.dashboard-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.chart-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(15, 39, 68, 0.05);
}

.chart-card-header {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f2744;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* BADGES DE ROLES Y ESTADOS EN TABLAS ADMIN */
.badge-rol {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.badge-rol-admin {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.badge-rol-docente {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.badge-rol-estudiante {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.badge-estado-activo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 9999px;
}

.badge-estado-activo::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.badge-estado-inactivo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 9999px;
}

.badge-estado-inactivo::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
}

/* BOTÓN EXCEL INSTITUCIONAL */
.btn-excel {
  background-color: #047857;
  color: #ffffff !important;
  border: 1px solid #065f46;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.25);
  transition: all 0.15s ease;
}

.btn-excel:hover {
  background-color: #065f46;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(4, 120, 87, 0.35);
}

.count-pill {
  background: #ffffff;
  color: #0f2744;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  margin-left: 4px;
}


/* SISTEMA DE VOZ Y ASISTENCIA VISUAL */
.voice-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.voice-wave-anim {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}

.voice-wave-anim span {
  width: 2px;
  height: 100%;
  background-color: #2563eb;
  border-radius: 1px;
  animation: wave 1s infinite ease-in-out;
}

.voice-wave-anim span:nth-child(2) { animation-delay: 0.2s; }
.voice-wave-anim span:nth-child(3) { animation-delay: 0.4s; }

@keyframes wave {
  0%, 100% { height: 4px; }
  50% { height: 12px; }
}

/* BANNER DE REGLAS DE HORARIOS */
.horarios-banner {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.horarios-list {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.horario-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-green { background-color: var(--color-verde); }
.dot-yellow { background-color: var(--color-amarillo); }
.dot-red { background-color: var(--color-rojo); }

/* CAJA DE ESCANEO DE PISTOLA */
.gun-scanner-box {
  background-color: #ffffff;
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

.gun-scanner-box.focused {
  border-color: var(--accent-blue);
  background-color: #f8fafc;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

/* MODALES */
.modal-backdrop-custom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop-custom.active {
  display: flex;
}

.modal-content-custom {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header-custom {
  background-color: var(--primary-navy);
  color: #ffffff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body-custom {
  padding: 1.5rem;
}

.modal-footer-custom {
  padding: 1rem 1.5rem;
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* TARJETAS DE CARGA MASIVA */
.carga-masiva-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(15, 39, 68, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.carga-masiva-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 39, 68, 0.08);
  border-color: #cbd5e1;
}

.carga-masiva-card .card-head {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f2744;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* TARJETA / CREDENCIAL DIGITAL DEL ESTUDIANTE (1D CODE 128 + QR 2D) */
.student-credential-card {
  background: linear-gradient(135deg, #0f2744 0%, #152c4a 100%);
  color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 39, 68, 0.25);
  border: 2px solid #2563eb;
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}

.student-credential-card .cred-header {
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.student-credential-card .cred-inst-name {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.student-credential-card .cred-inst-sub {
  font-size: 0.72rem;
  color: #93c5fd;
  font-weight: 600;
}

.student-credential-card .cred-tag {
  background: #2563eb;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.student-credential-card .cred-body {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
}

.student-credential-card .cred-qr-box {
  background: #ffffff;
  padding: 6px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.student-credential-card .cred-info {
  flex: 1;
}

.student-credential-card .cred-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 4px;
}

.student-credential-card .cred-dni {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: #93c5fd;
  margin-bottom: 4px;
}

/* ADAPTABILIDAD RESPONSIVE (LAPTOPS, TABLETS, COMPUTADORAS) */
@media (max-width: 1024px) {
  .admin-sidebar {
    width: 220px;
  }
  .admin-content-area {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .admin-layout-wrapper {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .navbar-container {
    padding: 0.75rem 1rem;
  }
  .admin-content-area {
    padding: 1rem;
  }
}
