/* =============================================================
   profesor.css
   ============================================================= */


/* =============================================================
   1. VARIABLES Y TOKENS
   ============================================================= */

:root {
  --color-primary:    #3498db;
  --color-danger:     #e74c3c;
  --color-success:    #27ae60;
  --color-sidebar-bg: rgba(255, 255, 255, 0.05);
  --radius-sm:        6px;
  --radius-md:        8px;
  --radius-lg:        12px;
  --transition-fast:  0.15s ease;
  --transition-base:  0.2s ease;
  --transition-slow:  0.3s ease;
}


/* =============================================================
   2. KEYFRAMES
   ============================================================= */

@keyframes psicodelico {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

@keyframes elegantShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes softPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.75; }
}

@keyframes popIn {
  0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
  70%  { transform: translate(-50%, -50%) scale(1.1); }
  100% { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
}

@keyframes progress {
  from { width: 100%; }
  to   { width: 0%;   }
}

@keyframes slideUp {
  from { opacity: 1; transform: translateY(0);     }
  to   { opacity: 0; transform: translateY(-20px); }
}

@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0);     }
  to   { opacity: 0; transform: translateX(-100%); }
}

@keyframes regSlideUp {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

@keyframes regFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes regDivider {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}


/* =============================================================
   3. SELECTOR DE CURSO
   Necesita !important porque styles.css lo sobreescribe.
   ============================================================= */

#course-select {
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-lg);
  font-size: 16px;
  background: white;
  cursor: pointer;
  transition: all var(--transition-slow);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#course-select:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

#course-select option {
  padding: 10px;
  font-weight: 500;
}


/* =============================================================
   13. PERFIL EN SIDEBAR
   ============================================================= */

.sidebar-perfil-header {
  padding: 12px 15px;
  border-bottom: 2px solid var(--color-primary);
  background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.sidebar-perfil-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foto-perfil-container {
  position: relative;
  cursor: pointer;
}

.foto-perfil-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
  transition: all var(--transition-base);
}

.overlay-cambiar-foto {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

/* El JS usa display:flex para mostrarlo — se respeta con esta clase */
.overlay-cambiar-foto.visible {
  display: flex;
}

.sidebar-teacher-name {
  color: #2c3e50;
  font-size: 15px;
  margin: 0 0 3px 0;
  font-weight: 700;
}

.sidebar-teacher-ci {
  color: #7f8c8d;
  font-size: 13px;
  margin: 0;
  font-weight: 500;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  cursor: pointer;
  background: var(--color-sidebar-bg);
  border-radius: var(--radius-md);
  margin: 8px 0;
  transition: background var(--transition-slow);
  font-weight: 600;
  color: #ecf0f1;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.1);
}

.accordion-header i.chevron {
  font-size: 12px;
  transition: transform var(--transition-slow);
}

.accordion-header.active i.chevron {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion-content.active {
  max-height: 500px;
}

.accordion-content .menu-item {
  margin-left: 15px;
}

/* Iconos del sidebar en gris neutro */
.sidebar .menu-item i,
.sidebar .accordion-header i:not(.chevron) {
  color: #6c757d;
}

/* Etiquetas de navegación del grupo principal */
.main-section-group .sidebar-nav-label {
  color: var(--color-primary);
  font-weight: 600;
}


/* =============================================================
   5. BARRA DE TRIMESTRES
   ============================================================= */

#trimestres-barra {
  display: flex;
  flex-direction: row;
  gap: 5px;
  padding: 3px 10px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  flex-wrap: wrap;
  margin-top: -8px;
}

.trim-barra {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  background: white;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: all var(--transition-base);
}

.trim-barra:hover {
  background: #eaf4fc;
}

.trim-barra.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

@media (max-width: 600px) {
  .trim-barra {
    flex: 1;
    font-size: 12px;
    padding: 5px 8px;
  }
}


/* =============================================================
   6. MENÚ DESPLEGABLE EXPORTAR
   ============================================================= */

#btn-exportar-trimestre:hover {
  background-color: #3498db;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

#menu-exportar a,
#menu-exportar a span { font-size: 15px; font-weight: 600; }
#menu-exportar a i    { font-size: 22px; }


/* =============================================================
   7. CHECKBOX DE PUBLICACIÓN
   ============================================================= */

.checkbox-publicacion:hover {
  background: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.checkbox-publicacion input:checked + span,
.checkbox-publicacion input:checked + span i {
  color: var(--color-success);
}


/* =============================================================
   8. MENSAJE FLOTANTE (publicar / ocultar notas)
   ============================================================= */

.mensaje-publicacion {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  background: var(--color-success);
  color: white;
  padding: 30px 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  text-align: center;
  backdrop-filter: blur(4px);
  opacity: 0;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  max-width: 90vw;
  min-width: 280px;
}

.mensaje-publicacion.oculto {
  background: #f5f5dc;
}

.mensaje-publicacion.oculto h2,
.mensaje-publicacion.oculto p {
  color: #2c3e50;
}

.mensaje-publicacion.oculto .progreso-barra-fill {
  background: #2c3e50;
}

.mensaje-publicacion h2 {
  font-size: clamp(18px, 5vw, 28px);
  margin-bottom: 10px;
  font-weight: 700;
}

.mensaje-publicacion p {
  font-size: clamp(13px, 4vw, 16px);
  opacity: 0.95;
  line-height: 1.5;
}

.progreso-barra {
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 15px;
}

.progreso-barra-fill {
  height: 100%;
  background: white;
  animation: progress 3s linear forwards;
}


/* =============================================================
   LOGIN SPLIT LAYOUT
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

#login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #e8edf4;
  padding: 24px 16px;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 100;
  font-family: 'Inter', 'DM Sans', sans-serif;
}

.login-split-wrap {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 880px;
  min-height: 540px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(15, 30, 70, 0.16), 0 2px 8px rgba(15,30,70,0.06);
  margin: 0 auto;
}

/* ── LADO IZQUIERDO: CARRUSEL ── */
.login-left {
  flex: 1.15;
  background: #0f1f3d;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* slides */
.ll-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex; flex-direction: column;
}
.ll-slide-active { opacity: 1; }

/* slide 1 — foto */
.ll-slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.ll-slide-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(10,20,50,0.55) 0%,
    rgba(10,20,50,0.10) 45%,
    rgba(10,20,50,0.70) 100%);
}
.ll-slide-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  justify-content: space-between;
  height: 100%; padding: 36px 38px 32px;
}

/* título slide 1 */
.ll-title {
  font-size: 30px !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.15 !important;
  letter-spacing: -0.5px !important;
  margin-bottom: 8px !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4) !important;
  position: relative; z-index: 1;
}
.ll-title-blue {
  display: block;
  color: #a8c4f8 !important;
  font-weight: 400 !important;
  font-size: 22px !important;
}
.ll-motivacion {
  font-size: 13px !important;
  color: rgba(255,255,255,0.70) !important;
  font-style: normal !important;
  font-weight: 400 !important;
  border-left: none !important;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4) !important;
  position: relative; z-index: 1;
}

/* badges slide 1 */
.ll-features {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  margin-top: 0 !important;
  position: relative; z-index: 2;
}
.ll-feat {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(255,255,255,0.13) !important;
  border: 1px solid rgba(255,255,255,0.24) !important;
  color: rgba(255,255,255,0.90) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  text-shadow: none !important;
  backdrop-filter: blur(6px);
}
.ll-feat-ico {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  width: auto !important; height: auto !important;
  border-radius: 0 !important;
}
.ll-feat-ico svg { stroke: rgba(255,255,255,0.85) !important; width: 13px !important; height: 13px !important; }

/* slide 2 — frase motivadora */
.ll-slide-s2 {
  position: absolute; inset: 0;
  background: linear-gradient(145deg, #0f1f3d 0%, #1a3560 50%, #0e2a4a 100%);
}
.ll-s2-circle1, .ll-s2-circle2 { display: none; }
.ll-s2-content {
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center;
  gap: 12px;
  padding: 18px 36px 36px !important;
}
.ll-s2-libro-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ll-s2-libro-svg {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
}
.ll-s2-linea {
  width: 40px; height: 2px;
  background: rgba(255,255,255,0.18); border-radius: 2px;
  flex-shrink: 0;
}
.ll-s2-frase {
  font-size: 17px; font-weight: 700; color: #fff;
  line-height: 1.45; letter-spacing: -0.3px;
  margin: 0;
}
.ll-s2-frase em { font-style: normal; color: #a8c4f8; }
.ll-s2-autor {
  font-size: 12px; color: rgba(255,255,255,0.45);
  font-weight: 500; letter-spacing: 0.5px;
  margin: 0;
}
.ll-s2-sub {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.50); line-height: 1.5;
  margin: 0;
}
.ll-s2-sub em { font-style: normal; color: rgba(168,196,248,0.80); }

/* dots */
.ll-dots {
  position: absolute; bottom: 18px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 10;
}
.ll-dot {
  width: 6px; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.30);
  transition: all 0.3s ease; cursor: pointer;
}
.ll-dot-active { width: 22px; background: #fff; }

/* ocultar elementos anteriores que ya no se usan */
.ll-illus { display: none; }
.ll-badge  { display: none; }
.ll-desc   { display: none; }
.ll-libro-hero { display: none; }
.ll-frase  { display: none; }

/* ── LADO DERECHO: formulario limpio ── */
.login-right {
  flex: 1;
  background: #ffffff;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lc-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  justify-content: center;
  margin-bottom: 5px;
}

.lc-icon-wrap {
  width: 36px;
  height: 36px;
  background: #1b4fd8;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 10.5px;
  color: white;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}

.lc-title {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.2px;
}

.lc-sub {
  text-align: center;
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0 0 22px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.lc-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 0 -40px 22px;
}

.lc-field {
  margin-bottom: 14px;
}

.lc-label {
  display: block !important;
  position: static !important;
  transform: none !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #475569 !important;
  margin-bottom: 6px !important;
  letter-spacing: 0.2px !important;
  font-family: 'Inter', sans-serif !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  top: auto !important;
  left: auto !important;
  z-index: auto !important;
}

.lc-input-wrap {
  position: relative;
}

.lc-input-wrap svg.lc-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  stroke: #94a3b8;
  width: 15px;
  height: 15px;
  pointer-events: none;
}

#cedula,
#password {
  width: 100% !important;
  height: auto !important;
  padding: 10px 38px 10px 36px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9px !important;
  background: #f8fafc !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13.5px !important;
  color: #0f172a !important;
  outline: none !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease !important;
}

#cedula:focus,
#password:focus {
  border-color: #1b4fd8 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(27, 79, 216, 0.09) !important;
}

#cedula::placeholder,
#password::placeholder {
  color: #cbd5e1 !important;
  font-weight: 400 !important;
}

.lc-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  line-height: 0;
  transition: color 0.14s;
}

.lc-eye:hover { color: #1b4fd8; }

#btn-login {
  width: 100% !important;
  padding: 11px !important;
  background: #1b4fd8 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 9px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  margin-top: 8px !important;
  letter-spacing: 0.1px;
  box-shadow: 0 2px 8px rgba(27,79,216,0.22) !important;
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.14s ease !important;
}

#btn-login:hover {
  background: #1540b8 !important;
  box-shadow: 0 4px 14px rgba(27,79,216,0.30) !important;
  transform: translateY(-1px) !important;
}

#btn-login:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 4px rgba(27,79,216,0.18) !important;
}

.lc-links {
  text-align: center;
  margin-top: 20px;
}

.lc-links p {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: #94a3b8;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.lc-links a {
  color: #1b4fd8;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.lc-links a:hover { text-decoration: underline; }

.lc-forgot {
  color: #64748b !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  font-family: 'Inter', sans-serif !important;
  text-decoration: none !important;
}

.lc-forgot:hover { color: #1b4fd8 !important; }

/* Ocultar elementos viejos que ya no aplican en login */
#login-page .form-group i.fas,
#login-page .form-group label,
.login-icon,
.login-header-acceso {
  display: none !important;
}

/* RESPONSIVE — tablet */
@media (max-width: 768px) {
  .login-split-wrap {
    flex-direction: column;
    max-width: 420px;
  }
  .login-left {
    padding: 36px 32px;
    flex: none;
    min-height: 200px;
    justify-content: flex-end;
  }
  .ll-features { display: none; }
  .ll-title { font-size: 22px; }
  .login-right {
    padding: 32px 28px;
    flex: none;
  }
}

/* RESPONSIVE — móvil */
@media (max-width: 480px) {
  #login-page {
    padding: 0 !important;
    align-items: flex-start !important;
  }
  .login-split-wrap {
    border-radius: 0;
    min-height: 100vh;
    max-width: 100%;
  }
  .login-left { padding: 28px 24px; min-height: 180px; }
  .ll-badge { display: none; }
  .login-right { padding: 28px 24px; }
  .lc-divider { margin: 0 -24px 20px; }
}

/* =============================================================
   9. FORMULARIO DE REGISTRO — SPLIT LAYOUT (verde izq + form der)
   ============================================================= */

#form-registro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  overflow-y: auto;
  background: #eef2f7;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  padding: 24px 16px;
  box-sizing: border-box;
}

/* El JS controla la visibilidad de #form-registro con style.display = 'flex' directamente. */

/* ── Wrapper split del registro ── */
.reg-split-wrap {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 900px;
  min-height: 560px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(20, 80, 40, 0.13);
  margin: 0 auto;
}

/* LADO IZQUIERDO CELESTE AZULADO */
.reg-left {
  flex: 1.2;
  background: #1a1a2e;
  background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=1200&q=95');
  background-size: cover;
  background-position: center;
  background-blend-mode: normal;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.reg-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(8,20,50,0.58) 0%, rgba(5,15,40,0.70) 100%);
  z-index: 0;
}

.reg-left::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.rl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 24px;
  width: fit-content;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}

.rl-title {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.rl-motivacion {
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  margin-bottom: 28px;
  font-style: italic;
  font-weight: 400;
  border-left: 3px solid rgba(255,255,255,0.40);
  padding-left: 12px;
  position: relative;
  z-index: 1;
}

.rl-illus {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.rl-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.rl-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.90);
  font-size: 13px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
}

.rl-feat-ico {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* LADO DERECHO BLANCO */
.reg-right {
  flex: 1;
  background: white;
  padding: 36px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

/* La reg-card ahora vive dentro de .reg-right — sin max-width propio, hereda el contenedor */
.reg-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-shadow: none;
  position: relative;
  z-index: 1;
  animation: regSlideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reg-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0fdf4;
  border: 1px solid rgba(59, 110, 143, 0.18);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: #3b6e8f;
  margin-bottom: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.reg-header {
  text-align: center;
  margin-bottom: 18px;
}

.reg-header h2 {
  font-size: 21px;
  font-weight: 700;
  color: #1a1d23;
  margin: 0 0 3px;
  font-family: 'DM Sans', sans-serif;
}

.reg-header p {
  font-size: 12.5px;
  color: #8a8f9e;
  margin: 0;
  font-weight: 400;
}

.reg-divisor {
  height: 1px;
  background: #e4e7ef;
  margin: 0 -4px 18px;
  animation: regDivider 0.4s 0.2s both;
  transform-origin: left;
}

.reg-campo {
  margin-bottom: 12px;
  text-align: left;
  position: relative;
}

.reg-campo:nth-child(1) { animation: regFadeUp 0.45s 0.18s both; }
.reg-campo:nth-child(2) { animation: regFadeUp 0.45s 0.24s both; }
.reg-campo:nth-child(3) { animation: regFadeUp 0.45s 0.30s both; }
.reg-campo:nth-child(4) { animation: regFadeUp 0.45s 0.36s both; }

.reg-campo label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #1a1d23;
  margin-bottom: 5px;
  letter-spacing: 0.2px;
}

.reg-input-wrap {
  position: relative;
}

.reg-input-wrap .reg-ico {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a8f9e;
  font-size: 12px;
  pointer-events: none;
  transition: color var(--transition-base);
}

.reg-input-wrap input {
  width: 100%;
  padding: 9px 34px 9px 30px;
  border: 1.5px solid #e4e7ef;
  border-radius: 10px;
  background: #fafbfc;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #1a1d23;
  transition: all var(--transition-base);
  outline: none;
  box-sizing: border-box;
}

.reg-input-wrap input::placeholder {
  color: #c2c8d5;
  font-weight: 400;
}

.reg-input-wrap input:focus {
  border-color: #3b6e8f;
  background: white;
  box-shadow: 0 0 0 3px rgba(59, 110, 143, 0.1);
}

.reg-input-wrap input:focus ~ .reg-ico {
  color: #3b6e8f;
}

.reg-input-wrap input.con-ojo {
  padding-right: 36px;
}

.reg-ojo {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a8f9e;
  cursor: pointer;
  font-size: 13px;
  padding: 3px;
  transition: color var(--transition-base);
  user-select: none;
}

.reg-ojo:hover {
  color: #3b6e8f;
}

.reg-btn {
  width: 100%;
  padding: 11px;
  background: #3b6e8f;
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 14px rgba(59, 110, 143, 0.28);
  margin-top: 6px;
  position: relative;
  overflow: hidden;
  animation: regFadeUp 0.45s 0.42s both;
}

.reg-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.reg-btn:hover {
  background: #2d5570;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(59, 110, 143, 0.35);
}

.reg-btn:hover::after {
  transform: translateX(100%);
}

.reg-btn:active {
  transform: translateY(0);
}

.reg-footer {
  text-align: center;
  margin-top: 14px;
  font-size: 12.5px;
  color: #8a8f9e;
  font-weight: 400;
  animation: regFadeUp 0.45s 0.48s both;
}

.reg-footer a {
  color: #3b6e8f;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.reg-footer a:hover {
  text-decoration: underline;
}

/* ── Responsive registro split ── */
@media (max-width: 768px) {
  .reg-split-wrap {
    flex-direction: column;
    max-width: 440px;
  }

  .reg-left { padding: 32px 28px; flex: none; }
  .rl-illus { display: none; }
  .rl-title { font-size: 20px; }
  .rl-features { display: none; }
  .reg-right { padding: 32px 28px; flex: none; }
}

@media (max-width: 480px) {
  #form-registro {
    padding: 0 !important;
    align-items: flex-start !important;
  }

  .reg-split-wrap {
    border-radius: 0;
    min-height: 100vh;
    max-width: 100%;
  }

  .reg-left { padding: 28px 20px; }
  .rl-badge { display: none; }
  .reg-right { padding: 28px 20px; }
}


/* =============================================================
   10. BOTONES DESHABILITADOS
   ============================================================= */

.btn-disabled-custom,
.btn-curso-disabled-custom {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(70%);
  background-color: #6c757d;
  border-color: #6c757d;
  color: #fff;
  position: relative;
}

.btn-disabled-custom::after,
.btn-curso-disabled-custom::after {
  content: "NO DISPONIBLE";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 0.3px;
  white-space: nowrap;
  z-index: 1;
}

.btn-disabled-custom:hover::after,
.btn-curso-disabled-custom:hover::after {
  content: "DESHABILITADO POR SEGURIDAD";
}


/* =============================================================
   11. TABLA PROMEDIO ANUAL — DENSIDAD COMPACTA
   ============================================================= */

#annual-report-table th,
#annual-report-table td {
  padding: 5px 8px;
  font-size: 13px;
}

tr {
  height: auto;
}

#footer-olas {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: -1;
  pointer-events: none;
  height: 60px;
}

#footer-olas svg,
.footer-olas-svg {
  width: 100%;
  height: 150px;
}

#annual-tab {
  max-height: none;
  overflow-y: visible;
}

#annual-tab > .table-container {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}


.sidebar-logout-wrapper {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: auto;
}

/* =============================================================
   15. FORMULARIO TELÉFONOS — botones del acordeón sidebar
   ============================================================= */

.content-formulario-tel {
  display: none;
  padding: 6px 12px;
  flex-direction: column;
  gap: 6px;
}

.content-formulario-tel.active {
  display: flex;
}

.formulario-tel-fila {
  display: flex;
  gap: 6px;
}

.btn-formulario-tel {
  flex: 1;
  padding: 7px 4px;
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 11px;
  font-weight: 700;
}

.btn-formulario-mensaje { background: #1a5276; }
.btn-formulario-link    { background: #2980b9; }

.btn-toggle-formulario {
  width: 100%;
  padding: 7px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-success);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Color del chevron en acordeones del sidebar */
.chevron-sidebar {
  color: #2c3e50;
}

/* Colores semánticos de iconos */
.icon-wsp     { color: #25d366; }
.icon-warning { color: #f39c12; }
.mr-sm        { margin-right: 5px; }
.icon-mr-sm   { margin-right: 6px; }


/* =============================================================
   16. BOTONES DATOS / REPORTES (dark)
   ============================================================= */

.btn-dark {
  background-color: #34495e;
  color: white;
}

.btn-formulario-accion {
  background: #1a5276;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}


/* =============================================================
   17. BARRA DE ACCIONES DEL TRIMESTRE
   ============================================================= */

/* =============================================================
   BARRA DE ACCIONES TRIMESTRAL
   Sobreescribe el sticky de #trimester-tab > *:first-child
   que styles.css aplica al primer hijo visible del tab.
   ============================================================= */

/* Cuando el JS pone display:flex, el botón se vuelve block-level y ocupa todo el ancho.
   width: fit-content lo contiene al tamaño de su contenido. */
#btn-subir-archivos-trim {
  display: none;
  width: fit-content;
  flex-shrink: 0;
}

.trimester-actions-bar #btn-subir-archivos-trim[style*="flex"] {
  display: inline-flex !important;
  width: fit-content;
  align-items: center;
  gap: 7px;
}

.trimester-actions-bar {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 10px;
  margin-top: 8px;
  padding: 4px 10px;
  /* Cancela el sticky que styles.css aplica al :first-child visible de #trimester-tab */
  position: static;
  box-shadow: none;
  background: transparent;
  z-index: auto;
}

.dropdown-exportar {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  background: transparent;
}

.btn-exportar-trimestre {
  background-color: #5dade2;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tamaños de icono utilitarios */
.icon-sm { font-size: 13px; }
.icon-xs { font-size: 10px; }

/* Fondos de color para iconos del menú exportar */
.icon-bg-green  { background: #e8f5e9; }
.icon-bg-red    { background: #fdecea; }
.icon-bg-blue   { background: #e3f2fd; }
.icon-bg-orange { background: #fff3e0; }

/* Colores de iconos en el menú exportar */
.icon-excel-green  { color: #1d6f42; font-size: 15px; }
.icon-excel-red    { color: #c0392b; font-size: 15px; }
.icon-word-blue    { color: #2b579a; font-size: 15px; }
.icon-word-orange  { color: #a86800; font-size: 15px; }

/* Checkbox de publicación de notas */
.checkbox-publicacion {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  padding: 10px 16px;
  background: #f8fafb;
  border-radius: var(--radius-sm);
  border: 1px solid #e8e8e8;
}

.check-publicar {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--color-success);
}

.check-publicar-label {
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
}


/* Pestañas de trimestre ocultas estructuralmente (reemplaza el bloque inline con !important) */
.trimester-tabs-hidden {
  display: none;
  height: 0;
  margin: 0;
  padding: 0;
  position: absolute;
  visibility: hidden;
}

/* =============================================================
   19. MODAL ARCHIVOS POR TRIMESTRE
   ============================================================= */

.modal-overlay-trim {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99999;
  backdrop-filter: blur(4px);
}

.modal-trim-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  padding: 28px 32px;
  width: 92%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.modal-trim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-trim-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-trim-icono {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.modal-trim-titulo {
  margin: 0;
  font-size: 17px;
  color: #2c3e50;
  font-weight: 700;
}

.modal-trim-subtitulo {
  margin: 0;
  font-size: 12px;
  color: #95a5a6;
}

.modal-trim-cerrar {
  background: none;
  border: none;
  font-size: 22px;
  color: #95a5a6;
  min-height: unset;
  min-width: unset;
  padding: 4px;
}

.modal-trim-sec {
  display: none;
  margin-bottom: 14px;
}

.modal-trim-sec-titulo {
  font-size: 13px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 8px 0;
}

.modal-trim-lista-guardados {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 150px;
  overflow-y: auto;
}

.zona-drop-trim {
  border: 2px dashed #bdc3c7;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background: #fafafa;
  margin-bottom: 14px;
  transition: all var(--transition-base);
}

.zona-drop-trim:hover {
  border-color: var(--color-primary);
  background: #f0f7ff;
}

.modal-trim-upload-icon {
  font-size: 30px;
  color: #bdc3c7;
  display: block;
  margin-bottom: 7px;
}

.modal-trim-drop-texto {
  margin: 0;
  color: #7f8c8d;
  font-size: 14px;
}

.modal-trim-clic {
  color: var(--color-primary);
  font-weight: 600;
}

.modal-trim-lista-nuevos {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.modal-trim-progreso {
  display: none;
  margin-bottom: 12px;
}

.modal-trim-progreso-track {
  background: #ecf0f1;
  border-radius: 10px;
  height: 7px;
  overflow: hidden;
}

.modal-trim-progreso-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--color-primary), #2ecc71);
}

.modal-trim-progreso-txt {
  margin: 4px 0 0;
  font-size: 12px;
  color: #7f8c8d;
  text-align: center;
}

.modal-trim-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.modal-trim-btn {
  padding: 9px 20px;
  border-radius: 7px;
  font-size: 14px;
}

.modal-trim-btn-guardar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  opacity: 0.5;
}

.modal-trim-btn-guardar:not(:disabled) {
  opacity: 1;
}


.annual-average-hidden {
  display: none;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  opacity: 0;
  position: absolute;
}
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
  min-height: 40px;
}

#btn-logout:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
}

#btn-logout:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
}

#btn-logout i {
  font-size: 16px;
  color: white;
}



















/* ============================================================
   ESTILOS EXTRAÍDOS DE JS — agregar a profesor.css
   ============================================================
   Este bloque reemplaza todas las funciones agregarEstilos*()
   que inyectaban <style> desde JavaScript.
   ============================================================ */


/* ----------------------------------------
   SPINNER ESCRIBIENDO (crear actividad)
   ---------------------------------------- */
.documento-escribiendo {
  position: relative;
  width: 180px;
  height: 220px;
}

.papel {
  width: 180px;
  height: 220px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  padding: 30px 20px;
  position: relative;
}

.linea {
  height: 3px;
  background: #3498db;
  margin-bottom: 20px;
  border-radius: 2px;
  transform-origin: left;
  animation: escribirLinea 1.5s infinite ease-in-out;
}

.linea1 { animation-delay: 0s; }
.linea2 { animation-delay: 0.3s; }
.linea3 { animation-delay: 0.6s; }
.linea4 { animation-delay: 0.9s; }

.lapiz {
  position: absolute;
  top: 40px;
  left: 0;
  font-size: 32px;
  animation: moverLapiz 1.5s infinite ease-in-out;
}

@keyframes escribirLinea {
  0%, 100% { transform: scaleX(0); }
  50%       { transform: scaleX(1); }
}

@keyframes moverLapiz {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  25%      { transform: translateY(20px) rotate(-10deg); }
  50%      { transform: translateY(40px) rotate(-5deg); }
  75%      { transform: translateY(60px) rotate(-10deg); }
}


/* ----------------------------------------
   SPINNER BORRANDO (eliminar actividad)
   ---------------------------------------- */
.documento-borrando {
  position: relative;
  width: 180px;
  height: 220px;
}

.papel-borrar {
  width: 180px;
  height: 220px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  padding: 30px 20px;
  position: relative;
}

.linea-borrar {
  height: 3px;
  background: #e74c3c;
  margin-bottom: 20px;
  border-radius: 2px;
  transform-origin: left;
  animation: borrarLinea 1.5s infinite ease-in-out;
}

.linea-b1 { animation-delay: 0s; }
.linea-b2 { animation-delay: 0.3s; }
.linea-b3 { animation-delay: 0.6s; }
.linea-b4 { animation-delay: 0.9s; }

.borrador-container {
  position: absolute;
  top: 40px;
  left: 10px;
  width: 50px;
  height: 80px;
  animation: moverBorrador 1.5s infinite ease-in-out;
}

.borrador-cuerpo {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  border-radius: 5px 5px 2px 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: relative;
}

.borrador-cuerpo::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  height: 8px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
}

.borrador-goma {
  width: 50px;
  height: 25px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 -2px 4px rgba(0,0,0,0.2);
  position: relative;
}

.borrador-goma::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 5px;
  right: 5px;
  height: 3px;
  background: rgba(0,0,0,0.2);
  border-radius: 2px;
}

.particulas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particula {
  position: absolute;
  font-size: 12px;
  color: #e74c3c;
  opacity: 0;
  animation: flotarParticula 1.5s infinite ease-out;
}

.p1 { top: 50px;  left: 40px; animation-delay: 0.2s; }
.p2 { top: 55px;  left: 55px; animation-delay: 0.3s; }
.p3 { top: 80px;  left: 50px; animation-delay: 0.5s; }
.p4 { top: 85px;  left: 65px; animation-delay: 0.6s; }
.p5 { top: 110px; left: 45px; animation-delay: 0.8s; }
.p6 { top: 115px; left: 60px; animation-delay: 0.9s; }

@keyframes borrarLinea {
  0%   { transform: scaleX(1);   opacity: 1; }
  50%  { transform: scaleX(0.5); opacity: 0.5; }
  100% { transform: scaleX(0);   opacity: 0; }
}

@keyframes moverBorrador {
  0%, 100% { transform: translateY(0) rotate(-15deg); }
  25%      { transform: translateY(20px) rotate(-18deg); }
  50%      { transform: translateY(40px) rotate(-15deg); }
  75%      { transform: translateY(60px) rotate(-18deg); }
}

@keyframes flotarParticula {
  0%   { opacity: 0; transform: translate(0, 0) scale(1); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translate(15px, -25px) scale(0.5); }
}


/* ----------------------------------------
   SPINNER GLOBAL (carga de curso/trimestre)
   ---------------------------------------- */
@keyframes rvr-spin-animation {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes rvr-fade-in-animation {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.rvr-spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: rvr-fade-in-animation 0.2s ease;
}

.rvr-spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 35px 40px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  min-width: 200px;
}

.rvr-spinner {
  width: 55px;
  height: 55px;
  border: 4px solid rgba(52, 152, 219, 0.25);
  border-radius: 50%;
  border-top-color: #3498db;
  animation: rvr-spin-animation 1s ease-in-out infinite;
}

.rvr-spinner-text {
  margin-top: 18px;
  font-size: 16px;
  color: #2c3e50;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-weight: 500;
}

.rvr-table-spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 45px 20px;
  min-height: 150px;
}

.rvr-spinner-row {
  background-color: transparent;
}

.rvr-spinner-mensaje {
  margin-left: 18px;
  font-size: 16px;
  color: #2c3e50;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-weight: 500;
}

@media (max-width: 768px) {
  .rvr-spinner-container {
    padding: 25px 30px;
  }
  .rvr-spinner {
    width: 45px;
    height: 45px;
    border-width: 3px;
  }
  .rvr-spinner-text,
  .rvr-spinner-mensaje {
    font-size: 14px;
  }
  .rvr-table-spinner-container {
    padding: 35px 15px;
  }
}

@media (max-width: 480px) {
  .rvr-spinner-container {
    padding: 20px 25px;
  }
  .rvr-spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
  }
  .rvr-spinner-text,
  .rvr-spinner-mensaje {
    font-size: 13px;
  }
}


/* ----------------------------------------
   ANIMACIÓN VISTO EN SELECTOR DE TRIMESTRE
   ---------------------------------------- */
@keyframes aparecer {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}


/* ----------------------------------------
   OCULTAR FLECHAS EN INPUTS TYPE=NUMBER
   ---------------------------------------- */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}


/* ----------------------------------------
   BOTÓN FLOTANTE WHATSAPP
   ---------------------------------------- */
@keyframes wspPop {
  from { opacity: 0; transform: translateX(-50%) scale(0.8); }
  to   { opacity: 1; transform: translateX(-50%) scale(1); }
}


/* ----------------------------------------
   MODAL DE SELECCIÓN WHATSAPP
   ---------------------------------------- */
@keyframes wspModalIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.wsp-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.wsp-check-item:hover {
  background: #f0fdf4;
}

.wsp-check-item input[type=checkbox] {
  width: 17px;
  height: 17px;
  accent-color: #25d366;
  cursor: pointer;
  flex-shrink: 0;
}

.wsp-check-item label {
  cursor: pointer;
  font-size: 14px;
  color: #2c3e50;
  flex: 1;
  user-select: none;
}

.wsp-check-item.desmarcado label {
  color: #aaa;
  text-decoration: line-through;
}

#wsp-lista-scroll::-webkit-scrollbar       { width: 5px; }
#wsp-lista-scroll::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
#wsp-lista-scroll::-webkit-scrollbar-thumb { background: #25d366; border-radius: 3px; }


/* ----------------------------------------
   ANIMACIÓN ELIMINACIÓN DE ESTUDIANTE
   (usada en estudiantes.js)
   ---------------------------------------- */
@keyframes flotarP {
  0%   { opacity: 0; transform: translate(0, 0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translate(12px, -20px); }
}


/* ----------------------------------------
   POPUP TELÉFONO INDIVIDUAL
   (usada en actividades.js)
   ---------------------------------------- */
@keyframes popupTelFadeIn {
  from { opacity: 0; transform: translate(-50%, -55%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}


/* ----------------------------------------
   MODAL TELÉFONOS MASIVO
   (actividades.js — abrirModalTelefonosMasivo)
   ---------------------------------------- */
@keyframes telMasivoIn {
  from { opacity: 0; transform: translate(-50%, -52%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

#ta-nombres {
  border: none;
  outline: none;
  resize: none;
  background: #f5f5f5;
  color: #2c3e50;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 28px;
  padding: 8px 10px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px 0 0 8px;
  user-select: none;
  cursor: default;
  overflow: hidden;
}

#ta-numeros {
  border: none;
  outline: none;
  resize: none;
  background: #fff;
  color: #2c3e50;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 28px;
  padding: 8px 10px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0 8px 8px 0;
  border-left: 2px solid #e0e0e0;
}

#ta-numeros:focus {
  border-left-color: #27ae60;
}

/* ----------------------------------------
   BOTÓN DESCARGAR CÉDULAS
   ---------------------------------------- */
#btn-descargar-cedulas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  padding: 1px 3px;
  background: #217346;
  color: #ffffff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  line-height: 1;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  transition: background 0.2s, transform 0.1s;
  position: relative;
  min-height: unset;
  min-width: unset;
}

#btn-descargar-cedulas:hover {
  background: #1a5c38;
  transform: scale(1.1);
}

#btn-descargar-cedulas:active {
  transform: scale(0.93);
  background: #164d2e;
}

#btn-descargar-cedulas svg {
  width: 11px;
  height: 11px;
  margin: 0;
  fill: #ffffff;
  display: block;
}

#btn-descargar-cedulas::after {
  content: "Descargar lista Excel";
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #2c3e50;
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 9999;
}

#btn-descargar-cedulas::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #2c3e50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 9999;
}

#btn-descargar-cedulas:hover::after,
#btn-descargar-cedulas:hover::before {
  opacity: 1;
}

@keyframes spin-download {
  to { transform: rotate(360deg); }
}

#btn-descargar-cedulas.descargando svg {
  animation: spin-download 0.8s linear infinite;
}


/* =============================================================
   14. BANNER WHATSAPP DESCONECTADO
   ============================================================= */

.wsp-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #e03131;
  color: #fff;
  padding: 12px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.wsp-banner.visible {
  display: flex;
}

.wsp-banner-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wsp-banner-icon {
  font-size: 20px;
}

.wsp-banner-acciones {
  display: flex;
  gap: 8px;
  align-items: center;
}

.wsp-btn-reconectar {
  background: #fff;
  border: none;
  border-radius: var(--radius-sm);
  color: #e03131;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  min-height: unset;
}

.wsp-btn-reconectar.reconectado {
  background: #2f9e44;
  color: #fff;
}

.wsp-btn-cerrar {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 6px 10px;
  font-size: 13px;
  min-height: unset;
}
   (movido desde <style> inline en profesor.html)
   ============================================================= */

.menu-exportar-opciones {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.07);
  border: 1px solid #e8e8e8;
  min-width: 240px;
  z-index: 1000;
  padding: 5px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95) translateY(-6px);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 0.16s ease,
    transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1),
    visibility 0s linear 0.2s;
}

.menu-exportar-opciones.menu-exp-visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  pointer-events: all;
  transition:
    opacity 0.16s ease,
    transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1),
    visibility 0s linear 0s;
}

.menu-exp-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  text-decoration: none;
  color: #2d3748;
  border-radius: 7px;
  transition: background 0.12s ease, transform 0.1s ease;
  cursor: pointer;
  background: transparent;
  position: relative;
}

/* Colores base de los items del menú exportar que tienen función conectada */
#btn-notas-trimestrales-junto { background: #3498db; color: white; }
#btn-notas-trimestrales-junto:hover { background: #2980b9; }
#btn-export-low-trimestral { background: #e74c3c; color: white; }
#btn-export-low-trimestral:hover { background: #c0392b; }

/* Los items sin función conectada mantienen el estilo base neutro */
#btn-informe-word-trimestral,
#btn-informe-zona-riesgo {
  background: transparent;
  color: #2d3748;
}

.menu-exp-item:hover {
  background: #f5f7fa;
  transform: translateX(3px);
}

.menu-exp-item:active {
  transform: translateX(3px) scale(0.98);
}

.menu-exp-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-exp-label {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.menu-exp-label small {
  display: block;
  font-size: 11px;
  color: #888;
  font-weight: 400;
  margin-top: 1px;
}

.menu-exp-arrow {
  font-size: 16px;
  color: #bbb;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.12s, transform 0.12s;
}

.menu-exp-item:hover .menu-exp-arrow {
  opacity: 1;
  transform: translateX(0);
}

.menu-exp-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 4px 4px;
}

#btn-exportar-trimestre .fa-chevron-down {
  transition: transform 0.18s ease;
}


/* =============================================================
   CLASES SEMÁNTICAS DE BOTONES
   (movido desde <style> inline en profesor.html)
   ============================================================= */

.btn-danger  { background: #e74c3c; color: white; border: none; }
.btn-primary { background: #3498db; color: white; border: none; }

.btn-action {
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.btn-action i { font-size: 16px; }

.btn-excel  { background: #1d6f42; }
.btn-word   { background: #2b579a; }
.btn-purple { background: #8e44ad; }

.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  color: white;
  background: linear-gradient(135deg, #1abc9c, #16a085);
  box-shadow: 0 2px 6px rgba(26, 188, 156, 0.35);
}


/* =============================================================
   SISTEMA DE TRANSICIONES E INTERACCIONES
   (movido desde <style> inline en profesor.html)
   ============================================================= */

button,
a.menu-exp-item,
.menu-item,
.tab-btn,
.trim-barra,
.trimester-btn,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-action,
.btn-upload,
.btn-logout,
.reg-btn {
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    background       0.18s ease,
    color            0.15s ease,
    border-color     0.15s ease,
    box-shadow       0.18s ease,
    transform        0.15s cubic-bezier(0.34, 1.5, 0.64, 1),
    filter           0.15s ease,
    opacity          0.15s ease;
  will-change: transform;
}

/* Navegación y selección — sin lift */
.tab-btn:hover,
.trim-barra:hover,
.trimester-btn:hover {
  filter: brightness(1.1);
}

.tab-btn:active,
.trim-barra:active,
.trimester-btn:active {
  transform: scale(0.97);
  filter: brightness(0.95);
  transition-duration: 0.07s;
}

.tab-btn.active,
.trim-barra.active,
.trimester-btn.active {
  transform: translateY(-1px);
}

.menu-item:hover {
  filter: brightness(1.08);
  transform: translateX(3px);
}

.menu-item:active {
  transform: scale(0.98);
  filter: brightness(0.94);
  transition-duration: 0.07s;
}

/* Acciones primarias — lift completo */
.btn-action:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-danger:hover,
.btn-upload:hover,
.btn-logout:hover,
.reg-btn:hover,
#btn-create-course:hover,
#btn-delete-course:hover,
#btn-exportar-trimestre:hover,
#btn-export-annual-report:hover,
#btn-informe-supletorio:hover,
#btn-actas-compromiso:hover,
#btn-subir-archivos-trim:hover,
#cancel-btn:hover,
#save-student-btn:hover,
#btn-cancel-course:hover,
#btn-submit-course:hover,
#btn-cancel-import:hover,
#btn-submit-import:hover,
#btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.08);
  filter: brightness(1.08);
}

.btn-action:active,
.btn-primary:active,
.btn-secondary:active,
.btn-danger:active,
.btn-upload:active,
.btn-logout:active,
.reg-btn:active,
#btn-create-course:active,
#btn-delete-course:active,
#btn-exportar-trimestre:active,
#btn-export-annual-report:active,
#btn-informe-supletorio:active,
#btn-actas-compromiso:active,
#btn-subir-archivos-trim:active,
#cancel-btn:active,
#save-student-btn:active,
#btn-cancel-course:active,
#btn-submit-course:active,
#btn-cancel-import:active,
#btn-submit-import:active,
#btn-login:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
  filter: brightness(0.94);
  transition-duration: 0.07s;
}

/* Casos especiales */
.sidebar-toggle:hover  { transform: scale(1.08); filter: brightness(1.1); }
.sidebar-toggle:active { transform: scale(0.94); filter: brightness(0.95); }

.btn-del-arch:hover,
.btn-rm-nuevo:hover,
#btn-x-modal-trim:hover  { transform: scale(1.18); }
.btn-del-arch:active,
.btn-rm-nuevo:active,
#btn-x-modal-trim:active { transform: scale(0.88); }

button:disabled,
.btn-disabled-custom,
.btn-curso-disabled-custom {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: none;
}

#btn-login:hover,
.reg-btn:hover {
  letter-spacing: 0.02em;
}
/* ── Texto tiza sobre pizarra de la foto ─────────────────── */
.ll-pizarra-txt {
  position: absolute;
  /* La pizarra en la foto aparece aprox en el tercio superior-central */
  top: 10%;
  left: 8%;
  right: 8%;
  height: 32%;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── RVR sobre pizarra de la foto ───────────────────────── */
.ll-rvr-wrap {
  position: absolute;
  /* Pizarra verde aprox top 4% del panel, centrada */
  top: 12%;
  left: 12%;
  right: 12%;
  height: 22%;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Frase motivadora login ──────────────────────────────── */
.ll-frase {
  font-size: 12px;
  color: rgba(255,255,255,0.88);
  line-height: 1.65;
  margin-top: 14px;
  font-style: italic;
  font-weight: 400;
  border-left: 2px solid rgba(255,255,255,0.40);
  padding-left: 12px;
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,0.28);
  border-radius: 0 6px 6px 0;
  padding: 10px 12px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.ll-frase .autor {
  color: rgba(255,255,255,0.65);
}

/* ── Título Acceso Docente con más jerarquía ── */
.lc-title {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
  letter-spacing: -0.3px !important;
  text-align: center !important;
}

.lc-sub {
  text-align: center;
  font-size: 13px;
  color: #64748b;
  margin: 4px 0 22px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* ── Botón Ingresar más elegante ── */
#btn-login {
  width: 100% !important;
  padding: 13px !important;
  background: linear-gradient(135deg, #1e3a5f, #2563a8) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  margin-top: 8px !important;
  letter-spacing: 0.4px !important;
  box-shadow: 0 4px 14px rgba(30,58,95,0.30) !important;
  transition: all 0.18s ease !important;
}

#btn-login:hover {
  background: linear-gradient(135deg, #162d4a, #1a4f8a) !important;
  box-shadow: 0 6px 20px rgba(30,58,95,0.38) !important;
  transform: translateY(-2px) !important;
}

#btn-login:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 6px rgba(30,58,95,0.20) !important;
}

/* ── Campos sin fondo amarillo (autofill) ── */
#cedula:-webkit-autofill,
#password:-webkit-autofill,
#cedula:-webkit-autofill:hover,
#password:-webkit-autofill:hover,
#cedula:-webkit-autofill:focus,
#password:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  -webkit-text-fill-color: #0f172a !important;
  border-color: #e2e8f0 !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

#cedula,
#password {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  color: #0f172a !important;
  padding: 11px 38px 11px 38px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

#cedula:focus,
#password:focus {
  border-color: #2563a8 !important;
  box-shadow: 0 0 0 3px rgba(37,99,168,0.12) !important;
  background: #ffffff !important;
}








/* ── Título principal login izquierdo ── */
.ll-title {
  font-size: clamp(22px, 3.5vw, 30px) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.8) !important;
  position: relative;
  z-index: 1;
}

/* ── Motivación ── */
.ll-motivacion {
  color: rgba(255,255,255,0.90) !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7) !important;
  font-size: 14px !important;
  position: relative;
  z-index: 1;
}

/* ── Frase de Mandela sin caja gris ── */
.ll-frase {
  font-size: 12px !important;
  color: rgba(255,255,255,0.85) !important;
  line-height: 1.65 !important;
  margin-top: 14px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  border-left: 3px solid rgba(255,255,255,0.50) !important;
  padding: 6px 12px !important;
  position: relative !important;
  z-index: 1 !important;
  background: none !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7) !important;
}

.ll-frase .autor {
  color: rgba(255,255,255,0.65) !important;
}

/* ── Badges con más separación y estilo ── */
.ll-features {
  display: flex !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  position: relative !important;
  z-index: 1 !important;
}

.ll-feat {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  background: rgba(0,0,0,0.35) !important;
  padding: 7px 14px !important;
  border-radius: 20px !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
  border: 1px solid rgba(255,255,255,0.20) !important;
}

.ll-feat-ico {
  display: flex !important;
  align-items: center !important;
  opacity: 0.85 !important;
}

/* ── Título en una sola línea ── */
.ll-title {
  font-size: clamp(16px, 2.8vw, 24px) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.9) !important;
  position: relative !important;
  z-index: 1 !important;
  line-height: 1.2 !important;
  margin-bottom: 10px !important;
}

/* ── Badges en una sola fila ── */
.ll-features {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  position: relative !important;
  z-index: 1 !important;
  margin-top: 20px !important;
}

.ll-feat {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  background: rgba(0,0,0,0.40) !important;
  padding: 6px 12px !important;
  border-radius: 20px !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
  border: 1px solid rgba(255,255,255,0.20) !important;
  white-space: nowrap !important;
}
/* ── Slide 1: animación SVG profesor (sin imagen de fondo) ── */
.ll-slide-bg[style*="linear-gradient"] {
  background-size: 100% 100% !important;
  background-image: none !important;
}
/* ── SLIDE 1: sin muñeco — centrado total ───────────────────── */
.ll-slide-content {
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}
.ll-title-blue {
  display: inline !important;
  font-size: inherit !important;
  font-weight: 800 !important;
  color: #64b5f6 !important;
}