@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap");
/* ==========================================================================
   2. CONFIGURACIÓN DINÁMICA DE TEMAS (Aquí ocurre la magia)
   ========================================================================== */
:root {
  --fondo-app: #000000;
  --fondo-degradado: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
  --fondo-tarjeta: #0a0a0a;
  --fondo-input: #121212;
  --borde-glass: rgba(255, 255, 255, 0.1);
  --texto-principal: #ffffff;
  --texto-secundario: rgba(255, 255, 255, 0.7);
  --texto-muted: #444444;
  --verde-institucional: #39d353;
  --naranja-institucional: #ff9800;
  --naranja-hover: #ef6c00;
  --color-exito: #39d353;
  --color-alerta: #ff5252;
}

[data-theme=light] {
  --fondo-app: #f5f5f7;
  --fondo-degradado: linear-gradient(135deg, #f5f5f7 0%, #e5e5ea 100%);
  --fondo-tarjeta: #ffffff;
  --fondo-input: #f0f0f3;
  --borde-glass: rgba(0, 0, 0, 0.12);
  --texto-principal: #1d1d1f;
  --texto-secundario: #434345;
  --texto-muted: #8e8e93;
  --verde-institucional: #2e7d32;
  --naranja-institucional: #e65100;
  --naranja-hover: #d84315;
  --color-exito: #2e7d32;
}

/* ==========================================================================
   3. TIPOGRAFÍAS Y ESCALAS (Se mantienen constantes)
   ========================================================================== */
/* ==========================================================================
   Reset y Comportamiento Base Universal
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-size: 1.8rem;
  font-family: "Inter", -apple-system, sans-serif;
  background: var(--fondo-degradado);
  background-attachment: fixed;
  color: var(--texto-principal);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Enlaces ScanClass */
a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}
a:hover {
  color: var(--verde-institucional);
}

/* Títulos con tipografía institucional */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--texto-principal);
  font-family: "Poppins", -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Contenedores del Layout */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ==========================================================================
   Componentes Globales: Botones Scan
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 1.4rem 2.8rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--verde-institucional);
  color: #000000;
  font-family: "Poppins", -apple-system, sans-serif;
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--naranja-institucional);
  color: #ffffff;
  box-shadow: 0 0.8rem 2.5rem rgba(255, 152, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn--secondary {
  background: var(--fondo-tarjeta);
  color: var(--texto-principal);
  border: 1px solid var(--borde-glass);
}
.btn--secondary:hover {
  color: var(--verde-institucional);
  border-color: var(--verde-institucional);
  background: rgba(57, 211, 83, 0.05);
  box-shadow: none;
  transform: none;
}

/* ==========================================================================
   Componentes Globales: Campos de Entrada
   ========================================================================== */
.campo {
  margin-bottom: 2.5rem;
}
.campo label {
  display: block;
  font-size: 1.6rem;
  color: var(--naranja-institucional);
  margin-bottom: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.campo input[type=text],
.campo input[type=password],
.campo input[type=number],
.campo select,
.campo textarea {
  width: 100%;
  background: var(--fondo-input);
  border: 1px solid var(--borde-glass);
  border-radius: 1.2rem;
  padding: 1.5rem;
  color: var(--texto-principal);
  font-size: 1.8rem;
  transition: all 0.2s ease;
}
.campo input[type=text]:focus,
.campo input[type=password]:focus,
.campo input[type=number]:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--verde-institucional);
  box-shadow: 0 0 1.5rem rgba(57, 211, 83, 0.25);
}

/* ==========================================================================
   Componentes Globales: Tarjetas Sólidas Minimalistas
   ========================================================================== */
.card {
  background: var(--fondo-tarjeta);
  border: 1px solid var(--borde-glass);
  border-radius: 2.5rem;
  padding: 3rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.5);
}
.card__title {
  color: var(--verde-institucional);
  margin-bottom: 2rem;
  font-size: 3.2rem;
}

.theme-switch-wrapper {
  position: fixed;
  top: 2.5rem;
  left: 2.5rem;
  z-index: 99;
}

.btn-theme-toggle {
  background: var(--fondo-tarjeta);
  border: 1px solid var(--borde-glass);
  color: var(--texto-principal);
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  box-shadow: 0 0.8rem 2.5rem rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}
.btn-theme-toggle:hover {
  border-color: var(--verde-institucional);
  color: var(--verde-institucional);
  transform: scale(1.08);
}

/* ==========================================================================
   PANTALLA DE INICIO DE SESIÓN - CONCEPTO SCANCLASS
   ========================================================================== */
.body-login {
  background: var(--fondo-degradado);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.contenedor-login {
  width: 100%;
  max-width: 45rem;
  display: flex;
  flex-direction: column;
}

.login-card {
  background: var(--fondo-tarjeta);
  border: 1px solid var(--borde-glass);
  border-radius: 2.5rem;
  padding: 4rem 3.5rem;
  text-align: center;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--verde-institucional);
  box-shadow: 0 0 1.5rem var(--verde-institucional);
}
.login-card__logo {
  height: 8.5rem;
  width: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 0.8rem rgba(255, 255, 255, 0.1));
}
.login-card__titulo {
  font-family: "Poppins", -apple-system, sans-serif;
  font-size: 3.2rem;
  color: var(--texto-principal);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}
.login-card__subtitulo {
  font-size: 1.6rem;
  color: var(--texto-secundario);
  margin-bottom: 3rem;
  font-weight: 500;
}

.form-login {
  text-align: left;
}

.campo-group {
  margin-bottom: 2.5rem;
  position: relative;
}
.campo-group label {
  display: block;
  font-size: 1.6rem;
  color: var(--texto-principal);
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.campo-group input[type=text],
.campo-group input[type=password] {
  width: 100%;
  background: var(--fondo-input);
  border: 1px solid var(--borde-glass);
  border-radius: 1.2rem;
  padding: 1.5rem;
  color: var(--texto-principal);
  font-size: 1.8rem;
  transition: all 0.25s ease;
}
.campo-group input[type=text]::placeholder,
.campo-group input[type=password]::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.campo-group input[type=text]:focus,
.campo-group input[type=password]:focus {
  outline: none;
  border-color: var(--verde-institucional);
  box-shadow: 0 0 1.5rem rgba(57, 211, 83, 0.2);
  background: #151515;
}

.password-wrapper {
  position: relative;
}
.password-wrapper .toggle-password {
  position: absolute;
  right: 1.5rem;
  bottom: 1.2rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--texto-secundario);
  user-select: none;
  transition: color 0.2s ease;
}
.password-wrapper .toggle-password:hover {
  color: var(--verde-institucional);
}

.btn-login {
  width: 100%;
  background: var(--verde-institucional);
  color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.6rem;
  border-radius: 1.2rem;
  font-family: "Poppins", -apple-system, sans-serif;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-login:hover {
  background: var(--naranja-institucional);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0.8rem 2.5rem rgba(255, 152, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-login:active {
  transform: translateY(0);
}

.error-alerta {
  background: rgba(255, 82, 82, 0.1);
  border: 1px solid var(--color-alerta);
  color: var(--color-alerta);
  padding: 1.2rem 1.5rem;
  border-radius: 1.2rem;
  font-size: 1.6rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  text-align: left;
}
.error-alerta span {
  font-size: 1.8rem;
}

.theme-switch-wrapper {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 10;
}

.btn-theme-toggle {
  background: var(--fondo-tarjeta);
  border: 1px solid var(--borde-glass);
  color: var(--texto-principal);
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: all 0.2s ease;
}
.btn-theme-toggle:hover {
  border-color: var(--verde-institucional);
  color: var(--verde-institucional);
  transform: scale(1.05);
}

/* ==========================================================================
   CONSOLA DE MONITOREO (PREFECTOS) - ESTILO SCANCLASS
   ========================================================================== */
.dashboard-container {
  padding-bottom: 4rem;
}

.main-header {
  border-bottom: 2px solid var(--borde-glass);
  padding: 2rem 0;
  margin-bottom: 3rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
}
.main-header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.logo-console {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo-console img {
  height: 5rem;
  width: auto;
}
.logo-console .brand-name {
  font-family: "Poppins", -apple-system, sans-serif;
  font-size: 3.2rem;
  letter-spacing: 0.5px;
  color: var(--texto-principal);
}
.logo-console .brand-name span {
  color: var(--verde-institucional);
  text-shadow: 0 0 1rem rgba(57, 211, 83, 0.3);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--borde-glass);
  padding: 0.8rem 1.6rem;
  border-radius: 3rem;
}
.user-pill__icon {
  font-size: 2rem;
}
.user-pill__text {
  display: flex;
  flex-direction: column;
  font-size: 1.6rem;
}
.user-pill__text .welcome {
  color: var(--texto-secundario);
  font-size: 1.2rem;
}
.user-pill__text .username {
  font-weight: 700;
  color: var(--texto-principal);
}

/* ==========================================================================
   BARRA DE ACCIONES CON BADGES DENTRO DEL CONTENEDOR
   ========================================================================== */
.action-bar {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 480px) {
  .action-bar {
    flex-direction: column;
  }
}

.btn-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  background: var(--fondo-tarjeta);
  border: 1px solid var(--borde-glass);
  padding: 1.8rem;
  border-radius: 1.2rem;
  font-family: "Poppins", -apple-system, sans-serif;
  font-size: 1.8rem;
  color: var(--texto-principal);
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-action .icon {
  font-size: 2.4rem;
}
.btn-action:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--verde-institucional);
  color: var(--verde-institucional);
  transform: translateY(-2px);
}
.btn-action .badge-alerta {
  position: absolute;
  top: -1rem;
  right: -0.5rem;
  background: var(--color-alerta);
  color: #ffffff;
  font-size: 1.2rem;
  font-family: "Inter", -apple-system, sans-serif;
  font-weight: bold;
  min-width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  box-shadow: 0 0 1.5rem rgba(255, 82, 82, 0.5);
}

/* ==========================================================================
   MAPA Y ENTORNO DE CONTROL LEAFLET
   ========================================================================== */
.map-wrapper {
  background: var(--fondo-tarjeta);
  border: 1px solid var(--borde-glass);
  border-radius: 2.5rem;
  padding: 2.5rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.6);
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--borde-glass);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}
.map-header h2 {
  font-size: 2.4rem;
  color: var(--texto-principal);
}
.map-header .live-badge {
  background: rgba(57, 211, 83, 0.1);
  border: 1px solid var(--verde-institucional);
  color: var(--verde-institucional);
  padding: 0.5rem 1.2rem;
  border-radius: 0.6rem;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
  animation: pulseScan 2s infinite alternate;
}

.map-controls {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 2rem;
}
.map-controls .control-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
  min-width: 14rem;
}
.map-controls .control-group label {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--naranja-institucional);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-refresh {
  background: transparent;
  color: var(--texto-principal);
  border: 1px solid var(--borde-glass);
  padding: 1.2rem 2.2rem;
  border-radius: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  height: 4.8rem;
  transition: all 0.2s ease;
}
.btn-refresh:hover {
  border-color: var(--naranja-institucional);
  color: var(--naranja-institucional);
  background: rgba(255, 152, 0, 0.05);
}

#map {
  height: 60vh;
  min-height: 40rem;
  width: 100%;
  border-radius: 1.2rem;
  border: 1px solid var(--borde-glass);
  background: #050505;
  z-index: 1;
}
#map .leaflet-tile-container {
  filter: brightness(0.8) contrast(1.2);
}

/* ==========================================================================
   BOTÓN FLOTANTE UNIVERSAL DE LOGOUT
   ========================================================================== */
.btn-exit-float {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  z-index: 99;
  width: 5.5rem;
  height: 5.5rem;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--borde-glass);
  color: var(--color-alerta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  box-shadow: 0 0.8rem 2.5rem rgba(0, 0, 0, 0.7);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-exit-float:hover {
  border-color: var(--color-alerta);
  background: rgba(255, 82, 82, 0.1);
  transform: scale(1.08) rotate(90deg);
  box-shadow: 0 0.8rem 2.5rem rgba(255, 82, 82, 0.2);
}

/* ==========================================================================
   MODAL DE ASISTENCIA Y CONTROL DE AULA RAPIDO
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(1.5rem);
  -webkit-backdrop-filter: blur(1.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.modal-user-info {
  background: var(--fondo-tarjeta);
  border: 1px solid var(--borde-glass);
  border-radius: 2.5rem;
  padding: 3.5rem;
  width: 100%;
  max-width: 55rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.9);
  position: relative;
}

.cerrar-modal {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--texto-secundario);
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}
.cerrar-modal:hover {
  color: var(--color-alerta);
}

.modal-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--borde-glass);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}
.modal-status-header h2 {
  font-size: 2.2rem;
  color: var(--texto-principal);
}

.badge-status {
  padding: 0.6rem 1.4rem;
  border-radius: 0.6rem;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
}
.badge-status.libre {
  background: rgba(57, 211, 83, 0.1);
  border-color: var(--verde-institucional);
  color: var(--verde-institucional);
}
.badge-status.ocupada {
  background: rgba(255, 82, 82, 0.1);
  border-color: var(--color-alerta);
  color: var(--color-alerta);
}

.info-grid-user {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.02);
}
.info-grid-user .info-item label {
  display: block;
  font-size: 1.1rem;
  color: var(--texto-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}
.info-grid-user .info-item p {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--texto-principal);
}

.edit-map-section {
  border-top: 1px solid var(--borde-glass);
  padding-top: 2rem;
}
.edit-map-section .edit-title {
  color: var(--naranja-institucional);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.form-quick-occupy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.multi-horarios-section {
  margin: 1rem 0;
}
.multi-horarios-section .section-label {
  display: block;
  font-size: 1.2rem;
  color: var(--texto-secundario);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.horarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1rem;
  max-height: 22rem;
  overflow-y: auto;
  padding-right: 0.5rem;
}
.horarios-grid::-webkit-scrollbar {
  width: 4px;
}
.horarios-grid::-webkit-scrollbar-thumb {
  background: var(--borde-glass);
  border-radius: 4px;
}

.check-horario-item {
  background: var(--fondo-input);
  border: 1px solid var(--borde-glass);
  border-radius: 0.8rem;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}
.check-horario-item input[type=checkbox] {
  width: 1.6rem;
  height: 1.6rem;
  accent-color: var(--verde-institucional);
  cursor: pointer;
}
.check-horario-item span {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--texto-secundario);
}
.check-horario-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: #181818;
}
.check-horario-item:has(input[type=checkbox]:checked) {
  border-color: var(--verde-institucional);
  background: rgba(57, 211, 83, 0.05);
}
.check-horario-item:has(input[type=checkbox]:checked) span {
  color: var(--verde-institucional);
}

.btn-liberar-map {
  background: rgba(255, 82, 82, 0.1);
  border: 1px solid var(--color-alerta);
  color: var(--color-alerta);
  padding: 1.4rem;
  border-radius: 1.2rem;
  font-family: "Poppins", -apple-system, sans-serif;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-liberar-map:hover {
  background: var(--color-alerta);
  color: #ffffff;
  box-shadow: 0 0.5rem 1.5rem rgba(255, 82, 82, 0.3);
}

.btn-reportar-incidencia {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--borde-glass);
  color: var(--texto-secundario);
  padding: 1.2rem;
  border-radius: 1.2rem;
  font-weight: bold;
  text-align: center;
  font-size: 1.6rem;
  box-sizing: border-box;
}
.btn-reportar-incidencia:hover {
  border-color: var(--color-alerta);
  color: var(--color-alerta);
  background: rgba(255, 82, 82, 0.02);
}

.w-100 {
  width: 100%;
}

.glass-select {
  background: var(--fondo-input);
  border: 1px solid var(--borde-glass);
  color: var(--texto-principal);
  padding: 1.2rem 2rem;
  border-radius: 1.2rem;
  font-size: 1.8rem;
  outline: none;
  cursor: pointer;
  font-family: "Inter", -apple-system, sans-serif;
  transition: all 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='white'><path d='M0 3l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
  padding-right: 4rem;
}
.glass-select option {
  background-color: var(--fondo-tarjeta);
  color: var(--texto-principal);
}
.glass-select:focus {
  border-color: var(--verde-institucional);
  box-shadow: 0 0 1.5rem rgba(57, 211, 83, 0.2);
}

[data-theme=light] .glass-select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='black'><path d='M0 3l5 5 5-5z'/></svg>");
}

/* ==========================================================================
   ANIMACIONES DE ENTORNO EN VIVO
   ========================================================================== */
@keyframes pulseScan {
  0% {
    box-shadow: 0 0 0.5rem rgba(57, 211, 83, 0.2);
    background: rgba(57, 211, 83, 0.05);
  }
  100% {
    box-shadow: 0 0 1.5rem rgba(57, 211, 83, 0.4);
    background: rgba(57, 211, 83, 0.15);
  }
}
/* ==========================================================================
   GESTIÓN DE ALUMNOS (VISTA PREFECTURA) - CONCEPTO SCANCLASS
   ========================================================================== */
.alumnos-page {
  padding-bottom: 5rem;
}

.btn-reglamento-minimal {
  background: transparent;
  border: 1px solid var(--borde-glass);
  color: var(--texto-secundario);
  padding: 0.8rem 1.6rem;
  border-radius: 2rem;
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-reglamento-minimal:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--texto-principal);
  border-color: var(--texto-principal);
}

/* ==========================================================================
   PANEL DE FILTROS SUPERIOR
   ========================================================================== */
.filtros {
  margin-bottom: 3rem;
}
.filtros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2rem;
  align-items: end;
}
.filtros__campo label, .filtros .select-wrap label {
  display: block;
  font-size: 1.2rem;
  color: var(--naranja-institucional);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}
.filtros__campo input, .filtros__campo select, .filtros .select-wrap input, .filtros .select-wrap select {
  width: 100%;
  background: var(--fondo-input);
  border: 1px solid var(--borde-glass);
  color: var(--texto-principal);
  padding: 1.4rem;
  border-radius: 1.2rem;
  font-size: 1.8rem;
  transition: all 0.25s ease;
}
.filtros__campo input:focus, .filtros__campo select:focus, .filtros .select-wrap input:focus, .filtros .select-wrap select:focus {
  outline: none;
  border-color: var(--verde-institucional);
  box-shadow: 0 0 1.5rem rgba(57, 211, 83, 0.2);
}
.filtros .select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='white'><path d='M0 3l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
  padding-right: 4rem;
}
.filtros .select option {
  background-color: var(--fondo-tarjeta);
  color: var(--texto-principal);
}
.filtros__checks-area {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.filtros__checks-area .check-field {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--texto-secundario);
  cursor: pointer;
  transition: color 0.2s ease;
}
.filtros__checks-area .check-field input[type=checkbox] {
  width: 1.8rem;
  height: 1.8rem;
  accent-color: var(--verde-institucional);
  cursor: pointer;
}
.filtros__checks-area .check-field:hover {
  color: var(--texto-principal);
}
.filtros .btn-limpiar-wrapper {
  display: flex;
  gap: 1rem;
}
.filtros .btn-limpiar-wrapper button {
  flex: 1;
  padding: 1.4rem;
  font-size: 1.4rem;
}

[data-theme=light] .filtros .select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='black'><path d='M0 3l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
}

/* ==========================================================================
   GRID DE TARJETAS DE ALUMNOS
   ========================================================================== */
.lista-alumnos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(32rem, 1fr));
  gap: 2rem;
}

.alumno-card {
  background: var(--fondo-tarjeta);
  border: 1px solid var(--borde-glass);
  border-radius: 1.2rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
}
.alumno-card.reportes-bajo {
  border-left: 4px solid var(--color-exito);
}
.alumno-card.reportes-medio {
  border-left: 4px solid var(--naranja-institucional);
}
.alumno-card.reportes-alto {
  border-left: 4px solid var(--color-alerta);
}
.alumno-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.6);
  background: rgba(255, 255, 255, 0.02);
}
.alumno-card.is-hidden {
  display: none !important;
}
.alumno-card .adv-indicator-bar {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  display: flex;
  gap: 0.6rem;
}
.alumno-card .adv-indicator-bar .dot {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--fondo-input);
  border: 1px solid var(--borde-glass);
  transition: all 0.3s ease;
}
.alumno-card .adv-indicator-bar .dot.active {
  background: var(--naranja-institucional);
  border-color: var(--naranja-institucional);
  box-shadow: 0 0 1rem rgba(255, 152, 0, 0.6);
}
.alumno-card .adv-indicator-bar .dot.warn-full {
  background: var(--color-alerta);
  border-color: var(--color-alerta);
  box-shadow: 0 0 1rem rgba(255, 82, 82, 0.6);
}
.alumno-card .alumno-info .alumno-nombre {
  font-family: "Poppins", -apple-system, sans-serif;
  font-size: 2.2rem;
  color: var(--texto-principal);
  margin-bottom: 1.5rem;
  padding-right: 5rem;
  line-height: 1.2;
}
.alumno-card .alumno-info .alumno-meta {
  font-size: 1.4rem;
  color: var(--texto-secundario);
  line-height: 1.8;
}
.alumno-card .alumno-info .alumno-meta strong {
  color: var(--verde-institucional);
  font-weight: 700;
}
.alumno-card .acciones {
  display: flex;
  gap: 1.5rem;
  margin-top: auto;
}
.alumno-card .acciones .btn {
  flex: 1;
  padding: 1.2rem;
  font-size: 1.4rem;
}
.alumno-card .acciones .btn--warning {
  background: rgba(255, 152, 0, 0.1);
  color: var(--naranja-institucional);
  border-color: var(--naranja-institucional);
}
.alumno-card .acciones .btn--warning:hover {
  background: var(--naranja-institucional);
  color: #ffffff;
  box-shadow: 0 0.5rem 1.5rem rgba(255, 152, 0, 0.4);
}

[data-theme=light] .alumno-card {
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.06);
}
[data-theme=light] .alumno-card:hover {
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.12);
  background: #fafafa;
}

/* ==========================================================================
   MODAL DE APLICACIÓN DE ADVERTENCIAS / REPORTES
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.modal-box {
  background: var(--fondo-tarjeta);
  border: 1px solid var(--borde-glass);
  border-radius: 2.5rem;
  padding: 4rem 3rem;
  width: 100%;
  max-width: 48rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.5);
  position: relative;
  text-align: center;
}
.modal-box h3 {
  color: var(--texto-principal);
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.cerrar-modal {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: var(--texto-muted);
  font-size: 3.5rem;
  font-family: "Poppins", -apple-system, sans-serif;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cerrar-modal:hover {
  color: var(--color-alerta);
  transform: scale(1.1);
}

.adv-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.adv-options-grid .btn-adv-opt {
  background: var(--fondo-input);
  border: 1px solid var(--borde-glass);
  color: var(--texto-principal);
  padding: 2rem 1rem;
  border-radius: 1.2rem;
  font-family: "Poppins", -apple-system, sans-serif;
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.adv-options-grid .btn-adv-opt:hover {
  background: rgba(255, 152, 0, 0.1);
  border-color: var(--naranja-institucional);
  color: var(--naranja-institucional);
  transform: translateY(-3px);
  box-shadow: 0 0.8rem 2rem rgba(255, 152, 0, 0.2);
}
.adv-options-grid .btn-adv-opt.direct-report:hover {
  background: rgba(255, 82, 82, 0.1);
  border-color: var(--color-alerta);
  color: var(--color-alerta);
  box-shadow: 0 0.8rem 2rem rgba(255, 82, 82, 0.2);
}

/* ==========================================================================
   PERFIL Y EXPEDIENTE DEL ALUMNO (VER REPORTE) - SCANCLASS
   ========================================================================== */
.pagina-reportes {
  padding-bottom: 5rem;
}

.subtitulo-seccion {
  font-size: 2rem;
  color: var(--texto-secundario);
  margin: 3rem 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--borde-glass);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   TARJETA DE IDENTIFICACIÓN DEL ALUMNO
   ========================================================================== */
.perfil-alumno-card {
  margin-bottom: 3rem;
  background: var(--fondo-tarjeta);
  border: 1px solid var(--borde-glass);
  border-radius: 2.5rem;
  padding: 3.5rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}
.perfil-alumno-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--verde-institucional);
  box-shadow: 0 0 1.5rem var(--verde-institucional);
}

.perfil-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .perfil-body {
    flex-direction: column-reverse;
    text-align: center;
  }
}

.lado-izquierdo {
  flex: 1;
}
.lado-izquierdo .titulo-alumno {
  font-family: "Poppins", -apple-system, sans-serif;
  font-size: 3.2rem;
  color: var(--texto-principal);
  margin-bottom: 2rem;
  line-height: 1.1;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.5rem;
  background: var(--fondo-input);
  padding: 1.5rem;
  border-radius: 1.2rem;
  border: 1px solid var(--borde-glass);
}
.info-grid .info-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.info-grid .info-block .etiqueta {
  font-size: 1.1rem;
  color: var(--texto-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.info-grid .info-block .valor {
  font-size: 1.6rem;
  color: var(--texto-principal);
  font-weight: 800;
  font-family: "Inter", -apple-system, sans-serif;
}

.perfil-foto .foto-marco {
  width: 14rem;
  height: 14rem;
  border-radius: 2rem;
  overflow: hidden;
  border: 2px solid var(--borde-glass);
  background: var(--fondo-input);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.3);
  padding: 0.5rem;
}
.perfil-foto .foto-marco img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
}

/* ==========================================================================
   LOG DE INCIDENCIAS (REPORTES)
   ========================================================================== */
.lista-historial {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.reporte-card {
  background: var(--fondo-tarjeta);
  border: 1px solid var(--borde-glass);
  border-radius: 1.2rem;
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.2);
  border-left-width: 6px;
  border-left-style: solid;
}
.reporte-card.reporte-completado {
  border-left-color: var(--texto-muted);
  opacity: 0.8;
}
.reporte-card.reporte-bajo {
  border-left-color: var(--color-exito);
}
.reporte-card.reporte-medio {
  border-left-color: var(--naranja-institucional);
}
.reporte-card.reporte-alto {
  border-left-color: var(--color-alerta);
}
.reporte-card.seleccionado {
  transform: scale(1.02);
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.5);
  background: var(--fondo-input);
  border-right: 1px solid var(--naranja-institucional);
  border-top: 1px solid var(--naranja-institucional);
  border-bottom: 1px solid var(--naranja-institucional);
}
.reporte-card.seleccionado .btn-flecha {
  opacity: 1;
  pointer-events: all;
}
@media (max-width: 600px) {
  .reporte-card {
    flex-direction: column;
    padding: 2rem;
  }
}

.reporte-cuerpo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.reporte-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--borde-glass);
  padding-bottom: 1rem;
}
.reporte-header .tipo-incidencia {
  font-family: "Poppins", -apple-system, sans-serif;
  font-size: 1.8rem;
  color: var(--texto-principal);
}
.reporte-header .badge-horas {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--borde-glass);
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--texto-principal);
}
.reporte-header .badge-horas .horas-valor {
  color: var(--naranja-institucional);
  font-size: 1.8rem;
}

.reporte-detalles {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.reporte-detalles .meta-col p {
  margin: 0 0 0.4rem 0;
  font-size: 1.2rem;
  color: var(--texto-secundario);
}
.reporte-detalles .meta-col p strong {
  color: var(--texto-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reporte-historial-adv {
  background: rgba(255, 82, 82, 0.05);
  border: 1px solid rgba(255, 82, 82, 0.2);
  border-radius: 0.8rem;
  padding: 1.2rem 1.5rem;
  margin-top: 0.5rem;
}
.reporte-historial-adv .etiqueta-adv {
  display: block;
  color: var(--color-alerta);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}
.reporte-historial-adv .adv-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.reporte-historial-adv .adv-list .adv-item {
  margin: 0;
  font-size: 1.3rem;
  color: var(--texto-principal);
  font-family: monospace;
}
.reporte-historial-adv .adv-list .adv-item strong {
  color: var(--naranja-institucional);
}

.reporte-comentarios {
  margin-top: 0.5rem;
}
.reporte-comentarios .etiqueta {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--texto-muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: block;
}
.reporte-comentarios .reporte-desc {
  margin: 0;
  font-size: 1.4rem;
  color: var(--texto-principal);
  background: var(--fondo-input);
  padding: 1.2rem;
  border-radius: 0.8rem;
  border: 1px solid var(--borde-glass);
  font-style: italic;
}

/* ==========================================================================
   CONTROLES DE EDICIÓN (FLECHAS INTERACTIVAS)
   ========================================================================== */
.reporte-acciones {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--borde-glass);
}
@media (max-width: 600px) {
  .reporte-acciones {
    flex-direction: row;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--borde-glass);
    padding-top: 1.5rem;
  }
}
.reporte-acciones .btn-flecha {
  background: var(--fondo-input);
  border: 1px solid var(--borde-glass);
  color: var(--texto-secundario);
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.3;
  pointer-events: none;
}
.reporte-acciones .btn-flecha:not([disabled]) {
  opacity: 1;
  pointer-events: all;
  color: var(--texto-principal);
}
.reporte-acciones .btn-flecha:not([disabled]):hover {
  transform: scale(1.1);
}
.reporte-acciones .btn-flecha.flecha-up:not([disabled]):hover {
  border-color: var(--color-exito);
  color: var(--color-exito);
  background: rgba(57, 211, 83, 0.1);
  box-shadow: 0 0 1.5rem rgba(57, 211, 83, 0.3);
}
.reporte-acciones .btn-flecha.flecha-down:not([disabled]):hover {
  border-color: var(--color-alerta);
  color: var(--color-alerta);
  background: rgba(255, 82, 82, 0.1);
  box-shadow: 0 0 1.5rem rgba(255, 82, 82, 0.3);
}

[data-theme=light] .perfil-alumno-card {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.08);
}
[data-theme=light] .reporte-card {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
}
[data-theme=light] .reporte-card.seleccionado {
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   DASHBOARD DE ADMINISTRADOR (eduControl)
   ========================================================================== */
.admin-dashboard {
  padding-bottom: 10rem;
}

.header-right .header-title {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.header-right .header-title h1 {
  font-family: "Poppins", -apple-system, sans-serif;
  font-size: 2.2rem;
  color: var(--texto-principal);
  line-height: 1.2;
  margin: 0;
}
.header-right .header-title span {
  font-size: 1.2rem;
  color: var(--naranja-institucional);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   1. ESTADÍSTICAS SUPERIORES
   ========================================================================== */
.resumen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.stat-card {
  background: var(--fondo-tarjeta);
  border: 1px solid var(--borde-glass);
  border-radius: 1.2rem;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.4);
  border-color: var(--verde-institucional);
}
.stat-card .stat-icon {
  font-size: 3.5rem;
  background: var(--fondo-input);
  width: 7rem;
  height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.5rem;
  border: 1px solid var(--borde-glass);
}
.stat-card .stat-info h3 {
  color: var(--texto-secundario);
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.stat-card .stat-info p {
  color: var(--texto-principal);
  font-size: 3.2rem;
  font-family: "Poppins", -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

/* ==========================================================================
   2. SECCIONES Y CABECERAS (IMPORTACIONES Y USUARIOS)
   ========================================================================== */
.panel-section {
  margin-bottom: 5rem;
}

.seccion-titulo {
  font-size: 2.4rem;
  font-family: "Poppins", -apple-system, sans-serif;
  color: var(--texto-principal);
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--borde-glass);
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--borde-glass);
}
.header-flex .seccion-titulo {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.header-flex .btn-exportar {
  background: rgba(255, 255, 255, 0.05);
  color: var(--texto-principal);
  border: 1px solid var(--borde-glass);
  padding: 1rem 2rem;
  border-radius: 2rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.header-flex .btn-exportar:hover {
  background: var(--verde-institucional);
  color: #fff;
  border-color: var(--verde-institucional);
}

/* ==========================================================================
   3. TARJETAS DE IMPORTACIÓN EXCEL
   ========================================================================== */
.grid-gestion {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 2.5rem;
}

.gestion-card {
  background: var(--fondo-tarjeta);
  border: 1px solid var(--borde-glass);
  border-radius: 1.2rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}
.gestion-card .gestion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.gestion-card .gestion-header h3 {
  font-size: 1.8rem;
  color: var(--texto-principal);
  font-family: "Poppins", -apple-system, sans-serif;
  margin: 0;
}
.gestion-card .gestion-header .badge-status.online {
  background: rgba(57, 211, 83, 0.1);
  color: var(--color-exito);
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  border: 1px solid rgba(57, 211, 83, 0.3);
  text-transform: uppercase;
}
.gestion-card .upload-zone {
  border: 2px dashed var(--borde-glass);
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
  background: var(--fondo-input);
  transition: all 0.3s ease;
}
.gestion-card .upload-zone:hover, .gestion-card .upload-zone:focus-within {
  border-color: var(--verde-institucional);
  background: rgba(57, 211, 83, 0.02);
}
.gestion-card .upload-zone .upload-label {
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--texto-secundario);
  font-weight: 600;
  display: block;
  width: 100%;
  transition: color 0.3s ease;
}
.gestion-card .upload-zone .upload-label:hover {
  color: var(--verde-institucional);
}

/* ==========================================================================
   4. LISTADO DE USUARIOS (FILAS)
   ========================================================================== */
.usuarios-lista {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.usuario-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--fondo-tarjeta);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  border: 1px solid var(--borde-glass);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.usuario-item:hover {
  transform: translateX(5px);
  border-color: var(--naranja-institucional);
  background: var(--fondo-input);
}

.usuario-perfil {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.usuario-perfil .avatar-mini {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--naranja-institucional);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", -apple-system, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  box-shadow: 0 0.5rem 1.5rem rgba(255, 152, 0, 0.3);
}
.usuario-perfil .usuario-meta {
  display: flex;
  flex-direction: column;
}
.usuario-perfil .usuario-meta .u-nombre {
  font-size: 1.8rem;
  font-family: "Poppins", -apple-system, sans-serif;
  font-weight: 600;
  color: var(--texto-principal);
}
.usuario-perfil .usuario-meta .u-rol {
  font-size: 1.3rem;
  color: var(--texto-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.usuario-acciones {
  display: flex;
  gap: 1.5rem;
}
.usuario-acciones .btn-icon {
  background: transparent;
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
}
.usuario-acciones .btn-icon:hover {
  opacity: 1;
  transform: scale(1.15);
}
.usuario-acciones .btn-icon.reset:hover {
  filter: drop-shadow(0 0 8px var(--verde-institucional));
}
.usuario-acciones .btn-icon.delete:hover {
  filter: drop-shadow(0 0 8px var(--color-alerta));
}

/* ==========================================================================
   5. NAVEGACIÓN INFERIOR (ESTILO CONSOLA FLOTANTE)
   ========================================================================== */
.admin-nav {
  position: fixed;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid var(--borde-glass);
  padding: 1.2rem 2.5rem;
  border-radius: 4rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  width: max-content;
  max-width: 90vw;
}

.nav-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-links-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--texto-secundario);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 2rem;
  transition: all 0.3s ease;
}
.nav-link:hover {
  color: var(--texto-principal);
  background: rgba(255, 255, 255, 0.1);
}

.nav-btn.principal {
  background: var(--verde-institucional);
  color: #ffffff;
  border: none;
  padding: 1.2rem 3rem;
  border-radius: 3rem;
  font-family: "Poppins", -apple-system, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0.8rem 2rem rgba(57, 211, 83, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-btn.principal:hover {
  transform: translateY(-2px);
  box-shadow: 0 1rem 2.5rem rgba(57, 211, 83, 0.6);
}

.icon-link {
  font-size: 2.2rem;
  padding: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--borde-glass);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(15deg);
}

/* ==========================================================================
   6. EXTRAS: OJO EN EL PASSWORD
   ========================================================================== */
.password-wrapper {
  position: relative;
  width: 100%;
}
.password-wrapper input {
  padding-right: 4.5rem;
}
.password-wrapper .toggle-pass {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.8rem;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  user-select: none;
}
.password-wrapper .toggle-pass:hover {
  opacity: 1;
}

/* ==========================================================================
   ADAPTACIÓN PARA MODO CLARO
   ========================================================================== */
[data-theme=light] .stat-card {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.05);
  background: #ffffff;
}
[data-theme=light] .admin-nav {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.15);
}
[data-theme=light] .nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
}
[data-theme=light] .usuario-item {
  background: #ffffff;
}
[data-theme=light] .usuario-item:hover {
  background: #fafafa;
}
[data-theme=light] .gestion-card .upload-zone {
  background: #fdfdfd;
}
[data-theme=light] .gestion-card .upload-zone:hover {
  background: rgba(57, 211, 83, 0.05);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-content {
    gap: 1.5rem;
  }
  .nav-links-group {
    gap: 0.5rem;
  }
  .nav-link {
    padding: 1rem;
    font-size: 1.3rem;
  }
  .nav-btn.principal {
    padding: 1rem 2rem;
    font-size: 1.3rem;
  }
  .header-flex {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
}
/* ==========================================================================
   DIRECTORIO DE ALUMNOS (Tabla y Filtros)
   ========================================================================== */
.filter-bar {
  display: flex;
  gap: 2rem;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.filter-bar .campo-group {
  margin: 0;
  min-width: 15rem;
  flex-grow: 1;
  max-width: 25rem;
}
.filter-bar .campo-group label {
  font-size: 1.4rem;
  color: var(--texto-secundario);
  margin-bottom: 0.8rem;
  display: block;
  font-weight: 600;
}
.filter-bar .btn {
  height: 4.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3rem;
}

.table-modern-wrapper {
  background: var(--fondo-tarjeta);
  border: 1px solid var(--borde-glass);
  border-radius: 1.2rem;
  overflow-x: auto;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
}
.table-modern-wrapper::-webkit-scrollbar {
  height: 8px;
}
.table-modern-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}
.table-modern-wrapper::-webkit-scrollbar-thumb {
  background: var(--verde-institucional);
  border-radius: 4px;
}

.table-modern {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
.table-modern th {
  background: rgba(0, 0, 0, 0.2);
  color: var(--texto-secundario);
  font-family: "Poppins", -apple-system, sans-serif;
  font-size: 1.3rem;
  text-transform: uppercase;
  padding: 1.5rem 2rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--borde-glass);
  font-weight: 600;
}
.table-modern td {
  padding: 1.5rem 2rem;
  font-size: 1.4rem;
  color: var(--texto-principal);
  border-bottom: 1px solid var(--borde-glass);
  vertical-align: middle;
  font-family: "Inter", -apple-system, sans-serif;
}
.table-modern tbody tr {
  transition: background 0.2s ease;
}
.table-modern tbody tr:hover {
  background: var(--fondo-input);
}
.table-modern tbody tr:last-child td {
  border-bottom: none;
}

.badge-jefe {
  background: rgba(255, 152, 0, 0.15);
  color: var(--naranja-institucional);
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.badge-alumno {
  background: rgba(255, 255, 255, 0.05);
  color: var(--texto-muted);
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1.2rem;
  border: 1px solid var(--borde-glass);
  display: inline-flex;
  align-items: center;
}

select.campo-xl {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aaaaaa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
  background-size: 1.8rem;
  padding-right: 4.5rem;
  cursor: pointer;
  background-color: var(--fondo-input);
  color: var(--texto-principal);
  font-family: "Inter", -apple-system, sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}
select.campo-xl:focus, select.campo-xl:hover {
  outline: none;
  border-color: var(--verde-institucional);
  box-shadow: 0 0 0 3px rgba(57, 211, 83, 0.15);
}
select.campo-xl option {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 1rem;
  font-family: "Inter", -apple-system, sans-serif;
}

/* ==========================================================================
   ADAPTACIÓN PARA MODO CLARO
   ========================================================================== */
[data-theme=light] .table-modern th {
  background: #f8f9fa;
  color: #495057;
}
[data-theme=light] .table-modern tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}
[data-theme=light] .badge-alumno {
  background: #f1f3f5;
  color: #6c757d;
  border-color: #dee2e6;
}
[data-theme=light] .table-modern-wrapper::-webkit-scrollbar-track {
  background: #e9ecef;
}
[data-theme=light] select.campo-xl {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}
[data-theme=light] select.campo-xl option {
  background-color: #ffffff;
  color: #333333;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-bar .campo-group {
    max-width: 100%;
  }
}