/* ==========================================================================
   NEMPlanner - Sistema de Diseño Visual (Smart Aesthetic Teacher Planner)
   Inspirado en agendas docentes ilustradas mexicanas, papelería escolar y transiciones 3D
   ========================================================================== */

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

:root {
  /* Fondos Base y Superficies (Soft Aesthetic Neo-Planner) */
  --bg-app: #F8FAFC;
  --bg-book: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-sidebar: #F1F5F9;
  
  /* Texturas de Papel y Cuadrícula */
  --paper-cream: #FFFFFF;
  --paper-grid: rgba(100, 116, 139, 0.03);
  --paper-dot: rgba(0, 0, 0, 0.025);

  /* Bordes y Contornos Estructurados (Soft Subtle Outlines) */
  --border-dark: #64748B;
  --border-color: #E2E8F0;
  --border-light: #F1F5F9;

  /* Colores Principales UI (Suaves, Sobrios y Relajantes) */
  --primary: #5B6B8C;
  --primary-hover: #475569;
  --primary-light: #F1F5F9;
  --accent: #818CF8;
  --accent-soft: #EEF2FF;
  --text-main: #1E293B;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;

  /* Paleta Pastel Suave de Meses Escolares (Soft Pastel Tabs) */
  --tab-ene-bg: #E0E7FF; --tab-ene-txt: #3730A3;
  --tab-feb-bg: #FCE7F3; --tab-feb-txt: #831843;
  --tab-mar-bg: #FEE2E2; --tab-mar-txt: #991B1B;
  --tab-abr-bg: #FEF3C7; --tab-abr-txt: #92400E;
  --tab-may-bg: #DCFCE7; --tab-may-txt: #166534;
  --tab-jun-bg: #E0F2FE; --tab-jun-txt: #075985;
  --tab-jul-bg: #EDE9FE; --tab-jul-txt: #5B21B6;
  --tab-ago-bg: #FFEDD5; --tab-ago-txt: #9A3412;
  --tab-sep-bg: #FEF9C3; --tab-sep-txt: #854D0E;
  --tab-oct-bg: #DCFCE7; --tab-oct-txt: #166534;
  --tab-nov-bg: #E0F2FE; --tab-nov-txt: #075985;
  --tab-dic-bg: #FCE7F3; --tab-dic-txt: #831843;

  /* Bloques Acento Suaves de Semanas */
  --week1-bg: #FCE7F3; --week1-txt: #831843;
  --week2-bg: #FFEDD5; --week2-txt: #9A3412;
  --week3-bg: #DCFCE7; --week3-txt: #166534;
  --week4-bg: #E0F2FE; --week4-txt: #075985;

  /* Estados, Chips y Acciones Suaves */
  --cell-active-bg: #FEF9C3;
  --cell-active-border: #818CF8;
  --chip-present-bg: #DCFCE7; --chip-present-txt: #166534;
  --chip-delay-bg: #E0F2FE; --chip-delay-txt: #0369A1; --chip-delay-border: #BAE6FD;
  --chip-justified-bg: #EDE9FE; --chip-justified-txt: #5B21B6; --chip-justified-border: #DDD6FE;
  --chip-absence-bg: #FEE2E2; --chip-absence-txt: #991B1B; --chip-absence-border: #FECACA;
  --badge-warning-bg: #FEF3C7; --badge-warning-txt: #92400E;

  /* Paleta Pastel Suave de Papelería Escolar (Sin Saturación Extrema) */
  --cute-coral: #F87171;
  --cute-orange: #FB923C;
  --cute-yellow: #FDE047;
  --cute-green: #34D399;
  --cute-teal: #38BDF8;
  --cute-blue: #60A5FA;
  --cute-purple: #A78BFA;
  --cute-pink: #F472B6;
  --cute-lime: #A3E635;
  --cute-sky: #7DD3FC;

  /* 4 Campos Formativos Oficiales NEM (Tonos Suaves y Armoniosos) */
  --cf-lenguajes: #E879F9;
  --cf-saberes: #60A5FA;
  --cf-etica: #34D399;
  --cf-humano: #FBBF24;

  /* Estados y Semáforo Suave */
  --color-success: #34D399;
  --color-warning: #FBBF24;
  --color-danger: #F87171;
  --color-info: #60A5FA;

  /* Sombras Suaves y Elevación Refinada */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 10px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 20px -3px rgba(0,0,0,0.07);
  --shadow-book: 0 15px 30px -8px rgba(30, 41, 59, 0.08);

  /* Bordes Redondeados */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  /* Tipografías */
  --font-primary: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-cute: 'Fredoka', cursive, sans-serif;
  --font-handwriting: 'Caveat', cursive;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   ESTILOS COMPONENTES Y WIDGETS (Aesthetic Pastel Neo-Planner)
   ========================================================================== */

/* Contenedores Neo-Outlines */
.neo-card, .planner-card, .table-card-container {
  background-color: #FFFFFF;
  border-radius: 14px;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

/* Encabezados de Tablas */
.table-header-general {
  background-color: #F8FAFC;
  color: #334155;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Bloques de Semanas en Tablas */
.th-week-1, .bg-week-1 { background-color: #FCE7F3 !important; color: #831843 !important; }
.th-week-2, .bg-week-2 { background-color: #FFEDD5 !important; color: #9A3412 !important; }
.th-week-3, .bg-week-3 { background-color: #DCFCE7 !important; color: #166534 !important; }
.th-week-4, .bg-week-4 { background-color: #E0F2FE !important; color: #075985 !important; }

/* Chips de Asistencia / Estados */
.chip-retardo {
  background-color: #E8F5E9;
  color: #166534;
  border: 1px solid #C8E6C9;
  padding: 3px 10px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chip-justificado {
  background-color: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
  padding: 3px 10px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chip-falta {
  background-color: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
  padding: 3px 10px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chip-asistencia {
  color: #10B981;
  font-weight: 800;
  font-size: 1.1rem;
}

.badge-pastel-alert {
  background-color: #FEF08A;
  color: #854D0E;
  border: 1px solid #FDE047;
  padding: 3px 10px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.75rem;
}

/* Celda Seleccionada / Foco Activo */
.cell-selected, td.active-cell, .table-cell-active {
  background-color: #FEF08A !important;
  border: 2px solid #6366F1 !important;
  outline: none;
}

/* Scrollbar Personalizado Estilizado */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #94A3B8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748B;
}

/* Base & Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: radial-gradient(#CBD5E1 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; color: var(--text-main); }

/* 1. Portada 3D & Login de Acceso Institucional */
.book-cover-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 40%, #1E293B 0%, #0F172A 100%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.book-cover-modal-backdrop.cover-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

/* Orbes de Luz Ambiental Tenue */
.cover-ambient-orb-1 {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, transparent 70%);
  filter: blur(60px);
  top: 5%;
  left: 10%;
  border-radius: 50%;
  pointer-events: none;
  animation: floatOrb 14s ease-in-out infinite alternate;
}

.cover-ambient-orb-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.18) 0%, transparent 70%);
  filter: blur(55px);
  bottom: 10%;
  right: 10%;
  border-radius: 50%;
  pointer-events: none;
  animation: floatOrb 18s ease-in-out infinite alternate-reverse;
}

.cover-ambient-orb-3 {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.15) 0%, transparent 70%);
  filter: blur(45px);
  top: 55%;
  left: 18%;
  border-radius: 50%;
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, -30px) scale(1.08); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

.book-cover-perspective-stage {
  perspective: 1600px;
  width: 100%;
  max-width: 520px;
  position: relative;
  z-index: 5;
}

.interactive-book-cover {
  background: #FFFFFF;
  border-radius: 22px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 10px 25px -5px rgba(15, 23, 42, 0.3);
  position: relative;
  min-height: 690px;
  display: flex;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.85);
  transform-origin: left center;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.75s ease;
}

.interactive-book-cover.book-opening {
  transform: rotateY(-80deg) scale(0.95);
  box-shadow: -20px 30px 50px rgba(0,0,0,0.5);
}

.book-spiral-spine {
  width: 48px;
  background: linear-gradient(90deg, #E2E8F0 0%, #F1F5F9 40%, #CBD5E1 70%, #94A3B8 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 24px 0;
  border-right: 2px solid #CBD5E1;
  box-shadow: inset -3px 0 6px rgba(0,0,0,0.08);
  z-index: 5;
}

.spiral-ring {
  width: 34px;
  height: 12px;
  background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 50%, #64748B 100%);
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  margin: 3px 0;
}

.cover-surface-grid {
  flex: 1;
  background-color: #FCFCFE;
  background-image: radial-gradient(#CBD5E1 1.2px, transparent 1.2px);
  background-size: 20px 20px;
  padding: 24px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.sticker-element {
  position: absolute;
  font-size: 2rem;
  filter: drop-shadow(2px 3px 6px rgba(0,0,0,0.12));
  user-select: none;
  animation: stickerFloat 4s ease-in-out infinite alternate;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.sticker-element:hover {
  transform: scale(1.25) rotate(8deg);
}

@keyframes stickerFloat {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-5px) rotate(3deg); }
}

.sticker-puzzle   { top: 16px; left: 16px; font-size: 2.2rem; animation-delay: 0.2s; }
.sticker-rainbow  { top: 14px; right: 18px; font-size: 2.4rem; animation-delay: 0.5s; }
.sticker-boat     { top: 140px; left: 20px; font-size: 1.8rem; animation-delay: 0.8s; }
.sticker-scissors { top: 225px; left: 30px; font-size: 1.7rem; animation-delay: 1.1s; }
.sticker-bulb     { bottom: 260px; left: 18px; font-size: 2rem; animation-delay: 1.4s; }
.sticker-bus      { bottom: 170px; left: 16px; font-size: 2.2rem; animation-delay: 1.7s; }
.sticker-pencil   { top: 140px; right: 20px; font-size: 2rem; animation-delay: 0.3s; }
.sticker-plane    { top: 230px; right: 22px; font-size: 1.8rem; animation-delay: 0.9s; }
.sticker-marker   { bottom: 250px; right: 20px; font-size: 2rem; animation-delay: 1.2s; }
.sticker-heart    { bottom: 175px; right: 22px; font-size: 1.7rem; animation-delay: 1.6s; }

.cover-title-container {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-top: 4px;
}

.cover-brush-backing {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 270px;
  height: 110px;
  background: rgba(241, 245, 249, 0.85);
  filter: blur(10px);
  border-radius: 40px;
  z-index: -1;
}

.cover-main-title {
  font-family: var(--font-cute);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0px #FFFFFF, 3px 4px 0px rgba(0,0,0,0.08);
}

.letter-d1 { color: #818CF8; } .letter-i1 { color: #F472B6; } .letter-a1 { color: #FB923C; } .letter-r1 { color: #FBBF24; } .letter-i2 { color: #34D399; } .letter-o1 { color: #60A5FA; }
.letter-d2 { color: #818CF8; } .letter-o2 { color: #F472B6; } .letter-c1 { color: #34D399; } .letter-e1 { color: #FB923C; } .letter-n1 { color: #60A5FA; } .letter-t1 { color: #FBBF24; } .letter-e2 { color: #F472B6; }

.cover-sub-badge {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.cover-center-backpack-sticker {
  margin: 6px 0 10px;
  z-index: 2;
}

.backpack-art-box {
  font-size: 4.5rem;
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.15));
  animation: pulseBackpack 3s ease-in-out infinite alternate;
}

@keyframes pulseBackpack {
  0% { transform: scale(1); }
  100% { transform: scale(1.04); }
}

.sticker-apple-overlay {
  position: absolute;
  bottom: -4px;
  right: -12px;
  font-size: 2rem;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.15));
}

.sticker-books-overlay {
  position: absolute;
  bottom: -4px;
  left: -16px;
  font-size: 2rem;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.15));
}

/* Tarjeta de Inicio de Sesión Modernizada (Glassmorphism Suave) */
.cover-bottom-login-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 16px 18px 14px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  border: 1.5px solid #E2E8F0;
  text-align: left;
  z-index: 3;
}

.login-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #E2E8F0;
}

.login-card-avatar {
  font-size: 1.35rem;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #EEF2FF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: #1E293B;
  margin: 0;
}

.login-card-subtitle {
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 600;
  margin: 0;
}

/* Barra de Roles Rápidos (1 Clic) */
.quick-demo-roles-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  background: #F8FAFC;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
}

.quick-roles-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748B;
  white-space: nowrap;
}

.quick-roles-pills-row {
  display: flex;
  gap: 6px;
  flex: 1;
  justify-content: flex-end;
}

.btn-quick-login-role {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  color: #475569;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-quick-login-role svg {
  width: 13px;
  height: 13px;
}

.btn-quick-login-role:hover {
  background: #EEF2FF;
  border-color: #CBD5E1;
  color: #4338CA;
}

.btn-quick-login-role.active {
  background: #EEF2FF;
  border-color: #818CF8;
  color: #4338CA;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.15);
}

.cover-login-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-form-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.login-field-label {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 5px;
}

.login-field-label svg {
  width: 13px;
  height: 13px;
  color: #6366F1;
}

.login-input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon-wrap .field-icon {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  color: #94A3B8;
  pointer-events: none;
}

.login-input-field {
  width: 100%;
  padding: 7px 12px 7px 32px;
  border: 1.5px solid #CBD5E1;
  border-radius: 9px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: #1E293B;
  background: #F8FAFC;
  outline: none;
  transition: all 0.2s ease;
}

.login-input-field:focus {
  background: #FFFFFF;
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.btn-toggle-pwd {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: #64748B;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-toggle-pwd svg {
  width: 15px;
  height: 15px;
}

.login-error-toast {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #DC2626;
  background: #FEF2F2;
  border: 1.5px solid #FECACA;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  animation: shakeNotice 0.3s ease;
}

@keyframes shakeNotice {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.cover-actions-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.btn-open-planner-3d {
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  color: #FFFFFF;
  border: none;
  padding: 9px 18px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-open-planner-3d:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
  filter: brightness(1.05);
}

.btn-open-planner-3d:active {
  transform: translateY(0);
}

.cover-institutional-footer {
  text-align: center;
  font-size: 0.7rem;
  color: #94A3B8;
  font-weight: 600;
  margin-top: 4px;
}

/* ==========================================================================
   ESPACIO DE TRABAJO PRINCIPAL Y MESA DE TRABAJO DE LA AGENDA
   ========================================================================== */
.planner-workspace-shell {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  min-height: calc(100vh - 75px);
  padding: 16px 20px;
  gap: 12px;
  position: relative;
  background: #F8FAFC;
  box-sizing: border-box;
  overflow-x: visible;
}

.app-left-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
  transition: all 0.25s ease;
  overflow: hidden;
}

.planner-book-frame {
  flex: 1;
  min-width: 0;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   VENTANAS FLOTANTES SUPERIORES (MODALES FLOTANTES 360° DE ALUMNO)
   ========================================================================== */
.planner-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
}

.planner-modal-window.floating-top-modal {
  width: 100%;
  max-width: 960px;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05);
  border: 2px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 10px auto 40px auto;
  animation: modalFloatDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFloatDown {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header-banner {
  background: linear-gradient(135deg, #475569 0%, #5B6B8C 50%, #64748B 100%);
  padding: 18px 24px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.15);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-header-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-header-icon-box svg {
  width: 24px;
  height: 24px;
}

.modal-badges-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.modal-badge-grade {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-badge-status {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  background: #34D399;
  color: #064E3B;
  padding: 2px 10px;
  border-radius: 999px;
}

.modal-main-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
}

.modal-subtitle-text {
  font-size: 0.8rem;
  color: #C7D2FE;
  margin: 2px 0 0 0;
}

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

.btn-modal-print-sheet {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 14px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-print-sheet:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-close:hover {
  background: #EF4444;
  border-color: #EF4444;
}

.modal-tabs-header-bar {
  background: #F8FAFC;
  border-bottom: 2px solid #E2E8F0;
  display: flex;
  padding: 8px 16px 0 16px;
  gap: 6px;
  overflow-x: auto;
}

.btn-mod-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px 10px 0 0;
  border: 1.5px solid transparent;
  border-bottom: none;
  background: transparent;
  color: #64748B;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-mod-tab svg {
  width: 14px;
  height: 14px;
}

.btn-mod-tab:hover {
  color: #4F46E5;
  background: #EEF2FF;
}

.btn-mod-tab.active {
  background: #FFFFFF;
  color: #4F46E5;
  border-color: #CBD5E1 #CBD5E1 #FFFFFF #CBD5E1;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.04);
}

.modal-body-scrollable {
  padding: 24px;
  max-height: calc(85vh - 180px);
  overflow-y: auto;
}

.mod-tab-pane {
  display: none;
}

.mod-tab-pane.active {
  display: block;
  animation: fadeInPane 0.2s ease forwards;
}

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

.modal-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid #F1F5F9;
}

.modal-section-label svg {
  color: #4F46E5;
}

.form-three-cols-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.form-two-cols-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-lbl-bold {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.modal-input-styled {
  padding: 9px 14px;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: #0F172A;
  background: #F8FAFC;
  outline: none;
  transition: all 0.2s ease;
}

.modal-input-styled:focus {
  background: #FFFFFF;
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.modal-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: #0F172A;
  background: #F8FAFC;
  outline: none;
  resize: vertical;
  transition: all 0.2s ease;
}

.modal-textarea:focus {
  background: #FFFFFF;
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.modal-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1.5px solid #E2E8F0;
}

.footer-right-btns {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.btn-modal-save {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.btn-modal-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-modal-cancel {
  background: #F1F5F9;
  color: #475569;
  border: 1.5px solid #CBD5E1;
  padding: 9px 18px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-cancel:hover {
  background: #E2E8F0;
  color: #1E293B;
}

.btn-modal-delete {
  background: #FEF2F2;
  color: #DC2626;
  border: 1.5px solid #FECACA;
  padding: 9px 16px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-delete:hover {
  background: #FEE2E2;
  border-color: #FCA5A5;
}

/* ==========================================================================
   MÓDULO: CALENDARIO ESCOLAR & SECUENCIA DIDÁCTICA
   ========================================================================== */
.calendar-page-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  width: 100%;
}

.cal-header-banner {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border: 1.5px solid #E2E8F0;
}

.cal-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cal-badge-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.cal-meta-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.badge-cal-year, .badge-cal-month, .badge-cal-phase {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: 999px;
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

.cal-main-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #1E293B;
  margin: 0;
}

.cal-sub-heading {
  font-size: 0.82rem;
  color: #64748B;
  margin: 2px 0 0 0;
}

.btn-cal-print {
  background: #FFFFFF;
  color: #1E293B;
  border: 1.5px solid #CBD5E1;
  padding: 9px 18px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-cal-print:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  transform: translateY(-1px);
}

.cal-legend-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1.5px solid #E2E8F0;
  margin-bottom: 14px;
}

.legend-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  padding: 3px 10px;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.calendar-grid-wrapper {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1.5px solid #E2E8F0;
  overflow-x: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.calendar-weekdays-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  background: #F8FAFC;
  border-bottom: 2px solid #E2E8F0;
}

.cal-weekday-cell {
  padding: 10px 6px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: #334155;
  border-right: 1px solid #E2E8F0;
}

.cal-weekday-cell:last-child {
  border-right: none;
}

.cal-weekday-cell.weekend-hd {
  background: #F1F5F9;
  color: #94A3B8;
}

.calendar-days-matrix-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 0;
  background: #E2E8F0;
}

.cal-day-cell {
  background: #FFFFFF;
  height: 155px;
  max-height: 155px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.cal-day-empty {
  background: #F8FAFC;
}

.cal-day-weekend {
  background: #F8FAFC;
}

.cal-day-special {
  background: #FAF5FF;
}

.cal-day-school-active {
  cursor: pointer;
  background: #FFFFFF;
}

.cal-day-school-active:hover {
  background: #F0FDF4;
  transform: translateY(-2px);
  z-index: 2;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.day-num-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1;
}

.day-num {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: #1E293B;
}

.field-pill-chip {
  font-family: var(--font-heading);
  font-size: 0.60rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  line-height: 1.1;
  white-space: nowrap;
}

.cal-doc-trigger-box {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1px 0;
}

.cal-big-doc-icon {
  width: 100%;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.cal-big-doc-icon .doc-emoji {
  font-size: 0.95rem;
}

.cal-big-doc-icon .doc-open-tag {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
}

.cal-project-title-line {
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.15;
  margin: 1px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-didactic-steps-preview {
  flex: 1;
  overflow-y: auto;
  font-size: 0.58rem;
  color: #64748B;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}

.cal-didactic-steps-preview::-webkit-scrollbar {
  width: 3px;
}

.cal-didactic-steps-preview::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}

.step-line {
  white-space: normal;
  word-break: break-word;
  color: #475569;
}

.dot-ini { color: #10B981; }
.dot-des { color: #3B82F6; }
.dot-cie { color: #8B5CF6; }

.special-badge {
  font-size: 0.60rem;
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.1;
}

.special-event-body {
  flex: 1;
  overflow-y: auto;
  font-size: 0.65rem;
  line-height: 1.25;
  margin-top: 4px;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}

.special-event-body::-webkit-scrollbar {
  width: 3px;
}

.special-event-body::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}

.special-event-title {
  font-size: 0.65rem;
  line-height: 1.2;
}

.weekend-tag {
  font-size: 0.60rem;
  color: #94A3B8;
}

.cal-month-footer-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cal-summary-card {
  background: #FFFFFF;
  border-radius: 14px;
  border: 1.5px solid #E2E8F0;
  padding: 16px;
}

.cal-summary-card h4 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.cal-events-list {
  font-size: 0.8rem;
  color: #475569;
  padding-left: 18px;
  margin: 0;
  line-height: 1.5;
}

.cal-summary-card p {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.cal-print-official-header {
  display: none;
}

@media print {
  .cal-print-official-header {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin-bottom: 16px;
  }
  .cal-sep-logo {
    font-size: 1.5rem;
  }
  .cal-print-meta-center h2 {
    font-size: 1.1rem;
    margin: 0;
  }
  .cal-print-meta-center h3 {
    font-size: 0.95rem;
    margin: 2px 0;
  }
  .cal-print-meta-center p {
    font-size: 0.8rem;
    margin: 0;
  }
}

/* ==========================================================================
   MÓDULO: EVALUACIÓN CONTINUA & FORMATIVA NEM
   ========================================================================== */
.continuous-eval-page-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 16px;
  width: 100%;
}

.eval-top-header-banner {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.banner-left-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.eval-avatar-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.eval-title-main {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #1E293B;
  margin: 0;
}

.eval-subtitle-text {
  font-size: 0.82rem;
  color: #64748B;
  margin: 2px 0 0 0;
}

.banner-right-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.eval-date-picker-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: #334155;
}

.eval-input-date {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1.5px solid #CBD5E1;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  outline: none;
}

.eval-term-toggle {
  display: flex;
  background: #F1F5F9;
  border-radius: 10px;
  padding: 3px;
  border: 1px solid #E2E8F0;
  gap: 4px;
}

.btn-term-pill {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-term-pill.active {
  background: #4F46E5;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}

.continuous-eval-main-nav-tabs {
  display: flex;
  gap: 8px;
  background: #F8FAFC;
  border-radius: 14px;
  padding: 6px;
  border: 1.5px solid #E2E8F0;
  overflow-x: auto;
}

.btn-eval-nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #64748B;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-eval-nav-tab.active {
  background: #FFFFFF;
  color: #4F46E5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.checklist-tab-container, .gradebook-tab-container, .evidences-informative-tab-container, .matrix-concentrado-tab-container, .reports-tab-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checklist-toolbar-card, .gradebook-header-banner, .reports-header-card, .evidences-info-banner {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 16px 20px;
  border: 1.5px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.checklist-table-wrapper, .gradebook-table-wrapper, .concentrado-table-wrapper {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1.5px solid #E2E8F0;
  overflow-x: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.checklist-interactive-table, .gradebook-full-table, .concentrado-official-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.checklist-interactive-table th, .gradebook-full-table th, .concentrado-official-table th {
  background: #F8FAFC;
  padding: 12px 10px;
  border-bottom: 2px solid #E2E8F0;
  border-right: 1px solid #E2E8F0;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: #1E293B;
}

.checklist-interactive-table td, .gradebook-full-table td, .concentrado-official-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #E2E8F0;
  border-right: 1px solid #E2E8F0;
  vertical-align: middle;
}

.checklist-interactive-table tr:hover, .gradebook-full-table tr:hover, .concentrado-official-table tr:hover {
  background: #F8FAFC;
}

.toggle-yes-no-group {
  display: inline-flex;
  background: #F1F5F9;
  border-radius: 8px;
  padding: 2px;
  border: 1px solid #CBD5E1;
  gap: 2px;
}

.btn-yn-toggle {
  padding: 4px 12px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  background: transparent;
  color: #64748B;
  transition: all 0.15s ease;
}

.btn-yn-toggle.btn-yn-yes.active {
  background: #10B981;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.btn-yn-toggle.btn-yn-no.active {
  background: #EF4444;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.input-checklist-note {
  width: 100%;
  padding: 6px 10px;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.8rem;
  outline: none;
}

.btn-checklist-quick, .btn-gb-simulate {
  background: #EEF2FF;
  color: #4F46E5;
  border: 1.5px solid #C7D2FE;
  padding: 8px 16px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-checklist-save, .btn-gb-save {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border: none;
  padding: 8px 18px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.input-gb-grade {
  width: 60px;
  padding: 4px 6px;
  border: 1.5px solid #CBD5E1;
  border-radius: 6px;
  font-size: 0.82rem;
  text-align: center;
  font-weight: 700;
}

.th-group-proc { background: #EEF2FF !important; color: #3730A3 !important; }
.th-group-conc { background: #ECFDF5 !important; color: #065F46 !important; }
.th-group-act { background: #FEF3C7 !important; color: #92400E !important; }
.th-group-total { background: #1E1B4B !important; color: #FFFFFF !important; }

.evidences-three-rubros-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rubro-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1.5px solid #E2E8F0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rubro-badge-weight {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  background: #EEF2FF;
  color: #4F46E5;
  display: inline-block;
  margin-bottom: 6px;
}

.rubro-title {
  font-size: 1.1rem;
  color: #1E293B;
  margin: 0;
}

.rubro-desc {
  font-size: 0.78rem;
  color: #64748B;
  margin: 2px 0 0 0;
}

.ev-item-card {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 10px 14px;
  border: 1px solid #E2E8F0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.ev-code {
  font-size: 0.72rem;
  background: #E2E8F0;
  padding: 2px 6px;
  border-radius: 4px;
  color: #334155;
}

.ev-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ev-name {
  font-size: 0.8rem;
  color: #1E293B;
}

.ev-inst {
  font-size: 0.72rem;
  color: #64748B;
}

.btn-create-report {
  background: #EF4444;
  color: #FFFFFF;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.reports-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.report-incident-card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 16px;
  border: 1.5px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.report-incident-card.border-amber { border-left: 5px solid #F59E0B; }
.report-incident-card.border-red { border-left: 5px solid #EF4444; }

.ric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ric-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 6px;
}

.ric-stu-name {
  font-size: 0.95rem;
  color: #1E293B;
  margin: 0 0 4px 0;
}

.ric-desc {
  font-size: 0.8rem;
  color: #475569;
  margin: 0;
}

/* ==========================================================================
   MÓDULO: CENTRO OFICIAL DE REPORTES SEP & PENDIENTES / INSUMOS
   ========================================================================== */
.official-sheet-container {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1.5px solid #CBD5E1;
  padding: 32px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.sep-official-header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2.5px solid #1E293B;
  padding-bottom: 14px;
}

.sep-logo-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sep-seal-emblem {
  font-size: 2.4rem;
}

.sep-text-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sep-main {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #1E293B;
  letter-spacing: 0.5px;
}

.sep-sub {
  font-size: 0.72rem;
  color: #475569;
}

.sep-phase {
  font-size: 0.75rem;
  color: #4F46E5;
}

.sep-doc-title-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.doc-badge-title {
  background: #EEF2FF;
  color: #3730A3;
  border: 1.5px solid #C7D2FE;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  display: inline-block;
}

.doc-cycle {
  font-size: 0.78rem;
  color: #475569;
}

.doc-period {
  font-size: 0.75rem;
  color: #4F46E5;
}

.official-context-strip {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 10px 16px;
  border: 1px solid #E2E8F0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: #334155;
}

.official-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  background: #FFFFFF;
}

.official-data-table th {
  background: #F1F5F9;
  padding: 10px 12px;
  border: 1px solid #CBD5E1;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: #1E293B;
}

.official-data-table td {
  padding: 10px 12px;
  border: 1px solid #E2E8F0;
  vertical-align: middle;
}

.official-data-table tr:nth-child(even) {
  background: #F8FAFC;
}

.official-signatures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 30px;
  padding-top: 10px;
}

.sig-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sig-line {
  width: 80%;
  height: 40px;
  background: transparent !important;
  border: none !important;
  border-bottom: 1.5px solid #1E293B !important;
  margin: 0 auto 8px auto;
}

.sig-name {
  font-size: 0.84rem;
  color: #1E293B;
}

.sig-role {
  font-size: 0.74rem;
  color: #64748B;
}

.doc-section-card {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1.5px solid #E2E8F0;
  padding: 16px 20px;
}

.dsc-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #1E293B;
  margin: 0 0 8px 0;
  padding-bottom: 4px;
  border-bottom: 1.5px solid #F1F5F9;
}

.dsc-text {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.vak-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.vak-pill {
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vak-num {
  font-size: 0.95rem;
}

.vak-lbl {
  font-size: 0.72rem;
  color: #475569;
}

.border-indigo { border-color: #C7D2FE; }
.border-emerald { border-color: #A7F3D0; }
.border-amber { border-color: #FDE68A; }

.priority-stus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.pstu-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.prob-tags-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prob-tag-badge {
  background: #F8FAFC;
  border-left: 4px solid #4F46E5;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.badge-method {
  background: #EEF2FF;
  color: #4F46E5;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  display: inline-block;
}

.asistencia-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.kpi-pill {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.kpi-val {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.kpi-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748B;
}

.pmc-grid-doc {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4F46E5, #10B981);
  border-radius: 999px;
}

/* ESTILOS DEL MÓDULO DE PENDIENTES & INSUMOS */
.pendings-inputs-page-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  width: 100%;
}

.pendings-header-banner {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.pendings-avatar-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.pendings-title-main {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #1E293B;
  margin: 0;
}

.pendings-subtitle-text {
  font-size: 0.82rem;
  color: #64748B;
  margin: 2px 0 0 0;
}

.btn-pendings-save-all {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.pendings-nav-tabs-bar {
  display: flex;
  gap: 8px;
  background: #F8FAFC;
  border-radius: 14px;
  padding: 6px;
  border: 1.5px solid #E2E8F0;
  overflow-x: auto;
}

.btn-pendings-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #64748B;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-pendings-tab.active {
  background: #FFFFFF;
  color: #EC4899;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.form-card-panel {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1.5px solid #E2E8F0;
  padding: 24px 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.panel-header-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid #F1F5F9;
  padding-bottom: 14px;
}

.phi-badge {
  font-size: 0.72rem;
  background: #FDF2F8;
  color: #BE185D;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid #FBCFE8;
  display: inline-block;
  margin-bottom: 4px;
}

.phi-title {
  font-size: 1.25rem;
  color: #1E293B;
  margin: 0;
}

.phi-desc {
  font-size: 0.82rem;
  color: #64748B;
  margin: 2px 0 0 0;
}

.problemas-grid-editor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.prob-item-edit-card {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prob-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inp-prob-title {
  width: 100%;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.82rem;
  outline: none;
  background: #FFFFFF;
}

.projects-analytical-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.analytic-proy-card {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 18px;
}

.apc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 8px;
}

.apc-num {
  font-size: 0.72rem;
  color: #4F46E5;
}

.apc-name {
  font-size: 1rem;
  color: #1E293B;
  margin: 2px 0 0 0;
}

.apc-method {
  font-size: 0.75rem;
  background: #EEF2FF;
  color: #4F46E5;
  padding: 3px 10px;
  border-radius: 8px;
}

.apc-grid-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.apc-field-full {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.inp-apc-ltg, .inp-apc-temp, .inp-apc-pda, .inp-apc-prod, .inp-diag-text, .inp-textarea-full {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.82rem;
  background: #FFFFFF;
  outline: none;
}

.eje-pill {
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-right: 4px;
}

.mejoredu-fields-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mejoredu-field-card {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px;
}

.mfc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mfc-name {
  font-size: 0.95rem;
  color: #1E293B;
  margin: 6px 0;
}

.mfc-levels-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.lvl-badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 6px;
}

.inp-mfc-str, .inp-mfc-prio {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.78rem;
  background: #FFFFFF;
  outline: none;
}

.styled-priority-table {
  width: 100%;
  border-collapse: collapse;
}

.styled-priority-table th {
  background: #F1F5F9;
  padding: 8px 12px;
  border: 1px solid #CBD5E1;
  font-size: 0.8rem;
}

.styled-priority-table td {
  padding: 6px 10px;
  border: 1px solid #E2E8F0;
}

.inp-table-clean {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  outline: none;
}

.interv-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.interv-plan-card {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px;
}

.ipc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 8px;
}

.ipc-area {
  font-size: 0.72rem;
  color: #4F46E5;
}

.ipc-name {
  font-size: 1rem;
  color: #1E293B;
  margin: 2px 0 0 0;
}

.inp-ipc-diag, .inp-ipc-strat {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.8rem;
  background: #FFFFFF;
  outline: none;
}

.pmc-goals-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pmc-goal-item-box {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pgi-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.pgi-num {
  font-size: 0.75rem;
  background: #E2E8F0;
  padding: 2px 8px;
  border-radius: 6px;
}

.inp-pgi-goal {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.82rem;
  background: #FFFFFF;
  outline: none;
}

.pgi-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 14px;
}

.progress-input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.inp-pgi-pct {
  width: 55px;
  padding: 4px 6px;
  border: 1.5px solid #CBD5E1;
  border-radius: 6px;
  text-align: center;
  font-size: 0.84rem;
}

/* 2. Header y Workspace */

.app-header { background: #FFFFFF; border-bottom: 1px solid var(--border-color); padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 50; }
.header-brand { display: flex; align-items: center; gap: 12px; }
.brand-icon-box { width: 44px; height: 44px; border-radius: var(--radius-md); background: linear-gradient(135deg, #5C67C7 0%, #E287A7 100%); display: flex; align-items: center; justify-content: center; color: white; box-shadow: 0 4px 10px rgba(92, 103, 199, 0.25); }
.app-header .brand-title { font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; gap: 8px; color: var(--text-main); text-shadow: none; }
.brand-badge-version { font-size: 0.7rem; font-weight: 700; background: #F0F3FA; color: var(--primary); padding: 2px 8px; border-radius: var(--radius-pill); }
.header-school-context { display: flex; flex-direction: column; align-items: flex-end; }
.header-school-title { font-size: 0.95rem; font-weight: 700; color: var(--text-main); }
.header-group-sub { font-size: 0.8rem; color: var(--text-muted); }
.header-actions-group { display: flex; align-items: center; gap: 10px; }
.btn-cute-action-header { background: #FDF2F8; color: #BE185D; border: 1px solid #FBCFE8; padding: 8px 16px; border-radius: var(--radius-pill); font-family: var(--font-heading); font-weight: 700; font-size: 0.8rem; display: flex; align-items: center; gap: 6px; cursor: pointer; transition: all 0.2s ease; }

.planner-workspace-shell { flex: 1; display: flex; max-width: 1600px; width: 100%; margin: 16px auto; padding: 0 16px; position: relative; }
.planner-book-frame { flex: 1; background-color: var(--paper-cream); border-radius: var(--radius-lg); box-shadow: var(--shadow-book); border: 1px solid rgba(0, 0, 0, 0.08); display: flex; flex-direction: column; min-height: calc(100vh - 120px); position: relative; overflow: hidden; background-image: radial-gradient(var(--paper-dot) 1px, transparent 1px); background-size: 20px 20px; }
.inner-book-spine-rings { position: absolute; left: 0; top: 0; bottom: 0; width: 18px; background: linear-gradient(90deg, rgba(0,0,0,0.06) 0%, transparent 100%); display: flex; flex-direction: column; justify-content: space-around; align-items: center; z-index: 10; pointer-events: none; }
.ring-bullet { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; box-shadow: inset 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(255,255,255,0.8); }

.top-module-bar-container {
  background: #FFFFFF;
  border-bottom: 2.5px solid var(--border-color);
  padding: 10px 20px 4px 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #94A3B8 #F1F5F9;
  scroll-behavior: smooth;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.top-module-bar-container::-webkit-scrollbar {
  height: 6px;
}

.top-module-bar-container::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 4px;
}

.top-module-bar-container::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.top-module-bar-container::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

.top-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-bottom: 3px solid transparent;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.top-nav-tab:hover {
  color: var(--primary);
  background: #EEF2FF;
  border-color: #C7D2FE;
}

.top-nav-tab.active {
  color: #4F46E5 !important;
  background: #FFFFFF !important;
  border-color: #818CF8 #818CF8 #FFFFFF #818CF8;
  border-bottom: 3px solid #4F46E5;
  box-shadow: 0 -4px 12px rgba(79, 70, 229, 0.08);
}

.tab-pill-badge {
  font-size: 0.64rem;
  font-weight: 800;
  background: #EEF2FF;
  color: #4F46E5;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.top-nav-tab.active .tab-pill-badge {
  background: #4F46E5;
  color: #FFFFFF;
}

.planner-page-content { flex: 1; padding: 24px 36px 36px 36px; overflow-y: auto; position: relative; }
.page-slide-left { animation: pageSlideFromRight 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.page-slide-right { animation: pageSlideFromLeft 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes pageSlideFromRight { 0% { opacity: 0; transform: translateX(35px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes pageSlideFromLeft { 0% { opacity: 0; transform: translateX(-35px); } 100% { opacity: 1; transform: translateX(0); } }

/* 3. Grid Asistencia */
.crayon-attendance-frame { background: #FFFFFF; border-radius: var(--radius-lg); border: 3px solid #1E293B; padding: 24px; box-shadow: 0 15px 35px rgba(0,0,0,0.08); position: relative; overflow: hidden; }
.corner-crayon { position: absolute; font-size: 2rem; user-select: none; z-index: 0; pointer-events: none; opacity: 0.25; }
.crayon-tl { top: 12px; left: 16px; transform: rotate(-45deg); }
.crayon-tr { top: 12px; right: 16px; transform: rotate(45deg); }
.crayon-bl { display: none; }
.crayon-br-box { bottom: 10px; right: 20px; font-size: 2.2rem; opacity: 0.2; pointer-events: none; }
.bubble-list-title { font-family: var(--font-cute); font-size: 2.6rem; font-weight: 800; letter-spacing: 2px; text-shadow: 2px 2px 0px #FFFFFF, 3px 4px 0px rgba(0,0,0,0.12); }
.crayon-meta-strips-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.crayon-pill { padding: 6px 18px; border-radius: var(--radius-pill); font-size: 0.85rem; display: flex; align-items: center; gap: 8px; border: 2px solid; }
.pill-purple { background: #F3E8FF; border-color: #C084FC; color: #6B21A8; }
.pill-green  { background: #DCFCE7; border-color: #86EFAC; color: #166534; }
.pill-orange { background: #FFEDD5; border-color: #FDBA74; color: #9A3412; }

.excel-toolbar-bar { background: #F8FAFC; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 10px 16px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.db-nav-controls { display: flex; align-items: center; gap: 6px; }
.btn-db-nav { background: #FFFFFF; color: var(--text-main); border: 1px solid var(--border-color); padding: 6px 12px; border-radius: var(--radius-sm); font-family: var(--font-heading); font-weight: 700; font-size: 0.8rem; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.btn-db-nav:hover { background: #EEF2FF; border-color: var(--primary); color: var(--primary); }
.db-record-indicator { padding: 6px 12px; background: #FFFFFF; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 600; }
.page-size-selector-group { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; }
.size-pills-row { display: flex; gap: 4px; }
.btn-size-pill { background: #FFFFFF; border: 1px solid var(--border-color); padding: 4px 10px; border-radius: var(--radius-pill); font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; cursor: pointer; }
.btn-size-pill.active, .btn-size-pill:hover { background: var(--primary); color: white; border-color: var(--primary); }
.excel-actions-group { display: flex; gap: 8px; }
.btn-excel-quick-action { background: #FFFFFF; color: var(--text-main); border: 1px solid var(--border-color); padding: 6px 14px; border-radius: var(--radius-pill); font-family: var(--font-heading); font-weight: 700; font-size: 0.8rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.excel-keyboard-hints { display: flex; gap: 14px; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 10px; flex-wrap: wrap; }
.excel-keyboard-hints kbd { background: #E2E8F0; padding: 2px 6px; border-radius: 4px; font-family: var(--font-mono); font-weight: 700; color: #1E293B; border: 1px solid #CBD5E1; }

.excel-grid-scroll-container { max-height: 520px; overflow: auto; border: 2px solid #1E293B; border-radius: var(--radius-sm); background: #FFFFFF; }
.excel-attendance-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; outline: none; }
.excel-attendance-table th, .excel-attendance-table td { border: 1px solid #CBD5E1; padding: 6px 4px; text-align: center; user-select: none; }
.th-fixed, .td-fixed { position: sticky; left: 0; background: #FFFFFF; z-index: 5; }
.th-nl { left: 0; z-index: 6; background: #F1F5F9; }
.td-nl { left: 0; background: #F8FAFC; }
.th-student-name { left: 40px; z-index: 6; background: #F1F5F9; text-align: left; }
.td-student-name { left: 40px; background: #FFFFFF; text-align: left; }
.name-cell-wrapper { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; white-space: nowrap; }
.student-full-name { font-weight: 700; font-size: 0.85rem; }
.bap-dot-indicator { background: #FEF3C7; color: #B45309; font-weight: 800; font-size: 0.7rem; padding: 1px 5px; border-radius: 4px; margin-left: 4px; }
.th-week { font-family: var(--font-heading); font-weight: 800; font-size: 0.8rem; padding: 8px 4px; }
.week-pink   { background: #FCE7F3; color: #9D174D; border-bottom: 2px solid #F472B6; }
.week-orange { background: #FFEDD5; color: #C2410C; border-bottom: 2px solid #FB923C; }
.week-green  { background: #DCFCE7; color: #15803D; border-bottom: 2px solid #4ADE80; }
.week-blue   { background: #E0F2FE; color: #0369A1; border-bottom: 2px solid #38BDF8; }
.week-purple { background: #F3E8FF; color: #6B21A8; border-bottom: 2px solid #C084FC; }
.th-week-stats { background: #E2E8F0; color: #334155; }
.th-day-letter { font-weight: 800; font-size: 0.75rem; padding: 4px 2px; background: #F8FAFC; }
.col-highlight { background: #FEF08A !important; }
.day-num-micro { font-size: 0.65rem; color: var(--text-muted); font-weight: normal; }
.td-att-cell { width: 28px; min-width: 28px; height: 28px; cursor: pointer; font-family: var(--font-mono); font-weight: 800; font-size: 0.85rem; }
.td-att-cell .cell-symbol { font-weight: 800; }
.cell-present   { background: #DCFCE7 !important; color: #15803D !important; }
.cell-present .cell-symbol { color: #15803D !important; font-weight: 900 !important; }
.cell-absent    { background: #FEE2E2 !important; color: #DC2626 !important; }
.cell-absent .cell-symbol { color: #DC2626 !important; font-weight: 900 !important; }
.cell-justified { background: #DBEAFE !important; color: #1D4ED8 !important; }
.cell-justified .cell-symbol { color: #1D4ED8 !important; font-weight: 900 !important; }
.cell-late      { background: #FFEDD5 !important; color: #C2410C !important; }
.cell-late .cell-symbol { color: #C2410C !important; font-weight: 900 !important; }
.cell-excel-active { outline: 3px solid #4F46E5 !important; outline-offset: -2px; z-index: 4; box-shadow: 0 0 8px rgba(79, 70, 229, 0.5); background-color: #FEF9C3 !important; }
.cell-absent.cell-excel-active { background-color: #FECACA !important; }
.cell-absent.cell-excel-active .cell-symbol { color: #DC2626 !important; font-weight: 900 !important; }
.cell-justified.cell-excel-active { background-color: #BFDBFE !important; }
.cell-justified.cell-excel-active .cell-symbol { color: #1D4ED8 !important; font-weight: 900 !important; }
.cell-late.cell-excel-active { background-color: #FED7AA !important; }
.cell-late.cell-excel-active .cell-symbol { color: #C2410C !important; font-weight: 900 !important; }
.row-excel-active { background-color: #F8FAFC; }
.td-stat { font-family: var(--font-mono); font-size: 0.85rem; background: #FAFAFC; }
.stat-p-cell { color: #15803D; font-weight: 800; }
.stat-j-cell.has-val { color: #1D4ED8 !important; background: #DBEAFE !important; font-weight: 800; }
.stat-i-cell.has-val { color: #DC2626 !important; background: #FEE2E2 !important; font-weight: 900 !important; }
.crayon-grid-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 10px; border-top: 2px solid var(--border-color); font-size: 0.8rem; position: relative; z-index: 2; }
.footer-legend-chips { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.legend-chip-item { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.legend-chip-item .sym { width: 20px; height: 20px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.75rem; }
.chip-p .sym { background: #DCFCE7; color: #15803D; font-weight: 900; }
.chip-f .sym { background: #FEE2E2; color: #DC2626; font-weight: 900; }
.chip-j .sym { background: #DBEAFE; color: #1D4ED8; font-weight: 900; }
.chip-r .sym { background: #FFEDD5; color: #C2410C; font-weight: 900; }

/* 4. Hoja de Incidencias */
.incident-sheet-page-wrapper { max-width: 1000px; margin: 0 auto; }
.incident-top-action-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.student-select-badge { background: #FFFFFF; border: 1px solid var(--border-color); padding: 6px 14px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; }
.inc-student-dropdown { border: none; background: transparent; font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; color: var(--primary); outline: none; cursor: pointer; }
.btn-cute-action, .btn-cute-print, .btn-cute-save { padding: 8px 18px; border-radius: var(--radius-pill); font-family: var(--font-heading); font-weight: 800; font-size: 0.85rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border: none; transition: all 0.2s ease; }
.btn-cute-action { background: #EEF2FF; color: var(--primary); border: 1px solid #C7D2FE; }
.btn-cute-print  { background: #F1F5F9; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-cute-save   { background: linear-gradient(135deg, #10B981 0%, #059669 100%); color: white; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }

.carebears-incident-sheet { background: #FFFFFF; border-radius: 28px; border: 3px solid #60A5FA; padding: 24px 30px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); position: relative; overflow: hidden; }
.inc-header-rainbow-banner { background: linear-gradient(90deg, #FF6B6B 0%, #FFA041 20%, #FFD166 40%, #06D6A0 60%, #118AB2 80%, #8338EC 100%); border-radius: 20px; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; color: white; margin-bottom: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); position: relative; }
.inc-cloud-left, .inc-cloud-right { background: rgba(255, 255, 255, 0.95); border-radius: var(--radius-pill); padding: 8px 16px; display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.cute-bear-icon { font-size: 2.2rem; }
.inc-heart-sparkle { font-size: 1.4rem; }
.inc-main-title-box { text-align: center; background: #FFFFFF; padding: 8px 30px; border-radius: var(--radius-pill); box-shadow: 0 6px 15px rgba(0,0,0,0.15); border: 2px solid #E2E8F0; }
.inc-rainbow-title { font-family: var(--font-cute); font-size: 2.2rem; font-weight: 800; line-height: 1.05; letter-spacing: 2px; margin: 0; }
.t-pink   { color: #FF006E; } .t-orange { color: #FB5607; } .t-yellow { color: #FFBE0B; } .t-green  { color: #06D6A0; } .t-cyan   { color: #00BBF9; } .t-blue   { color: #3A86FF; } .t-purple { color: #8338EC; }
.inc-meta-timestamp-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; background: #F8FAFC; border-radius: var(--radius-pill); border: 1px solid var(--border-color); margin-bottom: 16px; font-size: 0.85rem; font-weight: 700; flex-wrap: wrap; gap: 12px; }
.meta-field-item { display: inline-flex; align-items: center; gap: 6px; }
.inc-line-input { border: none; border-bottom: 2px solid #1E293B; background: transparent; font-family: var(--font-heading); font-size: 0.85rem; padding: 2px 6px; outline: none; }
.inc-section-box { border: 2px solid #F472B6; border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 16px; position: relative; background: #FFF5F7; }
.inc-strip-badge { display: inline-block; padding: 4px 18px; border-radius: var(--radius-pill); font-family: var(--font-heading); font-size: 0.85rem; font-weight: 800; color: white; margin-bottom: 10px; }
.badge-pink { background: #EC4899; box-shadow: 0 3px 8px rgba(236, 72, 153, 0.3); }
.student-meta-fields-grid { display: flex; flex-direction: column; gap: 10px; }
.grid-field-full, .grid-field-row { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; }
.grid-field-row { justify-content: space-between; flex-wrap: wrap; }
.inc-underlined-input, .inc-underlined-input-sm { border: none; border-bottom: 2px solid #1E293B; background: transparent; font-family: var(--font-heading); padding: 2px 6px; outline: none; }
.gender-checkboxes-inline { display: flex; align-items: center; gap: 10px; }
.cute-radio-box { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; cursor: pointer; }
.inc-split-row-2 { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; margin-bottom: 16px; }
.inc-card-frame { border-radius: var(--radius-md); border: 2px solid; overflow: hidden; background: #FFFFFF; }
.frame-purple { border-color: #C084FC; background: #FAF5FF; }
.frame-green  { border-color: #86EFAC; background: #F0FDF4; }
.frame-blue   { border-color: #93C5FD; background: #EFF6FF; }
.frame-yellow { border-color: #FDE047; background: #FEFCE8; }
.frame-coral  { border-color: #FDA4AF; background: #FFF1F2; margin-bottom: 16px; }
.frame-cyan   { border-color: #67E8F9; background: #ECFEFF; margin-bottom: 16px; }
.frame-header-pill { padding: 8px 14px; font-family: var(--font-heading); font-size: 0.85rem; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.pill-purple { background: #A855F7; color: white; }
.pill-green  { background: #22C55E; color: white; }
.pill-blue   { background: #3B82F6; color: white; }
.pill-yellow { background: #EAB308; color: #713F12; }
.pill-coral  { background: #F43F5E; color: white; }
.pill-cyan   { background: #06B6D4; color: white; }
.inc-checkbox-list { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.inc-check-label { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.inc-check-label input { display: none; }
.square-box { width: 16px; height: 16px; border: 2px solid #64748B; border-radius: 3px; display: inline-block; background: white; position: relative; }
.inc-check-label input:checked + .square-box { background: #4F46E5; border-color: #4F46E5; }
.inc-check-label input:checked + .square-box::after { content: '✓'; color: white; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 0.7rem; font-weight: bold; }
.inc-ruled-textarea { width: 100%; border: none; background-color: transparent; background-image: linear-gradient(transparent, transparent 23px, #CBD5E1 24px); background-size: 100% 24px; line-height: 24px; font-family: var(--font-body); font-size: 0.85rem; resize: vertical; padding: 2px 4px; outline: none; }
.actions-taken-grid { padding: 12px 14px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; }
.actions-checks-col { display: flex; flex-direction: column; gap: 6px; }
.followup-meta-row { display: flex; justify-content: space-between; margin-top: 10px; flex-wrap: wrap; gap: 12px; }
.inc-signatures-three-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 10px; margin-bottom: 16px; }
.sign-card-box { border-radius: var(--radius-md); border: 2px solid; overflow: hidden; background: #FFFFFF; }
.sign-green  { border-color: #86EFAC; }
.sign-purple { border-color: #C084FC; }
.sign-orange { border-color: #FDBA74; }
.sign-box-title { padding: 6px 10px; font-family: var(--font-heading); font-size: 0.75rem; font-weight: 800; text-align: center; color: white; }
.sign-green .sign-box-title  { background: #16A34A; }
.sign-purple .sign-box-title { background: #9333EA; }
.sign-orange .sign-box-title { background: #EA580C; }
.sign-box-content { padding: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 0.75rem; }
.sign-line-box { height: 40px; border-bottom: 2px solid #1E293B; margin-bottom: 4px; }
.inc-footer-bears-band { background: linear-gradient(90deg, #FDF2F8 0%, #EFF6FF 50%, #ECFDF5 100%); border-radius: var(--radius-pill); padding: 8px 16px; display: flex; justify-content: center; gap: 16px; font-size: 1.6rem; border: 1px dashed var(--border-color); }

/* 5. Fichas Descriptivas */
.descriptive-sheet-page-shell { max-width: 1050px; margin: 0 auto; }
.sheet-toolbar-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; background: #FFFFFF; border: 1px solid var(--border-color); padding: 10px 18px; border-radius: var(--radius-pill); }
.toolbar-left-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.toolbar-pill-select { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; }
.desc-dropdown { border: none; background: transparent; font-family: var(--font-heading); font-weight: 800; color: var(--primary); outline: none; cursor: pointer; }
.grade-toggle-pills-row { display: flex; align-items: center; gap: 4px; }
.grade-pill-label { font-size: 0.8rem; font-weight: 800; margin-right: 4px; display: inline-flex; align-items: center; gap: 4px; }
.btn-grade-pill { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-color); background: #F8FAFC; font-family: var(--font-heading); font-weight: 800; font-size: 0.8rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.btn-grade-pill.active, .btn-grade-pill:hover { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 3px 8px rgba(79, 70, 229, 0.35); }
.toolbar-right-actions { display: flex; gap: 8px; }
.btn-sheet-quick, .btn-sheet-print, .btn-sheet-save { padding: 8px 16px; border-radius: var(--radius-pill); font-family: var(--font-heading); font-weight: 800; font-size: 0.8rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border: none; transition: all 0.2s ease; }
.btn-sheet-quick { background: #FAF5FF; color: #9333EA; border: 1px solid #E9D5FF; }
.btn-sheet-print { background: #F1F5F9; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-sheet-save  { background: linear-gradient(135deg, #4F46E5 0%, #8338EC 100%); color: white; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); }

.illustrated-descriptive-sheet { background: #FFFFFF; border-radius: 24px; border: 3px solid #1E293B; padding: 24px 28px; box-shadow: 0 15px 35px rgba(0,0,0,0.08); position: relative; }
.sheet-illust-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.header-star-left, .header-heart-right { font-size: 2.4rem; user-select: none; }
.sheet-title-main { font-family: var(--font-cute); font-size: 2.5rem; font-weight: 800; letter-spacing: 2px; text-align: center; color: #1E293B; }
.grade-title-colored { color: #0284C7; text-shadow: 2px 2px 0px #BAE6FD; }
.sheet-student-info-strip { display: flex; justify-content: space-between; align-items: center; padding: 6px 16px; border-bottom: 2px solid #1E293B; margin-bottom: 18px; font-size: 0.95rem; }
.strip-lbl { font-weight: 800; margin-right: 8px; }
.strip-value { color: var(--primary); }

.field-card-table-block { display: grid; grid-template-columns: 180px 1fr; border: 2px solid; border-radius: var(--radius-md); margin-bottom: 16px; overflow: hidden; background: #FFFFFF; }
.block-lenguajes { border-color: #E879F9; }
.block-saberes   { border-color: #38BDF8; }
.block-etica     { border-color: #4ADE80; }
.block-humano    { border-color: #FB923C; }

.field-banner-left { padding: 14px 10px; display: flex; flex-direction: column; align-items: center; justify-content: space-around; text-align: center; border-right: 2px solid; }
.block-lenguajes .field-banner-left { background: #FDF4FF; border-color: #E879F9; color: #A21CAF; }
.block-saberes .field-banner-left   { background: #F0F9FF; border-color: #38BDF8; color: #0369A1; }
.block-etica .field-banner-left     { background: #F0FDF4; border-color: #4ADE80; color: #15803D; }
.block-humano .field-banner-left    { background: #FFF7ED; border-color: #FB923C; color: #C2410C; }
.field-banner-title { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 800; line-height: 1.15; }
.field-mini-doodles { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 1.4rem; }
.doodle-art-large { font-size: 1.8rem; font-weight: 800; color: #0284C7; }
.doodle-math { font-size: 1.2rem; font-weight: 800; }
.doodle-art-pair { font-size: 2rem; }

.rubric-matrix-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.rubric-matrix-table th, .rubric-matrix-table td { border: 1px solid #E2E8F0; padding: 5px 8px; }
.th-fortalezas { text-align: center; font-family: var(--font-heading); font-weight: 800; color: #1E293B; background: #F8FAFC; width: 60%; }
.th-level { font-family: var(--font-heading); font-weight: 800; font-size: 0.72rem; text-align: center; width: 13.33%; }
.th-logrado    { background: #DCFCE7; color: #166534; }
.th-desarrollo { background: #FEF9C3; color: #854D0E; }
.th-apoyo      { background: #FEE2E2; color: #991B1B; }
.td-desc { font-weight: 600; color: #334155; }
.desc-num { font-weight: 800; color: #64748B; margin-right: 4px; }
.td-check { text-align: center; vertical-align: middle; }
.matrix-check-wrap { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.matrix-check-wrap input { display: none; }
.matrix-box { width: 16px; height: 16px; border-radius: 3px; border: 2px solid; display: inline-block; background: #FFFFFF; position: relative; transition: all 0.15s ease; }
.box-green  { border-color: #22C55E; }
.box-yellow { border-color: #EAB308; }
.box-red    { border-color: #EF4444; }
.matrix-check-wrap input:checked + .box-green  { background: #22C55E; }
.matrix-check-wrap input:checked + .box-yellow { background: #EAB308; }
.matrix-check-wrap input:checked + .box-red    { background: #EF4444; }
.matrix-check-wrap input:checked + .matrix-box::after { content: '✓'; color: white; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 0.7rem; font-weight: bold; }

.sheet-notes-card-box { border: 2px solid #1E293B; border-radius: var(--radius-md); padding: 12px 18px; margin-top: 14px; background: #FFFBEB; }
.notes-header-left { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.notepad-art { font-size: 1.4rem; }
.notes-title-bold { font-family: var(--font-heading); font-weight: 800; font-size: 0.9rem; color: #1E293B; }
.notes-ruled-textarea { width: 100%; border: none; background: transparent; background-image: linear-gradient(transparent, transparent 23px, #CBD5E1 24px); background-size: 100% 24px; line-height: 24px; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: #1E293B; resize: vertical; outline: none; }
.sheet-bottom-decor-strip { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; font-size: 1.2rem; color: var(--text-muted); }
.brand-sub-tag { font-family: var(--font-cute); font-size: 0.85rem; color: #64748B; }

/* 6. Seguimiento Conductual */
.behavior-tracking-page-shell { max-width: 1050px; margin: 0 auto; }
.behavior-top-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; background: #FFFFFF; border: 1px solid var(--border-color); padding: 10px 18px; border-radius: var(--radius-pill); }
.toolbar-left-group, .toolbar-right-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.behavior-pill-select { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; }
.beh-student-dropdown { border: none; background: transparent; font-family: var(--font-heading); font-weight: 800; color: var(--primary); outline: none; cursor: pointer; }
.week-number-selector-row { display: flex; align-items: center; gap: 4px; }
.week-lbl { font-size: 0.8rem; font-weight: 800; margin-right: 4px; display: inline-flex; align-items: center; gap: 4px; }
.btn-week-pill { padding: 4px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border-color); background: #F8FAFC; font-family: var(--font-heading); font-weight: 700; font-size: 0.8rem; cursor: pointer; transition: all 0.2s ease; }
.btn-week-pill.active, .btn-week-pill:hover { background: #8338EC; color: white; border-color: #8338EC; box-shadow: 0 3px 8px rgba(131, 56, 236, 0.35); }
.btn-beh-auto, .btn-beh-print, .btn-beh-save { padding: 8px 16px; border-radius: var(--radius-pill); font-family: var(--font-heading); font-weight: 800; font-size: 0.8rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border: none; transition: all 0.2s ease; }
.btn-beh-auto  { background: #FAF5FF; color: #8338EC; border: 1px solid #E9D5FF; }
.btn-beh-print { background: #F1F5F9; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-beh-save  { background: linear-gradient(135deg, #4F46E5 0%, #06D6A0 100%); color: white; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); }

.illustrated-behavior-sheet { background: #FFFFFF; border-radius: 28px; border: 3px solid #818CF8; padding: 24px 30px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); position: relative; }
.beh-header-banner { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.beh-star-doodle, .beh-pencil-doodle { font-size: 2.4rem; user-select: none; }
.beh-title-center-wrap { text-align: center; }
.beh-title-main { font-family: var(--font-cute); font-size: 2.6rem; font-weight: 900; color: #1E293B; letter-spacing: 2px; }
.beh-subtitle-ribbon { display: inline-flex; align-items: center; gap: 8px; background: #8338EC; color: white; padding: 4px 24px; border-radius: var(--radius-pill); font-family: var(--font-heading); font-size: 0.9rem; font-weight: 800; letter-spacing: 1px; }

.beh-meta-dashed-card { border: 2px dashed #8338EC; border-radius: var(--radius-md); padding: 16px 20px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-bottom: 16px; background: #FAF5FF; }
.meta-line-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 0.85rem; }
.split-grade-row { display: flex; gap: 16px; }
.sub-field-item { display: flex; align-items: center; gap: 6px; }
.meta-bold-label { font-weight: 800; color: #1E293B; white-space: nowrap; }
.beh-underlined-input { flex: 1; border: none; border-bottom: 2px solid #64748B; background: transparent; font-family: var(--font-heading); font-size: 0.85rem; padding: 2px 4px; outline: none; }

.beh-two-boxes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.beh-box-card { border: 2px solid #60A5FA; border-radius: var(--radius-md); padding: 14px 18px; background: #FFFFFF; }
.box-objective { border-color: #60A5FA; }
.box-scale     { border-color: #34D399; }
.box-header-icon-title { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.target-art { font-size: 1.4rem; }
.box-title-bold { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 800; color: #1E293B; }
.objective-body-text { font-size: 0.8rem; color: #334155; line-height: 1.4; }
.scale-content-split { display: flex; justify-content: space-between; align-items: center; }
.scale-header-title { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 800; color: #047857; margin-bottom: 4px; }
.scale-items-list { display: flex; flex-direction: column; gap: 3px; }
.scale-row-item { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; }
.scale-circle { width: 18px; height: 18px; border-radius: 50%; color: white; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 800; font-size: 0.7rem; }
.circle-s { background: #10B981; } .circle-c { background: #3B82F6; } .circle-a { background: #F59E0B; } .circle-n { background: #EF4444; }
.scale-children-art { font-size: 2.8rem; user-select: none; }

.beh-main-table-container { border: 2px solid #818CF8; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 16px; }
.beh-weekly-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.beh-weekly-table th, .beh-weekly-table td { border: 1px solid #CBD5E1; padding: 6px 8px; }
.th-aspects      { background: #F3E8FF; color: #6B21A8; font-family: var(--font-heading); font-weight: 800; text-align: center; }
.th-weekly-reg   { background: #E0E7FF; color: #3730A3; font-family: var(--font-heading); font-weight: 800; text-align: center; }
.th-observations { background: #FEF9C3; color: #854D0E; font-family: var(--font-heading); font-weight: 800; text-align: center; }
.tr-days-sub th { background: #EEF2FF; font-weight: 800; text-align: center; font-size: 0.75rem; }
.th-day { width: 32px; }
.td-aspect-meta { background: #FFFFFF; }
.aspect-cell-layout { display: flex; align-items: center; gap: 8px; }
.aspect-doodle-icon { font-size: 1.4rem; }
.aspect-title-text { font-size: 0.8rem; color: #1E293B; line-height: 1.25; }
.td-day-cell { text-align: center; padding: 4px !important; }
.btn-scale-toggle { width: 26px; height: 26px; border-radius: 50%; border: none; font-family: var(--font-mono); font-weight: 800; font-size: 0.75rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: white; transition: transform 0.15s ease; }
.btn-scale-toggle:hover { transform: scale(1.15); }
.badge-scale-s { background: #10B981; } .badge-scale-c { background: #3B82F6; } .badge-scale-a { background: #F59E0B; } .badge-scale-n { background: #EF4444; }
.beh-obs-line-input { width: 100%; border: none; border-bottom: 1px dashed #CBD5E1; background: transparent; font-size: 0.8rem; padding: 2px 4px; outline: none; }

.beh-tri-summary-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.summary-card { border: 2px solid; border-radius: var(--radius-md); padding: 12px 14px; background: #FFFFFF; }
.card-fortalezas { border-color: #FBBF24; background: #FFFBEB; }
.card-mejorar    { border-color: #34D399; background: #F0FDF4; }
.card-acuerdos   { border-color: #60A5FA; background: #EFF6FF; }
.summary-card-header { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.summary-icon { font-size: 1.2rem; }
.summary-title { font-family: var(--font-heading); font-size: 0.85rem; color: #1E293B; }
.beh-ruled-textarea { width: 100%; border: none; background: transparent; background-image: linear-gradient(transparent, transparent 23px, #CBD5E1 24px); background-size: 100% 24px; line-height: 24px; font-family: var(--font-body); font-size: 0.8rem; resize: vertical; outline: none; }

.beh-signatures-strip { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 2px solid #E2E8F0; font-size: 0.85rem; flex-wrap: wrap; gap: 16px; }
.sig-field-item { display: flex; align-items: center; gap: 8px; }
.sig-lbl { font-weight: 700; color: #1E293B; }
.sig-line-underlined { width: 160px; border-bottom: 2px solid #1E293B; }
.beh-date-short-input { width: 110px; border: none; border-bottom: 2px solid #1E293B; background: transparent; outline: none; }
.beh-footer-dots-strip { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; color: #C084FC; font-size: 1.2rem; }

/* 7. Registro Disciplina */
.discipline-register-page-shell { max-width: 1050px; margin: 0 auto; }
.disc-top-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; background: #FFFFFF; border: 1px solid var(--border-color); padding: 10px 18px; border-radius: var(--radius-pill); }
.disc-pill-select { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; }
.disc-student-dropdown, .disc-month-dropdown { border: none; background: transparent; font-family: var(--font-heading); font-weight: 800; color: var(--primary); outline: none; cursor: pointer; }
.btn-disc-auto, .btn-disc-print, .btn-disc-save { padding: 8px 16px; border-radius: var(--radius-pill); font-family: var(--font-heading); font-weight: 800; font-size: 0.8rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border: none; transition: all 0.2s ease; }
.btn-disc-auto  { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.btn-disc-print { background: #F1F5F9; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-disc-save  { background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%); color: white; box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3); }

.illustrated-discipline-sheet { background: #FFFFFF; border-radius: 28px; border: 4px solid #F472B6; padding: 24px 30px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); position: relative; }
.disc-header-banner { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.disc-star-top-left, .disc-kids-top-right { font-size: 2.6rem; user-select: none; }
.disc-title-center-wrap { text-align: center; }
.disc-title-3d { font-family: var(--font-cute); font-size: 2.7rem; font-weight: 900; letter-spacing: 2px; text-shadow: 2px 2px 0px #FFFFFF, 3px 4px 0px rgba(0,0,0,0.12); line-height: 1.05; }
.disc-month-ribbon { display: inline-block; background: #7C3AED; color: white; padding: 4px 28px; border-radius: var(--radius-pill); font-family: var(--font-heading); font-weight: 800; font-size: 0.95rem; letter-spacing: 1px; margin-top: 4px; }
.disc-student-line-row { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid #1E293B; margin-bottom: 16px; font-size: 0.95rem; }
.student-line-lbl { font-weight: 800; color: #1E293B; }
.student-line-name { color: #0284C7; }

.disc-weeks-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.week-table-card { border-radius: var(--radius-sm); border: 2px solid; overflow: hidden; }
.week-row-blue   { border-color: #38BDF8; background: #F0F9FF; }
.week-row-green  { border-color: #4ADE80; background: #F0FDF4; }
.week-row-yellow { border-color: #FBBF24; background: #FFFBEB; }
.week-row-pink   { border-color: #F472B6; background: #FDF2F8; }
.week-row-purple { border-color: #A78BFA; background: #FAF5FF; }

.disc-week-grid-table { width: 100%; border-collapse: collapse; }
.disc-week-grid-table th { padding: 6px 8px; font-family: var(--font-heading); font-weight: 800; font-size: 0.85rem; color: white; text-align: center; border: 1px solid rgba(255,255,255,0.4); }
.week-row-blue th   { background: #0284C7; }
.week-row-green th  { background: #16A34A; }
.week-row-yellow th { background: #D97706; }
.week-row-pink th   { background: #DB2777; }
.week-row-purple th { background: #7C3AED; }
.disc-week-grid-table td { border: 1px solid rgba(0,0,0,0.08); padding: 6px 4px; }
.faces-trio-group { display: flex; justify-content: center; align-items: center; gap: 6px; }
.btn-face-item { font-size: 1.4rem; background: transparent; border: 2px solid transparent; border-radius: 50%; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1); opacity: 0.45; }
.btn-face-item:hover { transform: scale(1.2); opacity: 0.9; }
.btn-face-item.selected { opacity: 1; transform: scale(1.25); box-shadow: 0 3px 8px rgba(0,0,0,0.15); }
.btn-face-item.face-happy.selected   { background: #DCFCE7; border-color: #22C55E; }
.btn-face-item.face-neutral.selected { background: #FEF9C3; border-color: #EAB308; }
.btn-face-item.face-sad.selected     { background: #FEE2E2; border-color: #EF4444; }
.td-disc-total-cell { width: 140px; }
.week-summary-pill { padding: 4px 10px; border-radius: var(--radius-pill); font-size: 0.8rem; display: inline-block; background: #FFFFFF; border: 1px solid var(--border-color); }
.week-summary-pill.star-earned { background: #FEF08A; border-color: #FACC15; color: #854D0E; box-shadow: 0 2px 6px rgba(234, 179, 8, 0.3); }
.star-award-anim { font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }

.disc-reward-total-row { display: grid; grid-template-columns: 1fr 180px; gap: 16px; margin-bottom: 16px; align-items: center; }
.reward-rule-dashed-box { border: 2px dashed #16A34A; border-radius: var(--radius-md); padding: 12px 18px; background: #F0FDF4; display: flex; justify-content: space-between; align-items: center; }
.rule-text-wrap { display: flex; align-items: flex-start; gap: 8px; }
.bullet-star { font-size: 1.4rem; color: #F59E0B; line-height: 1; }
.rule-text { font-size: 0.85rem; color: #166534; line-height: 1.35; }
.cute-star-mascot { font-size: 2.8rem; user-select: none; }
.month-total-award-box { border: 2px solid #DB2777; border-radius: var(--radius-md); overflow: hidden; text-align: center; background: #FFFFFF; }
.total-box-header { background: #DB2777; color: white; font-family: var(--font-heading); font-weight: 800; font-size: 0.85rem; padding: 4px; }
.total-box-body { padding: 10px 8px; display: flex; flex-direction: column; align-items: center; }
.stars-val { font-size: 1.6rem; color: #DB2777; line-height: 1; font-family: var(--font-heading); }
.stars-lbl { font-size: 0.8rem; font-weight: 800; color: #9D174D; display: block; }
.month-happy-sub { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }

.disc-bottom-observations-section { display: flex; align-items: center; gap: 16px; padding-top: 10px; border-top: 2px solid #E2E8F0; }
.obs-pencil-holder-art, .obs-trophy-art { font-size: 2.4rem; user-select: none; }
.obs-lines-container { flex: 1; }
.obs-prompt-line { display: flex; flex-direction: column; gap: 4px; }
.obs-title-bold { font-family: var(--font-heading); font-weight: 800; font-size: 0.9rem; color: #7C3AED; }
.disc-ruled-textarea { width: 100%; border: none; background: transparent; background-image: linear-gradient(transparent, transparent 23px, #CBD5E1 24px); background-size: 100% 24px; line-height: 24px; font-family: var(--font-body); font-size: 0.85rem; resize: vertical; outline: none; }

/* 8. Bitácora Semanal */
.weekly-log-page-shell { max-width: 1080px; margin: 0 auto; }
.weekly-top-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; background: #FFFFFF; border: 1px solid var(--border-color); padding: 10px 18px; border-radius: var(--radius-pill); }
.weekly-pill-select { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; }
.weekly-student-dropdown { border: none; background: transparent; font-family: var(--font-heading); font-weight: 800; color: var(--primary); outline: none; cursor: pointer; }
.weekly-pills-row { display: flex; align-items: center; gap: 4px; }
.week-title-lbl { font-size: 0.8rem; font-weight: 800; margin-right: 4px; display: inline-flex; align-items: center; gap: 4px; }
.btn-weekly-pill { padding: 4px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border-color); background: #F8FAFC; font-family: var(--font-heading); font-weight: 700; font-size: 0.8rem; cursor: pointer; transition: all 0.2s ease; }
.btn-weekly-pill.active, .btn-weekly-pill:hover { background: #0284C7; color: white; border-color: #0284C7; box-shadow: 0 3px 8px rgba(2, 132, 199, 0.35); }
.btn-weekly-quick, .btn-weekly-print, .btn-weekly-save { padding: 8px 16px; border-radius: var(--radius-pill); font-family: var(--font-heading); font-weight: 800; font-size: 0.8rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border: none; transition: all 0.2s ease; }
.btn-weekly-quick { background: #FDF2F8; color: #DB2777; border: 1px solid #FBCFE8; }
.btn-weekly-print { background: #F1F5F9; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-weekly-save  { background: linear-gradient(135deg, #0284C7 0%, #06D6A0 100%); color: white; box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3); }

.mosaic-border-outer { background: conic-gradient(#FBCFE8 90deg, #FEF08A 90deg 180deg, #BBF7D0 180deg 270deg, #BFDBFE 270deg); background-size: 40px 40px; padding: 14px; border-radius: 28px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.mosaic-inner-sheet { background: #FFFFFF; border-radius: 20px; padding: 24px 28px; border: 2px solid #E2E8F0; }
.weekly-sheet-header { display: grid; grid-template-columns: 80px 1.2fr 1.6fr; align-items: center; gap: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #E2E8F0; }
.kids-doodle-pair { font-size: 3.2rem; user-select: none; }
.brand-title-wrap { display: flex; align-items: baseline; gap: 6px; }
.brand-bitacora-text { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 900; letter-spacing: 2px; color: #1E293B; }
.brand-semanal-text { font-family: var(--font-handwriting); font-size: 2.2rem; font-weight: 700; color: #F43F5E; }
.pastel-dots-row { display: flex; gap: 6px; margin-top: 2px; }
.p-dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-orange { background: #FB923C; } .dot-blue { background: #38BDF8; } .dot-green  { background: #4ADE80; } .dot-yellow { background: #FACC15; } .dot-pink   { background: #F472B6; }
.header-right-meta { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; }
.meta-field-student { display: flex; align-items: center; gap: 8px; }
.meta-field-dates { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.meta-short-input { width: 38px; border: none; border-bottom: 1.5px solid #1E293B; background: transparent; outline: none; font-size: 0.85rem; }
.meta-mid-input { width: 90px; border: none; border-bottom: 1.5px solid #1E293B; background: transparent; outline: none; font-size: 0.85rem; }

.weekly-matrix-table-container { border: 2px solid #1E293B; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 14px; }
.weekly-matrix-table { width: 100%; border-collapse: collapse; }
.weekly-matrix-table th, .weekly-matrix-table td { border: 1.5px solid #1E293B; padding: 6px 8px; }
.th-aspect-title { background: #F1F5F9; font-family: var(--font-heading); font-weight: 800; font-size: 0.85rem; color: #1E293B; text-align: center; }
.th-day-col { font-family: var(--font-heading); font-weight: 800; font-size: 0.85rem; text-align: center; }
.day-pink   { background: #FBCFE8; color: #9D174D; }
.day-orange { background: #FED7AA; color: #9A3412; }
.day-yellow { background: #FEF08A; color: #854D0E; }
.day-green  { background: #BBF7D0; color: #166534; }
.day-blue   { background: #BFDBFE; color: #1E40AF; }

.td-aspect-header { font-family: var(--font-heading); font-weight: 800; text-align: center; vertical-align: middle; }
.aspect-title-box { display: flex; flex-direction: column; line-height: 1.15; }
.aspect-main-name { font-size: 0.95rem; }
.aspect-sub-name  { font-size: 0.75rem; opacity: 0.85; }
.header-asistencia { background: #93C5FD; color: #1E3A8A; }
.header-tarea      { background: #86EFAC; color: #14532D; }
.header-materiales { background: #FDE047; color: #713F12; }
.header-trabajo    { background: #FDBA74; color: #7C2D12; }
.header-conducta   { background: #F472B6; color: #831843; }
.td-options-cell { background: #FFFFFF; vertical-align: top; }
.cell-sub-prompt { font-size: 0.68rem; font-style: italic; color: #64748B; margin-bottom: 3px; }
.radio-options-vertical { display: flex; flex-direction: column; gap: 3px; }
.cute-custom-radio { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; color: #1E293B; cursor: pointer; user-select: none; }
.cute-custom-radio input { display: none; }
.radio-circle { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #64748B; background: #FFFFFF; display: inline-block; position: relative; transition: all 0.15s ease; }
.cute-custom-radio input:checked + .radio-circle { border-color: #0284C7; background: #0284C7; }
.cute-custom-radio input:checked + .radio-circle::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #FFFFFF; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.weekly-footer-branding { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; }
.footer-tagline-text { font-size: 0.75rem; color: #94A3B8; }
.balloon-dog-art { font-size: 2rem; user-select: none; }

/* 9. Planificador Semanal & Calendario CRUD */
.planner-module-page-shell { max-width: 1200px; margin: 0 auto; }
.planner-view-toggle-bar { display: flex; width: 100%; margin-bottom: 16px; background: var(--bg-card, #FFFFFF); border: 1.5px solid var(--border, #CBD5E1); padding: 6px; border-radius: 18px; box-shadow: 0 4px 14px rgba(0,0,0,0.04); }
.view-switch-group { display: flex; width: 100%; background: var(--accent-soft, #F1F5F9); padding: 5px; border-radius: 14px; gap: 6px; border: 1px solid var(--border, #E2E8F0); flex-wrap: nowrap; justify-content: space-between; align-items: center; }
.btn-view-switch { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0.65rem 0.6rem; border-radius: 10px; border: 1.5px solid var(--border, #CBD5E1); background: var(--bg-card, #FFFFFF); font-family: var(--font-heading); font-size: 0.88rem; font-weight: 800; color: var(--text-main, #475569); cursor: pointer; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.03); white-space: nowrap; text-align: center; }
.btn-view-switch:hover { background: var(--accent-soft, #F8FAFC); border-color: var(--accent, #4F46E5); color: var(--accent, #0F172A); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.btn-view-switch.active { background: var(--accent, #4F46E5); color: #FFFFFF; border-color: transparent; box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35); transform: translateY(-1px); }
.btn-view-switch.locked { opacity: 0.55 !important; background: var(--accent-soft, #F1F5F9) !important; color: var(--text-muted, #94A3B8) !important; border-color: var(--border, #CBD5E1) !important; cursor: not-allowed !important; box-shadow: none !important; transform: none !important; }
.btn-view-switch.locked:hover { background: #F1F5F9 !important; color: #94A3B8 !important; border-color: #CBD5E1 !important; transform: none !important; box-shadow: none !important; }
.planner-actions-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.week-pills-selector { display: flex; align-items: center; gap: 4px; }
.week-pills-lbl { font-size: 0.8rem; font-weight: 800; margin-right: 4px; display: inline-flex; align-items: center; gap: 4px; }
.btn-plan-week { padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid var(--border-color); background: #F8FAFC; font-family: var(--font-heading); font-weight: 700; font-size: 0.75rem; cursor: pointer; transition: all 0.2s ease; }
.btn-plan-week.active, .btn-plan-week:hover { background: #9333EA; color: white; border-color: #9333EA; }
.btn-planner-quick, .btn-planner-new-event, .btn-planner-print, .btn-planner-save { padding: 8px 16px; border-radius: var(--radius-pill); font-family: var(--font-heading); font-weight: 800; font-size: 0.8rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border: none; transition: all 0.2s ease; }
.btn-planner-quick     { background: #FAF5FF; color: #9333EA; border: 1px solid #E9D5FF; }
.btn-planner-new-event { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }
.btn-planner-print     { background: #F1F5F9; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-planner-save      { background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%); color: white; box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3); }

.illustrated-weekly-planner-sheet { background: #FFFFFF; border-radius: 28px; border: 4px solid #8B5CF6; padding: 24px 28px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); position: relative; }
.plan-header-banner { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.header-decor-left, .header-decor-right { display: flex; align-items: center; gap: 8px; font-size: 3rem; user-select: none; }
.header-center-title-box { text-align: center; position: relative; }
.plan-main-title-3d { font-family: var(--font-cute); font-size: 3.2rem; font-weight: 900; letter-spacing: 3px; line-height: 1; text-shadow: 2px 2px 0px #FFFFFF, 4px 5px 0px rgba(0,0,0,0.12); }
.p-pink   { color: #EC4899; } .p-orange { color: #FB923C; } .p-yellow { color: #FACC15; } .p-green  { color: #4ADE80; } .p-cyan   { color: #06B6D4; } .p-blue   { color: #3B82F6; } .p-purple { color: #8B5CF6; }
.plan-sub-title-row { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; }
.plan-semanal-navy { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 900; color: #1E293B; letter-spacing: 4px; }
.rainbow-art-wrap { margin-top: -6px; font-size: 2rem; }

.planner-main-grid-layout { display: grid; grid-template-columns: 1fr 70px; gap: 12px; margin-bottom: 16px; }
.grid-table-frame { border: 2px solid #1E293B; border-radius: var(--radius-sm); overflow: hidden; }
.planner-matrix-table { width: 100%; border-collapse: collapse; }
.planner-matrix-table th, .planner-matrix-table td { border: 1.5px solid #1E293B; padding: 4px; }
.th-row-label-col { background: #F8FAFC; text-align: center; vertical-align: middle; }
.month-pill-label { font-family: var(--font-heading); font-size: 0.8rem; font-weight: 800; color: #7C3AED; background: #F3E8FF; padding: 4px 10px; border-radius: var(--radius-pill); }
.th-day-header { padding: 8px 4px; text-align: center; }
.day-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.day-name-text { font-family: var(--font-cute); font-size: 1.1rem; font-weight: 800; color: #1E293B; }
.btn-change-day-sticker { background: #FFFFFF; border: 1px solid rgba(0,0,0,0.15); border-radius: 50%; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.15s ease; }
.btn-change-day-sticker:hover { transform: scale(1.25); }
.col-pink   { background: #FCE7F3; } .col-orange { background: #FFEDD5; } .col-yellow { background: #FEF9C3; } .col-green  { background: #DCFCE7; } .col-blue   { background: #E0F2FE; }

.td-row-sidebar { vertical-align: middle; padding: 8px 6px; }
.sidebar-pill-wrap { border-radius: 12px; border: 2px solid; padding: 6px 4px; display: flex; align-items: center; gap: 6px; background: #FFFFFF; }
.row-sidebar-priorities .sidebar-pill-wrap   { border-color: #FACC15; background: #FEFCE8; }
.row-sidebar-activities .sidebar-pill-wrap   { border-color: #38BDF8; background: #F0F9FF; }
.row-sidebar-materials .sidebar-pill-wrap    { border-color: #FB923C; background: #FFF7ED; }
.row-sidebar-adaptations .sidebar-pill-wrap  { border-color: #4ADE80; background: #F0FDF4; }
.row-sidebar-observations .sidebar-pill-wrap { border-color: #F472B6; background: #FFF1F2; }
.sidebar-icon-art { font-size: 1.4rem; }
.sidebar-title-lines { display: flex; flex-direction: column; font-family: var(--font-heading); font-size: 0.75rem; font-weight: 800; line-height: 1.15; color: #1E293B; }
.td-plan-content { background: #FFFFFF; vertical-align: top; }
.plan-cell-textarea { width: 100%; border: none; background: transparent; font-family: var(--font-body); font-size: 0.8rem; resize: vertical; padding: 2px; outline: none; }
.dotted-lines-checklist { display: flex; flex-direction: column; gap: 3px; }
.dotted-line-item { display: flex; align-items: center; gap: 4px; }
.bullet-circle { font-size: 0.75rem; color: #94A3B8; }
.dotted-line-input { flex: 1; border: none; border-bottom: 1.5px dotted #CBD5E1; background: transparent; font-size: 0.75rem; outline: none; padding: 1px 2px; }

.planner-right-doodles-column { display: flex; flex-direction: column; justify-content: space-around; align-items: center; }
.doodle-card { font-size: 2.8rem; user-select: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); animation: doodleBob 4s ease-in-out infinite alternate; }
.doodle-boy-reading   { animation-delay: 0.2s; } .doodle-girl-notebook { animation-delay: 0.6s; } .doodle-plant-pot     { animation-delay: 1s; } .doodle-backpack      { animation-delay: 1.4s; }
@keyframes doodleBob { 0% { transform: translateY(0); } 100% { transform: translateY(-4px); } }

.planner-bottom-notes-row { display: flex; align-items: center; gap: 16px; border: 2px dashed #8B5CF6; border-radius: var(--radius-md); padding: 10px 18px; background: #FAF5FF; }
.bottom-notepad-art { font-size: 2.4rem; user-select: none; }
.bottom-notes-lines-box { flex: 1; }
.notes-prompt-title { font-family: var(--font-heading); font-weight: 800; font-size: 0.85rem; color: #7C3AED; margin-bottom: 2px; }
.weekly-ruled-textarea { width: 100%; border: none; background: transparent; background-image: linear-gradient(transparent, transparent 21px, #CBD5E1 22px); background-size: 100% 22px; line-height: 22px; font-family: var(--font-body); font-size: 0.82rem; resize: vertical; outline: none; }

.monthly-calendar-crud-view { background: #FFFFFF; border-radius: 24px; border: 2px solid var(--border-color); padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.calendar-header-banner-bar { margin-bottom: 16px; }
.cal-month-title { font-family: var(--font-cute); font-size: 2rem; font-weight: 800; color: #1E293B; }
.cal-cycle-badge { font-size: 0.8rem; font-weight: 700; color: #4F46E5; background: #EEF2FF; padding: 2px 10px; border-radius: var(--radius-pill); }
.cal-hint-text { font-size: 0.8rem; color: #64748B; margin-top: 4px; }
.calendar-weekdays-strip { display: grid; grid-template-columns: repeat(5, 1fr); background: #1E293B; color: white; padding: 8px 0; border-radius: var(--radius-sm); text-align: center; font-family: var(--font-heading); font-weight: 800; font-size: 0.8rem; margin-bottom: 8px; }
.calendar-grid-5cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.calendar-day-box { border: 2px solid #E2E8F0; border-radius: var(--radius-md); padding: 8px; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; background: #FFFFFF; transition: all 0.2s ease; }
.calendar-day-box:hover { border-color: #8B5CF6; box-shadow: 0 6px 15px rgba(0,0,0,0.06); }
.calendar-day-box.is-today { border-color: #3B82F6; background: #EFF6FF; }
.calendar-day-box.has-official { border-color: #FBBF24; }
.day-box-top-bar { display: flex; justify-content: space-between; align-items: center; }
.day-number-text { font-size: 1.1rem; color: #1E293B; }
.day-sticker-badge { font-size: 1.3rem; }
.day-events-pills-stack { display: flex; flex-direction: column; gap: 3px; margin: 6px 0; }
.event-pill-item { font-size: 0.68rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.pill-cte { background: #FEF3C7; color: #92400E; }
.pill-suspension { background: #FEE2E2; color: #991B1B; }
.pill-descarga_admin { background: #E0E7FF; color: #3730A3; }
.pill-custom { background: #F3E8FF; color: #6B21A8; }
.btn-manage-day { width: 100%; background: #F8FAFC; border: 1px solid var(--border-color); border-radius: var(--radius-pill); font-family: var(--font-heading); font-weight: 700; font-size: 0.7rem; padding: 3px 0; display: flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer; color: var(--text-muted); }
.btn-manage-day:hover { background: #EEF2FF; color: var(--primary); border-color: var(--primary); }

.planner-modal-backdrop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.planner-modal-window { background: #FFFFFF; border-radius: 24px; width: 100%; max-width: 620px; max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); border: 2px solid var(--border-color); }
.modal-header-banner { background: linear-gradient(135deg, #4F46E5 0%, #8B5CF6 100%); color: white; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.modal-title-wrap { display: flex; align-items: center; gap: 8px; }
.btn-modal-close { background: transparent; border: none; color: white; cursor: pointer; }
.modal-body-form { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.form-group-box { display: flex; flex-direction: column; gap: 8px; }
.form-lbl-bold { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 800; color: #1E293B; display: inline-flex; align-items: center; gap: 6px; }
.stickers-picker-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; max-height: 140px; overflow-y: auto; border: 1px solid var(--border-color); padding: 8px; border-radius: var(--radius-sm); background: #F8FAFC; }
.btn-sticker-choice { display: flex; flex-direction: column; align-items: center; background: #FFFFFF; border: 2px solid transparent; border-radius: 8px; padding: 4px 2px; cursor: pointer; transition: all 0.15s ease; }
.btn-sticker-choice:hover { transform: scale(1.1); border-color: #C084FC; }
.btn-sticker-choice.selected { border-color: #7C3AED; background: #F3E8FF; box-shadow: 0 2px 6px rgba(124, 58, 237, 0.2); }
.sticker-emoji { font-size: 1.4rem; }
.sticker-sub-label { font-size: 0.55rem; color: #64748B; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.events-crud-subhead { display: flex; justify-content: space-between; align-items: center; }
.btn-add-day-event { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.day-events-editable-list { display: flex; flex-direction: column; gap: 6px; }
.modal-event-item-row { display: grid; grid-template-columns: 1fr 140px 30px; gap: 6px; align-items: center; }
.modal-event-title-input { border: 1px solid var(--border-color); padding: 6px 10px; border-radius: 6px; font-size: 0.8rem; outline: none; }
.modal-event-cat-select { border: 1px solid var(--border-color); padding: 6px; border-radius: 6px; font-size: 0.75rem; outline: none; }
.btn-del-modal-event { background: #FEE2E2; color: #DC2626; border: none; border-radius: 6px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.modal-textarea { width: 100%; border: 1px solid var(--border-color); border-radius: 8px; padding: 8px; font-size: 0.82rem; outline: none; resize: vertical; }
.modal-footer-actions { padding: 14px 20px; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.btn-modal-delete { background: #FEE2E2; color: #DC2626; border: 1px solid #FECACA; padding: 6px 14px; border-radius: var(--radius-pill); font-size: 0.8rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.footer-right-btns { display: flex; gap: 8px; }
.btn-modal-cancel { background: #F1F5F9; border: 1px solid var(--border-color); padding: 6px 14px; border-radius: var(--radius-pill); font-size: 0.8rem; cursor: pointer; }
.btn-modal-save { background: linear-gradient(135deg, #10B981 0%, #059669 100%); color: white; border: none; padding: 6px 16px; border-radius: var(--radius-pill); font-size: 0.8rem; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }

/* 10. Ficha de Datos Personales */
.student-file-sheet-page-shell { max-width: 1050px; margin: 0 auto; }
.student-file-top-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; background: #FFFFFF; border: 1px solid var(--border-color); padding: 10px 18px; border-radius: var(--radius-pill); }
.template-and-student-selectors { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file-student-select-badge { background: #F8FAFC; border: 1px solid var(--border-color); padding: 4px 14px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; }
.file-student-dropdown { border: none; background: transparent; font-family: var(--font-heading); font-weight: 800; color: var(--primary); outline: none; cursor: pointer; }
.template-toggle-pills-row { display: flex; background: #F1F5F9; padding: 3px; border-radius: var(--radius-pill); gap: 4px; }
.btn-tpl-pill { border: none; background: transparent; font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700; color: var(--text-muted); padding: 5px 14px; border-radius: var(--radius-pill); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s ease; }
.btn-tpl-pill.active { background: #FFFFFF; color: var(--primary); box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.file-toolbar-actions { display: flex; gap: 8px; }
.btn-file-quick, .btn-file-print, .btn-file-save { padding: 8px 16px; border-radius: var(--radius-pill); font-family: var(--font-heading); font-weight: 800; font-size: 0.8rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border: none; transition: all 0.2s ease; }
.btn-file-quick { background: #FAF5FF; color: #9333EA; border: 1px solid #E9D5FF; }
.btn-file-print { background: #F1F5F9; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-file-save  { background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%); color: white; box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3); }

.modern-student-card-sheet { background: #FFFFFF; border-radius: 28px; border: 4px solid #38BDF8; padding: 24px 28px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); position: relative; }
.modern-header-banner { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.header-kid-wave, .header-pencil-backpack { display: flex; align-items: center; gap: 8px; font-size: 3rem; user-select: none; }
.star-float, .heart-float { font-size: 1.6rem; animation: floatMini 3s ease-in-out infinite alternate; }
@keyframes floatMini { 0% { transform: translateY(0) rotate(0deg); } 100% { transform: translateY(-5px) rotate(6deg); } }
.header-center-title-group { text-align: center; }
.modern-title-text { font-family: var(--font-cute); font-size: 3rem; font-weight: 900; letter-spacing: 2px; line-height: 1; }
.t-ficha  { color: #0284C7; text-shadow: 2px 2px 0px #BAE6FD; }
.t-del    { color: #EC4899; text-shadow: 2px 2px 0px #FBCFE8; }
.t-alumno { color: #16A34A; text-shadow: 2px 2px 0px #BBF7D0; }
.school-cycle-purple-ribbon { display: inline-block; background: #7C3AED; color: white; padding: 4px 30px; border-radius: var(--radius-pill); font-family: var(--font-heading); font-size: 0.95rem; letter-spacing: 1px; margin-top: 4px; box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3); }
.modern-section-box { border-radius: var(--radius-md); border: 2.5px solid; padding: 12px 16px; margin-bottom: 14px; background: #FFFFFF; }
.box-border-blue   { border-color: #38BDF8; background: #F0F9FF; }
.box-border-purple { border-color: #8B5CF6; background: #FAF5FF; }
.box-border-orange { border-color: #FB923C; background: #FFF7ED; }
.modern-badge-header { display: inline-flex; align-items: center; gap: 8px; padding: 4px 16px; border-radius: var(--radius-pill); font-family: var(--font-heading); font-size: 0.85rem; font-weight: 800; color: white; margin-bottom: 10px; }
.modern-badge-header.header-with-lock, .modern-badge-header.header-with-siren { width: 100%; justify-content: space-between; }
.badge-blue   { background: #0284C7; }
.badge-green  { background: #16A34A; }
.badge-purple { background: #7C3AED; }
.badge-orange { background: #EA580C; }
.lock-icon-art, .siren-right-art { font-size: 1.2rem; }
.modern-fields-vertical { display: flex; flex-direction: column; gap: 8px; }
.modern-field-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.field-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.w-110 { width: 110px; }
.w-140 { width: 140px; }
.w-160 { width: 160px; }
.f-lbl-bold { font-weight: 800; color: #1E293B; white-space: nowrap; }
.f-lbl-sm { font-weight: 700; color: #1E293B; font-size: 0.78rem; white-space: nowrap; }
.modern-input-line { flex: 1; border: none; border-bottom: 2px solid #1E293B; background: transparent; outline: none; font-size: 0.85rem; padding: 1px 4px; }
.modern-input-pill { flex: 1; border: 1.5px solid #CBD5E1; border-radius: var(--radius-pill); background: #FFFFFF; padding: 4px 10px; font-size: 0.82rem; outline: none; transition: border-color 0.2s ease; }
.modern-input-pill:focus { border-color: var(--primary); }
.calendar-emoji { font-size: 1.2rem; }
.modern-curp-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.curp-boxes-grid { display: grid; grid-template-columns: repeat(18, 1fr); gap: 3px; flex: 1; max-width: 680px; }
.curp-boxes-grid-sm { display: grid; grid-template-columns: repeat(18, 1fr); gap: 2px; flex: 1; }
.curp-char-box { width: 100%; height: 28px; border: 1.5px solid #64748B; border-radius: 4px; background: #FFFFFF; text-align: center; font-size: 0.85rem; font-weight: 800; outline: none; padding: 0; }
.curp-char-box:focus { border-color: #0284C7; background: #FEF9C3; box-shadow: 0 0 5px rgba(2, 132, 199, 0.4); }
.cute-toggle-radios { display: inline-flex; gap: 4px; }
.radio-pill-green, .radio-pill-pink { display: inline-flex; align-items: center; padding: 2px 12px; border-radius: var(--radius-pill); border: 1.5px solid; font-size: 0.78rem; font-weight: 800; cursor: pointer; background: #FFFFFF; transition: all 0.15s ease; }
.radio-pill-green input, .radio-pill-pink input { display: none; }
.radio-pill-green { border-color: #22C55E; color: #15803D; }
.radio-pill-pink  { border-color: #EC4899; color: #BE185D; }
.radio-pill-green:has(input:checked) { background: #22C55E; color: white; }
.radio-pill-pink:has(input:checked)  { background: #EC4899; color: white; }
.modern-parents-block { margin-bottom: 14px; }
.parents-two-columns-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.parent-card-card { border-radius: var(--radius-md); border: 2px solid; padding: 12px 14px; background: #FFFFFF; }
.card-mother { border-color: #F472B6; background: #FFF5F7; }
.card-father { border-color: #60A5FA; background: #EFF6FF; }
.parent-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.parent-avatar-icon { font-size: 1.8rem; }
.text-pink { color: #DB2777; font-size: 0.95rem; }
.text-blue { color: #0284C7; font-size: 0.95rem; }
.parent-fields-list { display: flex; flex-direction: column; gap: 6px; }
.p-field-row { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; }
.p-lbl { font-weight: 700; color: #1E293B; white-space: nowrap; font-size: 0.78rem; }
.modern-authorized-list, .modern-emergency-list { display: flex; flex-direction: column; gap: 6px; }
.auth-person-line-row, .emerg-person-line-row { display: flex; align-items: center; gap: 8px; }
.badge-number-circle { width: 22px; height: 22px; border-radius: 50%; color: white; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.75rem; font-family: var(--font-heading); }
.num-purple { background: #7C3AED; }
.num-orange { background: #EA580C; }
.emerg-pill { background: #FFFBEB !important; border-color: #FDBA74 !important; }
.modern-footer-doodles-band { display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 1.6rem; padding-top: 10px; border-top: 2px dashed #CBD5E1; color: #94A3B8; margin-top: 8px; }
.footer-sparkle-dot { font-size: 0.6rem; color: #38BDF8; }

/* 11. Formatos Varios e Ilustraciones */
.illustrated-checklist-sheet { background: #FFFFFF; border-radius: 24px; border: 3px solid #1E293B; padding: 24px 28px; position: relative; }
.checklist-header-banner { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cl-doodle-left, .cl-doodle-right { display: flex; align-items: center; gap: 8px; font-size: 2.5rem; user-select: none; }
.cl-center-title-box { text-align: center; }
.cl-teacher-avatar-tag { display: inline-flex; align-items: center; gap: 6px; background: #FFF1F2; border: 1.5px solid #FECDD3; padding: 3px 12px; border-radius: var(--radius-pill); font-size: 0.8rem; color: #BE185D; margin-bottom: 4px; }
.cl-main-title { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 900; line-height: 1.1; color: #1E293B; }
.cl-prefix { color: #0284C7; display: block; font-size: 1.2rem; }
.cl-topic { color: #047857; }
.cl-meta-grid-box { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; padding: 10px 16px; border: 2px solid #047857; border-radius: var(--radius-md); background: #F0FDF4; margin-bottom: 14px; font-size: 0.82rem; }
.cl-meta-line { display: flex; align-items: center; gap: 6px; }
.cl-lbl-bold { font-weight: 800; color: #166534; white-space: nowrap; }
.cl-input-line { flex: 1; border: none; border-bottom: 1.5px solid #047857; background: transparent; outline: none; font-size: 0.85rem; padding: 1px 4px; }
.cl-table-container { border: 2px solid #1E293B; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 14px; }
.cl-matrix-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.cl-matrix-table th, .cl-matrix-table td { border: 1px solid #CBD5E1; padding: 5px 6px; }
.th-main-row th { background: #1E293B; color: white; font-family: var(--font-heading); font-weight: 800; text-align: center; }
.th-si { background: #16A34A !important; }
.th-proc { background: #CA8A04 !important; }
.th-no { background: #DC2626 !important; }
.tr-section-header td { font-family: var(--font-heading); font-weight: 800; font-size: 0.85rem; padding: 6px 10px; }
.sec-blue { background: #E0F2FE; color: #0369A1; }
.sec-green { background: #DCFCE7; color: #15803D; }
.sec-purple { background: #F3E8FF; color: #7E22CE; }
.sec-orange { background: #FFEDD5; color: #C2410C; }
.sec-cyan { background: #ECFEFF; color: #0E7490; }
.td-item-text { font-weight: 600; color: #1E293B; }
.td-radio-cell { text-align: center; }
.cl-radio-wrap { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cl-radio-wrap input { display: none; }
.radio-mark-green, .radio-mark-yellow, .radio-mark-red { width: 18px; height: 18px; border-radius: 4px; border: 2px solid #64748B; background: #FFFFFF; display: inline-block; position: relative; }
.cl-radio-wrap input:checked + .radio-mark-green  { background: #16A34A; border-color: #16A34A; }
.cl-radio-wrap input:checked + .radio-mark-yellow { background: #CA8A04; border-color: #CA8A04; }
.cl-radio-wrap input:checked + .radio-mark-red    { background: #DC2626; border-color: #DC2626; }
.cl-radio-wrap input:checked + span::after { content: '✓'; color: white; font-size: 0.75rem; font-weight: bold; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.cl-obs-input { width: 100%; border: none; border-bottom: 1px dotted #94A3B8; background: transparent; font-size: 0.78rem; outline: none; }
.cl-general-evaluation-card { border: 2px dashed #047857; border-radius: var(--radius-md); padding: 10px 16px; background: #F0FDF4; margin-bottom: 14px; }
.gen-eval-title-badge { font-family: var(--font-heading); font-weight: 800; font-size: 0.85rem; color: #15803D; margin-bottom: 6px; }
.gen-eval-options-row { display: flex; gap: 16px; flex-wrap: wrap; }
.eval-pill-choice { display: inline-flex; align-items: center; gap: 8px; border: 2px solid #CBD5E1; border-radius: var(--radius-pill); padding: 4px 14px; background: #FFFFFF; cursor: pointer; font-size: 0.82rem; }
.eval-pill-choice input { display: none; }
.eval-box-square { width: 16px; height: 16px; border: 1.5px solid #64748B; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: bold; color: white; }
.choice-adequate:has(input:checked)  { border-color: #16A34A; background: #DCFCE7; color: #15803D; }
.choice-adequate:has(input:checked) .eval-box-square { background: #16A34A; border-color: #16A34A; }
.choice-attention:has(input:checked) { border-color: #D97706; background: #FEF3C7; color: #B45309; }
.choice-attention:has(input:checked) .eval-box-square { background: #D97706; border-color: #D97706; }
.choice-urgent:has(input:checked)    { border-color: #DC2626; background: #FEE2E2; color: #B91C1C; }
.choice-urgent:has(input:checked) .eval-box-square { background: #DC2626; border-color: #DC2626; }
.cl-bottom-signatures-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.bottom-backpack-art, .bottom-schoolhouse-art { font-size: 3rem; user-select: none; }
.bottom-lines-center { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.comment-field-line, .signature-field-line { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.cl-input-line-wide { flex: 1; border: none; border-bottom: 1.5px solid #1E293B; background: transparent; outline: none; font-size: 0.85rem; padding: 2px 4px; }

/* Citatorio Formal */
.illustrated-citation-sheet { background: #FFFFFF; border-radius: 20px; border: 2px solid #1E293B; padding: 24px 28px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.citation-top-band { background: #1E293B; color: white; padding: 8px 16px; border-radius: var(--radius-sm); display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 16px; }
.citation-title { font-family: var(--font-heading); font-size: 1.4rem; color: #1E293B; margin-bottom: 10px; letter-spacing: 1px; }
.cit-greeting { font-size: 0.9rem; margin-bottom: 10px; line-height: 1.6; }
.cit-input-inline { border: none; border-bottom: 1.5px solid #1E293B; outline: none; padding: 0 4px; }
.cit-paragraph { font-size: 0.9rem; line-height: 1.6; margin-bottom: 14px; }
.cit-details-box { border: 2px solid #CBD5E1; border-radius: var(--radius-md); padding: 12px 18px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; background: #F8FAFC; font-size: 0.85rem; }
.cit-detail-row { display: flex; align-items: center; gap: 8px; }
.cit-input-line { flex: 1; border: none; border-bottom: 1.5px solid #1E293B; background: transparent; outline: none; padding: 2px 4px; }
.cit-signatures-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 24px; margin-bottom: 20px; text-align: center; }
.cit-sig-block { display: flex; flex-direction: column; align-items: center; }
.cit-sig-line { width: 80%; height: 1.5px; background: #1E293B; margin-bottom: 4px; }
.citation-slip-cut-line { text-align: center; font-family: var(--font-mono); font-size: 0.75rem; color: #94A3B8; margin: 16px 0; border-top: 1.5px dashed #CBD5E1; padding-top: 8px; }
.citation-slip-body { border: 1.5px dashed #94A3B8; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.8rem; background: #FAFAFC; }
.slip-sign-row { display: flex; justify-content: space-between; margin-top: 10px; font-weight: 700; flex-wrap: wrap; gap: 8px; }

/* 12. CONSEJO TÉCNICO ESCOLAR (CTE) */
.cte-module-page-shell { max-width: 1080px; margin: 0 auto; }
.cte-top-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; background: #FFFFFF; border: 1px solid var(--border-color); padding: 10px 18px; border-radius: var(--radius-pill); }
.cte-toolbar-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cte-view-toggle-group { display: flex; background: #F1F5F9; padding: 3px; border-radius: var(--radius-pill); gap: 4px; }
.btn-cte-view { border: none; background: transparent; font-family: var(--font-heading); font-size: 0.8rem; font-weight: 700; color: var(--text-muted); padding: 6px 14px; border-radius: var(--radius-pill); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s ease; }
.btn-cte-view.active { background: #FFFFFF; color: #7C3AED; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.cte-session-select-badge { background: #FAF5FF; border: 1px solid #E9D5FF; padding: 4px 14px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; color: #7C3AED; }
.cte-session-dropdown { border: none; background: transparent; font-family: var(--font-heading); font-weight: 800; color: #7C3AED; outline: none; cursor: pointer; font-size: 0.82rem; }
.cte-toolbar-actions { display: flex; gap: 8px; }
.btn-cte-quick, .btn-cte-print, .btn-cte-save { padding: 8px 16px; border-radius: var(--radius-pill); font-family: var(--font-heading); font-weight: 800; font-size: 0.8rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border: none; transition: all 0.2s ease; }
.btn-cte-quick { background: #FAF5FF; color: #7C3AED; border: 1px solid #E9D5FF; }
.btn-cte-print { background: #F1F5F9; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-cte-save  { background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%); color: white; box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3); }

.rainbow-crayon-frame { background: repeating-linear-gradient(45deg, #FF6B6B, #FF6B6B 10px, #FFA041 10px, #FFA041 20px, #FFD166 20px, #FFD166 30px, #06D6A0 30px, #06D6A0 40px, #118AB2 40px, #118AB2 50px, #8338EC 50px, #8338EC 60px); padding: 10px; border-radius: 28px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.illustrated-cte-sheet { background: #FFFFFF; border-radius: 20px; padding: 24px 28px; position: relative; }
.cte-header-top-banner { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.teacher-avatar-badge-pink { border: 2px dashed #F472B6; border-radius: 20px; padding: 6px 14px; background: #FFF5F7; display: flex; flex-direction: column; align-items: center; text-align: center; }
.avatar-face-large { font-size: 2.5rem; }
.teacher-scallop-name { font-family: var(--font-cute); font-size: 0.8rem; color: #BE185D; }
.cte-center-title-area { text-align: center; position: relative; }
.cte-star-top-left { position: absolute; top: -8px; left: -20px; font-size: 1.6rem; color: #10B981; }
.cte-rainbow-main-title { font-family: var(--font-cute); font-size: 3.2rem; font-weight: 900; letter-spacing: 3px; line-height: 1; text-shadow: 2px 2px 0px #FFFFFF, 3px 4px 0px rgba(0,0,0,0.12); }
.c-violet { color: #8B5CF6; }
.cte-tecnico-subtitle { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 900; color: #4C1D95; letter-spacing: 3px; margin-top: -4px; }
.cte-heart-ribbon-banner { display: inline-block; background: #F472B6; color: white; padding: 3px 26px; border-radius: var(--radius-pill); font-family: var(--font-heading); font-size: 0.85rem; font-weight: 800; letter-spacing: 1px; margin-top: 4px; box-shadow: 0 4px 10px rgba(244, 114, 182, 0.35); }
.cte-doodles-top-right { display: flex; align-items: center; gap: 6px; font-size: 2.6rem; user-select: none; }
.star-cute-art { font-size: 2.2rem; }
.pencil-doodle-big { font-size: 2.8rem; }
.spiral-doodle { font-size: 1.6rem; color: #8B5CF6; }
.cte-meta-card-box { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; padding: 10px 18px; border: 2px solid #16A34A; border-radius: var(--radius-md); background: #F0FDF4; margin-bottom: 16px; }
.cte-meta-row { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.m-lbl { font-weight: 800; color: #166534; white-space: nowrap; }
.cte-input-line { flex: 1; border: none; border-bottom: 1.5px solid #16A34A; background: transparent; outline: none; font-size: 0.85rem; padding: 1px 4px; }
.cte-two-columns-main-grid { display: grid; grid-template-columns: 1fr 20px 1fr; gap: 12px; align-items: stretch; }
.cte-column-card { border-radius: var(--radius-md); border: 2px solid; overflow: hidden; display: flex; flex-direction: column; }
.card-pink { border-color: #F472B6; background: #FFF5F7; }
.card-blue { border-color: #38BDF8; background: #F0F9FF; }
.card-purple { border-color: #8B5CF6; background: #FAF5FF; }
.column-card-header { padding: 8px 12px; font-family: var(--font-heading); font-size: 0.85rem; font-weight: 800; display: flex; align-items: center; justify-content: space-between; }
.header-pink   { background: #F472B6; color: white; }
.header-blue   { background: #38BDF8; color: white; }
.header-purple { background: #8B5CF6; color: white; }
.star-icon { font-size: 1rem; }
.check-icon-badge { font-size: 1.1rem; }
.lightbulb-art { font-size: 1.3rem; }
.column-card-body, .full-card-body { padding: 8px; flex: 1; }
.cte-ruled-bullet-textarea { width: 100%; border: none; background: transparent; background-image: linear-gradient(transparent, transparent 23px, #CBD5E1 24px); background-size: 100% 24px; line-height: 24px; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; resize: vertical; outline: none; padding: 0 6px; }
.bullet-pink { color: #9D174D; }
.bullet-blue { color: #0369A1; }
.bullet-purple { color: #5B21B6; }
.grid-center-heart-art { display: flex; align-items: center; justify-content: center; }
.floating-pink-heart { font-size: 1.6rem; animation: floatHeart 2.5s ease-in-out infinite alternate; }
@keyframes floatHeart { 0% { transform: translateY(0) scale(1); } 100% { transform: translateY(-6px) scale(1.15); } }
.cte-bottom-signatures-layout { display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; gap: 16px; margin-top: 16px; padding-top: 12px; border-top: 2px dashed #CBD5E1; }
.bottom-notebook-art, .bottom-crayons-pot-art { font-size: 3.2rem; user-select: none; text-align: center; }
.bottom-signatures-center { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.heart-center-doodle { font-size: 1.4rem; }
.sig-lines-row { display: flex; justify-content: space-around; width: 100%; gap: 24px; }
.sig-field-block { flex: 1; display: flex; flex-direction: column; align-items: center; }
.cte-sig-line { width: 100%; border: none; border-bottom: 2px solid #1E293B; background: transparent; outline: none; text-align: center; font-size: 0.85rem; padding: 2px; }
.sig-sub-label { font-size: 0.75rem; color: #64748B; font-weight: 700; margin-top: 2px; }
.footer-doodles-micro { display: flex; gap: 12px; font-size: 0.85rem; color: #94A3B8; margin-top: 4px; }

/* 13. REUNIÓN CON PADRES DE FAMILIA */
.illustrated-parents-meeting-sheet { background: #FFFFFF; border-radius: 20px; padding: 24px 28px; position: relative; }
.pm-header-top-banner { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pm-center-title-area { text-align: center; }
.pm-title-blue { font-family: var(--font-cute); font-size: 3rem; font-weight: 900; color: #0284C7; letter-spacing: 2px; line-height: 1; text-shadow: 2px 2px 0px #BAE6FD, 3px 4px 0px rgba(0,0,0,0.08); }
.pm-subtitle-purple { font-family: var(--font-cute); font-size: 2.7rem; font-weight: 900; color: #7C3AED; letter-spacing: 2px; line-height: 1; margin-top: -4px; text-shadow: 2px 2px 0px #DDD6FE, 3px 4px 0px rgba(0,0,0,0.08); }
.pm-curved-subtitle { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-handwriting); font-size: 1.4rem; font-weight: 700; color: #1E293B; margin-top: 2px; }
.heart-icon-pink { color: #EC4899; font-size: 1.2rem; }
.pm-doodles-top-right { display: flex; align-items: center; gap: 8px; font-size: 2.6rem; user-select: none; }
.cloud-cute-art { font-size: 2.2rem; }
.heart-pink-art { font-size: 2.2rem; color: #EC4899; }
.pm-meta-six-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-bottom: 16px; }
.pm-meta-card { border-radius: var(--radius-pill); border: 2px solid; padding: 6px 16px; display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.meta-green  { border-color: #86EFAC; background: #F0FDF4; color: #166534; }
.meta-blue   { border-color: #93C5FD; background: #EFF6FF; color: #1E40AF; }
.meta-orange { border-color: #FDBA74; background: #FFF7ED; color: #9A3412; }
.meta-purple { border-color: #C084FC; background: #FAF5FF; color: #6B21A8; }
.meta-pink   { border-color: #F472B6; background: #FFF5F7; color: #9D174D; }
.meta-yellow { border-color: #FDE047; background: #FEFCE8; color: #854D0E; }
.meta-icon { font-size: 1.2rem; }
.pm-meta-input { flex: 1; border: none; background: transparent; outline: none; font-size: 0.85rem; font-weight: 700; color: #1E293B; }
.pm-section-block { margin-bottom: 14px; }
.pm-section-title-line { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 0.95rem; margin-bottom: 6px; }
.star-blue-icon { font-size: 1.2rem; }
.heart-purple-icon { font-size: 1.2rem; }
.section-rule-line { flex: 1; height: 2px; border-radius: 2px; }
.rule-blue   { background: #38BDF8; }
.rule-purple { background: #C084FC; }
.pm-section-title-centered { text-align: center; font-family: var(--font-heading); font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 8px; }
.pm-ruled-textarea-container { border: 1px solid #CBD5E1; border-radius: var(--radius-md); padding: 8px 12px; background: #FFFFFF; }
.pm-ruled-lines-textarea { width: 100%; border: none; background: transparent; background-image: linear-gradient(transparent, transparent 23px, #CBD5E1 24px); background-size: 100% 24px; line-height: 24px; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; resize: vertical; outline: none; padding: 0 4px; }
.text-blue-ink   { color: #0F172A; }
.text-purple-ink { color: #1E293B; }
.pm-agreements-table-frame { border: 2px solid #16A34A; border-radius: var(--radius-md); overflow: hidden; }
.pm-agreements-table { width: 100%; border-collapse: collapse; }
.pm-agreements-table th { background: #16A34A; color: white; font-family: var(--font-heading); font-weight: 800; font-size: 0.8rem; padding: 6px 8px; text-align: center; border: 1px solid rgba(255,255,255,0.3); }
.pm-agreements-table td { border: 1px solid #CBD5E1; padding: 4px 6px; }
.td-pm-no { text-align: center; font-size: 0.9rem; color: #166534; background: #F0FDF4; }
.pm-table-input { width: 100%; border: none; background: transparent; outline: none; font-size: 0.82rem; padding: 2px 4px; }
.pm-bottom-signatures-row { display: grid; grid-template-columns: 1fr 10px 1fr 10px 1fr; align-items: center; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 2px dashed #CBD5E1; }
.pm-sig-col { display: flex; flex-direction: column; align-items: center; }
.pm-sig-input { width: 100%; border: none; background: transparent; outline: none; text-align: center; font-size: 0.82rem; padding: 2px; }
.pm-sig-line-indicator { width: 100%; height: 2px; margin: 4px 0; }
.line-pink { background: #EC4899; }
.line-cyan { background: #06B6D4; }
.line-blue { background: #3B82F6; }
.pm-sig-title { font-size: 0.75rem; color: #1E293B; }
.pm-sig-divider-tick { color: #94A3B8; font-size: 1.2rem; text-align: center; }
.pm-footer-hearts-decor { display: flex; justify-content: center; align-items: center; gap: 16px; font-size: 1.6rem; margin-top: 10px; }

/* Responsividad */
@media (max-width: 1024px) {
  .side-month-tabs-track { display: none; }
  .cte-meta-card-box, .cte-two-columns-main-grid, .cte-bottom-signatures-layout,
  .pm-meta-six-grid, .pm-bottom-signatures-row { grid-template-columns: 1fr; }
  .grid-center-heart-art, .pm-sig-divider-tick { display: none; }
}

/* ==========================================================================
   14. INSTRUMENTOS DE EVALUACIÓN FORMATIVA (Lista de Cotejo Ilustrada)
   ========================================================================== */
.eval-instruments-page-shell {
  max-width: 1200px;
  margin: 0 auto;
}

.instruments-top-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
}

.instruments-tabs-group {
  display: flex;
  background: #F1F5F9;
  padding: 3px;
  border-radius: var(--radius-pill);
  gap: 4px;
}

.btn-inst-tab {
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-inst-tab.active {
  background: #FFFFFF;
  color: #EC4899;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.instruments-actions-right {
  display: flex;
  gap: 8px;
}

.btn-inst-quick, .btn-inst-print, .btn-inst-save {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  transition: all 0.2s ease;
}

.btn-inst-quick { background: #FDF2F8; color: #EC4899; border: 1px solid #FBCFE8; }
.btn-inst-print { background: #F1F5F9; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-inst-save  { background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%); color: white; box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3); }

/* Marco Rosa Pastel con Confeti */
.pastel-confetti-dashed-frame {
  background: #FFF1F2;
  border: 3px dashed #F472B6;
  border-radius: 28px;
  padding: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.illustrated-eval-checklist-sheet {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 24px 28px;
  position: relative;
}

.ecl-header-top-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ecl-doodles-left, .ecl-doodles-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 2.5rem;
  user-select: none;
}

.cute-star-star { font-size: 2.4rem; }
.cute-heart-pink { font-size: 2rem; color: #EC4899; }
.cute-pencil-smile { font-size: 2.6rem; }
.cute-cloud-smile { font-size: 2.4rem; }
.cute-rainbow-top { font-size: 2.8rem; }
.cute-notebook-yellow { font-size: 2.4rem; }

.ecl-center-title-box {
  text-align: center;
}

.ecl-rainbow-3d-title {
  font-family: var(--font-cute);
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1;
  text-shadow: 2px 2px 0px #FFFFFF, 3px 4px 0px rgba(0,0,0,0.12);
}

.let-1  { color: #F43F5E; }
.let-2  { color: #FB923C; }
.let-3  { color: #FACC15; }
.let-4  { color: #84CC16; }
.let-5  { color: #22C55E; }
.let-6  { color: #06B6D4; }
.let-7  { color: #0EA5E9; }
.let-8  { color: #3B82F6; }
.let-9  { color: #6366F1; }
.let-10 { color: #8B5CF6; }
.let-11 { color: #A855F7; }
.let-12 { color: #D946EF; }
.let-13 { color: #EC4899; }

.ecl-pink-ribbon-evaluation {
  display: inline-block;
  background: #F43F5E;
  color: white;
  padding: 3px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-top: 4px;
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.35);
}

/* 3 Cápsulas de Metadatos */
.ecl-meta-capsules-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.ecl-capsule-item {
  border: 2px solid #38BDF8;
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  background: #F0F9FF;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.cap-project { border-color: #38BDF8; background: #F0F9FF; }
.cap-group   { border-color: #818CF8; background: #EEF2FF; }
.cap-date    { border-color: #34D399; background: #F0FDF4; }

.cap-lbl {
  font-weight: 800;
  color: #1E293B;
  white-space: nowrap;
}

.ecl-capsule-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1E293B;
}

/* Contenedor de Aspectos Festoneado */
.ecl-aspects-scallop-card {
  border: 1.5px solid #FBCFE8;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  background: #FDF2F8;
  margin-bottom: 14px;
}

.aspects-header-ribbon {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: #9D174D;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.aspects-six-capsules-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.aspect-capsule-box {
  border: 1.5px dashed #FBCFE8;
  border-radius: 12px;
  padding: 4px 6px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 4px;
}

.aspect-num {
  font-size: 0.75rem;
  color: #9D174D;
}

.aspect-input-text {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1E293B;
}

/* Tabla Matricial de 25 Alumnos */
.ecl-main-grid-table-container {
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
}

.ecl-evaluation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.ecl-evaluation-table th, .ecl-evaluation-table td {
  border: 1px solid #E2E8F0;
  padding: 4px 6px;
}

.th-ecl-num {
  background: #F8FAFC;
  color: #475569;
  text-align: center;
}

.th-ecl-student-purple {
  background: #6366F1;
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  text-align: center;
  padding: 6px 10px;
}

.th-ecl-si {
  background: #34D399;
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  text-align: center;
}

.th-ecl-proceso {
  background: #FBBF24;
  color: #78350F;
  font-family: var(--font-heading);
  font-weight: 800;
  text-align: center;
}

.th-ecl-sin-lograr {
  background: #F87171;
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  text-align: center;
}

.th-ecl-observaciones {
  background: #60A5FA;
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  text-align: center;
}

.td-ecl-num {
  text-align: center;
  font-size: 0.8rem;
  color: #64748B;
  background: #F8FAFC;
}

.td-ecl-name {
  padding: 2px 6px;
}

.ecl-name-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.8rem;
  color: #1E293B;
}

.td-ecl-check {
  text-align: center;
  vertical-align: middle;
}

.td-si         { background: #F0FDF4; }
.td-proceso    { background: #FEFCE8; }
.td-sin-lograr { background: #FFF1F2; }

.ecl-check-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ecl-check-pill input {
  display: none;
}

.pill-square-mark {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #94A3B8;
  background: #FFFFFF;
  display: inline-block;
  position: relative;
  transition: all 0.15s ease;
}

.choice-si:has(input:checked) .mark-green {
  background: #22C55E;
  border-color: #22C55E;
}

.choice-proceso:has(input:checked) .mark-yellow {
  background: #EAB308;
  border-color: #EAB308;
}

.choice-sin-lograr:has(input:checked) .mark-pink {
  background: #F43F5E;
  border-color: #F43F5E;
}

.ecl-check-pill input:checked + span::after {
  content: '✓';
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.td-ecl-obs {
  padding: 2px 6px;
}

.ecl-obs-line-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.75rem;
  color: #334155;
}

/* Doodles de Pie */
.ecl-footer-doodles-toolbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 2.2rem;
  user-select: none;
  padding-top: 8px;
  border-top: 2px dashed #CBD5E1;
}

/* Rúbricas y Escalas */
.rubric-table-frame, .scale-table-frame {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.rubric-matrix-official, .scale-matrix-official {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.rubric-matrix-official th, .rubric-matrix-official td,
.scale-matrix-official th, .scale-matrix-official td {
  border: 1px solid var(--border-color);
  padding: 8px 10px;
}

.th-sob { background: #FEF3C7; color: #92400E; }
.th-sat { background: #DCFCE7; color: #166534; }
.th-bas { background: #FEF9C3; color: #854D0E; }
.th-apoyo { background: #FEE2E2; color: #991B1B; }

.obs-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.obs-box {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  background: #FFFFFF;
}

.guide-textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px;
  font-size: 0.85rem;
  outline: none;
  resize: vertical;
}

@media (max-width: 1024px) {
  .ecl-meta-capsules-grid, .aspects-six-capsules-row, .obs-guide-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   15. REPORTE FINAL DE APRENDIZAJE DE ACUERDO AL GRADO
   ========================================================================== */
.grade-learning-report-shell {
  max-width: 1080px;
  margin: 0 auto;
}

.report-top-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
}

.toolbar-left-filters {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.report-pill-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
}

.report-dropdown {
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary);
  outline: none;
  cursor: pointer;
  font-size: 0.82rem;
}

.grade-selector-scroll-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.grade-selector-scroll-pills::-webkit-scrollbar { display: none; }

.pills-lbl {
  font-size: 0.8rem;
  color: #1E293B;
  white-space: nowrap;
  margin-right: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-grade-report-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: #F8FAFC;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-grade-report-pill.active, .btn-grade-report-pill:hover {
  background: #0284C7;
  color: white;
  border-color: #0284C7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.btn-rep-quick, .btn-rep-print, .btn-rep-save {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  transition: all 0.2s ease;
}

.btn-rep-quick { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.btn-rep-print { background: #F1F5F9; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-rep-save  { background: linear-gradient(135deg, #0284C7 0%, #7C3AED 100%); color: white; box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3); }

/* Hoja Ilustrada del Reporte */
.illustrated-final-learning-report-sheet {
  background: #FFFFFF;
  border-radius: 28px;
  border: 3px solid #38BDF8;
  padding: 24px 28px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  position: relative;
}

.glr-header-top-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.boy-with-books-art, .girl-with-globe-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 3.2rem;
  user-select: none;
}

.pencil-pot-mini, .plant-pot-mini {
  font-size: 1.4rem;
  margin-top: -6px;
}

.glr-center-title-area {
  text-align: center;
}

.glr-main-title-3d {
  font-family: var(--font-cute);
  font-size: 3.2rem;
  font-weight: 900;
  color: #1E3A8A;
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 2px 2px 0px #BFDBFE, 3px 4px 0px rgba(0,0,0,0.08);
}

.glr-curved-ribbon-pink {
  display: inline-block;
  background: #F43F5E;
  color: white;
  padding: 4px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-top: 4px;
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.35);
}

.glr-sub-banner-grade {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.grade-banner-text {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #0D9488;
  letter-spacing: 1px;
}

.glr-cycle-strip {
  font-size: 0.85rem;
  color: #1E3A8A;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* Tarjeta de Metadatos */
.glr-meta-card-frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  padding: 10px 18px;
  border: 2px dashed #0284C7;
  border-radius: var(--radius-md);
  background: #F0F9FF;
  margin-bottom: 14px;
  font-size: 0.82rem;
}

.glr-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.glr-lbl {
  font-weight: 800;
  color: #0369A1;
  white-space: nowrap;
}

.glr-input-line {
  flex: 1;
  border: none;
  border-bottom: 1.5px solid #0284C7;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  padding: 1px 4px;
  color: #1E293B;
}

/* Tabla de 7 Áreas */
.glr-main-areas-table-container {
  border: 2px solid #1E293B;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
}

.glr-areas-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.glr-areas-table th, .glr-areas-table td {
  border: 1px solid #CBD5E1;
  padding: 6px 8px;
}

.th-glr-area {
  background: #9333EA;
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  text-align: center;
  font-size: 0.85rem;
}

.th-glr-logrado {
  background: #DCFCE7;
  color: #15803D;
  text-align: center;
}

.th-glr-proceso {
  background: #FEF9C3;
  color: #854D0E;
  text-align: center;
}

.th-glr-apoyo {
  background: #FCE7F3;
  color: #9D174D;
  text-align: center;
}

.th-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  line-height: 1.15;
}

.td-glr-area-desc {
  background: #FFFFFF;
}

.area-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.area-icon-emoji {
  font-size: 1.2rem;
}

.area-name-bold {
  font-size: 0.82rem;
  color: #1E293B;
}

.area-desc-text {
  font-size: 0.72rem;
  color: #475569;
  line-height: 1.25;
}

.td-glr-radio {
  text-align: center;
  vertical-align: middle;
}

.td-col-logrado { background: #F0FDF4; }
.td-col-proceso { background: #FEFCE8; }
.td-col-apoyo   { background: #FFF5F7; }

.glr-circle-radio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.glr-circle-radio input {
  display: none;
}

.circle-ring-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid;
  background: #FFFFFF;
  display: inline-block;
  position: relative;
  transition: all 0.15s ease;
}

.ring-green  { border-color: #22C55E; }
.ring-yellow { border-color: #EAB308; }
.ring-pink   { border-color: #EC4899; }

.choice-logrado:has(input:checked) .ring-green  { background: #22C55E; }
.choice-proceso:has(input:checked) .ring-yellow { background: #EAB308; }
.choice-apoyo:has(input:checked) .ring-pink     { background: #EC4899; }

.glr-circle-radio input:checked + span::after {
  content: '✓';
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 4 Bloques Inferiores */
.glr-bottom-four-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.glr-card-item {
  border-radius: var(--radius-md);
  border: 2px solid;
  overflow: hidden;
  background: #FFFFFF;
}

.card-yellow-strengths { border-color: #FACC15; background: #FEFCE8; }
.card-blue-improvements{ border-color: #38BDF8; background: #F0F9FF; }
.card-green-agreements { border-color: #4ADE80; background: #F0FDF4; }
.card-pink-family      { border-color: #F472B6; background: #FFF5F7; }

.glr-card-header {
  padding: 6px 10px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-yellow { background: #FACC15; color: #713F12; }
.header-blue   { background: #0284C7; color: white; }
.header-green  { background: #16A34A; color: white; }
.header-pink   { background: #EC4899; color: white; }

.glr-card-body-with-art {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plant-smiling-art, .pencil-smiling-art {
  font-size: 2.2rem;
  user-select: none;
}

.glr-ruled-input {
  flex: 1;
  border: none;
  background: transparent;
  background-image: linear-gradient(transparent, transparent 21px, #CBD5E1 22px);
  background-size: 100% 22px;
  line-height: 22px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  resize: vertical;
  outline: none;
  padding: 0 2px;
}

.glr-card-body-agreements {
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agreements-checks-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.agr-check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1E293B;
  cursor: pointer;
}

.agr-check-item input {
  display: none;
}

.agr-box {
  width: 14px;
  height: 14px;
  border: 1.5px solid #16A34A;
  border-radius: 3px;
  display: inline-block;
  background: #FFFFFF;
  position: relative;
}

.agr-check-item input:checked + .agr-box {
  background: #16A34A;
}

.agr-check-item input:checked + .agr-box::after {
  content: '✓';
  color: white;
  font-size: 0.65rem;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.rainbow-mini-art {
  font-size: 2.2rem;
  user-select: none;
}

.glr-card-body-family {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.family-message-text {
  font-size: 0.72rem;
  color: #831843;
  line-height: 1.35;
  flex: 1;
}

.books-stack-bottom {
  font-size: 2.2rem;
  user-select: none;
}

/* Pie de Página con Firma */
.glr-bottom-signature-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 2px dashed #CBD5E1;
}

.sig-line-left-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  flex: 1;
  max-width: 500px;
}

.glr-sig-input {
  flex: 1;
  border: none;
  border-bottom: 2px solid #1E293B;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  padding: 2px 4px;
}

.footer-center-heart {
  font-size: 1.4rem;
}

.footer-right-stars {
  font-size: 1.2rem;
  color: #FACC15;
}

@media (max-width: 1024px) {
  .glr-meta-card-frame, .glr-bottom-four-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   16. FICHA DESCRIPTIVA GRUPAL ILUSTRADA
   ========================================================================== */
.view-toggle-pills-group {
  display: flex;
  background: #F1F5F9;
  padding: 3px;
  border-radius: var(--radius-pill);
  gap: 4px;
}

.btn-view-toggle {
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-view-toggle.active {
  background: #FFFFFF;
  color: #0284C7;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.illustrated-group-sheet-card {
  background: #FFFFFF;
  border: 3px solid #1E293B;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}

.gds-header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.gds-title-left-wrap {
  display: flex;
  flex-direction: column;
}

.gds-title-doodle-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.doodle-dash-left, .doodle-dash-right {
  font-size: 1.4rem;
  color: #0284C7;
}

.gds-main-title {
  font-family: var(--font-cute);
  font-size: 2.2rem;
  font-weight: 900;
  color: #1E293B;
  letter-spacing: 1px;
}

.gds-underline-accent {
  width: 140px;
  height: 4px;
  background: #38BDF8;
  border-radius: 2px;
  margin-top: 2px;
}

.gds-four-kids-art {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 2.6rem;
  user-select: none;
}

.star-blue-mini {
  font-size: 1.6rem;
  color: #38BDF8;
}

/* Metadatos y Badge de Alumnos */
.gds-meta-container-row {
  display: flex;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}

.gds-meta-table {
  flex: 1;
  border-collapse: collapse;
  border: 2px solid #1E293B;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.gds-meta-table td {
  border: 1px solid #CBD5E1;
  padding: 4px 8px;
}

.td-meta-lbl {
  background: #F8FAFC;
  color: #1E293B;
}

.td-meta-val {
  background: #FFFFFF;
}

.gds-meta-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  color: #1E293B;
}

.gds-student-count-pill-badge {
  width: 130px;
  background: #FEF9C3;
  border: 2px solid #EAB308;
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.badge-lbl {
  font-size: 0.72rem;
  color: #854D0E;
  line-height: 1.2;
}

.badge-num-input {
  width: 50px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  color: #854D0E;
  outline: none;
}

.badge-pin-icon {
  position: absolute;
  top: -8px;
  right: -6px;
  font-size: 1.2rem;
}

/* Secciones de Bloques */
.gds-block-section {
  border: 2px solid #1E293B;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
}

.gds-block-header {
  padding: 5px 12px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.header-purple { background: #E9D5FF; color: #581C87; }
.header-blue   { background: #BAE6FD; color: #0369A1; }
.header-yellow { background: #FEF9C3; color: #854D0E; display: flex; align-items: center; gap: 6px; }

.gds-desc-body-with-icon {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
}

.gds-ruled-textarea {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #1E293B;
  line-height: 1.45;
  outline: none;
  resize: vertical;
}

.gds-community-bulb-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 2.2rem;
  user-select: none;
}

/* Tabla de los 4 Campos Formativos */
.gds-fields-table {
  width: 100%;
  border-collapse: collapse;
}

.gds-fields-table td {
  border: 1px solid #CBD5E1;
  padding: 6px 10px;
}

.td-field-tag {
  vertical-align: middle;
}

.field-tag-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-lenguajes { background: #F3E8FF; color: #6B21A8; }
.tag-saberes   { background: #E0F2FE; color: #0369A1; }
.tag-etica     { background: #DCFCE7; color: #15803D; }
.tag-humano    { background: #FCE7F3; color: #9D174D; }

.field-icon { font-size: 1.3rem; }
.field-title { font-size: 0.8rem; }

.field-bullets-textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.4;
  outline: none;
  resize: vertical;
}

.text-purple-bullets { color: #581C87; }
.text-blue-bullets   { color: #0F172A; }
.text-green-bullets  { color: #14532D; }
.text-pink-bullets   { color: #831843; }

/* Grid de 2 Columnas (Fortalezas y Oportunidades) */
.gds-two-cols-strengths-areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.gds-subcard {
  border: 2px solid #1E293B;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #FFFFFF;
}

.subcard-header {
  padding: 5px 10px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-green { background: #DCFCE7; color: #166534; }
.header-pink  { background: #FCE7F3; color: #9D174D; }

.badge-check-circle {
  background: #16A34A;
  color: white;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.badge-warning-triangle {
  font-size: 0.85rem;
}

.subcard-body {
  padding: 8px 10px;
  position: relative;
}

.with-star-art {
  display: flex;
  align-items: center;
}

.subcard-textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.4;
  outline: none;
  resize: vertical;
}

.text-green-checks { color: #14532D; }
.text-pink-dots    { color: #831843; }

.smiling-star-doodle {
  font-size: 2.4rem;
  user-select: none;
  margin-left: 8px;
}

/* Recomendaciones */
.gds-recommendations-body {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
}

.recommendations-textarea {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #1E293B;
  line-height: 1.4;
  outline: none;
  resize: vertical;
}

.gds-school-tools-art {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 2.2rem;
  user-select: none;
}

/* Pie de Firma */
.gds-footer-signature-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 10px;
  font-size: 0.85rem;
}

.sig-underline-line {
  border-bottom: 2px solid #1E293B;
  width: 320px;
}

.gds-signature-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-align: center;
  padding: 2px;
}

.heart-pink-end {
  font-size: 1.4rem;
}

@media (max-width: 1024px) {
  .gds-meta-container-row, .gds-two-cols-strengths-areas {
    flex-direction: column;
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   17. PLANIFICACIÓN DIDÁCTICA (SESIÓN INDIVIDUAL DE CLASE)
   ========================================================================== */
.illustrated-lesson-plan-sheet {
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  border-radius: 24px;
  padding: 24px 28px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  max-width: 1000px;
  margin: 0 auto;
}

.lp-header-top-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

.lp-avatar-medallion-badge {
  border: 2px solid #F472B6;
  background: #FFF5F7;
  border-radius: 50%;
  width: 95px;
  height: 95px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 10px rgba(244, 114, 182, 0.2);
}

.medallion-ring-text { font-size: 0.65rem; color: #BE185D; line-height: 1; }
.medallion-teacher-art { font-size: 1.8rem; line-height: 1.1; }
.medallion-sub { font-size: 0.55rem; color: #BE185D; line-height: 1; }

.lp-center-title-block {
  flex: 1;
}

.lp-main-3d-title {
  font-family: var(--font-cute);
  font-size: 2.5rem;
  font-weight: 900;
  color: #1E3A8A;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 8px;
}

.lp-top-three-capsules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 8px;
}

.lp-capsule {
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F8FAFC;
  font-size: 0.78rem;
}

.cap-icon { font-size: 1rem; }
.cap-lbl { color: #1E293B; white-space: nowrap; }
.lp-cap-input { flex: 1; border: none; background: transparent; outline: none; font-size: 0.8rem; color: #1E293B; }

/* Banner del Tema */
.lp-topic-pill-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FEFCE8;
  border: 2px solid #FDE047;
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  margin-bottom: 12px;
}

.topic-book-icon { font-size: 1.6rem; }
.topic-content-row { display: flex; align-items: center; gap: 8px; flex: 1; }
.topic-tag-bold { font-size: 1.1rem; color: #1E293B; }
.topic-title-input { flex: 1; border: none; background: transparent; outline: none; font-size: 1.2rem; color: #E11D48; }

/* 2 Cajas de Metas */
.lp-two-goals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.goal-box {
  border: 2px solid;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  background: #FFFFFF;
}

.goal-intent-box    { border-color: #F87171; background: #FFF5F5; }
.goal-indicator-box { border-color: #FBBF24; background: #FFFBEB; }

.goal-header-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.goal-icon-target, .goal-icon-star { font-size: 1.2rem; }
.goal-title-text { font-size: 0.82rem; color: #1E293B; }
.goal-textarea { width: 100%; border: none; background: transparent; font-family: var(--font-body); font-size: 0.78rem; color: #334155; line-height: 1.35; outline: none; resize: vertical; }

/* Tarjetas de Momentos de la Clase */
.lp-moment-card {
  display: flex;
  gap: 12px;
  border: 2px solid;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #FFFFFF;
}

.moment-inicio-card    { border-color: #F472B6; }
.moment-desarrollo-card{ border-color: #38BDF8; }
.moment-cierre-card    { border-color: #FBBF24; }

.moment-left-tag {
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  border-radius: var(--radius-sm);
  padding: 6px 4px;
}

.tag-inicio     { background: #FDF2F8; color: #DB2777; }
.tag-desarrollo { background: #F0F9FF; color: #0284C7; }
.tag-cierre     { background: #FEFCE8; color: #D97706; }

.tag-name { font-family: var(--font-heading); font-size: 0.9rem; letter-spacing: 0.5px; }
.tag-time { font-size: 0.68rem; margin-bottom: 6px; }
.moment-avatar-art { font-size: 2.2rem; user-select: none; }

.moment-center-content {
  flex: 1;
}

.full-width-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.moment-bullets-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: #1E293B;
  line-height: 1.45;
  outline: none;
  resize: vertical;
}

.moment-right-character {
  width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bubble-speech-box {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  padding: 4px 6px;
  font-size: 0.68rem;
  color: #475569;
  line-height: 1.2;
  margin-bottom: 4px;
}

.thinking-boy-art { font-size: 2.2rem; user-select: none; }

/* Explicación Sencilla */
.lp-simple-explanation-box {
  background: #EFF6FF;
  border: 1.5px solid #93C5FD;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.exp-title { font-size: 0.75rem; color: #1E40AF; }
.exp-bubble p { font-size: 0.74rem; color: #1E293B; margin: 2px 0 0 0; line-height: 1.35; }

/* Láminas Didácticas de Acrósticos */
.lp-acrostic-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 4px 0;
}

.acrostic-sample-card {
  border: 2px solid;
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.card-amistad       { border-color: #86EFAC; background: #F0FDF4; }
.card-esperanza     { border-color: #93C5FD; background: #EFF6FF; }
.card-escuela       { border-color: #C084FC; background: #FAF5FF; }
.card-user-creation { border-color: #CBD5E1; background: #FFFFFF; border-style: dashed; }

.card-sample-title { font-family: var(--font-heading); font-size: 0.8rem; margin-bottom: 4px; color: #1E293B; }
.acrostic-lines-block { font-size: 0.65rem; line-height: 1.25; color: #334155; }
.let-green  { font-weight: 900; color: #16A34A; }
.let-blue   { font-weight: 900; color: #2563EB; }
.let-purple { font-weight: 900; color: #9333EA; }
.sample-doodle { font-size: 0.9rem; margin-top: 4px; }

.creation-header-text { font-size: 0.62rem; color: #64748B; text-align: center; }
.word-creation-input { width: 100%; border: none; border-bottom: 1.5px solid #F43F5E; background: transparent; font-size: 0.8rem; color: #F43F5E; outline: none; margin: 2px 0 4px 0; }
.acrostic-user-vertical-lines { font-size: 0.65rem; line-height: 1.25; width: 100%; }
.u-line { display: flex; justify-content: space-between; }
.u-let { font-weight: 900; color: #0284C7; }
.u-dash { color: #CBD5E1; }
.pencil-green-decor { font-size: 1rem; position: absolute; bottom: 4px; right: 4px; }

/* Actividad Guiada */
.lp-guided-activities-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.guided-item { font-size: 0.75rem; color: #1E293B; }
.lp-guided-input { width: 100%; border: none; background: transparent; font-family: var(--font-body); font-size: 0.74rem; color: #475569; outline: none; resize: vertical; }

.cierre-doodles-stack { display: flex; align-items: center; gap: 4px; font-size: 1.8rem; user-select: none; }

/* 2 Bloques Inferiores */
.lp-bottom-resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.lp-resource-block {
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #FFFFFF;
}

.res-header {
  padding: 4px 10px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-recursos   { background: #E0F2FE; color: #0369A1; }
.header-actividades{ background: #DCFCE7; color: #15803D; }

.res-textarea {
  width: 100%;
  border: none;
  background: transparent;
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: #334155;
  line-height: 1.35;
  outline: none;
  resize: vertical;
}

.lp-footer-tagline {
  text-align: center;
  font-family: var(--font-cute);
  font-size: 1.1rem;
  font-weight: 800;
  color: #F472B6;
  letter-spacing: 1px;
}

@media (max-width: 1024px) {
  .lp-header-top-row, .lp-two-goals-grid, .lp-moment-card,
  .lp-acrostic-cards-row, .lp-guided-activities-row, .lp-bottom-resources-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

/* ==========================================================================
   18. SECUENCIA ANUAL DE TEMAS (PLANIFICACIÓN GENERAL)
   ========================================================================== */
.illustrated-annual-sequence-sheet {
  background: #FFFFFF;
  border: 3px solid #1E3A8A;
  border-radius: 24px;
  padding: 24px 28px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  max-width: 1140px;
  margin: 0 auto;
}

.seq-header-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.seq-header-left-art, .seq-header-right-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 2.8rem;
  user-select: none;
}

.school-house-art, .cloud-tree-art {
  font-size: 2.4rem;
  margin-top: -6px;
}

.seq-center-title-wrap {
  text-align: center;
}

.seq-main-title-3d {
  font-family: var(--font-cute);
  font-size: 2.8rem;
  font-weight: 900;
  color: #1E3A8A;
  letter-spacing: 2px;
  line-height: 1;
}

.seq-subtitle-pink {
  font-size: 1.1rem;
  color: #BE185D;
  margin-top: 4px;
}

.seq-curriculum-badge {
  display: inline-block;
  background: #1E3A8A;
  color: white;
  padding: 3px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  letter-spacing: 1px;
  margin-top: 4px;
}

.seq-desc-hint {
  font-size: 0.75rem;
  color: #475569;
  margin-top: 4px;
}

/* Cuadrícula de 10 Meses Temáticos (2 Filas x 5 Columnas) */
.seq-ten-months-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.seq-month-card {
  border: 2px solid;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
}

.month-card-header {
  padding: 4px 6px;
  color: white;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 1px;
}

.color-ago { border-color: #84CC16; } .color-ago .month-card-header { background: #84CC16; }
.color-sep { border-color: #A855F7; } .color-sep .month-card-header { background: #A855F7; }
.color-oct { border-color: #FB923C; } .color-oct .month-card-header { background: #FB923C; }
.color-nov { border-color: #3B82F6; } .color-nov .month-card-header { background: #3B82F6; }
.color-dic { border-color: #F43F5E; } .color-dic .month-card-header { background: #F43F5E; }
.color-ene { border-color: #06B6D4; } .color-ene .month-card-header { background: #06B6D4; }
.color-feb { border-color: #FB7185; } .color-feb .month-card-header { background: #FB7185; }
.color-mar { border-color: #22C55E; } .color-mar .month-card-header { background: #22C55E; }
.color-abr { border-color: #8B5CF6; } .color-abr .month-card-header { background: #8B5CF6; }
.color-may { border-color: #F59E0B; } .color-may .month-card-header { background: #F59E0B; }

.month-card-body {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.month-topic-title-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: #1E293B;
  text-align: center;
  margin-bottom: 4px;
  outline: none;
}

.month-bullets-textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: #334155;
  line-height: 1.35;
  outline: none;
  resize: vertical;
  flex: 1;
}

.month-doodle-footer-art {
  text-align: center;
  font-size: 1.4rem;
  user-select: none;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed #E2E8F0;
}

/* Otras Celebraciones */
.seq-celebrations-block {
  border: 2px solid #38BDF8;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  background: #F0F9FF;
}

.celebrations-header-strip {
  background: #0284C7;
  color: white;
  text-align: center;
  padding: 4px 10px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.celebrations-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px 12px;
}

.celebration-item-card {
  background: #FFFFFF;
  border: 1px solid #BAE6FD;
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cel-icon { font-size: 1.5rem; margin-bottom: 2px; }
.cel-name { font-size: 0.65rem; font-weight: 700; color: #0C4A6E; line-height: 1.15; }

/* 2 Bloques de Resumen */
.seq-bottom-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.seq-summary-card {
  border: 2px solid;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  background: #FFFFFF;
}

.card-all-months    { border-color: #38BDF8; background: #F0F9FF; }
.card-main-objective{ border-color: #FACC15; background: #FEFCE8; }

.sum-header-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.sum-icon { font-size: 1.2rem; }
.sum-tag  { font-size: 0.8rem; color: #1E293B; }
.sum-text { font-size: 0.74rem; color: #334155; line-height: 1.35; margin: 0; }

@media (max-width: 1024px) {
  .seq-ten-months-grid, .celebrations-mosaic-grid, .seq-bottom-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   19. REPORTE DE AGENDA SEMANAL ILUSTRADA
   ========================================================================== */
.illustrated-weekly-agenda-report-sheet {
  background: #FFFFFF;
  border: 3px solid #F59E0B;
  border-radius: 24px;
  padding: 24px 28px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  max-width: 1200px;
  margin: 0 auto;
}

.war-header-top-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.war-monkey-art-left, .war-sports-art-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 3rem;
  user-select: none;
}

.green-leaf-mini, .star-gold-mini {
  font-size: 1.6rem;
}

.war-center-title-area {
  text-align: center;
}

.war-rainbow-3d-title {
  font-family: var(--font-cute);
  font-size: 3.4rem;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1;
  text-shadow: 2px 2px 0px #FFFFFF, 3px 4px 0px rgba(0,0,0,0.12);
}

.let-a1 { color: #F43F5E; }
.let-g  { color: #FB923C; }
.let-e  { color: #FACC15; }
.let-n  { color: #84CC16; }
.let-d  { color: #06B6D4; }
.let-a2 { color: #3B82F6; }
.title-space { display: inline-block; width: 14px; }
.let-s  { color: #6366F1; }
.let-e2 { color: #8B5CF6; }
.let-m  { color: #A855F7; }
.let-a3 { color: #D946EF; }
.let-n2 { color: #EC4899; }
.let-a4 { color: #F43F5E; }
.let-l  { color: #FB923C; }

.war-stars-decor {
  font-size: 1.2rem;
  color: #FACC15;
  margin-top: 2px;
}

/* 2 Cápsulas Principales */
.war-two-hero-capsules-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.war-hero-capsule {
  border: 2px solid;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  background: #FFFFFF;
}

.cap-objetivo  { border-color: #8B5CF6; background: #FAF5FF; }
.cap-importante{ border-color: #F59E0B; background: #FEFCE8; }

.capsule-purple-header-pill {
  display: inline-block;
  background: #7C3AED;
  color: white;
  padding: 2px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.capsule-body-textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: #1E293B;
  line-height: 1.35;
  outline: none;
  resize: vertical;
}

.importante-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: #B45309;
  margin-bottom: 4px;
}

.importante-checks-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.imp-check-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.imp-star { font-size: 0.85rem; color: #F59E0B; }
.imp-input-line {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.75rem;
  color: #1E293B;
}

/* Cuadrícula de 5 Columnas Diarias */
.war-five-days-vertical-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.war-day-col {
  border: 2px solid;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
}

.day-col-purple { border-color: #8B5CF6; } .day-col-purple .header-purple { background: #8B5CF6; }
.day-col-blue   { border-color: #0284C7; } .day-col-blue .header-blue     { background: #0284C7; }
.day-col-green  { border-color: #16A34A; } .day-col-green .header-green   { background: #16A34A; }
.day-col-orange { border-color: #EA580C; } .day-col-orange .header-orange { background: #EA580C; }
.day-col-pink   { border-color: #E11D48; } .day-col-pink .header-pink     { background: #E11D48; }

.day-col-header {
  padding: 4px 6px;
  color: white;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
}

.day-col-title-input {
  width: 100%;
  border: none;
  background: transparent;
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  text-align: center;
  outline: none;
}

.day-col-body {
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.day-activity-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.act-subject-tag {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: #1E293B;
  text-decoration: underline;
  text-decoration-color: #94A3B8;
}

.day-block-textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: #334155;
  line-height: 1.3;
  outline: none;
  resize: vertical;
}

.act-sub-text {
  font-size: 0.7rem;
  color: #475569;
  margin: 0;
}

.day-materials-box {
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  position: relative;
}

.mat-lbl { font-size: 0.68rem; color: #1E293B; }
.monkey-badge-art { font-size: 1.4rem; text-align: center; margin-top: 2px; }

.grafomotricidad-trace-art {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: #64748B;
}

.father-son-heart-art {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #FFF1F2;
  border-radius: var(--radius-pill);
  padding: 2px 6px;
  margin-top: 4px;
}

.boy-dad-art { font-size: 1.2rem; }
.badge-heart-dad { font-size: 0.65rem; font-weight: 800; color: #E11D48; }

.trophy-ball-art { font-size: 1.4rem; text-align: center; }

.numbers-123-art {
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 2px;
}
.num-1 { color: #E11D48; }
.num-2 { color: #0284C7; }
.num-3 { color: #EAB308; }

.my-name-is-card {
  background: #FEFCE8;
  border: 1.5px solid #FDE047;
  border-radius: 6px;
  padding: 4px;
  text-align: center;
  font-size: 0.68rem;
}

.name-line-input {
  width: 100%;
  border: none;
  background: transparent;
  border-bottom: 1px solid #EAB308;
  font-size: 0.7rem;
  outline: none;
  text-align: center;
}

.dog-smile-art { font-size: 1.4rem; text-align: center; }

.soccer-rainbow-art { font-size: 1.3rem; text-align: center; }

.province-content-card {
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  border-radius: 6px;
  padding: 4px;
  font-size: 0.65rem;
}

.prov-tag { color: #166534; }
.prov-bullets-grid { display: flex; flex-direction: column; gap: 1px; color: #166534; margin: 2px 0; }
.flag-mini-icon { font-size: 1rem; }

.book-castle-art { font-size: 1.4rem; text-align: center; }
.roman-numerals-art { font-size: 1rem; text-align: center; letter-spacing: 4px; color: #1E293B; }
.pc-radio-art { font-size: 1.2rem; text-align: center; }

.castle-fantasy-art { font-size: 1.4rem; text-align: center; }
.media-devices-art { font-size: 1.2rem; text-align: center; }
.sensory-bowls-art { font-size: 0.85rem; text-align: center; }
.dyes-bottles-art { font-size: 1rem; text-align: center; }

.checklist-eval-art { font-size: 1.4rem; text-align: center; }
.octopus-smiling-art { font-size: 1.6rem; text-align: center; }
.paints-eyes-art { font-size: 1.2rem; text-align: center; }

/* Banner Inferior Motivacional */
.war-bottom-inspirational-banner {
  background: #FFFBEB;
  border: 2px dashed #F59E0B;
  border-radius: var(--radius-pill);
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.banner-left-crayons, .banner-right-apple-books {
  font-size: 2rem;
  user-select: none;
}

.quote-main {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #1E3A8A;
  margin: 0;
  letter-spacing: 0.5px;
}

.quote-sub {
  font-size: 0.82rem;
  color: #D97706;
  margin: 2px 0 0 0;
  letter-spacing: 0.5px;
}

@media (max-width: 1024px) {
  .war-two-hero-capsules-grid, .war-five-days-vertical-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   20. LISTA DE COTEJO INDIVIDUAL (LIBRETA DE ESPIRAL PASTEL)
   ========================================================================== */
.spiral-notebook-envelope-wrapper {
  background: #EDE9FE;
  background-image: radial-gradient(#DDD6FE 15%, transparent 16%);
  background-size: 16px 16px;
  padding: 36px 24px;
  border-radius: 32px;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.spiral-notebook-checklist-sheet {
  background: #FFFFFF;
  border: 3px solid #DDD6FE;
  border-radius: 24px;
  padding: 30px 28px 40px 28px;
  position: relative;
  box-shadow: 0 20px 45px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* Anillas de Espiral Superior */
.notebook-spiral-rings-bar {
  display: flex;
  justify-content: space-around;
  margin-top: -38px;
  margin-bottom: 20px;
  user-select: none;
}

.spiral-ring-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ring-hole-top, .ring-hole-bottom {
  width: 10px;
  height: 10px;
  background: #1E1B4B;
  border-radius: 50%;
}

.ring-wire-metal {
  width: 14px;
  height: 32px;
  border: 3px solid #A78BFA;
  border-radius: 8px;
  background: linear-gradient(to right, #C4B5FD, #8B5CF6, #C4B5FD);
  margin: -4px 0;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

/* Lápiz y Estrella en la esquina */
.notebook-top-right-decor {
  position: absolute;
  top: 16px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
  user-select: none;
}

.cute-star-doodle {
  font-size: 2.4rem;
  color: #FBBF24;
  transform: rotate(-15deg);
}

.cute-pink-pencil-art {
  font-size: 3rem;
  transform: rotate(20deg);
}

/* Encabezado: Título y Campo Formativo */
.sp-header-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sp-title-purple-pill {
  background: #DDD6FE;
  color: #4C1D95;
  padding: 6px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: 1px;
}

.sp-field-yellow-pill {
  background: #FEF08A;
  color: #854D0E;
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* Grid de Metadatos (5 Cápsulas) e Instrucciones */
.sp-meta-and-instructions-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 16px;
  margin-bottom: 18px;
}

.sp-five-meta-capsules {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sp-capsule {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
}

.cap-yellow { background: #FEF9C3; border: 1px solid #FEF08A; }
.cap-pink   { background: #FCE7F3; border: 1px solid #FBCFE8; }
.cap-green  { background: #DCFCE7; border: 1px solid #BBF7D0; }
.cap-blue   { background: #E0F2FE; border: 1px solid #BAE6FD; }
.cap-purple { background: #F3E8FF; border: 1px solid #E9D5FF; }

.sp-cap-lbl { color: #1E293B; min-width: 90px; }
.sp-cap-val {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.75rem;
  color: #1E293B;
}

.sp-instructions-and-scale-box {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sp-instructions-text {
  font-size: 0.72rem;
  color: #334155;
  line-height: 1.35;
  margin: 0 0 6px 0;
}

.sp-scale-three-pills-row {
  display: flex;
  gap: 6px;
}

.scale-pill {
  flex: 1;
  text-align: center;
  padding: 4px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
}

.pill-na { background: #FCE7F3; color: #9D174D; border: 1px solid #FBCFE8; }
.pill-ep { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.pill-a  { background: #E0F2FE; color: #075985; border: 1px solid #BAE6FD; }

/* Tabla Matriz de Criterios */
.sp-matrix-table-container {
  border: 2px solid #CBD5E1;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  background: #FFFFFF;
}

.sp-criteria-table {
  width: 100%;
  border-collapse: collapse;
}

.sp-criteria-table th {
  padding: 6px 8px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  text-align: center;
  border: 1px solid #CBD5E1;
}

.th-sp-criteria { background: #FEF08A; color: #854D0E; text-align: left !important; padding-left: 14px !important; }
.th-sp-na       { background: #FCE7F3; color: #9D174D; }
.th-sp-ep       { background: #DCFCE7; color: #166534; }
.th-sp-a        { background: #E0F2FE; color: #075985; }

.sp-criteria-table td {
  padding: 6px 8px;
  border: 1px solid #CBD5E1;
  font-size: 0.74rem;
  color: #1E293B;
}

.td-sp-dimension {
  background: #F8FAFC;
  vertical-align: middle;
  text-align: center;
  color: #0F172A;
  font-size: 0.78rem;
  line-height: 1.25;
}

.td-sp-crit-text {
  line-height: 1.3;
}

.td-sp-check {
  text-align: center;
  vertical-align: middle;
}

.col-na { background: #FFF1F2; }
.col-ep { background: #F0FDF4; }
.col-a  { background: #F0F9FF; }

.sp-radio-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid #94A3B8;
  background: #FFFFFF;
  position: relative;
}

.sp-radio-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.sp-radio-input:checked + .sp-box-mark {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.choice-na .sp-radio-input:checked + .sp-box-mark { background: #E11D48; }
.choice-ep .sp-radio-input:checked + .sp-box-mark { background: #16A34A; }
.choice-a  .sp-radio-input:checked + .sp-box-mark { background: #0284C7; }

/* Totales */
.sp-total-footer-row td {
  padding: 6px 8px;
  font-family: var(--font-heading);
}

.td-sp-total-lbl { background: #F8FAFC; font-size: 0.8rem; color: #1E293B; padding-right: 14px !important; }
.td-sp-total-val.val-na { background: #FCE7F3; color: #9D174D; font-size: 0.85rem; }
.td-sp-total-val.val-ep { background: #DCFCE7; color: #166534; font-size: 0.85rem; }
.td-sp-total-val.val-a  { background: #E0F2FE; color: #075985; font-size: 0.85rem; }

/* Arcoíris de Fondo en la esquina inferior */
.sp-bottom-rainbow-accent {
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-size: 6rem;
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}

.inst-student-select-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
}

.inst-dropdown {
  border: none;
  outline: none;
  font-size: 0.8rem;
  background: transparent;
  font-weight: 700;
  color: #1E293B;
  cursor: pointer;
}

@media (max-width: 768px) {
  .sp-meta-and-instructions-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   21. REGISTRO DE INCIDENCIAS ESCOLAR
   ========================================================================== */
.illustrated-incident-record-sheet {
  background: #FFFFFF;
  border: 3px solid #1E3A8A;
  border-radius: 24px;
  padding: 26px 30px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  max-width: 960px;
  margin: 0 auto;
}

.inc-header-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 16px;
}

.inc-title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inc-title-rays-left, .inc-title-rays-right {
  font-size: 1.8rem;
  color: #1E3A8A;
  user-select: none;
}

.inc-main-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: #1E3A8A;
  letter-spacing: 2px;
  margin: 0;
  line-height: 1.1;
}

.inc-subtitle-pink-pill {
  display: inline-block;
  background: #FCE7F3;
  color: #9D174D;
  border: 1px solid #FBCFE8;
  border-radius: var(--radius-pill);
  padding: 2px 24px;
  font-family: var(--font-cute);
  font-size: 1.1rem;
  margin-top: 4px;
}

.inc-pastel-dots-decor {
  display: flex;
  gap: 6px;
  font-size: 0.75rem;
  margin-top: 4px;
  user-select: none;
}
.dot-blue   { color: #60A5FA; }
.dot-pink   { color: #F472B6; }
.dot-yellow { color: #FBBF24; }
.dot-purple { color: #C084FC; }

/* Bloques de Secciones */
.inc-block-section {
  border: 1.5px solid #CBD5E1;
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 10px;
  background: #FFFFFF;
}

.inc-section-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: white;
  padding: 2px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.pill-navy    { background: #1E3A8A; }
.pill-purple  { background: #6D28D9; }
.pill-rose    { background: #BE123C; }
.pill-cyan    { background: #0D9488; }
.pill-amber   { background: #D97706; }
.pill-blue    { background: #2563EB; }
.pill-magenta { background: #DB2777; }
.pill-emerald { background: #059669; }

.inc-two-cols-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.inc-input-line-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.inc-field-lbl {
  font-size: 0.76rem;
  color: #1E293B;
  white-space: nowrap;
}

.inc-underlined-input {
  flex: 1;
  border: none;
  border-bottom: 1.5px solid #334155;
  background: transparent;
  outline: none;
  font-size: 0.8rem;
  color: #0F172A;
  padding: 1px 4px;
}

.inc-section-hint {
  font-size: 0.7rem;
  color: #475569;
  font-style: italic;
  margin: 0 0 4px 0;
}

/* Notebook Ruled Line Textarea */
.inc-ruled-lined-textarea-wrapper {
  background: linear-gradient(transparent, transparent 25px, #CBD5E1 26px);
  background-size: 100% 26px;
  padding: 0 4px;
}

.inc-ruled-textarea {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-cute);
  font-size: 1.05rem;
  line-height: 26px;
  color: #1E293B;
  resize: vertical;
}

/* Fila de 2 Cajas Laterales */
.inc-two-blocks-side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.inc-half-box {
  border: 1.5px solid #CBD5E1;
  border-radius: 14px;
  padding: 10px 14px;
  background: #FFFFFF;
}

.inc-checkboxes-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.inc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: #1E293B;
  cursor: pointer;
}

.inc-checkbox-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #1E3A8A;
  cursor: pointer;
}

.inc-other-checkbox-line {
  display: flex;
  align-items: center;
  gap: 4px;
}

.inc-underlined-mini-input {
  flex: 1;
  border: none;
  border-bottom: 1px solid #64748B;
  background: transparent;
  outline: none;
  font-size: 0.74rem;
  width: 80px;
}

.notif-question-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
  color: #1E293B;
}

.inc-radio-choice {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.inc-radio-choice input[type="radio"] {
  accent-color: #DB2777;
}

.notif-medium-title {
  font-size: 0.74rem;
  color: #1E293B;
}

/* 8. Firmas y Sello Redondo */
.inc-three-signatures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 16px;
  padding-top: 6px;
}

.inc-signature-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.sig-role-title {
  font-size: 0.78rem;
  color: #1E293B;
  margin-bottom: 2px;
}

.sig-handwriting-display {
  font-size: 1.25rem;
  color: #1E3A8A;
  height: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sig-line-solid {
  width: 100%;
  height: 1.5px;
  background: #334155;
  margin: 4px 0 2px 0;
}

.sig-under-label {
  font-size: 0.68rem;
  color: #64748B;
}

/* Sello Circular Oficial */
.official-circular-seal {
  position: absolute;
  top: -12px;
  right: -14px;
  width: 74px;
  height: 74px;
  border: 2px solid #1E3A8A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-10deg);
  background: rgba(238, 242, 255, 0.4);
  pointer-events: none;
  user-select: none;
}

.seal-inner-circle {
  width: 64px;
  height: 64px;
  border: 1px dashed #1E3A8A;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.seal-top-curved { font-size: 0.42rem; font-weight: 800; color: #1E3A8A; line-height: 1; }
.seal-center-book { font-size: 0.9rem; margin: 1px 0; }
.seal-bottom-curved { font-size: 0.42rem; font-weight: 800; color: #1E3A8A; }

/* Pie: Recuerda y Marca de la Maestra */
.inc-footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px dashed #CBD5E1;
}

.inc-remember-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #F0FDF4;
  border: 1.5px dashed #86EFAC;
  border-radius: var(--radius-md);
  padding: 6px 12px;
}

.rem-check-icon {
  width: 22px;
  height: 22px;
  background: #16A34A;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.8rem;
  margin-top: 2px;
}

.rem-title { font-size: 0.72rem; color: #166534; }
.rem-bullets-list {
  list-style: none;
  padding: 0;
  margin: 2px 0 0 0;
  font-size: 0.68rem;
  color: #14532D;
  line-height: 1.25;
}

.inc-teacher-brand-signature {
  text-align: center;
}

.teacher-script-logo {
  font-size: 1.6rem;
  line-height: 1;
}

.logo-maestra { color: #1E3A8A; }
.logo-name-pink { color: #DB2777; margin: 0 4px; }
.logo-heart-mini { font-size: 1.1rem; }
.logo-sparks-decor { font-size: 0.8rem; color: #F59E0B; }

@media (max-width: 768px) {
  .inc-two-cols-data-grid, .inc-two-blocks-side-by-side, .inc-three-signatures-grid, .inc-footer-bottom-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

/* ==========================================================================
   22. BITÁCORA - REUNIÓN DE PADRES DE FAMILIA
   ========================================================================== */
.illustrated-parents-bitacora-sheet {
  background: #FFFFFF;
  border: 3px solid #F59E0B;
  border-radius: 24px;
  padding: 24px 28px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.bitacora-corner-pennants {
  position: absolute;
  top: 0;
  left: 14px;
  display: flex;
  gap: 2px;
  user-select: none;
}
.pennant-green { color: #84CC16; font-size: 1.4rem; }
.pennant-pink  { color: #F43F5E; font-size: 1.4rem; }
.pennant-blue  { color: #06B6D4; font-size: 1.4rem; }

.bit-header-top-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  margin-bottom: 6px;
}

.bit-handshake-left-art {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 2.8rem;
  user-select: none;
}

.handshake-circle-badge {
  background: #FEF3C7;
  border: 2px dashed #F59E0B;
  border-radius: 50%;
  padding: 4px;
}

.tiny-stars-decor { font-size: 1.1rem; color: #FBBF24; }

.bit-center-title-box {
  text-align: center;
}

.bit-script-title {
  font-family: var(--font-cute);
  font-size: 3rem;
  color: #1E293B;
  margin: 0;
  line-height: 0.9;
  letter-spacing: 1px;
}

.bit-yellow-ribbon-badge {
  display: inline-block;
  background: #FBBF24;
  color: #0F172A;
  padding: 3px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-top: 4px;
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.25);
}

.bit-notebook-right-art {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 2.6rem;
  user-select: none;
}
.paperclip-blue { font-size: 1.8rem; color: #38BDF8; }

.bit-date-capsule-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.date-dashed-capsule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px dashed #94A3B8;
  border-radius: var(--radius-pill);
  padding: 2px 14px;
  font-size: 0.8rem;
  color: #1E293B;
}

.date-input-field {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.8rem;
  color: #1E293B;
  width: 110px;
}

/* Cajas de Secciones */
.bit-section-box {
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 14px;
  background: #FFFFFF;
}

.box-puntos-tratar {
  border: 2px solid #F472B6;
  background: #FFFFFF;
}

.box-acuerdos-gold {
  border: 2px solid #FBBF24;
  background: #FFFDF5;
}

.box-firmas-table-wrap {
  border: 2px solid #38BDF8;
  background: #FFFFFF;
}

.bit-pill-header {
  display: inline-block;
  padding: 2px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.pill-pink-header   { background: #FCE7F3; color: #BE185D; }
.pill-yellow-header { background: #FEF08A; color: #854D0E; }
.pill-blue-header   { background: #BAE6FD; color: #0369A1; }

.acuerdos-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.icon-clipboard-left, .icon-puzzle-right {
  font-size: 1.5rem;
  user-select: none;
}

/* Listas con Renglones */
.bit-ruled-agenda-list, .bit-ruled-agreements-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.agenda-ruled-item, .agreement-ruled-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pink-dot-bullet  { color: #BE185D; font-size: 0.65rem; }
.green-check-bullet{ color: #16A34A; font-size: 1.1rem; font-weight: 900; }

.ruled-line-input {
  flex: 1;
  border: none;
  border-bottom: 1px solid #CBD5E1;
  background: transparent;
  outline: none;
  font-size: 0.78rem;
  color: #1E293B;
  padding: 2px 4px;
}

/* Tabla de Firmas de Padres */
.firmas-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.hand-writing-art { font-size: 1.6rem; }

.bit-attendees-table-container {
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.bit-attendees-table {
  width: 100%;
  border-collapse: collapse;
}

.bit-attendees-table th {
  padding: 6px 10px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  border: 1px solid #CBD5E1;
  text-align: center;
}

.th-name-col { background: #BAE6FD; color: #0369A1; }
.th-sig-col  { background: #FEF08A; color: #854D0E; }

.bit-attendees-table td {
  padding: 4px 8px;
  border: 1px solid #CBD5E1;
}

.bit-table-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.78rem;
  color: #1E293B;
}

.sig-cursive-font {
  font-size: 1.1rem;
  color: #1E3A8A;
}

/* 4. Pie: 2 Tarjetas de Representante y Docente */
.bit-two-signatures-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}

.bit-footer-sig-card {
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-representative {
  background: #FFFBEB;
  border: 2px dashed #F59E0B;
}

.card-teacher {
  background: #FFF1F2;
  border: 2px dashed #F43F5E;
}

.rep-left-art, .rep-right-art, .tea-right-art {
  font-size: 1.8rem;
  user-select: none;
}

.rep-center-content, .tea-center-content {
  text-align: center;
  flex: 1;
  padding: 0 8px;
}

.rep-title-tag { font-size: 0.76rem; color: #B45309; }
.tea-title-tag { font-size: 0.76rem; color: #BE185D; }

.rep-sig-input, .tea-sig-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1.3rem;
  text-align: center;
  color: #1E293B;
  margin: 2px 0;
}

.rep-line-solid, .tea-line-solid {
  width: 90%;
  height: 1.5px;
  background: #334155;
  margin: 2px auto 4px auto;
}

.rep-dni-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
}

.dni-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.74rem;
  width: 90px;
  color: #1E293B;
}

@media (max-width: 768px) {
  .bit-two-signatures-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   23. CATÁLOGO DE PADRES / TUTORES, ALUMNOS Y PERFIL DEL DOCENTE
   ========================================================================== */

/* --- Catálogo de Padres / Tutores --- */
.parents-catalog-page-shell, .students-catalog-page-shell, .teacher-profile-page-shell {
  max-width: 1240px;
  margin: 0 auto;
}

.parents-header-banner, .students-header-banner {
  background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
  border-radius: 20px;
  padding: 20px 24px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.15);
}

.banner-title-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-avatar-badge-family, .icon-avatar-badge-students {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  backdrop-filter: blur(4px);
}

.family-main-title, .students-main-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0;
  color: white;
}

.family-sub-title, .students-sub-title {
  font-size: 0.82rem;
  color: #E2E8F0;
  margin: 2px 0 0 0;
}

.family-stats-pills-row, .students-stats-pills-row {
  display: flex;
  gap: 8px;
}

.stat-family-pill, .stat-student-pill {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(4px);
}

.stat-num { font-size: 1.15rem; font-weight: 900; line-height: 1; }
.stat-lbl { font-size: 0.68rem; color: #E2E8F0; margin-top: 2px; }

/* Barra de Herramientas */
.parents-toolbar-card, .students-toolbar-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  gap: 12px;
  flex-wrap: wrap;
}

.search-and-filters-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 280px;
  flex-wrap: wrap;
}

.family-search-box, .students-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  min-width: 180px;
  max-width: 250px;
  flex: 1;
}

.family-search-box input, .students-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.8rem;
  width: 100%;
  color: #1E293B;
}

.relationship-filter-chips, .student-filter-chips {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}

.btn-rel-chip, .btn-stu-filter-chip {
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-rel-chip.active, .btn-stu-filter-chip.active {
  background: #1E3A8A;
  color: white;
  border-color: #1E3A8A;
}

.toolbar-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.view-mode-toggle-group, .view-toggle-pills-group {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-pill);
  padding: 2px 3px;
  gap: 2px;
  flex-shrink: 0;
}

.btn-view-toggle {
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748B;
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
  line-height: 1;
}

.btn-view-toggle i, .btn-view-toggle svg {
  width: 16px;
  height: 16px;
}

.btn-view-toggle.active {
  background: #FFFFFF;
  color: #0284C7;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.btn-parent-add, .btn-student-add {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-student-import, .btn-parent-import {
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  color: #166534;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-student-import:hover, .btn-parent-import:hover {
  background: #DCFCE7;
  border-color: #4ADE80;
  transform: translateY(-1px);
}

.btn-parent-print, .btn-student-print, .btn-parent-export, .btn-student-export {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Grid de Tarjetas de Padres */
.parents-cards-grid, .students-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.parent-profile-card, .student-profile-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}

.parent-profile-card:hover, .student-profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: #93C5FD;
}

.card-has-bap {
  border-color: #F59E0B;
  background: #FFFDF5;
}

.parent-card-header, .student-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.parent-avatar-badge, .student-avatar-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.avatar-mother  { background: #FCE7F3; }
.avatar-father  { background: #E0F2FE; }
.avatar-tutor   { background: #FEF3C7; }
.avatar-boy     { background: #E0F2FE; }
.avatar-girl    { background: #FCE7F3; }

.parent-fullname, .student-fullname {
  font-size: 0.92rem;
  color: #0F172A;
  margin: 0;
  line-height: 1.2;
}

.relationship-pill {
  display: inline-block;
  font-size: 0.68rem;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  margin-top: 2px;
}

.relationship-pill.madre  { background: #FCE7F3; color: #9D174D; }
.relationship-pill.padre  { background: #E0F2FE; color: #0369A1; }
.relationship-pill.tutor-legal, .relationship-pill.abuela, .relationship-pill.abuelo { background: #FEF3C7; color: #B45309; }

.bap-tag-pill {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE047;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 800;
  margin-left: auto;
}

.parent-students-linked-box {
  background: #F8FAFC;
  border-radius: 8px;
  padding: 6px 8px;
  margin-bottom: 10px;
}

.linked-lbl { font-size: 0.7rem; color: #64748B; display: flex; align-items: center; gap: 4px; }
.student-chips-flow { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

.student-link-badge {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 1px 8px;
  font-size: 0.72rem;
  color: #1E3A8A;
}

.parent-contact-info-list, .student-details-meta-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.contact-info-row, .detail-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: #334155;
}

.contact-icon { width: 14px; height: 14px; color: #64748B; }

.btn-contact-action {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: white;
  text-decoration: none;
  margin-left: 2px;
}

.call-action { background: #0284C7; }
.wa-action   { background: #16A34A; }

.parent-card-footer {
  border-top: 1px solid #F1F5F9;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.parent-notes-hint { font-size: 0.68rem; color: #64748B; display: flex; align-items: center; gap: 3px; }

.btn-card-footer-action {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1E293B;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-card-footer-action:hover { background: #E2E8F0; }

.student-card-quick-links {
  border-top: 1px solid #F1F5F9;
  padding-top: 8px;
  display: flex;
  gap: 6px;
}

.btn-stu-quick-link {
  flex: 1;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 4px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1E3A8A;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-stu-quick-link:hover { background: #E0E7FF; border-color: #A5B4FC; }

/* Tablas Oficiales */
.parents-table-container, .students-table-container {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.parents-official-table, .students-official-table {
  width: 100%;
  border-collapse: collapse;
}

.parents-official-table th, .students-official-table th {
  background: #1E3A8A;
  color: white;
  padding: 8px 12px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  text-align: left;
}

.parents-official-table td, .students-official-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.78rem;
}

.table-parent-name-cell, .table-student-name-wrap {
  display: flex;
  flex-direction: column;
}

.parent-dni-sub { font-size: 0.68rem; color: #64748B; }

.table-wa-link {
  background: #DCFCE7;
  color: #166534;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
}

.table-actions-btns {
  display: inline-flex;
  gap: 4px;
}

.btn-table-edit, .btn-table-delete, .btn-table-view {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
}

.btn-table-edit:hover { background: #E0F2FE; }
.btn-table-delete:hover { background: #FEE2E2; color: #DC2626; }
.btn-table-view:hover { background: #EDE9FE; }

/* Modales CRUD */
.parent-modal-window, .student-modal-window {
  max-width: 680px;
  width: 95%;
}

.parent-form-scroll, .student-form-scroll {
  max-height: 75vh;
  overflow-y: auto;
  padding-right: 6px;
}

.modal-input-styled {
  width: 100%;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.82rem;
  outline: none;
  background: #FFFFFF;
}

.modal-input-styled:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.form-two-cols-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-three-cols-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

.students-selector-checkboxes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.stu-checkbox-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  cursor: pointer;
}

.bap-form-highlight {
  background: #FEF3C7;
  border: 1.5px dashed #F59E0B;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

/* --- PERFIL DEL DOCENTE: ENCABEZADO MINIMALISTA Y BIEN DISTRIBUIDO --- */
.teacher-hero-card {
  position: relative;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 22px 26px;
  color: #1E293B;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid #E2E8F0;
}

.teacher-hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.teacher-avatar-selector-box {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.teacher-avatar-ring-wrapper {
  position: relative;
  padding: 3px;
  background: linear-gradient(135deg, #818CF8 0%, #6366F1 100%);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.teacher-avatar-ring {
  width: 64px;
  height: 64px;
  background: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  user-select: none;
  transition: transform 0.2s ease;
}

.teacher-avatar-ring:hover {
  transform: scale(1.05);
}

.teacher-hero-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.teacher-top-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.teacher-level-pill {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.teacher-level-pill svg {
  width: 13px;
  height: 13px;
}

.teacher-status-badge {
  background: #E0F2FE;
  border: 1px solid #BAE6FD;
  color: #0369A1;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #0284C7;
  border-radius: 50%;
}

.teacher-fullname-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 2px 0 0 0;
  color: #0F172A;
  letter-spacing: -0.2px;
}

.teacher-title-sub {
  font-size: 0.82rem;
  line-height: 1.35;
  color: #64748B;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.teacher-title-sub svg {
  width: 13px;
  height: 13px;
  color: #6366F1;
  flex-shrink: 0;
}

.bullet-dot {
  color: #CBD5E1;
  font-weight: bold;
}

/* AVATAR STRIP MINIMALISTA */
.avatar-strip-minimal {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 5px 12px;
  width: fit-content;
}

.strip-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 4px;
}

.strip-lbl svg {
  width: 12px;
  height: 12px;
}

.avatar-mini-picker {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-avatar-choice {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  padding: 0;
}

.btn-avatar-choice:hover {
  background: #F1F5F9;
  transform: scale(1.15);
}

.btn-avatar-choice.active {
  background: #EEF2FF;
  border-color: #6366F1;
  box-shadow: 0 0 6px rgba(99, 102, 241, 0.35);
  transform: scale(1.1);
}

/* BARRA DE MÉTRICAS DISTRIBUIDA COMPLETA */
.teacher-metrics-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FAFAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 18px;
  width: 100%;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: center;
}

.metric-icon {
  width: 34px;
  height: 34px;
  background: #EEF2FF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4F46E5;
  flex-shrink: 0;
}

.metric-icon svg {
  width: 16px;
  height: 16px;
}

.metric-data {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.metric-lbl {
  font-size: 0.68rem;
  color: #64748B;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.metric-val {
  font-size: 0.85rem;
  color: #0F172A;
  font-weight: 700;
}

.metric-divider {
  width: 1px;
  height: 28px;
  background: #E2E8F0;
  flex-shrink: 0;
}

/* ACTIONS BAR */
.teacher-hero-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.btn-teacher-action {
  white-space: nowrap;
  border-radius: 10px;
  padding: 8px 15px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s ease;
  border: none;
  outline: none;
  user-select: none;
}

.btn-teacher-action svg {
  width: 14px;
  height: 14px;
}

.btn-print-profile {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #CBD5E1;
}

.btn-print-profile:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.btn-save-profile {
  background: #10B981;
  color: #FFFFFF;
}

.btn-save-profile:hover {
  background: #059669;
}

.btn-teacher-action:active {
  transform: translateY(0) scale(0.98);
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  .teacher-metrics-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .metric-divider {
    display: none;
  }

  .metric-item {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .teacher-hero-top-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .teacher-hero-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

.teacher-profile-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.teacher-form-block {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.block-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pill-pink   { background: #FFE4E6; color: #9F1239; border: 1px solid #FECDD3; }
.pill-teal   { background: #CCFBF1; color: #115E59; border: 1px solid #99F6E4; }
.pill-purple { background: #EDE9FE; color: #5B21B6; border: 1px solid #DDD6FE; }
.pill-amber  { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }

.teacher-profile-page-shell .modal-input-styled,
.teacher-profile-page-shell .modal-textarea {
  background-color: #FAFAFC;
  border: 1px solid #CBD5E1;
  color: #0F172A;
  box-shadow: none;
}

.teacher-profile-page-shell .modal-input-styled:focus,
.teacher-profile-page-shell .modal-textarea:focus {
  background-color: #FFFFFF;
  border-color: #818CF8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.12);
  outline: none;
}

.fields-badges-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.field-badge-tag {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
}

.tag-lenguajes { background: #FCE7F3; color: #9D174D; border: 1px solid #FBCFE8; }
.tag-saberes   { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.tag-etica     { background: #E0F2FE; color: #075985; border: 1px solid #BAE6FD; }
.tag-humano    { background: #FEF3C7; color: #B45309; border: 1px solid #FDE047; }

.signature-preview-and-seal-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.sig-preview-card, .seal-preview-card {
  background: #F8FAFC;
  border: 1.5px dashed #CBD5E1;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.sig-card-title { font-size: 0.72rem; color: #475569; display: block; margin-bottom: 4px; }

.sig-brand-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1.35rem;
  color: #1E3A8A;
  text-align: center;
}

.official-teacher-seal-stamp {
  width: 76px;
  height: 76px;
  border: 2px solid #1E3A8A;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  background: rgba(238, 242, 255, 0.4);
}

.seal-inner-round {
  width: 66px;
  height: 66px;
  border: 1px dashed #1E3A8A;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.seal-text-top, .seal-text-bottom {
  font-size: 0.42rem;
  font-weight: 800;
  color: #1E3A8A;
  line-height: 1;
}
.seal-emoji-center { font-size: 1rem; margin: 1px 0; }

@media (max-width: 900px) {
  .teacher-profile-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   24. CROQUIS DEL SALÓN EN FORMA DE CUADRÍCULA CONFIGURABLE
   ========================================================================== */

.seating-croquis-page-shell {
  max-width: 1260px;
  margin: 0 auto;
}

.croquis-header-banner {
  background: linear-gradient(135deg, #0F766E 0%, #0D9488 50%, #14B8A6 100%);
  border-radius: 20px;
  padding: 20px 24px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px rgba(15, 118, 110, 0.2);
}

.icon-avatar-badge-croquis {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  backdrop-filter: blur(4px);
}

.croquis-main-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0;
  color: white;
}

.croquis-sub-title {
  font-size: 0.82rem;
  color: #CCFBF1;
  margin: 2px 0 0 0;
}

.croquis-stats-pills-row {
  display: flex;
  gap: 8px;
}

.stat-croquis-pill {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(4px);
}

/* Panel de Control y Configuración */
.croquis-control-panel-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.panel-section-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label-chip {
  font-size: 0.76rem;
  color: #0F766E;
  background: #F0FDFA;
  border: 1px solid #CCFBF1;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dimension-controls-row, .references-selects-row, .auto-distrib-btns-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dimension-stepper-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 3px 8px;
}

.stepper-lbl { font-size: 0.76rem; color: #475569; }

.stepper-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-stepper {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #0F766E;
  font-weight: 900;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-stepper:hover:not(:disabled) {
  background: #0F766E;
  color: white;
  border-color: #0F766E;
}

.btn-stepper:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.stepper-val {
  min-width: 20px;
  text-align: center;
  font-size: 0.95rem;
  color: #0F172A;
}

.ref-select-box {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ref-lbl { font-size: 0.72rem; color: #64748B; }

.ref-dropdown {
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
  outline: none;
}

.btn-distrib-action {
  background: #F0FDFA;
  border: 1.5px solid #99F6E4;
  color: #0F766E;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-distrib-action:hover {
  background: #0F766E;
  color: white;
  border-color: #0F766E;
}

.btn-distrib-clear {
  background: #FEF2F2;
  border: 1.5px solid #FECACA;
  color: #DC2626;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-distrib-clear:hover { background: #DC2626; color: white; }

.btn-croquis-print {
  background: #0F172A;
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Bandeja de Alumnos Sin Asiento */
.unassigned-students-drawer {
  background: #FFFBEB;
  border: 1.5px dashed #F59E0B;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 16px;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.drawer-title { font-size: 0.78rem; color: #B45309; display: flex; align-items: center; gap: 6px; }

.btn-auto-assign-all {
  background: #F59E0B;
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.unassigned-chips-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.unassigned-stu-chip {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chip-girl { background: #FCE7F3; color: #9D174D; border: 1px solid #FBCFE8; }
.chip-boy  { background: #E0F2FE; color: #0369A1; border: 1px solid #BAE6FD; }
.chip-bap-tag { background: #F59E0B; color: white; font-size: 0.62rem; padding: 0 4px; border-radius: 4px; margin-left: 2px; }

/* LIENZO / LÁMINA ARQUITECTÓNICA DEL SALÓN */
.classroom-architectural-canvas {
  background: #FAFAF9;
  border: 3px solid #0F766E;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  position: relative;
}

.canvas-official-header {
  border-bottom: 2px solid #E7E5E4;
  padding-bottom: 12px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-seal-left { font-size: 2.2rem; }

.header-meta-center { text-align: center; }
.official-school-title { font-family: var(--font-heading); font-size: 1.15rem; color: #1C1917; margin: 0; }
.official-sub-meta { font-size: 0.74rem; color: #57534E; margin: 2px 0 4px 0; }
.official-doc-type { font-size: 0.88rem; color: #0F766E; margin: 0; letter-spacing: 0.5px; }

.date-badge-pill {
  background: #E7E5E4;
  border: 1px solid #D6D3D1;
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 0.72rem;
  color: #44403C;
}

/* Muro Frontal */
.classroom-front-wall {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  background: #F5F5F4;
  border: 2px dashed #D6D3D1;
  border-radius: 16px;
  padding: 12px 18px;
}

.door-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #DCFCE7;
  border: 2px solid #86EFAC;
  border-radius: 12px;
  padding: 6px 12px;
  min-width: 100px;
}

.door-icon { font-size: 1.5rem; }
.door-lbl { font-size: 0.62rem; font-weight: 800; color: #166534; text-align: center; }

.teacher-desk-station {
  background: #FEF3C7;
  border: 2px solid #F59E0B;
  border-radius: 14px;
  padding: 8px 14px;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.15);
  min-width: 150px;
}

.desk-items-row { display: flex; justify-content: center; gap: 6px; font-size: 1.1rem; margin-bottom: 2px; }
.teacher-desk-label { font-size: 0.74rem; color: #92400E; text-align: center; display: flex; flex-direction: column; }
.teacher-desk-sub { font-size: 0.72rem; color: #B45309; }

.blackboard-board-frame {
  flex: 1;
  background: #14532D;
  border: 4px solid #78350F;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(20, 83, 45, 0.25);
  overflow: hidden;
}

.blackboard-cork-top {
  background: #B45309;
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blackboard-slate {
  padding: 10px 16px;
  text-align: center;
}

.chalk-writing {
  color: #FEF08A;
  font-size: 1.05rem;
  text-shadow: 0 0 2px rgba(254, 240, 138, 0.4);
}

/* Cuerpo del Aula: Muros y Cuadrícula */
.classroom-body-layout {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.wall-lateral {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.window-feature-box {
  background: #E0F2FE;
  border: 2px dashed #7DD3FC;
  border-radius: 12px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.window-icon { font-size: 1.6rem; }
.window-text { font-size: 0.58rem; font-weight: 800; color: #0369A1; margin-top: 4px; line-height: 1.1; }

/* Matriz de Bancas / Pupitres */
.desks-matrix-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FFFFFF;
  border: 2px solid #E7E5E4;
  border-radius: 18px;
  padding: 16px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.02);
}

.desk-grid-row {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols, 5), 1fr);
  gap: 10px;
}

.grid-cell {
  border-radius: 12px;
  min-height: 72px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.grid-cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cell-aisle {
  background: #F5F5F4;
  border: 1px dashed #D6D3D1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.aisle-marker { font-size: 0.68rem; color: #A8A29E; font-weight: 700; }

.desk-empty {
  background: #FAFAF9;
  border: 1.5px dashed #CBD5E1;
}

.desk-empty:hover {
  background: #F0FDFA;
  border-color: #0F766E;
}

.empty-desk-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.plus-icon { font-size: 0.9rem; }
.assign-lbl { font-size: 0.68rem; color: #0F766E; margin-top: 2px; }

.desk-occupied {
  border: 1.5px solid #CBD5E1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.desk-boy {
  background: #EFF6FF;
  border-color: #BFDBFE;
}

.desk-girl {
  background: #FDF2F8;
  border-color: #FBCFE8;
}

.desk-bap {
  border-color: #F59E0B !important;
  background: #FFFDF5 !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.desk-cell-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.desk-coord { font-size: 0.62rem; color: #64748B; font-weight: 800; }

.free-badge {
  font-size: 0.6rem;
  color: #10B981;
  background: #DCFCE7;
  padding: 1px 5px;
  border-radius: 4px;
}

.bap-indicator-pill {
  font-size: 0.58rem;
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE047;
  padding: 1px 4px;
  border-radius: 4px;
}

.btn-quick-unassign {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 0.7rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}

.btn-quick-unassign:hover { color: #DC2626; }

.desk-student-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.desk-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.avatar-blue { background: #DBEAFE; }
.avatar-pink { background: #FCE7F3; }

.desk-student-fullname {
  font-size: 0.74rem;
  color: #0F172A;
  line-height: 1.1;
  flex: 1;
}

.desk-curp-mini {
  display: none;
}

/* Muro Trasero */
.classroom-back-wall {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #F5F5F4;
  border: 2px dashed #D6D3D1;
  border-radius: 16px;
  padding: 10px 18px;
  margin-bottom: 20px;
}

.reading-corner-box, .first-aid-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid #E7E5E4;
  border-radius: 10px;
  padding: 6px 12px;
}

.corner-icon, .first-aid-icon { font-size: 1.4rem; }
.corner-info { display: flex; flex-direction: column; }
.corner-title { font-size: 0.74rem; color: #1C1917; }
.corner-desc { font-size: 0.62rem; color: #78716C; }

.back-wall-center-sign { font-size: 0.72rem; font-weight: 800; color: #78716C; }

/* Pie de Firmas */
.canvas-official-footer {
  display: flex;
  justify-content: space-around;
  padding-top: 20px;
  border-top: 1.5px solid #E7E5E4;
}

.footer-sign-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 220px;
}

.sign-line {
  width: 100%;
  border-bottom: 1.5px solid #1C1917;
  margin-bottom: 4px;
}

.sign-name { font-size: 0.78rem; color: #1C1917; }
.sign-role { font-size: 0.68rem; color: #78716C; }

/* Modal de Asignación de Banca */
.desk-modal-window {
  max-width: 540px;
  width: 95%;
}

.modal-body-desk-assign {
  padding: 16px;
}

.desk-modal-subtitle { font-size: 0.82rem; color: #475569; margin-bottom: 10px; }

.modal-stu-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  margin-bottom: 12px;
}

.modal-stu-search-bar input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.82rem;
  width: 100%;
}

.desk-students-picker-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.stu-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.stu-picker-item:hover {
  background: #F0FDFA;
  border-color: #0F766E;
}

.picker-girl { background: #FDF2F8; }
.picker-boy  { background: #F0F9FF; }

.picker-avatar { font-size: 1.3rem; margin-right: 8px; }

.picker-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.picker-name { font-size: 0.82rem; color: #0F172A; }
.picker-status { font-size: 0.68rem; color: #64748B; }

.btn-pick-student {
  background: #0F766E;
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.modal-footer-desk-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #E2E8F0;
}

.btn-modal-clear-desk {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Estilos de Impresión */
@media print {
  .croquis-control-panel-card,
  .unassigned-students-drawer,
  .btn-quick-unassign {
    display: none !important;
  }

  .classroom-architectural-canvas {
    border: 2px solid #000 !important;
    box-shadow: none !important;
    padding: 10px !important;
  }
}

/* ==========================================================================
   25. FICHA DE DATOS EN FORMA DE CARPETA Y PESTAÑAS INDEXADAS
   ========================================================================== */

.student-file-sheet-page-shell {
  max-width: 1220px;
  margin: 0 auto;
}

/* Barra Superior de Control */
.student-file-top-toolbar {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.student-navigator-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-nav-stu {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #CBD5E1;
  background: #F8FAFC;
  color: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-nav-stu:hover:not(:disabled) {
  background: #1E3A8A;
  color: white;
  border-color: #1E3A8A;
}

.btn-nav-stu:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.file-student-select-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #EFF6FF;
  border: 1.5px solid #BFDBFE;
  border-radius: var(--radius-pill);
  padding: 4px 14px;
}

.stu-avatar-mini { font-size: 1.2rem; }

.file-student-dropdown {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  color: #1E3A8A;
  cursor: pointer;
}

.file-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-file-quick {
  background: #F0FDFA;
  border: 1.5px solid #99F6E4;
  color: #0F766E;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-file-print {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-file-save {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* CARPETA / ARCHIVADOR ESCOLAR */
.folder-binder-wrapper {
  background: #E2E8F0;
  border: 3px solid #94A3B8;
  border-radius: 20px;
  padding: 12px 16px 20px 16px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  position: relative;
}

/* Anillas Metálicas de la Carpeta */
.folder-binder-rings-spine {
  display: flex;
  justify-content: space-around;
  margin-bottom: -10px;
  position: relative;
  z-index: 10;
}

.binder-ring {
  width: 24px;
  height: 36px;
  background: linear-gradient(180deg, #94A3B8 0%, #E2E8F0 50%, #475569 100%);
  border-radius: 6px;
  border: 1px solid #334155;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-metal {
  width: 8px;
  height: 24px;
  background: #FFFFFF;
  border-radius: 4px;
  opacity: 0.8;
}

/* Pestañas Indexadas Multicolor */
.folder-index-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 14px;
  padding: 0 8px;
}

.folder-tab {
  border: 1.5px solid #CBD5E1;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F1F5F9;
  color: #475569;
  transition: all 0.2s ease;
  position: relative;
  top: 2px;
}

.folder-tab:hover {
  transform: translateY(-2px);
}

.folder-tab.active {
  background: #FFFFFF !important;
  border-bottom: 2px solid #FFFFFF;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
  z-index: 5;
  transform: translateY(-3px);
}

.folder-tab.tab-blue.active   { color: #1E40AF; border-top: 3px solid #2563EB; }
.folder-tab.tab-green.active  { color: #065F46; border-top: 3px solid #059669; }
.folder-tab.tab-pink.active   { color: #9D174D; border-top: 3px solid #DB2777; }
.folder-tab.tab-red.active    { color: #991B1B; border-top: 3px solid #DC2626; }
.folder-tab.tab-amber.active  { color: #92400E; border-top: 3px solid #D97706; }
.folder-tab.tab-purple.active { color: #5B21B6; border-top: 3px solid #7C3AED; }
.folder-tab.tab-indigo.active { color: #3730A3; border-top: 3px solid #4F46E5; }
.folder-tab.tab-dark.active   { color: #0F172A; border-top: 3px solid #0F172A; }

/* Hoja Interior de la Carpeta */
.folder-sheet-body {
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  position: relative;
  z-index: 4;
}

.folder-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed #E2E8F0;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.sheet-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.student-photo-frame {
  width: 64px;
  height: 72px;
  background: #F8FAFC;
  border: 2px dashed #94A3B8;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.04);
}

.photo-emoji { font-size: 2rem; line-height: 1; }
.photo-badge { font-size: 0.55rem; color: #64748B; margin-top: 2px; }

.sheet-title-info {
  display: flex;
  flex-direction: column;
}

.folder-type-badge {
  font-size: 0.7rem;
  color: #0F766E;
  letter-spacing: 0.5px;
}

.student-file-main-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #0F172A;
  margin: 2px 0 4px 0;
}

.school-affiliation-text {
  font-size: 0.76rem;
  color: #64748B;
  margin: 0;
}

.curp-summary-pill {
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.8rem;
  color: #1E3A8A;
}

/* Paneles de Contenido de Pestañas */
.folder-tab-pane {
  display: none;
}

.folder-tab-pane.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

.tab-content-card {
  border-radius: 16px;
  border: 2px solid #E2E8F0;
  overflow: hidden;
}

.card-border-blue   { border-color: #93C5FD; }
.card-border-green  { border-color: #86EFAC; }
.card-border-pink   { border-color: #F9A8D4; }
.card-border-red    { border-color: #FCA5A5; }
.card-border-amber  { border-color: #FDE047; }
.card-border-purple { border-color: #D8B4FE; }
.card-border-indigo { border-color: #C7D2FE; }

.tab-card-header {
  padding: 10px 18px;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-card-body {
  padding: 18px;
  background: #FFFFFF;
}

/* Casillas de CURP */
.curp-box-wrapper {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 14px;
}

.curp-boxes-grid {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  gap: 4px;
  margin-top: 6px;
}

.curp-char-box {
  width: 100%;
  height: 34px;
  border: 1.5px solid #94A3B8;
  border-radius: 6px;
  text-align: center;
  font-size: 0.95rem;
  color: #1E3A8A;
  background: #FFFFFF;
  outline: none;
  text-transform: uppercase;
}

.curp-char-box:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.form-four-cols-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

/* Tarjetas de Padres */
.parent-sub-card {
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}

.card-mother {
  background: #FDF2F8;
  border: 1.5px solid #FBCFE8;
}

.card-father {
  background: #EFF6FF;
  border: 1.5px solid #BFDBFE;
}

.parent-sub-header {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1E293B;
}

/* Bloques de Emergencia */
.emergency-alert-block {
  background: #FEF2F2;
  border: 2px dashed #EF4444;
  border-radius: 14px;
  padding: 14px;
}

.emergency-badge {
  font-size: 0.76rem;
  color: #B91C1C;
}

.authorized-pickup-block {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 14px;
  padding: 14px;
}

.auth-badge {
  font-size: 0.76rem;
  color: #1E3A8A;
}

.auth-table {
  width: 100%;
  border-collapse: collapse;
}

.auth-table th {
  background: #1E3A8A;
  color: white;
  padding: 6px 10px;
  font-size: 0.74rem;
  text-align: left;
}

.auth-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #E2E8F0;
}

.auth-table-input {
  width: 100%;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.78rem;
  outline: none;
}

/* Documentación en Expediente */
.docs-checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
}

.doc-chk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.docs-status-banner-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  border-radius: 10px;
  padding: 10px 14px;
}

.status-indicator-badge {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
}

.status-date-lbl { font-size: 0.74rem; color: #166534; }

/* Ficha Completa Imprimible */
.official-full-sheet-print-frame {
  background: #FFFFFF;
  border: 2px solid #000;
  padding: 16px 20px;
}

.sheet-print-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #000;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.print-seal { font-size: 2.2rem; }
.print-titles-center { text-align: center; }
.print-school-name { font-size: 1.1rem; margin: 0; }
.print-school-meta { font-size: 0.7rem; margin: 2px 0; }
.print-doc-title { font-size: 0.8rem; color: #1E3A8A; margin: 0; }
.print-cycle-badge { font-size: 0.72rem; background: #E2E8F0; padding: 1px 8px; border-radius: 4px; }

.print-photo-box {
  width: 55px;
  height: 65px;
  border: 1.5px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: bold;
}

.print-section-block {
  border: 1px solid #666;
  margin-bottom: 8px;
  padding: 6px 10px;
}

.print-section-title {
  font-size: 0.72rem;
  background: #EEE;
  padding: 2px 6px;
  margin: -6px -10px 6px -10px;
  border-bottom: 1px solid #666;
}

.print-grid-3 { display: grid; grid-template-columns: 1.5fr 1.2fr 1fr; gap: 8px; font-size: 0.72rem; }
.print-grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; font-size: 0.72rem; }
.print-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 0.72rem; }

.print-auth-list { font-size: 0.7rem; }

.print-signatures-row {
  display: flex;
  justify-content: space-around;
  margin-top: 16px;
  padding-top: 10px;
}

.print-sig-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 180px;
}

.print-sig-line {
  width: 100%;
  border-bottom: 1px solid #000;
  margin-bottom: 4px;
}

.print-sig-name { font-size: 0.72rem; text-align: center; }
.print-sig-lbl { font-size: 0.62rem; color: #555; text-align: center; }

/* Navegación al Pie de la Carpeta */
.folder-tab-navigation-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1.5px dashed #E2E8F0;
}

.btn-folder-prev, .btn-folder-next {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1E293B;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-folder-prev:hover:not(:disabled), .btn-folder-next:hover:not(:disabled) {
  background: #1E3A8A;
  color: white;
  border-color: #1E3A8A;
}

.btn-folder-prev:disabled, .btn-folder-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.folder-tab-counter {
  font-size: 0.78rem;
  color: #64748B;
}

@media print {
  .folder-binder-rings-spine,
  .folder-index-tabs-bar,
  .folder-sheet-header,
  .folder-tab-navigation-footer,
  .tab-content-card,
  .student-file-top-toolbar {
    display: none !important;
  }

  .folder-binder-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .folder-sheet-body {
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .folder-tab-pane#pane_tab_full_sheet {
    display: block !important;
  }
}

/* ==========================================================================
   26. MÓDULO DE CITAS, ENTREVISTAS & REPORTES CON POST-ITS EN EL CALENDARIO
   ========================================================================== */

.appointments-module-page-shell {
  max-width: 1240px;
  margin: 0 auto;
}

.appointments-header-banner {
  background: linear-gradient(135deg, #7C3AED 0%, #6366F1 50%, #3B82F6 100%);
  border-radius: 20px;
  padding: 20px 24px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.2);
}

.icon-avatar-badge-appointments {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  backdrop-filter: blur(4px);
}

.appointments-main-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0;
  color: white;
}

.appointments-sub-title {
  font-size: 0.82rem;
  color: #EDE9FE;
  margin: 2px 0 0 0;
}

.appointments-stats-pills-row {
  display: flex;
  gap: 8px;
}

.stat-apt-pill {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(4px);
}

/* Barra de Herramientas */
.appointments-toolbar-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.toolbar-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.apt-month-select-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  color: #6366F1;
}

.apt-month-dropdown {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.82rem;
  color: #1E293B;
  cursor: pointer;
}

.apt-view-toggle-pills {
  display: flex;
  gap: 6px;
}

.btn-apt-view-pill {
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-apt-view-pill.active {
  background: #7C3AED;
  color: white;
  border-color: #7C3AED;
}

.toolbar-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-new-appointment {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-print-appointment {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --- VISTA 1: CALENDARIO CON POST-ITS ADHESIVOS --- */
.calendar-postits-container {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.04);
}

.calendar-month-banner {
  background: var(--banner-color, #0D9488);
  padding: 14px 20px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner-month-title {
  display: flex;
  flex-direction: column;
}

.month-name-big {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.month-meta-sub {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.85);
}

.postits-legend-row {
  display: flex;
  gap: 8px;
}

.legend-chip {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 700;
}

.calendar-weekdays-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #F8FAFC;
  border-bottom: 1.5px solid #CBD5E1;
  text-align: center;
}

.weekday-col {
  padding: 8px;
  font-size: 0.74rem;
  color: #475569;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-collapse: collapse;
}

.calendar-day-cell {
  min-height: 110px;
  border-right: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  padding: 6px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  transition: all 0.15s ease;
}

.calendar-day-cell:nth-child(7n) {
  border-right: none;
}

.cell-weekend {
  background: #F8FAFC;
}

.cell-empty {
  background: #F1F5F9;
  opacity: 0.5;
}

.day-cell-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.day-number {
  font-size: 0.95rem;
  color: #1E293B;
}

.btn-quick-add-postit {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.7rem;
  opacity: 0;
  transition: all 0.2s ease;
}

.calendar-day-cell:hover .btn-quick-add-postit {
  opacity: 1;
}

.btn-quick-add-postit:hover {
  background: #7C3AED;
  color: white;
  border-color: #7C3AED;
}

.day-postits-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

/* Post-It Adhesivo en el Calendario */
.calendar-sticky-postit {
  background: var(--postit-bg, #FEF08A);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  padding: 6px 8px;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  transform: rotate(-1deg);
}

.calendar-sticky-postit:hover {
  transform: scale(1.04) rotate(0deg);
  box-shadow: 4px 6px 14px rgba(0,0,0,0.18);
  z-index: 10;
}

.postit-pin {
  position: absolute;
  top: -8px;
  right: 6px;
  font-size: 0.85rem;
}

.postit-time {
  font-size: 0.65rem;
  color: #713F12;
}

.postit-title {
  font-size: 0.72rem;
  color: #1E293B;
  line-height: 1.15;
  margin: 1px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.postit-student {
  font-size: 0.65rem;
  color: #475569;
}

.postit-done-badge {
  display: inline-block;
  font-size: 0.58rem;
  background: #DCFCE7;
  color: #166534;
  border-radius: 4px;
  padding: 0 4px;
  margin-top: 2px;
  font-weight: 800;
}

/* --- VISTA 2: AGENDA & LISTADO DE CITAS --- */
.appointments-list-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.appointments-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-chips-row {
  display: flex;
  gap: 6px;
}

.btn-filter-chip {
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-filter-chip.active {
  background: #7C3AED;
  color: white;
  border-color: #7C3AED;
}

.appointments-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.appointment-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}

.appointment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.apt-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.apt-date-badge {
  font-size: 0.72rem;
  color: #6366F1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.apt-status-pill {
  font-size: 0.65rem;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
}

.status-programada { background: #FEF3C7; color: #B45309; }
.status-realizada  { background: #DCFCE7; color: #166534; }
.status-reprogramada { background: #E0E7FF; color: #4338CA; }
.status-cancelada  { background: #FEE2E2; color: #DC2626; }

.apt-card-title {
  font-size: 0.95rem;
  color: #0F172A;
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.apt-card-meta-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.apt-card-reason-box {
  background: #F8FAFC;
  border-radius: 8px;
  padding: 8px;
  font-size: 0.75rem;
  color: #334155;
  margin-bottom: 8px;
}

.apt-card-agreements-box {
  background: #F0FDF4;
  border: 1px dashed #86EFAC;
  border-radius: 8px;
  padding: 8px;
  font-size: 0.74rem;
  color: #166534;
  margin-bottom: 10px;
}

.apt-card-footer {
  border-top: 1px solid #F1F5F9;
  padding-top: 10px;
}

.apt-footer-actions {
  display: flex;
  gap: 6px;
}

.btn-apt-action {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1E293B;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-apt-action:hover { background: #E2E8F0; }
.btn-wa { background: #DCFCE7; color: #166534; text-decoration: none; border-color: #BBF7D0; }

/* --- VISTA 3: REPORTE OFICIAL DE ENTREVISTA --- */
.interview-report-official-sheet {
  background: #FFFFFF;
  border: 2px solid #000;
  padding: 20px 24px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.report-official-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #000;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.header-seal-icon { font-size: 2.2rem; }
.header-titles-center { text-align: center; }
.school-name { font-size: 1.15rem; margin: 0; }
.school-sub { font-size: 0.72rem; margin: 2px 0; }
.doc-title-badge { font-size: 0.85rem; color: #1E3A8A; margin: 2px 0; }
.cycle-pill { font-size: 0.72rem; background: #E2E8F0; padding: 1px 8px; border-radius: 4px; }
.folio-badge { background: #F1F5F9; border: 1px solid #CBD5E1; padding: 3px 8px; border-radius: 4px; font-size: 0.75rem; }

.report-section-box {
  border: 1px solid #666;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}

.section-badge-bar {
  padding: 4px 10px;
  font-size: 0.76rem;
}

.report-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 8px 12px; font-size: 0.76rem; }
.report-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px; font-size: 0.76rem; }

.text-content-framed {
  padding: 10px 12px;
  font-size: 0.78rem;
  line-height: 1.4;
  white-space: pre-line;
}

.report-signatures-grid {
  display: flex;
  justify-content: space-around;
  margin-top: 24px;
  padding-top: 10px;
}

.sign-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 190px;
}

.sign-draw-line {
  width: 100%;
  border-bottom: 1.5px solid #000;
  margin-bottom: 4px;
}

.sign-name { font-size: 0.74rem; text-align: center; }
.sign-sub { font-size: 0.64rem; color: #64748B; text-align: center; }

/* --- VISTA 4: CITATORIO FORMAL CON TALÓN DESPRENDIBLE --- */
.citation-slip-print-frame {
  background: #FFFFFF;
  border: 2px solid #000;
  padding: 20px;
}

.citation-main-body {
  padding-bottom: 16px;
}

.slip-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid #000;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.slip-seal { font-size: 1.8rem; }
.slip-title-center { text-align: center; }
.slip-school { font-size: 1.05rem; margin: 0; }
.slip-doc { font-size: 0.85rem; color: #1E3A8A; margin: 0; }
.slip-date { font-size: 0.76rem; }

.slip-salutation { font-size: 0.82rem; margin-bottom: 10px; }
.slip-text { font-size: 0.8rem; line-height: 1.4; margin-bottom: 10px; }
.slip-reason-box { background: #F8FAFC; border-left: 4px solid #3B82F6; padding: 8px 12px; font-size: 0.78rem; margin-bottom: 12px; }
.slip-closing { font-size: 0.78rem; margin-bottom: 16px; }

.slip-signatures-row {
  display: flex;
  justify-content: space-around;
  margin-top: 14px;
}

.slip-sig-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 180px;
}

.slip-line {
  width: 100%;
  border-bottom: 1px solid #000;
  margin-bottom: 4px;
}

.slip-cut-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  color: #64748B;
}

.scissor-icon { font-size: 1.2rem; }
.cut-line-dashed { flex: 1; overflow: hidden; white-space: nowrap; }
.cut-label { font-size: 0.65rem; color: #000; }

.citation-stub-body {
  background: #FAFAFA;
  border: 1.5px dashed #666;
  border-radius: 8px;
  padding: 12px 16px;
}

.stub-header { font-size: 0.76rem; margin-bottom: 6px; }
.stub-text { font-size: 0.74rem; margin-bottom: 8px; }

.stub-confirm-radios {
  display: flex;
  gap: 16px;
  font-size: 0.74rem;
  margin-bottom: 12px;
}

.stub-sign-row {
  display: flex;
  justify-content: flex-end;
}

.stub-sig-box {
  width: 220px;
  text-align: center;
  font-size: 0.7rem;
}

/* Modal de Citas */
.apt-modal-window {
  max-width: 640px;
  width: 95%;
}

.apt-form-scroll {
  max-height: 75vh;
  overflow-y: auto;
  padding-right: 6px;
}

@media print {
  .appointments-toolbar-card,
  .appointments-stats-pills-row,
  .btn-quick-add-postit,
  .btn-apt-action,
  .postits-legend-row {
    display: none !important;
  }
}

/* ==========================================================================
   27. MÓDULO DE EVALUACIÓN CONTINUA (GESDOC / NEM / DGETI)
   ========================================================================== */

.continuous-eval-page-shell {
  max-width: 1300px;
  margin: 0 auto;
}

/* Encabezado Superior GESDOC */
.gesdoc-top-navbar {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.gesdoc-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gesdoc-logo-icon {
  width: 40px;
  height: 40px;
  background: #2563EB;
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.gesdoc-brand-texts {
  display: flex;
  flex-direction: column;
}

.gesdoc-title-main {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #1E293B;
  letter-spacing: 0.5px;
}

.gesdoc-badge-sub {
  font-size: 0.72rem;
  color: #2563EB;
  background: #EFF6FF;
  padding: 1px 8px;
  border-radius: 4px;
  width: fit-content;
}

.gesdoc-cycle-info-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F0FDFA;
  border: 1px solid #99F6E4;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.78rem;
  color: #0F766E;
}

.gesdoc-user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.user-meta-texts {
  display: flex;
  flex-direction: column;
}

.user-name-title {
  font-size: 0.8rem;
  color: #1E293B;
}

.user-role-lbl {
  font-size: 0.68rem;
  color: #64748B;
}

/* 4 Pestañas Principales */
.continuous-eval-main-nav-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 2px solid #E2E8F0;
  padding-bottom: 8px;
}

.btn-eval-nav-tab {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-eval-nav-tab:hover {
  background: #F8FAFC;
}

.btn-eval-nav-tab.active {
  background: #881337;
  color: white;
  border-color: #881337;
  box-shadow: 0 4px 12px rgba(136, 19, 55, 0.25);
}

/* --- 1. PASE DE LISTA --- */
.attendance-tab-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.attendance-control-toolbar-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.subviews-btn-group {
  display: flex;
  gap: 8px;
}

.btn-subview-toggle {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.active-burgundy {
  background: #881337 !important;
  color: white !important;
  border-color: #881337 !important;
}

.attendance-selectors-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.select-pill-box {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
}

.lbl-mini {
  color: #64748B;
  font-size: 0.68rem;
  font-weight: 800;
}

.select-clean, .input-date-clean {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.78rem;
  color: #1E293B;
  cursor: pointer;
}

.btn-dgeti-print-action {
  background: #881337;
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

/* Barra de Estadísticas Diarias */
.attendance-daily-stats-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.stats-indicators-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stats-label-main {
  font-size: 0.8rem;
  color: #713F12;
}

.stat-indicator-pill {
  font-size: 0.78rem;
}

.stat-pct-badge {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  font-size: 0.76rem;
}

.stats-actions-group {
  display: flex;
  gap: 8px;
}

.btn-all-present-action {
  background: #065F46;
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-save-attendance-action {
  background: #881337;
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Grid de Tarjetas Visuales de Alumnos */
.attendance-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.student-attendance-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stu-att-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.stu-att-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.initials-txt { font-size: 0.85rem; line-height: 1; }
.list-num-badge { font-size: 0.55rem; opacity: 0.9; }

.stu-att-name-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stu-att-lastname {
  font-size: 0.76rem;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stu-att-firstname {
  font-size: 0.72rem;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stu-att-controlno {
  font-size: 0.65rem;
  color: #94A3B8;
}

.stu-att-buttons-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.btn-att-status {
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  background: #F8FAFC;
  color: #475569;
  padding: 6px 0;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-att-status:hover {
  background: #E2E8F0;
}

.btn-status-p.active { background: #059669 !important; color: white !important; border-color: #059669 !important; }
.btn-status-f.active { background: #DC2626 !important; color: white !important; border-color: #DC2626 !important; }
.btn-status-r.active { background: #D97706 !important; color: white !important; border-color: #D97706 !important; }
.btn-status-j.active { background: #2563EB !important; color: white !important; border-color: #2563EB !important; }

/* Matriz Mensual DGETI */
.attendance-monthly-matrix-wrap {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  overflow-x: auto;
}

.matrix-table-dgeti {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.matrix-table-dgeti th, .matrix-table-dgeti td {
  border: 1px solid #CBD5E1;
  padding: 6px 8px;
}

.matrix-table-dgeti th {
  background: #F1F5F9;
  color: #1E293B;
  text-align: center;
}

.th-p { background: #DCFCE7 !important; color: #166534 !important; }
.th-f { background: #FEE2E2 !important; color: #991B1B !important; }
.th-r { background: #FEF3C7 !important; color: #92400E !important; }
.th-j { background: #E0E7FF !important; color: #3730A3 !important; }

.cell-att { text-align: center; font-weight: bold; }
.cell-p { color: #059669; }
.cell-f { color: #DC2626; background: #FEE2E2; }
.cell-r { color: #D97706; background: #FEF3C7; }
.cell-j { color: #2563EB; background: #E0E7FF; }

/* --- 2. REGISTRO DE EVIDENCIAS & PLAN DE EVALUACIÓN --- */
.evidences-plan-tab-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.evidences-header-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.evidences-title-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.evidences-icon-purple {
  width: 44px;
  height: 44px;
  background: #F3E8FF;
  border: 1px solid #D8B4FE;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.evidences-main-title {
  font-size: 1.2rem;
  color: #1E293B;
  margin: 0;
}

.evidences-sub-title {
  font-size: 0.78rem;
  color: #64748B;
  margin: 2px 0 0 0;
}

.btn-new-evidence-purple {
  background: #7C3AED;
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.concentrado-actions-banner {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.concentrado-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
}

.btn-custom-evidence-add {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1E293B;
  cursor: pointer;
}

.concentrado-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ponderation-pill-display {
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 0.78rem;
  color: #166534;
}

.btn-dgeti-concentrado {
  background: #881337;
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 3 Columnas de Rubros */
.rubros-three-columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rubro-column-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}

.rubro-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F1F5F9;
}

.rubro-col-title {
  font-size: 0.82rem;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot-brown { color: #B45309; }
.dot-blue  { color: #2563EB; }
.dot-green { color: #059669; }

.badge-count-evidences {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #B45309;
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 700;
}

.evidences-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.evidence-item-row {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ev-item-info {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.ev-bullet { color: #64748B; }
.ev-code-badge { font-size: 0.74rem; color: #1E293B; }
.ev-name-txt { font-size: 0.74rem; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }

.ev-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ev-weight-chip {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
}

.chip-yellow { background: #FEF3C7; color: #B45309; }
.chip-blue   { background: #E0E7FF; color: #3730A3; }
.chip-green  { background: #DCFCE7; color: #166534; }

.btn-ev-icon {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
}

.btn-ev-icon:hover { color: #0F172A; }

.total-rubro-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.76rem;
  color: #166534;
}

.badge-total-green {
  background: #DCFCE7;
  padding: 2px 10px;
  border-radius: 6px;
}

/* --- 3. EVALUACIÓN FORMATIVA (CAPTURA RÁPIDA TIPO EXCEL) --- */
.excel-matrix-tab-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.excel-sum-total-banner {
  background: linear-gradient(135deg, #78350F 0%, #92400E 50%, #B45309 100%);
  border-radius: 16px;
  padding: 14px 20px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sum-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sum-pct-badge {
  background: #EA580C;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 1.2rem;
  color: white;
}

.sum-title { font-size: 1rem; margin: 0; }
.sum-sub { font-size: 0.74rem; color: #FDE68A; margin: 2px 0 0 0; }

.sum-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sum-pill-chip {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.74rem;
}

.sum-total-pill-chip {
  background: #10B981;
  color: white;
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 0.78rem;
}

/* Barra de Atajos */
.excel-keyboard-shortcuts-bar {
  background: #0F172A;
  border-radius: 12px;
  padding: 8px 16px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
}

.live-dot-green { color: #10B981; }

.shortcuts-pills {
  display: flex;
  gap: 12px;
}

.shortcut-tag kbd {
  background: #1E293B;
  border: 1px solid #475569;
  border-radius: 4px;
  padding: 1px 6px;
  color: #38BDF8;
}

/* Tabla Tipo Excel */
.excel-grid-table-container {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 14px;
  overflow-x: auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.excel-sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
}

.excel-sheet-table th, .excel-sheet-table td {
  border: 1px solid #CBD5E1;
  padding: 4px 6px;
}

.excel-sheet-table th {
  text-align: center;
  background: #F8FAFC;
  color: #1E293B;
  font-size: 0.72rem;
}

.th-group-proc { background: #FEF3C7 !important; color: #92400E !important; font-weight: bold; }
.th-group-conc { background: #E0E7FF !important; color: #3730A3 !important; font-weight: bold; }
.th-group-act  { background: #DCFCE7 !important; color: #166534 !important; font-weight: bold; }
.th-final      { background: #F1F5F9 !important; color: #0F172A !important; font-weight: bold; }

.td-num { width: 35px; }
.td-control { width: 110px; font-size: 0.7rem; }
.td-name { min-width: 190px; }

.td-cell-input {
  padding: 2px !important;
  width: 48px;
}

.excel-cell-input {
  width: 100%;
  border: 1px solid transparent;
  background: #FFFFFF;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  outline: none;
  padding: 3px 0;
  border-radius: 4px;
}

.excel-cell-input:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
  background: #EFF6FF;
}

.td-cell-pct {
  font-size: 0.68rem;
  width: 42px;
  background: #FAFAFA;
}

.td-final-score {
  font-size: 0.9rem;
  font-weight: 800;
}

.score-high { color: #059669; background: #DCFCE7; }
.score-mid  { color: #D97706; background: #FEF3C7; }
.score-low  { color: #DC2626; background: #FEE2E2; }

/* --- 4. GESTIÓN DE REPORTES & CITATORIOS --- */
.reports-citations-tab-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reports-header-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.reports-title-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reports-warning-icon {
  width: 44px;
  height: 44px;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.reports-main-title { font-size: 1.2rem; color: #1E293B; margin: 0; }
.reports-sub-title { font-size: 0.78rem; color: #64748B; margin: 2px 0 0 0; }

.reports-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-total-expedientes {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.76rem;
  color: #475569;
}

.btn-emit-report-burgundy {
  background: #881337;
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(136, 19, 55, 0.25);
}

/* 4 Tarjetas de Resumen */
.reports-summary-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.report-summary-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.card-summary-lbl { font-size: 0.7rem; font-weight: 800; color: #64748B; display: block; }
.card-summary-num { font-size: 1.8rem; line-height: 1.1; margin: 2px 0; }
.card-summary-sub { font-size: 0.72rem; color: #64748B; display: block; }
.card-summary-icon { font-size: 1.8rem; }

.card-inasistencias { background: #FFF1F2; border-color: #FECDD3; }
.card-academicas   { background: #FFFBEB; border-color: #FDE68A; }
.card-atendidos    { background: #F0FDF4; border-color: #BBF7D0; }

/* Filtro Dos Opciones */
.reports-filter-toggle-row {
  display: flex;
  align-items: center;
  margin: 4px 0;
}

.filter-two-options-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}

.btn-report-filter {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-report-filter.active {
  background: #1E293B;
  color: white;
  border-color: #1E293B;
}

.btn-filter-inasistencias.active {
  background: #DC2626 !important;
  border-color: #DC2626 !important;
}

.btn-filter-academicas.active {
  background: #D97706 !important;
  border-color: #D97706 !important;
}

/* Tabla Oficial de Citatorios */
.reports-official-table-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.table-header-title-bar {
  background: #F8FAFC;
  border-bottom: 1.5px solid #E2E8F0;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.t-title-left { font-size: 0.85rem; color: #78350F; display: flex; align-items: center; gap: 6px; }
.t-sub-right { font-size: 0.74rem; color: #64748B; }

.table-scroll-wrap {
  overflow-x: auto;
}

.official-reports-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.official-reports-table th {
  background: #F8FAFC;
  color: #475569;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1.5px solid #E2E8F0;
  font-size: 0.72rem;
}

.official-reports-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}

.stu-rep-name { font-size: 0.8rem; color: #0F172A; }
.stu-rep-mat { font-size: 0.68rem; color: #64748B; }

.badge-rep-type {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  letter-spacing: 0.5px;
}

.badge-inasistencias { background: #450A0A; color: #FECDD3; border: 1px solid #991B1B; }
.badge-academicas   { background: #451A03; color: #FED7AA; border: 1px solid #B45309; }

.td-motive-text { max-width: 240px; }
.motive-bold { font-size: 0.75rem; color: #1E293B; line-height: 1.25; }
.agreements-mini { font-size: 0.68rem; margin-top: 2px; }

.badge-status-pill {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
}

.rep-actions-btns {
  display: flex;
  gap: 6px;
}

.btn-action-round {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-action-round:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* Modales */
.evidence-modal-box { max-width: 520px; }
.report-issue-modal-box { max-width: 600px; }
.bg-purple { background: #7C3AED !important; color: white !important; }
.bg-burgundy { background: #881337 !important; color: white !important; }

/* Modal Específico de Citatorios a Tutores (GESDOC) */
.citatorio-modal-window {
  max-width: 500px;
  width: 95%;
  background: #FFFFFF;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  border: 1.5px solid #E2E8F0;
  animation: modalPopIn 0.25s ease-out;
}

.citatorio-modal-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid #F1F5F9;
}

.citatorio-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.citatorio-hash-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #881337;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
}

.citatorio-title-wrap {
  display: flex;
  flex-direction: column;
}

.citatorio-main-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #0F172A;
  margin: 0;
  line-height: 1.2;
}

.citatorio-sub-title {
  font-size: 0.72rem;
  color: #64748B;
  margin: 2px 0 0 0;
}

.btn-citatorio-close {
  background: transparent;
  border: none;
  color: #64748B;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-citatorio-close:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.citatorio-body-form {
  padding: 18px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.citatorio-field-lbl {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #78350F;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.citatorio-select-styled,
.citatorio-input-styled,
.citatorio-textarea-styled {
  width: 100%;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: #1E293B;
  outline: none;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.citatorio-select-styled:focus,
.citatorio-input-styled:focus,
.citatorio-textarea-styled:focus {
  border-color: #881337;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(136, 19, 55, 0.12);
}

.citatorio-modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1.5px dashed #E2E8F0;
}

.btn-citatorio-cancel {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-citatorio-cancel:hover {
  background: #E2E8F0;
}

.btn-citatorio-submit {
  background: #881337;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 22px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(136, 19, 55, 0.3);
  transition: all 0.2s ease;
}

.btn-citatorio-submit:hover {
  background: #9F1239;
  transform: translateY(-1px);
}

/* ==========================================================================
   28. CALENDARIO MENSUAL INTERACTIVO & CALENDARIO CON POST-ITS
   ========================================================================== */

/* --- Calendario Mensual con Stickers & Eventos (planner.js) --- */
.illustrated-calendar-sheet {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cal-month-header-banner {
  border: 2px solid #E2E8F0;
  border-radius: 18px;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cal-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cal-badge-pill {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.cal-month-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #0F172A;
  margin: 0;
}

.cal-badge-sub {
  font-size: 0.85rem;
  color: #64748B;
  background: #F1F5F9;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.btn-cal-new-event {
  background: #FFFFFF;
  border: 2px solid;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-cal-new-event:hover {
  background: #F8FAFC;
  transform: translateY(-1px);
}

.calendar-days-grid-modern {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.cal-weekday-header {
  text-align: center;
  padding: 10px 4px;
  background: #F1F5F9;
  color: #475569;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cal-day-cell {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  min-height: 105px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cal-day-cell:hover {
  background: #FFFFFF;
  border-color: #818CF8;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.08);
  transform: translateY(-2px);
}

.cal-day-cell.has-events {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.day-cell-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.day-number {
  font-size: 0.95rem;
  color: #1E293B;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.cal-day-cell:hover .day-number {
  background: #EEF2FF;
  color: #4F46E5;
}

.day-sticker-badge {
  font-size: 1.2rem;
}

.day-events-mini-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.mini-event-pill {
  background: #EEF2FF;
  border-left: 3px solid #4F46E5;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.68rem;
  color: #3730A3;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-event-pill .event-bullet {
  font-weight: bold;
  color: #4F46E5;
}

.mini-event-pill .event-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Calendario con Post-Its (appointments_reports.js) --- */
.appointments-module-page-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.appointments-header-banner {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.banner-title-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-avatar-badge-appointments {
  width: 48px;
  height: 48px;
  background: #CCFBF1;
  border: 2px solid #5EEAD4;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.appointments-main-title {
  font-size: 1.25rem;
  color: #0F172A;
  margin: 0;
}

.appointments-sub-title {
  font-size: 0.78rem;
  color: #64748B;
  margin: 2px 0 0 0;
}

.appointments-stats-pills-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-apt-pill {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1.5px solid transparent;
}

.stat-apt-pill.pill-total { background: #F1F5F9; border-color: #E2E8F0; color: #334155; }
.stat-apt-pill.pill-pending { background: #FEF3C7; border-color: #FDE68A; color: #92400E; }
.stat-apt-pill.pill-done { background: #DCFCE7; border-color: #86EFAC; color: #166534; }
.stat-apt-pill.pill-bap { background: #EDE9FE; border-color: #DDD6FE; color: #5B21B6; }

.appointments-view-toggle-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
}

.apt-view-buttons-group {
  display: flex;
  gap: 6px;
}

.btn-apt-view {
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-apt-view:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.btn-apt-view.active {
  background: #0D9488;
  color: white;
  box-shadow: 0 3px 10px rgba(13, 148, 136, 0.25);
}

.btn-new-appointment-action {
  background: #0D9488;
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
  transition: all 0.2s ease;
}

.btn-new-appointment-action:hover {
  background: #0F766E;
  transform: translateY(-1px);
}

/* Rejilla del Calendario con Post-Its */
.calendar-postits-container {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calendar-month-banner {
  border: 2px solid var(--banner-color);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, #FFFFFF 100%);
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.banner-month-title {
  display: flex;
  flex-direction: column;
}

.month-name-big {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #0F172A;
}

.month-meta-sub {
  font-size: 0.76rem;
  color: #64748B;
}

.postits-legend-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.legend-chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid #E2E8F0;
}

.chip-yellow { background: #FEF9C3; color: #854D0E; }
.chip-pink   { background: #FCE7F3; color: #9D174D; }
.chip-blue   { background: #E0F2FE; color: #075985; }
.chip-green  { background: #DCFCE7; color: #166534; }

.calendar-weekdays-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.weekday-col {
  text-align: center;
  padding: 8px 4px;
  background: #F8FAFC;
  color: #475569;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day-cell {
  background: #FCFCFE;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  min-height: 120px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
  position: relative;
}

.calendar-day-cell:hover {
  background: #FFFFFF;
  border-color: #0D9488;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.1);
}

.calendar-day-cell.cell-empty {
  background: #F8FAFC;
  border: 1px dashed #E2E8F0;
  opacity: 0.5;
  pointer-events: none;
}

.calendar-day-cell.cell-weekend {
  background: #FFFDF5;
}

.calendar-day-cell.cell-has-apts {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.btn-quick-add-postit {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.15s ease;
}

.calendar-day-cell:hover .btn-quick-add-postit {
  opacity: 1;
}

.btn-quick-add-postit:hover {
  background: #0D9488;
  color: white;
  border-color: #0D9488;
}

.day-postits-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

/* Post-It Adhesivo */
.calendar-sticky-postit {
  background: var(--postit-bg, #FEF08A);
  border-radius: 6px;
  padding: 8px 8px 6px 8px;
  box-shadow: 2px 4px 10px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  border-top: 3px solid rgba(0,0,0,0.08);
}

.calendar-sticky-postit:hover {
  transform: scale(1.04) rotate(1deg);
  box-shadow: 4px 8px 16px rgba(0,0,0,0.18);
  z-index: 10;
}

.postit-pin {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
}

.postit-time {
  font-size: 0.65rem;
  color: #475569;
  margin-bottom: 2px;
}

.postit-title {
  font-size: 0.72rem;
  color: #0F172A;
  line-height: 1.2;
}

.postit-student {
  font-size: 0.65rem;
  color: #334155;
  margin-top: 3px;
}

.postit-done-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  color: #166534;
  background: #DCFCE7;
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 4px;
}

/* ==========================================================================
   29. SELECTOR DE ROL DE USUARIO (DOCENTE / ADMINISTRADOR)
   ========================================================================== */
.user-role-selector-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.role-icon {
  width: 16px;
  height: 16px;
  color: #4F46E5;
}

.header-role-dropdown {
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: #1E293B;
  outline: none;
  cursor: pointer;
}

/* ==========================================================================
   30. CENTRO OFICIAL DE REPORTES & FORMATOS DEL TRIMESTRE (reports_center.js)
   ========================================================================== */
.reports-center-page-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.reports-center-header {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.reports-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.reports-icon-badge {
  width: 46px;
  height: 46px;
  background: #EEF2FF;
  border: 2px solid #818CF8;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.reports-center-title {
  font-size: 1.25rem;
  color: #0F172A;
  margin: 0;
}

.reports-center-subtitle {
  font-size: 0.78rem;
  color: #64748B;
  margin: 2px 0 0 0;
}

.btn-print-official {
  background: #ECFDF5;
  color: #047857;
  border: 1.5px solid #A7F3D0;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
  transition: all 0.2s ease;
}

.btn-print-official:hover {
  background: #D1FAE5;
  border-color: #6EE7B7;
  color: #065F46;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.25);
}

.report-formats-nav-bar {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.report-tabs-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.report-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.btn-report-tab {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-report-tab:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.btn-report-tab.active {
  background: #EEF2FF;
  color: #3730A3;
  border: 1.5px solid #C7D2FE;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.15);
}

/* LÁMINA OFICIAL IMPRIMIBLE */
.report-sheet-view-frame {
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.official-sheet-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* MEMBRETE OFICIAL SEP */
.sep-official-header-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2.5px solid #0F172A;
  padding-bottom: 12px;
}

.sep-logo-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sep-seal-emblem {
  font-size: 2.2rem;
}

.sep-text-stack {
  display: flex;
  flex-direction: column;
}

.sep-main {
  font-size: 0.95rem;
  color: #0F172A;
  letter-spacing: 0.5px;
}

.sep-sub {
  font-size: 0.68rem;
  color: #475569;
}

.sep-phase {
  font-size: 0.72rem;
  color: #4F46E5;
}

.sep-doc-title-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.doc-badge-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: 1px;
}

.doc-cycle {
  font-size: 0.74rem;
  color: #64748B;
}

.doc-period {
  font-size: 0.76rem;
  color: #166534;
  background: #DCFCE7;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 2px;
}

/* BARRA DE SELECCIÓN DE ALUMNO */
.student-select-toolbar {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.styled-student-dropdown {
  flex: 1;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  color: #1E293B;
  outline: none;
}

/* DATOS METADATA SEP */
.sep-meta-data-card {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.76rem;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-lbl {
  color: #64748B;
  font-weight: 700;
}

.meta-val {
  color: #0F172A;
}

.bap-alert-box {
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  color: #9F1239;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.74rem;
}

/* TABLA DE CALIFICACIONES OFICIAL SEP */
.sep-grades-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
  border: 1.5px solid #0F172A;
}

.sep-grades-table th, .sep-grades-table td {
  border: 1px solid #94A3B8;
  padding: 7px 8px;
}

.sep-grades-table th {
  background: #F1F5F9;
  color: #0F172A;
  text-align: center;
}

.td-campo-name {
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cf-dot {
  font-size: 0.9rem;
}

.dot-lenguajes { color: #E07798; }
.dot-saberes   { color: #4A86E8; }
.dot-etica     { color: #16A766; }
.dot-humano    { color: #FFA041; }

.td-grade-prom {
  background: #F8FAFC;
  font-weight: 800;
}

.td-obs-text {
  font-size: 0.72rem;
  color: #334155;
  line-height: 1.3;
}

.tr-total-prom {
  background: #F1F5F9;
}

.td-prom-highlight {
  font-size: 0.95rem;
  color: #4F46E5;
}

.td-asistencia-summary {
  color: #166534;
}

/* FIRMAS Y SELLOS */
.sep-signatures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: flex-end;
  margin-top: 24px;
}

.signature-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.signature-line {
  width: 180px;
  border-top: 1.5px solid #0F172A;
  margin-bottom: 6px;
}

.sign-name {
  font-size: 0.76rem;
  color: #0F172A;
}

.sign-role {
  font-size: 0.68rem;
  color: #64748B;
}

.seal-placeholder-box {
  width: 120px;
  height: 70px;
  border: 1.5px dashed #94A3B8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
}

.seal-text {
  font-size: 0.62rem;
  color: #94A3B8;
}

.sep-footer-legal {
  font-size: 0.62rem;
  color: #94A3B8;
  text-align: justify;
  border-top: 1px solid #E2E8F0;
  padding-top: 8px;
  margin-top: 10px;
}

/* BLOQUES DESCRIPTIVOS */
.descriptive-blocks-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.desc-card-block {
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  overflow: hidden;
}

.desc-block-header {
  padding: 8px 14px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-green { background: #DCFCE7; color: #166534; }
.header-amber { background: #FEF3C7; color: #92400E; }
.header-blue  { background: #E0F2FE; color: #075985; }

.desc-block-content {
  padding: 12px 16px;
  font-size: 0.76rem;
  color: #1E293B;
  background: #FFFFFF;
  line-height: 1.45;
}

.desc-bullets-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* TABLA REUNIÓN DE PADRES Y CTE */
.meeting-details-box {
  background: #F8FAFC;
  border-left: 4px solid #4F46E5;
  padding: 10px 16px;
  border-radius: 0 8px 8px 0;
}

.meeting-main-title { font-size: 1rem; color: #0F172A; margin: 0; }
.meeting-location-text { font-size: 0.74rem; color: #64748B; margin: 4px 0 0 0; }

.section-title-ribbon {
  display: inline-block;
  background: #4F46E5;
  color: white;
  font-size: 0.74rem;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.agenda-numbered-list, .agreements-list {
  font-size: 0.76rem;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.parents-attendance-signature-table, .cte-summary-table, .incidents-official-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
  border: 1.5px solid #0F172A;
}

.parents-attendance-signature-table th, .parents-attendance-signature-table td,
.cte-summary-table th, .cte-summary-table td,
.incidents-official-table th, .incidents-official-table td {
  border: 1px solid #CBD5E1;
  padding: 6px 8px;
}

.parents-attendance-signature-table th, .cte-summary-table th, .incidents-official-table th {
  background: #F1F5F9;
  color: #0F172A;
  font-weight: 800;
}

.performance-pill {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.badge-green { background: #DCFCE7; color: #166534; }
.badge-blue  { background: #E0F2FE; color: #075985; }
.badge-amber { background: #FEF3C7; color: #92400E; }
.badge-red   { background: #FEE2E2; color: #991B1B; }

/* ==========================================================================
   ESTILOS EDITORIALES PARA REPORTES EN FORMATO PDF / IMPRESIÓN OFICIAL
   ========================================================================== */
.editorial-report-document {
  font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  color: #2D3748;
  line-height: 1.45;
  background: #FFFFFF;
}

.editorial-report-header {
  margin-bottom: 14px;
}

.editorial-section-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.editorial-section-title {
  margin-bottom: 6px;
}

.editorial-kpi-card {
  transition: transform 0.15s ease;
}

.editorial-data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
  background: #FFFFFF;
}

.editorial-data-table th {
  background: #F1F5F9;
  color: #1E293B;
  font-weight: 800;
}

.editorial-data-table th, .editorial-data-table td {
  border: 1px solid #CBD5E1;
}

.editorial-signatures-block {
  margin-top: 20px;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 10mm;
  }
  
  body {
    background: #FFFFFF !important;
    font-size: 10pt !important;
    color: #1E293B !important;
  }

  .hide-on-print,
  #appLeftSidebar,
  #topModuleBar,
  .main-top-navbar,
  .reports-center-header,
  .report-formats-nav-bar,
  .student-select-toolbar {
    display: none !important;
  }

  .main-app-viewport,
  .main-content-layout,
  .reports-center-page-shell,
  .report-sheet-view-frame {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .editorial-report-document {
    width: 100% !important;
    padding: 0 !important;
  }

  .editorial-signatures-block,
  .editorial-kpi-grid,
  .official-signature-table,
  .foda-card-box,
  .incidencia-section-card {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .editorial-data-table,
  .editorial-section-box {
    page-break-inside: auto !important;
    break-inside: auto !important;
  }

  .editorial-data-table tr {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
}

.cte-stats-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.stat-card {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-card .stat-lbl { font-size: 0.68rem; color: #64748B; }
.stat-card .stat-val { font-size: 1.3rem; }

/* Subpestañas en Padres */
.parents-subtabs-bar {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 4px 8px;
  margin-bottom: 12px;
}

.subtabs-buttons-group {
  display: flex;
  gap: 6px;
}

.btn-subtab-parent {
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-subtab-parent:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.btn-subtab-parent.active {
  background: #4F46E5;
  color: white;
}

.parents-meetings-view-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.meetings-top-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
}

.meetings-section-title { font-size: 1.05rem; color: #0F172A; margin: 0; display: flex; align-items: center; gap: 8px; }

.btn-add-meeting {
  background: #16A34A;
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meetings-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meeting-item-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.meeting-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.meeting-badge-date {
  width: 50px;
  height: 50px;
  background: #EEF2FF;
  border: 2px solid #818CF8;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.meet-day { font-size: 1.1rem; color: #4F46E5; line-height: 1; }
.meet-month { font-size: 0.65rem; color: #3730A3; }

.meeting-header-info {
  flex: 1;
}

.meeting-title { font-size: 0.95rem; color: #0F172A; margin: 0; }
.meeting-meta-line { font-size: 0.74rem; color: #64748B; }

.meeting-card-actions {
  display: flex;
  gap: 6px;
}

.btn-edit-meeting, .btn-delete-meeting {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.meeting-body-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: #F8FAFC;
  padding: 12px 16px;
  border-radius: 10px;
}

.points-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.points-box .box-lbl { font-size: 0.74rem; color: #334155; }
.points-list { font-size: 0.72rem; color: #475569; padding-left: 16px; display: flex; flex-direction: column; gap: 2px; }

.meeting-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #F1F5F9;
  padding-top: 10px;
}

.badge-minutes-status {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.badge-signed { background: #DCFCE7; color: #166534; }
.badge-pending { background: #FEF3C7; color: #92400E; }

.btn-print-minutes {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   31. VENTANA FLOTANTE SUPERIOR PARA CREAR / EDITAR ALUMNO (MODAL)
   ========================================================================== */
.planner-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 16px 40px 16px;
  overflow-y: auto;
}

.planner-modal-window.floating-top-modal {
  background: #FFFFFF;
  border-radius: 22px;
  width: 100%;
  max-width: 820px;
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 2px solid #CBD5E1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalFloatTopEntrance 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 10px;
  margin-bottom: 40px;
}

@keyframes modalFloatTopEntrance {
  0% {
    opacity: 0;
    transform: translateY(-40px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header-banner {
  background: linear-gradient(135deg, #444C8A 0%, #5861AA 50%, #6C75C2 100%);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #5C67C7;
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-header-icon-box {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
}

.modal-badges-top-row {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.modal-badge-grade {
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  color: #E0E7FF;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.modal-badge-status {
  font-size: 0.68rem;
  font-weight: 800;
  background: #22C55E;
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.modal-main-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: #FFFFFF;
}

.btn-modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-close:hover {
  background: rgba(239, 68, 68, 0.9);
  border-color: #EF4444;
  transform: scale(1.08);
}

.modal-body-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(85vh - 110px);
  overflow-y: auto;
  background: #FFFFFF;
}

.modal-section-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  color: #4338CA;
  background: #EEF2FF;
  border-left: 4px solid #4F46E5;
  padding: 6px 14px;
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.form-three-cols-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.form-two-cols-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-group-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-lbl-bold {
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 4px;
}

.modal-input-styled {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 0.85rem;
  color: #1E293B;
  outline: none;
  transition: all 0.2s ease;
}

.modal-input-styled:focus {
  border-color: #4F46E5;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.bap-form-highlight {
  background: #FFF1F2;
  border: 1.5px solid #FECDD3;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-bap-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #9F1239;
  cursor: pointer;
}

.modal-textarea {
  background: #FFFFFF;
  border: 1.5px solid #FECDD3;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: #1E293B;
  outline: none;
  resize: vertical;
}

.modal-textarea:focus {
  border-color: #E11D48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

.modal-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1.5px solid #E2E8F0;
  padding-top: 18px;
  margin-top: 8px;
}

.footer-right-btns {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.btn-modal-save {
  background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  transition: all 0.2s ease;
}

.btn-modal-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
}

.btn-modal-cancel {
  background: #F1F5F9;
  color: #475569;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-cancel:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.btn-modal-delete {
  background: #FEE2E2;
  color: #DC2626;
  border: 1.5px solid #FCA5A5;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-modal-delete:hover {
  background: #DC2626;
  color: white;
}

/* ==========================================================================
   32. DIARIO DE LA EDUCADORA / DIARIO DEL DOCENTE (FORMATO ILUSTRADO FIEL)
   ========================================================================== */
.diary-worksheet-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}

.diary-top-controls {
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  border-radius: 18px;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.date-badge-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.82rem;
  color: #1E293B;
}

.diary-date-input {
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-weight: 800;
  color: #4F46E5;
  outline: none;
  cursor: pointer;
}

.format-view-toggle {
  display: flex;
  background: #F1F5F9;
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 4px;
}

.btn-fmt-tab {
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-fmt-tab.active {
  background: #FFFFFF;
  color: #4F46E5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.btn-cute-autofill {
  background: #FDF2F8;
  color: #DB2777;
  border: 1.5px solid #FBCFE8;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-cute-autofill:hover {
  background: #FCE7F3;
}

.btn-cute-print {
  background: #1E293B;
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-cute-save {
  background: #16A34A;
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* LÁMINA IMPRIMIBLE DEL DIARIO */
.diary-printable-page-frame {
  background: #FFFFFF;
  border: 3px solid #E2E8F0;
  border-radius: 20px;
  padding: 30px 36px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

/* ENCABEZADO MULTICOLOR */
.educadora-header-grid {
  display: grid;
  grid-template-columns: 100px 1fr 100px;
  align-items: center;
  margin-bottom: 4px;
}

.header-clipart-left {
  display: flex;
  justify-content: center;
}

.stack-of-books-illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.8rem;
  line-height: 1;
}

.glasses-icon { font-size: 1.4rem; margin-bottom: -6px; }
.books-icon { font-size: 2.2rem; }
.pencils-icon { font-size: 1.2rem; margin-top: -6px; }

.header-title-center {
  display: flex;
  justify-content: center;
  text-align: center;
}

.colorful-title-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.word-diario, .word-de-la {
  display: flex;
  gap: 4px;
}

.letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
}

.l-pink   { color: #EC4899; }
.l-orange { color: #F97316; }
.l-green  { color: #10B981; }
.l-purple { color: #8B5CF6; }
.l-red    { color: #EF4444; }
.l-blue   { color: #3B82F6; }

.word-educadora {
  display: flex;
  gap: 2px;
  margin-top: 2px;
}

.word-educadora .letter {
  font-size: 2.6rem;
  color: #6D28D9;
  letter-spacing: 2px;
}

.word-docente-sub {
  font-size: 0.72rem;
  font-weight: 800;
  color: #7C3AED;
  letter-spacing: 1px;
  margin-top: 2px;
  background: #F5F3FF;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.school-seal-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #FEF3C7;
  border: 1.5px dashed #F59E0B;
  border-radius: 12px;
  padding: 6px;
  text-align: center;
}

.school-cct-mini {
  font-size: 0.65rem;
  font-weight: 800;
  color: #92400E;
}

.school-star {
  font-size: 1.2rem;
}

/* BARRA DE FECHA Y DÍAS DE LA SEMANA */
.date-and-weekdays-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.date-capsule-box {
  display: flex;
  align-items: center;
  border: 2px solid #6D28D9;
  border-radius: 8px;
  overflow: hidden;
}

.date-capsule-lbl {
  background: #6D28D9;
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 14px;
}

.date-capsule-inputs {
  padding: 6px 16px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  color: #1E293B;
}

.date-val-slot {
  min-width: 24px;
  text-align: center;
}

.date-slash {
  color: #94A3B8;
}

.weekdays-selector-table {
  border: 2px solid #6D28D9;
  border-radius: 8px;
  overflow: hidden;
}

.weekday-header-row {
  display: flex;
  background: #6D28D9;
}

.wd-cell-hd {
  width: 32px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 0.78rem;
  border-right: 1px solid rgba(255,255,255,0.3);
}

.wd-cell-hd:last-child {
  border-right: none;
}

.wd-cell-hd.active-day {
  background: #FACC15;
  color: #713F12;
}

.weekday-boxes-row {
  display: flex;
  background: #FFFFFF;
}

.wd-cell-box {
  width: 32px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #E2E8F0;
  cursor: pointer;
  font-weight: 900;
  color: #6D28D9;
  font-size: 0.9rem;
}

.wd-cell-box:last-child {
  border-right: none;
}

.wd-cell-box input {
  display: none;
}

/* BLOQUE SUPERIOR DE DOS COLUMNAS */
.diary-upper-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.purple-ribbon-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.purple-ribbon-title {
  background: #6D28D9;
  color: white;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.ribbon-checkboxes-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px 6px;
}

.square-check-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.chk-lbl-text {
  font-size: 0.72rem;
  color: #1E293B;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.square-check-row input {
  display: none;
}

.custom-square-chk {
  width: 18px;
  height: 18px;
  border: 1.5px solid #6D28D9;
  border-radius: 3px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.square-check-row input:checked + .custom-square-chk::after {
  content: "✓";
  font-size: 0.8rem;
  font-weight: 900;
  color: #6D28D9;
}

.card-chk-line input:checked + .custom-square-chk::after {
  content: "✓";
  font-size: 0.8rem;
  font-weight: 900;
  color: #6D28D9;
}

.duo-chk input:checked + .custom-square-chk::after {
  content: "✓";
  font-size: 0.8rem;
  font-weight: 900;
  color: #6D28D9;
}

.attendance-count-pill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  border-top: 1px dashed #CBD5E1;
  padding-top: 6px;
}

.attendance-quick-counts {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-total-stu {
  background: #6D28D9;
  color: white;
  font-weight: 900;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-present-stu {
  font-size: 0.72rem;
  color: #166534;
  background: #DCFCE7;
  padding: 2px 8px;
  border-radius: 4px;
}

.center-learning-clipart {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.clipart-composition {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 2rem;
}

/* BLOQUE MEDIO: EN RELACIÓN CON LA PLANEACIÓN */
.planning-eval-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.purple-ribbon-header-bar {
  background: #6D28D9;
  color: white;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 900;
  padding: 5px 14px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.planning-cards-grid-six {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.eval-card-box {
  border: 1.5px solid #6D28D9;
  border-radius: 8px;
  padding: 8px 10px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.7rem;
}

.card-chk-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.card-chk-line input {
  display: none;
}

.card-line-text {
  font-size: 0.68rem;
  color: #1E293B;
  font-weight: 700;
  line-height: 1.25;
}

.card-question-title {
  font-weight: 800;
  color: #6D28D9;
  font-size: 0.72rem;
  margin-bottom: 2px;
}

/* ==========================================================================
   NUEVOS ESTILOS: PLAN DE CLASE DIARIO, INSTRUMENTOS, CALENDARIO Y EVALUACIÓN
   ========================================================================== */

/* 1. Barra de Selectores del Plan de Clase */
.lesson-plan-selectors-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #FFFFFF;
  padding: 12px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.sel-group-left, .sel-group-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.lp-select-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F8FAFC;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1.5px solid #E2E8F0;
}

.lp-sel-lbl {
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #475569;
}

.lp-select-input {
  border: none;
  background: transparent;
  font-size: 0.85rem;
  color: #1E293B;
  outline: none;
  cursor: pointer;
}

.btn-lp-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-lp-autoplan {
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-lp-edit {
  background: #EEF2FF;
  color: #4F46E5;
  border: 1.5px solid #C7D2FE;
}

.btn-lp-rubrics {
  background: #FDF2F8;
  color: #BE185D;
  border: 1.5px solid #FBCFE8;
}

.btn-lp-print {
  background: #1E293B;
  color: white;
}

/* 2. Lámina Oficial del Plan de Clase */
.official-class-plan-sheet {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1.5px solid #E2E8F0;
}

.plan-official-header-border {
  display: grid;
  grid-template-columns: 90px 1fr 200px;
  gap: 16px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 2px solid #E2E8F0;
}

.sep-official-logo {
  font-size: 1.6rem;
  background: #F1F5F9;
  padding: 8px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #CBD5E1;
}

.sub-seal-text {
  font-size: 0.65rem;
  font-weight: 800;
  color: #64748B;
  text-align: center;
  display: block;
  margin-top: 2px;
}

.school-name-hd {
  font-size: 1.2rem;
  color: #0F172A;
}

.school-cct-meta {
  font-size: 0.78rem;
  color: #475569;
}

.plan-doc-title {
  font-size: 1.05rem;
  margin-top: 4px;
}

.meta-date-card {
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  background: #F8FAFC;
}

.meta-date-card .m-lbl { font-size: 0.7rem; color: #64748B; display: block; }
.meta-date-card .m-val { font-size: 0.9rem; color: #0F172A; }
.m-field-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-block;
  margin-top: 4px;
}

.plan-project-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px 0;
}

.meta-cell {
  background: #F8FAFC;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  font-size: 0.82rem;
}

.full-width-cell {
  grid-column: 1 / -1;
}

.cell-tag {
  color: #64748B;
  display: block;
  font-size: 0.72rem;
  margin-bottom: 2px;
}

.cell-text {
  color: #1E293B;
}

/* Momentos de la Secuencia Didáctica */
.didactic-sequence-blocks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.moment-box-bordered {
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
}

.moment-hd-ribbon {
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid;
}

.moment-body-content {
  padding: 14px;
  background: #FFFFFF;
}

.moment-render-text {
  font-size: 0.88rem;
  color: #1E293B;
  line-height: 1.6;
  white-space: pre-wrap;
}

.moment-edit-textarea {
  width: 100%;
  padding: 10px;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
}

.plan-bottom-eval-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
  background: #F8FAFC;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
}

.eval-box-half h4 {
  font-size: 0.82rem;
  color: #334155;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.eval-box-half p {
  font-size: 0.82rem;
  color: #475569;
}

.official-signatures-three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.sig-box {
  text-align: center;
}

.sig-line {
  height: 40px;
  background: transparent !important;
  border: none !important;
  border-bottom: 1.5px solid #0F172A !important;
  margin: 0 20px 8px 20px;
}

.sig-name {
  display: block;
  font-size: 0.85rem;
  color: #0F172A;
}

.sig-role {
  font-size: 0.72rem;
  color: #64748B;
}

/* 3. Modal CRUD de Instrumentos de Evaluación */
.instruments-modal-card {
  max-width: 850px;
  background: #FFFFFF;
  border-radius: 16px;
}

.instruments-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E2E8F0;
}

.btn-add-inst {
  background: #4F46E5;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.instruments-crud-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.instruments-crud-table th {
  background: #F8FAFC;
  padding: 10px;
  font-weight: 800;
  text-align: left;
  border-bottom: 2px solid #E2E8F0;
  color: #475569;
}

.instruments-crud-table td {
  padding: 10px;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}

.inst-pill-badge {
  background: #EEF2FF;
  color: #4F46E5;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.75rem;
}

.inst-row-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-inst-action {
  border: none;
  background: #F1F5F9;
  color: #475569;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-inst-view:hover { background: #E0E7FF; color: #4338CA; }
.btn-inst-edit:hover { background: #FEF3C7; color: #D97706; }
.btn-inst-delete:hover { background: #FEE2E2; color: #DC2626; }

.instrument-inline-form-box {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

/* 4. Celdas del Calendario con Íconos Grandes de Documento */
.cal-day-cell-document {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
}

.cal-day-cell-document:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.day-document-large-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 6px 0;
}

.doc-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s ease;
}

.cal-day-cell-document:hover .doc-icon-badge {
  transform: scale(1.1);
}

.doc-emoji { font-size: 1.4rem; }
.doc-field-emoji {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 0.85rem;
}

.doc-click-lbl {
  font-size: 0.68rem;
  font-weight: 800;
}

/* 5. Checklist Diario & Libreta de Calificaciones */
.checklist-interactive-table, .gradebook-full-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: white;
}

.checklist-interactive-table th, .gradebook-full-table th {
  background: #F8FAFC;
  padding: 10px;
  font-weight: 800;
  border: 1px solid #E2E8F0;
}

.checklist-interactive-table td, .gradebook-full-table td {
  padding: 8px 10px;
  border: 1px solid #E2E8F0;
  vertical-align: middle;
}

.toggle-yes-no-group {
  display: inline-flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid #CBD5E1;
}

.btn-yn-toggle {
  border: none;
  background: #F8FAFC;
  color: #64748B;
  padding: 5px 12px;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
}

.btn-yn-yes.active {
  background: #10B981;
  color: white;
}

.btn-yn-no.active {
  background: #EF4444;
  color: white;
}

.input-checklist-note {
  width: 100%;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.8rem;
  outline: none;
}

.input-gb-grade {
  width: 50px;
  padding: 4px 6px;
  border: 1.5px solid #CBD5E1;
  border-radius: 6px;
  font-size: 0.82rem;
  text-align: center;
  font-weight: 700;
}

/* 6. Diario de Trabajo del Docente */
.official-teacher-diary-sheet {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1.5px solid #E2E8F0;
}

.diary-official-header-border {
  display: grid;
  grid-template-columns: 110px 1fr 200px;
  gap: 16px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 2px solid #E2E8F0;
}

.diary-section-box {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px;
}

.sec-hd {
  font-size: 0.88rem;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chk-stat-box {
  background: #F8FAFC;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  text-align: center;
}

.chk-stat-val {
  display: block;
  font-size: 1.3rem;
}

.chk-stat-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748B;
}

.checklist-summary-three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.coverage-question-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #F8FAFC;
  padding: 10px 14px;
  border-radius: 8px;
}

.radio-coverage-group {
  display: flex;
  gap: 14px;
}

.coverage-radio {
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.diary-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
}

/* ==========================================================================
   ESTILOS DE MODAL Y FACSÍMIL DE PÁGINA INICIAL LIBRO DE TEXTO SEP (LTG)
   ========================================================================== */
.ltg-page-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ltg-page-modal-window {
  background: #FFFFFF;
  border-radius: 20px;
  width: 100%;
  max-width: 840px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  border: 3px solid #6366F1;
  overflow: hidden;
  animation: ltgModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ltgModalPop {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.ltg-modal-top-bar {
  background: linear-gradient(135deg, #444C8A 0%, #5861AA 50%, #6C75C2 100%);
  color: white;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #5C67C7;
}

.ltg-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ltg-modal-badge {
  background: #F59E0B;
  color: #78350F;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ltg-modal-sub-title {
  font-size: 0.95rem;
  color: #F8FAFC;
}

.ltg-modal-body-scroll {
  padding: 24px;
  overflow-y: auto;
  background: #F1F5F9;
  flex: 1;
}

/* Hoja Facsímil Estilo Libro CONALITEG SEP */
.ltg-facsimile-page-sheet {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0,0,0,0.05);
  padding: 28px;
  border: 1px solid #CBD5E1;
  position: relative;
}

.facsimile-header-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed #E2E8F0;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.f-conaliteg-logo {
  color: #475569;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.f-scenario-badge {
  background: #EEF2FF;
  color: #4F46E5;
  border: 1px solid #C7D2FE;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-left: 8px;
}

.f-grade-tag {
  color: #64748B;
  font-size: 0.8rem;
}

.facsimile-official-header-line {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.facsimile-content-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.facsimile-title-banner {
  background: #F8FAFC;
  padding: 14px 18px;
  border-radius: 8px;
}

.f-project-tag {
  font-size: 0.7rem;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
}

.facsimile-project-title {
  font-size: 1.3rem;
  color: #0F172A;
  margin: 0;
  line-height: 1.25;
}

.facsimile-pda-box {
  background: #FEF3C7;
  border-left: 4px solid #F59E0B;
  padding: 12px 16px;
  border-radius: 6px;
}

.pda-label {
  color: #92400E;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 4px;
}

.pda-text {
  color: #78350F;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

.facsimile-illustration-box {
  background: #EFF6FF;
  border: 2px dashed #93C5FD;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

.facsimile-art-badge {
  color: #1D4ED8;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.art-icon-cluster {
  font-size: 2.5rem;
  margin-bottom: 8px;
  letter-spacing: 4px;
}

.facsimile-art-desc {
  color: #1E40AF;
  font-size: 0.85rem;
  margin: 0;
}

.facsimile-intro-card {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  padding: 14px 16px;
  border-radius: 8px;
}

.intro-card-title {
  color: #166534;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 4px;
}

.intro-card-paragraph {
  color: #14532D;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

.facsimile-activity-box {
  background: #FAF5FF;
  border-left: 4px solid #A855F7;
  padding: 14px 16px;
  border-radius: 6px;
}

.act-step-badge {
  color: #7E22CE;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.act-step-text {
  color: #581C87;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

.facsimile-footer-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid #E2E8F0;
  margin-top: 20px;
  padding-top: 12px;
}

.f-verif-badge {
  color: #059669;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.facsimile-page-number-box {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 0.8rem;
}

.f-num-circle {
  background: #475569;
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* Botón Ver Página Inicial del Libro */
.btn-preview-ltg-page {
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  color: #FFFFFF !important;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.35);
  transition: all 0.2s ease;
  margin-top: 4px;
}

.btn-preview-ltg-page:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.45);
  background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
}

/* ==========================================================================
   ESTILOS PLAN CLASE GENERAL (INTEGRACIÓN DE LOS 4 CAMPOS FORMATIVOS)
   ========================================================================== */
.general-plan-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.general-plan-4fields-badge {
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  color: #4338CA;
  border: 1.5px solid #C7D2FE;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.general-sheet-frame {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  border: 1px solid #CBD5E1;
}

.general-plan-4fields-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 28px;
}

.general-field-card-block {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.general-field-card-header {
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.g-field-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.g-field-num-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.g-field-name {
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.g-field-methodology-badge {
  background: #FFFFFF;
  border: 1px solid;
  padding: 2px 10px;
  border-radius: 14px;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.general-field-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.general-field-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: #F8FAFC;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #F1F5F9;
}

.g-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.g-lbl {
  font-size: 0.75rem;
  color: #64748B;
  text-transform: uppercase;
}

.g-val {
  font-size: 0.85rem;
  color: #0F172A;
  line-height: 1.35;
}

.general-field-moments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.g-moment-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.g-moment-inicio { border-top: 3px solid #EC4899; background: #FDF2F8; }
.g-moment-desarrollo { border-top: 3px solid #3B82F6; background: #EFF6FF; }
.g-moment-cierre { border-top: 3px solid #22C55E; background: #F0FDF4; }

.g-moment-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.g-time {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.7);
  padding: 1px 6px;
  border-radius: 10px;
}

.g-moment-p {
  font-size: 0.8rem;
  color: #334155;
  margin: 0;
  line-height: 1.35;
}

.general-field-footer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #F1F5F9;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
}

.g-foot-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.g-foot-lbl {
  color: #475569;
}

.g-foot-val {
  color: #0F172A;
}

.plan-official-signatures-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 30px;
  padding-top: 20px;
}

.sig-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sig-line {
  width: 70%;
  height: 40px;
  background: transparent !important;
  border: none !important;
  border-bottom: 1.5px solid #0F172A !important;
  margin: 0 auto 6px auto;
}

.sig-role {
  font-size: 0.8rem;
  color: #334155;
}

.sig-name {
  font-size: 0.8rem;
  color: #64748B;
}

@media (max-width: 768px) {
  .general-field-moments-grid { grid-template-columns: 1fr; }
  .general-field-meta-row { grid-template-columns: 1fr; }
  .general-field-footer-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ESTILOS DASHBOARD DESPLEGABLE DE MÓDULOS (TOP NAVIGATION DASHBOARD)
   ========================================================================== */
.dashboard-dropdown-wrapper {
  position: relative;
  width: 100%;
  z-index: 1000;
}

.dashboard-trigger-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 8px 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1.5px solid #E2E8F0;
}

.btn-dashboard-toggle {
  background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  transition: all 0.25s ease;
}

.btn-dashboard-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, #4338CA 0%, #3730A3 100%);
}

.chevron-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.chevron-icon.rotate-180 {
  transform: rotate(180deg);
}

.dashboard-active-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
}

.active-lbl {
  color: #64748B;
  font-weight: 500;
}

.active-name {
  color: #1E293B;
}

.active-badge {
  background: #4F46E5;
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
}

.dashboard-quick-strip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-mod-btn {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.quick-mod-btn:hover, .quick-mod-btn.active {
  background: #EEF2FF;
  color: #4338CA;
  border-color: #C7D2FE;
}

/* Panel Desplegable Flotante */
.dashboard-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
  border: 1.5px solid #CBD5E1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}

.dashboard-dropdown-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dashboard-panel-header {
  border-bottom: 2px solid #F1F5F9;
  padding-bottom: 12px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.panel-hd-title {
  font-size: 0.95rem;
  color: #1E1B4B;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.panel-hd-subtitle {
  font-size: 0.8rem;
  color: #64748B;
}

.dashboard-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.dashboard-category-card {
  background: #F8FAFC;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid #E2E8F0;
}

.category-hd {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid;
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-modules-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-mod-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.dash-mod-item:hover, .dash-mod-item.active {
  transform: translateX(4px);
  border-color: #818CF8;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.12);
  background: #F5F3FF;
}

.dash-mod-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-mod-title {
  font-size: 0.85rem;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-mod-desc {
  font-size: 0.72rem;
  color: #64748B;
}

.dash-mod-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: #EEF2FF;
  color: #4338CA;
  white-space: nowrap;
}

@media (max-width: 992px) {
  .dashboard-categories-grid { grid-template-columns: 1fr; }
  .dashboard-trigger-bar { flex-direction: column; align-items: stretch; }
  .dashboard-active-pill { justify-content: center; }
}

/* ==========================================================================
   ESTILOS BARRA NAVEGACIÓN DESPLEGABLE (SELECT DROPDOWN MENU)
   ========================================================================== */
.top-nav-select-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 8px 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1.5px solid #E2E8F0;
  width: 100%;
}

.top-nav-module-title {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #4F46E5 0%, #3730A3 100%);
  border: 1.5px solid #312E81;
  padding: 7px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.mod-name {
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.top-nav-quick-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-pill-btn {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  color: #475569;
  padding: 7px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.22s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.quick-pill-btn:hover {
  background: #EEF2FF;
  color: #4338CA;
  border-color: #C7D2FE;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.12);
}

.quick-pill-btn.active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #FFFFFF;
  border-color: #065F46;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
  transform: translateY(-1px);
}

.quick-pill-btn.active i {
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .top-nav-select-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .top-nav-select-wrapper {
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   ESTILOS SIDEBAR LATERAL IZQUIERDO COLAPSABLE / OCULTABLE
   ========================================================================== */
.planner-workspace-shell {
  display: flex;
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-left-sidebar {
  width: 275px;
  min-width: 275px;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 22px;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 40px);
  position: sticky;
  top: 20px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.app-left-sidebar.collapsed {
  width: 0px;
  min-width: 0px;
  padding: 0;
  margin-right: -16px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-24px);
}

.planner-book-frame {
  flex: 1;
  min-width: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
  padding: 18px 20px;
  border-bottom: 1.5px solid #444C8A;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #444C8A 0%, #5861AA 50%, #6C75C2 100%);
  color: #FFFFFF;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6C75C2 0%, #5C67C7 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(92, 103, 199, 0.35);
}

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

.sidebar-brand .brand-title {
  font-size: 1.05rem;
  color: #FFFFFF !important;
  letter-spacing: -0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.brand-subtitle {
  font-size: 0.73rem;
  color: #C7D2FE;
  font-weight: 500;
}

.btn-collapse-sidebar {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.btn-collapse-sidebar:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.sidebar-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-group-title {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  padding: 6px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.sidebar-group:nth-child(1) .sidebar-group-title {
  color: #3730A3;
  background: #EEF2FF;
  border-left: 3.5px solid #4F46E5;
}

.sidebar-group:nth-child(2) .sidebar-group-title {
  color: #065F46;
  background: #ECFDF5;
  border-left: 3.5px solid #10B981;
}

.sidebar-menu-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sidebar-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-menu-item i {
  color: #64748B;
  transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar-menu-item:hover {
  background: #EEF2FF;
  border-color: #C7D2FE;
  color: #3730A3;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.12);
}

.sidebar-menu-item:hover i {
  color: #4F46E5;
  transform: scale(1.1);
}

.sidebar-menu-item.active {
  background: linear-gradient(135deg, #4F46E5 0%, #3730A3 100%);
  color: #FFFFFF;
  font-weight: 700;
  border-color: #3730A3;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.sidebar-menu-item.active i {
  color: #FFFFFF;
}

.sidebar-footer {
  padding: 14px;
  border-top: 1.5px solid #E2E8F0;
  background: linear-gradient(135deg, #FFFFFF 0%, #F1F5F9 100%);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.user-pill i {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3);
}

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

.u-name {
  font-size: 0.83rem;
  color: #0F172A;
}

.u-role {
  font-size: 0.72rem;
  color: #64748B;
}

.btn-toggle-left-sidebar {
  background: linear-gradient(135deg, #5C67C7 0%, #4852A9 100%);
  color: #FFFFFF;
  border: none;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 0.86rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(92, 103, 199, 0.25);
  transition: all 0.22s ease;
  white-space: nowrap;
}

.btn-toggle-left-sidebar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(92, 103, 199, 0.35);
}

.btn-toggle-left-sidebar.sidebar-closed {
  background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

/* ==========================================================================
   ESTILOS DE COLOR POST-IT PARA EL SIDEBAR LATERAL
   ========================================================================== */

/* 1. Yellow Post-It */
.sidebar-menu-item.postit-yellow {
  background: #FFFBEB;
  border: 1.5px solid #FDE68A;
  color: #78350F;
}
.sidebar-menu-item.postit-yellow i { color: #D97706; }
.sidebar-menu-item.postit-yellow:hover {
  background: #FEF3C7;
  border-color: #FBBF24;
  color: #78350F;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.18);
}
.sidebar-menu-item.postit-yellow.active {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  border-color: #B45309;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}
.sidebar-menu-item.postit-yellow.active i { color: #FFFFFF; }

/* 2. Amber Post-It */
.sidebar-menu-item.postit-amber {
  background: #FFF7ED;
  border: 1.5px solid #FDBA74;
  color: #7C2D12;
}
.sidebar-menu-item.postit-amber i { color: #EA580C; }
.sidebar-menu-item.postit-amber:hover {
  background: #FFEDD5;
  border-color: #FB923C;
  color: #7C2D12;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.18);
}
.sidebar-menu-item.postit-amber.active {
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  border-color: #C2410C;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
}
.sidebar-menu-item.postit-amber.active i { color: #FFFFFF; }

/* 3. Mint Post-It */
.sidebar-menu-item.postit-mint {
  background: #ECFDF5;
  border: 1.5px solid #A7F3D0;
  color: #064E3B;
}
.sidebar-menu-item.postit-mint i { color: #059669; }
.sidebar-menu-item.postit-mint:hover {
  background: #D1FAE5;
  border-color: #6EE7B7;
  color: #064E3B;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.18);
}
.sidebar-menu-item.postit-mint.active {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border-color: #047857;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}
.sidebar-menu-item.postit-mint.active i { color: #FFFFFF; }

/* 4. Cyan Post-It */
.sidebar-menu-item.postit-cyan {
  background: #F0F9FF;
  border: 1.5px solid #BAE6FD;
  color: #0C4A6E;
}
.sidebar-menu-item.postit-cyan i { color: #0284C7; }
.sidebar-menu-item.postit-cyan:hover {
  background: #E0F2FE;
  border-color: #7DD3FC;
  color: #0C4A6E;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.18);
}
.sidebar-menu-item.postit-cyan.active {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
  border-color: #0369A1;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}
.sidebar-menu-item.postit-cyan.active i { color: #FFFFFF; }

/* 5. Lavender Post-It */
.sidebar-menu-item.postit-lavender {
  background: #F5F3FF;
  border: 1.5px solid #DDD6FE;
  color: #4C1D95;
}
.sidebar-menu-item.postit-lavender i { color: #7C3AED; }
.sidebar-menu-item.postit-lavender:hover {
  background: #EDE9FE;
  border-color: #C4B5FD;
  color: #4C1D95;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.18);
}
.sidebar-menu-item.postit-lavender.active {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  border-color: #6D28D9;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}
.sidebar-menu-item.postit-lavender.active i { color: #FFFFFF; }

/* 6. Pink Post-It */
.sidebar-menu-item.postit-pink {
  background: #FDF2F8;
  border: 1.5px solid #FBCFE8;
  color: #831843;
}
.sidebar-menu-item.postit-pink i { color: #DB2777; }
.sidebar-menu-item.postit-pink:hover {
  background: #FCE7F3;
  border-color: #F9A8D4;
  color: #831843;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(219, 39, 119, 0.18);
}
.sidebar-menu-item.postit-pink.active {
  background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
  border-color: #BE185D;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(219, 39, 119, 0.35);
}
.sidebar-menu-item.postit-pink.active i { color: #FFFFFF; }

/* 7. Salmon / Coral Post-It */
.sidebar-menu-item.postit-salmon {
  background: #FFF1F2;
  border: 1.5px solid #FECDD3;
  color: #881337;
}
.sidebar-menu-item.postit-salmon i { color: #E11D48; }
.sidebar-menu-item.postit-salmon:hover {
  background: #FFE4E6;
  border-color: #FDA4AF;
  color: #881337;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.18);
}
.sidebar-menu-item.postit-salmon.active {
  background: linear-gradient(135deg, #F43F5E 0%, #E11D48 100%);
  border-color: #BE123C;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.35);
}
.sidebar-menu-item.postit-salmon.active i { color: #FFFFFF; }

/* 8. Gold Post-It */
.sidebar-menu-item.postit-gold {
  background: #FEFCE8;
  border: 1.5px solid #FEF08A;
  color: #713F12;
}
.sidebar-menu-item.postit-gold i { color: #CA8A04; }
.sidebar-menu-item.postit-gold:hover {
  background: #FEF9C3;
  border-color: #FDE047;
  color: #713F12;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(202, 138, 4, 0.18);
}
.sidebar-menu-item.postit-gold.active {
  background: linear-gradient(135deg, #EAB308 0%, #CA8A04 100%);
  border-color: #A16207;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(202, 138, 4, 0.35);
}
.sidebar-menu-item.postit-gold.active i { color: #FFFFFF; }

/* 9. Lime Post-It */
.sidebar-menu-item.postit-lime {
  background: #F7FEE7;
  border: 1.5px solid #D9F99D;
  color: #365314;
}
.sidebar-menu-item.postit-lime i { color: #65A30D; }
.sidebar-menu-item.postit-lime:hover {
  background: #ECFCCB;
  border-color: #BEF264;
  color: #365314;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(101, 163, 13, 0.18);
}
.sidebar-menu-item.postit-lime.active {
  background: linear-gradient(135deg, #84CC16 0%, #65A30D 100%);
  border-color: #4D7C0F;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(101, 163, 13, 0.35);
}
.sidebar-menu-item.postit-lime.active i { color: #FFFFFF; }

/* 10. Sky Blue Post-It */
.sidebar-menu-item.postit-sky {
  background: #F0FDFA;
  border: 1.5px solid #99F6E4;
  color: #134E4A;
}
.sidebar-menu-item.postit-sky i { color: #0D9488; }
.sidebar-menu-item.postit-sky:hover {
  background: #CCFBF1;
  border-color: #5EEAD4;
  color: #134E4A;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.18);
}
.sidebar-menu-item.postit-sky.active {
  background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
  border-color: #0F766E;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}
.sidebar-menu-item.postit-sky.active i { color: #FFFFFF; }

/* 11. Purple Post-It */
.sidebar-menu-item.postit-purple {
  background: #FAF5FF;
  border: 1.5px solid #E9D5FF;
  color: #581C87;
}
.sidebar-menu-item.postit-purple i { color: #9333EA; }
.sidebar-menu-item.postit-purple:hover {
  background: #F3E8FF;
  border-color: #D8B4FE;
  color: #581C87;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.18);
}
.sidebar-menu-item.postit-purple.active {
  background: linear-gradient(135deg, #A855F7 0%, #9333EA 100%);
  border-color: #7E22CE;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(147, 51, 234, 0.35);
}
.sidebar-menu-item.postit-purple.active i { color: #FFFFFF; }

/* 12. Rose Post-It */
.sidebar-menu-item.postit-rose {
  background: #FFF1F2;
  border: 1.5px solid #FECDD3;
  color: #881337;
}
.sidebar-menu-item.postit-rose i { color: #E11D48; }
.sidebar-menu-item.postit-rose:hover {
  background: #FFE4E6;
  border-color: #FDA4AF;
  color: #881337;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.18);
}
.sidebar-menu-item.postit-rose.active {
  background: linear-gradient(135deg, #F43F5E 0%, #E11D48 100%);
  border-color: #BE123C;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.35);
}
.sidebar-menu-item.postit-rose.active i { color: #FFFFFF; }

/* 13. Orange Post-It */
.sidebar-menu-item.postit-orange {
  background: #FFF7ED;
  border: 1.5px solid #FED7AA;
  color: #7C2D12;
}
.sidebar-menu-item.postit-orange i { color: #F97316; }
.sidebar-menu-item.postit-orange:hover {
  background: #FFEDD5;
  border-color: #FB923C;
  color: #7C2D12;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.18);
}
.sidebar-menu-item.postit-orange.active {
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  border-color: #C2410C;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.35);
}
.sidebar-menu-item.postit-orange.active i { color: #FFFFFF; }

/* ==========================================================================
   TITULO DE LISTA DE ASISTENCIA (COMPACTO Y ARMONICO)
   ========================================================================== */
.bubble-title-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 6px;
}

.bubble-list-title {
  font-size: 1.3rem !important;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 1.5px;
  margin: 0 !important;
  padding: 4px 12px;
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.bubble-list-title span[class^="l-"] {
  display: inline-block;
  font-size: 1.3rem !important;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.l-pink { color: #EC4899; }
.l-orange { color: #F97316; }
.l-yellow { color: #EAB308; }
.l-green { color: #10B981; }
.l-blue { color: #3B82F6; }
.l-purple { color: #8B5CF6; }
.l-space { margin: 0 3px; }

/* ==========================================================================
   SELECTOR DE MES TIPO PÍLDORA CÁLIDA (LADO SUPERIOR DERECHO)
   ========================================================================== */
.module-subnav-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 4px;
}

.month-selector-badge-group-right {
  display: flex;
  justify-content: flex-end;
}

.pill-month-selector-container {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF3E0;
  border: 2px solid #FB923C;
  border-radius: 9999px;
  padding: 5px 20px;
  box-shadow: 0 2px 8px rgba(251, 146, 60, 0.18);
  position: relative;
  transition: all 0.22s ease;
}

.pill-month-selector-container:hover {
  background: #FFE0B2;
  border-color: #EA580C;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
  transform: translateY(-1px);
}

.pill-month-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #7C2D12;
  letter-spacing: 0.5px;
  pointer-events: none;
  font-family: inherit;
}

.pill-month-select {
  background: transparent;
  border: none;
  color: #7C2D12;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  padding-right: 22px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237C2D12' stroke-width='2.5' 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 center;
}

.pill-month-select option {
  background: #FFFFFF;
  color: #1E293B;
  font-weight: 600;
}

/* ==========================================================================
   ALINEACIÓN Y ESTILIZACIÓN DE DÍAS HÁBILES EN TABLA DE ASISTENCIA
   ========================================================================== */
.th-day-letter {
  text-align: center !important;
  vertical-align: middle !important;
  padding: 4px 2px !important;
  min-width: 34px !important;
  width: 36px !important;
  height: 48px !important;
  background: #F8FAFC !important;
  border: 1px solid #CBD5E1 !important;
  user-select: none;
}

.day-cell-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  width: 100% !important;
  height: 100% !important;
}

.day-letter {
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.day-num-micro {
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  color: #64748B !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.th-day-letter.col-highlight {
  background: #FEF08A !important;
  border-color: #F59E0B !important;
}

.th-day-letter.col-highlight .day-letter {
  color: #78350F !important;
}

.th-day-letter.col-highlight .day-num-micro {
  color: #92400E !important;
}

/* ==========================================================================
   ENCOBEZADO DE ASISTENCIA: TITULO (IZQ), DOCENTE (A UN COSTADO), GRUPO Y MES (DER)
   ========================================================================== */
.crayon-sheet-header {
  margin-bottom: 12px;
  padding: 6px 12px;
}

.crayon-header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.header-pill-docente, .header-pill-grupo {
  margin: 0 !important;
  white-space: nowrap;
}

/* ==========================================================================
   BARRA DE HERRAMIENTAS Y PAGINACIÓN EN UNA SOLA FILA UNIFICADA
   ========================================================================== */
.excel-toolbar-bar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 14px !important;
  padding: 8px 14px !important;
  margin-bottom: 12px !important;
  overflow-x: auto !important;
}

.db-nav-controls {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
}

.btn-db-nav {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  color: #1E293B !important;
  padding: 6px 12px !important;
  border-radius: 12px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
}

.btn-db-nav:hover {
  background: #EEF2FF !important;
  color: #4338CA !important;
  border-color: #C7D2FE !important;
}

.db-record-indicator {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  padding: 6px 14px !important;
  border-radius: 12px !important;
  font-size: 0.82rem !important;
  color: #475569 !important;
  white-space: nowrap !important;
}

.page-size-selector-group {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
}

.page-size-selector-group label {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #64748B !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.size-pills-row {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.btn-size-pill {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  color: #475569 !important;
  padding: 5px 10px !important;
  border-radius: 10px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-size-pill:hover, .btn-size-pill.active {
  background: #4F46E5 !important;
  color: #FFFFFF !important;
  border-color: #3730A3 !important;
}

.excel-actions-group {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
}

.btn-excel-quick-action {
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  color: #1E293B !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.btn-excel-quick-action:hover {
  background: #059669 !important;
  color: #FFFFFF !important;
  border-color: #047857 !important;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25) !important;
}

/* ==========================================================================
   ESTILOS DE POST-ITS Y AGENDA INTERACTIVA EN EL CALENDARIO
   ========================================================================== */
.postit-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 8px 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.filter-pills-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-postit-filter {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  color: #475569;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-postit-filter:hover, .btn-postit-filter.active {
  background: #FEF3C7;
  color: #78350F;
  border-color: #FBBF24;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.15);
}

.postit-day-cell {
  position: relative;
  min-height: 120px;
  padding: 6px;
}

.btn-quick-add-postit {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  color: #78350F;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  margin-left: auto;
}

.btn-quick-add-postit:hover {
  background: #F59E0B;
  color: #FFFFFF;
  border-color: #B45309;
}

.postits-container-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.postit-card {
  padding: 8px 10px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
}

.postit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.postit-card.completed {
  opacity: 0.55;
  text-decoration: line-through;
}

.postit-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 4px;
}

.postit-time {
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.postit-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  opacity: 0.8;
}

.postit-card:hover .postit-actions {
  opacity: 1;
}

.btn-postit-action {
  background: rgba(255, 255, 255, 0.6);
  border: none;
  border-radius: 4px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.7rem;
  transition: all 0.15s ease;
}

.btn-postit-action:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.15);
}

.postit-title {
  font-size: 0.82rem;
  line-height: 1.25;
}

.postit-notes-text {
  font-size: 0.74rem;
  margin-top: 4px;
  opacity: 0.9;
  line-height: 1.2;
}

/* Post-It Color Themes */
.postit-card.postit-yellow { background: #FFFBEB; border-color: #FDE68A; color: #78350F; }
.postit-card.postit-lavender { background: #F5F3FF; border-color: #DDD6FE; color: #4C1D95; }
.postit-card.postit-amber { background: #FFF7ED; border-color: #FDBA74; color: #7C2D12; }
.postit-card.postit-coral { background: #FFF1F2; border-color: #FECDD3; color: #881337; }
.postit-card.postit-mint { background: #ECFDF5; border-color: #A7F3D0; color: #064E3B; }
.postit-card.postit-sky { background: #F0F9FF; border-color: #BAE6FD; color: #0C4A6E; }

/* Modal Backdrop & Dialog */
.modal-backdrop-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.modal-backdrop-overlay.modal-active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card-dialog {
  background: #FFFFFF;
  border-radius: 18px;
  width: 90%;
  max-width: 540px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalPopIn 0.22s ease-out;
}

@keyframes modalPopIn {
  from { transform: scale(0.92) translateY(12px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.color-options-radio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.color-radio-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.color-radio-card:hover {
  transform: scale(1.02);
}

/* Chips de Post-Its en celdas de Calendario */
.cal-mini-postits-container {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.cal-mini-postit-chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.cal-mini-postit-chip.postit-yellow { background: #FFFBEB; color: #78350F; border-color: #FDE68A; }
.cal-mini-postit-chip.postit-lavender { background: #F5F3FF; color: #4C1D95; border-color: #DDD6FE; }
.cal-mini-postit-chip.postit-amber { background: #FFF7ED; color: #7C2D12; border-color: #FDBA74; }
.cal-mini-postit-chip.postit-coral { background: #FFF1F2; color: #881337; border-color: #FECDD3; }
.cal-mini-postit-chip.postit-mint { background: #ECFDF5; color: #064E3B; border-color: #A7F3D0; }
.cal-mini-postit-chip.postit-sky { background: #F0F9FF; color: #0C4A6E; border-color: #BAE6FD; }
.cal-mini-postit-chip.postit-pink { background: #FDF2F8; color: #831843; border-color: #FBCFE8; }
.cal-mini-postit-chip.postit-teal { background: #F0FDFA; color: #134E4A; border-color: #99F6E4; }

/* Estilos de Notas Adhesivas que Ocupan el 80% de la Celda del Calendario */
.postit-day-cell {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 6px;
  background: #FAFAFA;
}

.postits-container-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  min-height: 80%;
}

.postit-card {
  flex: 1;
  min-height: 85px;
  width: 100%;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Outfit', sans-serif;
  border-left: 5px solid;
}

.postit-card:hover {
  transform: translateY(-2px) rotate(-0.5deg);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.postit-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 4px;
}

.postit-title {
  font-size: 0.88rem;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 4px;
}

.postit-notes-text {
  font-size: 0.78rem;
  opacity: 0.9;
  line-height: 1.2;
}

/* Colores Vibrantes de Notas Adhesivas 80% */
.postit-card.postit-yellow { background: #FEF08A; border-color: #EAB308; color: #713F12; }
.postit-card.postit-lavender { background: #DDD6FE; border-color: #8B5CF6; color: #4C1D95; }
.postit-card.postit-amber { background: #FDE68A; border-color: #F59E0B; color: #78350F; }
.postit-card.postit-coral { background: #FECDD3; border-color: #F43F5E; color: #881337; }
.postit-card.postit-mint { background: #A7F3D0; border-color: #10B981; color: #064E3B; }
.postit-card.postit-sky { background: #BAE6FD; border-color: #0EA5E9; color: #0C4A6E; }
.postit-card.postit-pink { background: #FBCFE8; border-color: #EC4899; color: #831843; }
.postit-card.postit-teal { background: #99F6E4; border-color: #14B8A6; color: #134E4A; }

/* Perfil de Docente en Miniatura y Menú Desplegable (Configuración General y Salir) */
.header-teacher-profile-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.btn-teacher-profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  padding: 5px 14px 5px 6px;
  border-radius: 99px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.btn-teacher-profile-pill:hover {
  background: #F8FAFC;
  border-color: #4F46E5;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.15);
  transform: translateY(-1px);
}

.teacher-avatar-mini-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
  overflow: hidden;
  border: 2px solid #FFFFFF;
}

.teacher-avatar-emoji {
  font-size: 1.3rem;
  line-height: 1;
}

.teacher-profile-mini-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.teacher-mini-name {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  color: #0F172A;
  line-height: 1.1;
}

.teacher-mini-role {
  font-size: 0.72rem;
  color: #64748B;
}

.profile-arrow-icon {
  width: 16px;
  height: 16px;
  color: #64748B;
  transition: transform 0.2s ease;
}

.btn-teacher-profile-pill.active .profile-arrow-icon {
  transform: rotate(180deg);
}

/* Menú Desplegable Flotante de Perfil */
.teacher-profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 270px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  padding: 12px;
  animation: dropdownSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownSlideIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.p-dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
}

.p-header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.p-header-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.p-header-name {
  font-size: 0.86rem;
  color: #0F172A;
}

.p-header-sub {
  font-size: 0.74rem;
  color: #64748B;
}

.p-dropdown-divider {
  height: 1px;
  background: #E2E8F0;
  margin: 8px 0;
}

.p-dropdown-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.p-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.p-menu-item:hover {
  background: #F1F5F9;
  color: #0F172A;
  transform: translateX(2px);
}

.p-menu-item svg {
  width: 18px;
  height: 18px;
}

.p-menu-logout {
  color: #E11D48;
}

.p-menu-logout:hover {
  background: #FFE4E6;
  color: #BE123C;
}

/* Pestañas de Sub-Navegación con Rectángulos Redondeados y Colores Vibrantes */
.module-subnav-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 8px;
  background: #F8FAFC;
  border-radius: 18px;
  border: 1.5px solid #CBD5E1;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
}

.subnav-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.subnav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 14px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.subnav-btn i, .subnav-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.subnav-btn:hover {
  transform: translateY(-2px);
  background: #F1F5F9;
  border-color: #4F46E5;
  color: #0F172A;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.subnav-btn:hover i, .subnav-btn:hover svg {
  transform: scale(1.15) rotate(-3deg);
}

/* Colores Vibrantes para Pestaña Activa (Rectángulos Redondeados) */
.subnav-btn.active {
  color: #FFFFFF !important;
  border-color: transparent !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* Pestaña 1: Calendario Escolar SEP (Azul Océano / Cobalto) */
.subnav-btn[data-caltab="sep_calendar"] {
  border-color: #BAE6FD;
  color: #0369A1;
}
.subnav-btn[data-caltab="sep_calendar"]:hover {
  background: #F0F9FF;
  border-color: #0284C7;
  color: #0284C7;
}
.subnav-btn[data-caltab="sep_calendar"].active {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35) !important;
}

/* Pestaña 2: Agenda Interactiva & Post-Its (Rosa Fucsia & Púrpura Vibrante) */
.subnav-btn[data-caltab="postits_agenda"] {
  border-color: #FBCFE8;
  color: #BE185D;
}
.subnav-btn[data-caltab="postits_agenda"]:hover {
  background: #FDF2F8;
  border-color: #D946EF;
  color: #C026D3;
}
.subnav-btn[data-caltab="postits_agenda"].active {
  background: linear-gradient(135deg, #D946EF 0%, #7C3AED 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 20px rgba(217, 70, 239, 0.35) !important;
}

/* Pestañas Sub-Navegación Generales */
.subnav-btn[data-subtab="monthly_grid"].active {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35) !important;
}

.subnav-btn[data-subtab="seating"].active {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35) !important;
}

.subnav-btn[data-subtab="incidents"].active {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35) !important;
}

/* Botones de Vista del Planner con Rectángulos Redondeados, Alta Visibilidad y Colores Específicos */
.view-switch-group {
  display: flex;
  background: #F8FAFC;
  padding: 8px;
  border-radius: 18px;
  gap: 8px;
  border: 1.5px solid #CBD5E1;
  flex-wrap: wrap;
}

.btn-view-switch {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 0.6rem;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  text-align: center;
}

/* 1. Plan Analítico NEM */
.btn-view-switch[data-view="plan_analitico"] {
  background: #F3E8FF;
  border: 2px solid #C084FC;
  color: #6B21A8;
}
.btn-view-switch[data-view="plan_analitico"]:hover {
  background: #E9D5FF;
  transform: translateY(-2px);
}
.btn-view-switch[data-view="plan_analitico"].active {
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.4) !important;
  transform: translateY(-2px);
}

/* 2. Formulario & Dosificación */
.btn-view-switch[data-view="form_curricular_dosification"] {
  background: #FEF3C7;
  border: 2px solid #FBBF24;
  color: #92400E;
}
.btn-view-switch[data-view="form_curricular_dosification"]:hover {
  background: #FDE68A;
  transform: translateY(-2px);
}
.btn-view-switch[data-view="form_curricular_dosification"].active {
  background: linear-gradient(135deg, #F59E0B 0%, #B45309 100%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4) !important;
  transform: translateY(-2px);
}

/* 3. Plan de Clase */
.btn-view-switch[data-view="lesson_plan"] {
  background: #E0E7FF;
  border: 2px solid #818CF8;
  color: #3730A3;
}
.btn-view-switch[data-view="lesson_plan"]:hover {
  background: #C7D2FE;
  transform: translateY(-2px);
}
.btn-view-switch[data-view="lesson_plan"].active {
  background: linear-gradient(135deg, #4F46E5 0%, #3730A3 100%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4) !important;
  transform: translateY(-2px);
}

/* 4. Plan Clase General */
.btn-view-switch[data-view="general_lesson_plan"] {
  background: #CFFAFE;
  border: 2px solid #22D3EE;
  color: #0E7490;
}
.btn-view-switch[data-view="general_lesson_plan"]:hover {
  background: #A5F3FC;
  transform: translateY(-2px);
}
.btn-view-switch[data-view="general_lesson_plan"].active {
  background: linear-gradient(135deg, #06B6D4 0%, #0E7490 100%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.4) !important;
  transform: translateY(-2px);
}

/* 5. Calendario CRUD */
.btn-view-switch[data-view="monthly_calendar"] {
  background: #FFE4E6;
  border: 2px solid #FB7185;
  color: #9F1239;
}
.btn-view-switch[data-view="monthly_calendar"]:hover {
  background: #FECDD3;
  transform: translateY(-2px);
}
.btn-view-switch[data-view="monthly_calendar"].active {
  background: linear-gradient(135deg, #E11D48 0%, #9F1239 100%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.4) !important;
  transform: translateY(-2px);
}

/* 6. Reporte Semanal */
.btn-view-switch[data-view="weekly_agenda_report"] {
  background: #FDF2F8;
  border: 2px solid #F472B6;
  color: #BE185D;
}
.btn-view-switch[data-view="weekly_agenda_report"]:hover {
  background: #FBCFE8;
  transform: translateY(-2px);
}
.btn-view-switch[data-view="weekly_agenda_report"].active {
  background: linear-gradient(135deg, #EC4899 0%, #BE185D 100%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.4) !important;
  transform: translateY(-2px);
}

/* 7. Secuencia Anual */
.btn-view-switch[data-view="annual_sequence"] {
  background: #F0F9FF;
  border: 2px solid #38BDF8;
  color: #0369A1;
}
.btn-view-switch[data-view="annual_sequence"]:hover {
  background: #BAE6FD;
  transform: translateY(-2px);
}
.btn-view-switch[data-view="annual_sequence"].active {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4) !important;
  transform: translateY(-2px);
}

/* 8. Planificador Matriz */
.btn-view-switch[data-view="weekly_illustrated"] {
  background: #ECFDF5;
  border: 2px solid #34D399;
  color: #047857;
}
.btn-view-switch[data-view="weekly_illustrated"]:hover {
  background: #A7F3D0;
  transform: translateY(-2px);
}
.btn-view-switch[data-view="weekly_illustrated"].active {
  background: linear-gradient(135deg, #10B981 0%, #047857 100%) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   21. PESTAÑAS LATERALES DE MESES ESCOLARES (SIDE MONTH TABS TRACK)
   ========================================================================== */
.side-month-tabs-track {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: flex-start;
  z-index: 99;
  flex-shrink: 0;
  min-width: 52px;
  position: sticky;
  top: 72px;
  height: calc(100vh - 90px);
  min-height: 540px;
  max-height: calc(100vh - 80px);
  padding: 6px 0;
  gap: 3px;
  user-select: none;
}

.side-month-tab {
  flex: 1;
  width: 48px;
  min-height: 34px;
  max-height: 58px;
  background-color: var(--tab-color, #E2E8F0);
  border: 1.5px solid #CBD5E1;
  border-left: none;
  border-radius: 0 10px 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.side-month-tab .tab-abbr {
  font-family: var(--font-heading), 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--tab-text-color, #334155);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.side-month-tab:hover {
  width: 58px;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
  filter: brightness(1.03);
}

.side-month-tab.active {
  width: 64px;
  border: 1.5px solid #818CF8;
  border-left: none;
  box-shadow: 4px 4px 14px rgba(99, 102, 241, 0.18);
  z-index: 55;
  filter: brightness(1.05);
  transform: translateX(4px);
  border-radius: 0 12px 12px 0;
}

.side-month-tab.active .tab-abbr {
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--tab-text-color, #1E293B);
}

.side-month-tab.active::after {
  content: '★';
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.68rem;
  color: var(--tab-text-color, #1E293B);
}

@media print {
  .side-month-tabs-track {
    display: none !important;
  }
}

/* ==========================================================================
   ESTILOS PARA EL ASISTENTE DE CONFIGURACIÓN INICIAL (WIZARD 3 PASOS)
   ========================================================================== */
.setup-wizard-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 99999;
  padding: 2.5vh 16px 24px 16px;
  overflow-y: auto;
}

.setup-wizard-card {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1px solid #E2E8F0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 94vh;
  animation: modalFadeIn 0.3s ease-out;
}

.wizard-header {
  background: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 50%, #FAF5FF 100%);
  color: #1E293B;
  padding: 16px 28px 12px 28px;
  text-align: center;
  border-bottom: 1px solid #E2E8F0;
}

.wizard-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E0E7FF;
  color: #4338CA;
  border: 1px solid #C7D2FE;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.wizard-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 2px;
  letter-spacing: -0.3px;
}

.wizard-subtitle {
  font-size: 0.82rem;
  color: #64748B;
  margin-bottom: 12px;
}

/* Indicador de Pasos */
.wizard-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 500px;
  margin: 0 auto;
}

.step-indicator-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748B;
  opacity: 0.75;
  transition: all 0.2s ease;
}

.step-indicator-item.active {
  opacity: 1;
  color: #3730A3;
}

.step-indicator-item.completed {
  opacity: 1;
  color: #065F46;
}

.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  transition: all 0.2s ease;
}

.step-indicator-item.active .step-circle {
  background: #EEF2FF;
  border: 2px solid #818CF8;
  color: #4338CA;
  box-shadow: 0 2px 6px rgba(129, 140, 248, 0.2);
}

.step-indicator-item.completed .step-circle {
  background: #ECFDF5;
  border: 1.5px solid #A7F3D0;
  color: #059669;
}

.step-label {
  font-size: 0.76rem;
  font-weight: 700;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #E2E8F0;
  border-radius: 2px;
}

.step-line.active {
  background: #A7F3D0;
}

.wizard-body {
  padding: 14px 28px 18px 28px;
  overflow-y: auto;
  flex: 1;
}

.step-panel-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #1E293B;
  margin-top: 0;
  margin-bottom: 2px;
}

.step-panel-desc {
  font-size: 0.84rem;
  color: #64748B;
  margin-bottom: 12px;
  line-height: 1.35;
}

.wizard-grid-2col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}

.wizard-form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }

.form-group-wz {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.form-group-wz label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.wz-input, .wz-select {
  padding: 8px 12px;
  border-radius: 9px;
  border: 1.5px solid #CBD5E1;
  font-size: 0.88rem;
  background: #FAFAFC;
  color: #1E293B;
  outline: none;
  transition: all 0.2s ease;
}

.wz-input:focus, .wz-select:focus {
  background: #FFFFFF;
  border-color: #A5B4FC;
  box-shadow: 0 0 0 3px rgba(165, 180, 252, 0.25);
}

/* Columna Multimedia & Cámara Web */
.wizard-media-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 1.5px dashed #CBD5E1;
  border-radius: 14px;
  padding: 12px 16px;
}

.photo-preview-wrap {
  margin-bottom: 10px;
}

.avatar-circle-large {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #EEF2FF;
  border: 3px solid #C7D2FE;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.avatar-circle-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder-text {
  font-size: 2.5rem;
}

.webcam-box {
  position: relative;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #C7D2FE;
}

.webcam-box video {
  width: 100%;
  max-width: 280px;
  display: block;
}

.webcam-overlay-notice {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(220, 38, 38, 0.85);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
}

.media-actions-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.btn-wz-media {
  padding: 8px 12px;
  border-radius: 9px;
  border: 1.5px solid #CBD5E1;
  background: white;
  font-weight: 700;
  font-size: 0.82rem;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-wz-media:hover {
  background: #F5F3FF;
  border-color: #C4B5FD;
  color: #6D28D9;
}

.btn-wz-media.btn-capture {
  background: #ECFDF5;
  color: #047857;
  border-color: #A7F3D0;
}

.btn-wz-media.btn-capture:hover {
  background: #D1FAE5;
  color: #065F46;
  border-color: #6EE7B7;
}

/* Panel de Instrucciones de Excel */
.excel-instructions-card {
  background: #F0F9FF;
  border: 1.5px solid #BAE6FD;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}

.instructions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.instructions-header h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0369A1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-download-template {
  background: #E0F2FE;
  color: #0284C7;
  border: 1.5px solid #BAE6FD;
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-download-template:hover {
  background: #0284C7;
  color: white;
  border-color: #0284C7;
}

.excel-structure-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.excel-structure-table th, .excel-structure-table td {
  padding: 5px 8px;
  border: 1px solid #E2E8F0;
  text-align: left;
}

.excel-structure-table th {
  background: #E0F2FE;
  color: #0369A1;
  font-weight: 800;
}

/* Dropzone de Excel */
.excel-upload-dropzone {
  border: 2px dashed #C4B5FD;
  background: #FAF5FF;
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.excel-upload-dropzone.drag-active {
  background: #F3E8FF;
  border-color: #A855F7;
}

.dropzone-icon {
  width: 42px;
  height: 42px;
  color: #8B5CF6;
  margin-bottom: 6px;
}

.excel-upload-dropzone h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #4C1D95;
  margin-bottom: 3px;
}

.excel-upload-dropzone p {
  font-size: 0.82rem;
  color: #7C3AED;
}

.demo-fallback-box {
  margin-top: 14px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.82rem;
  color: #64748B;
}

.wizard-footer {
  padding: 14px 28px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-wizard-prev {
  background: white;
  border: 1.5px solid #CBD5E1;
  padding: 8px 16px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.84rem;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-wizard-prev:hover {
  background: #F1F5F9;
  color: #1E293B;
}

.btn-wizard-next {
  background: linear-gradient(135deg, #818CF8 0%, #A78BFA 100%);
  color: white;
  border: none;
  padding: 9px 20px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(129, 140, 248, 0.25);
  transition: all 0.2s ease;
}

.btn-wizard-next:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.btn-wizard-finish {
  background: linear-gradient(135deg, #34D399 0%, #059669 100%);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 3px 10px rgba(52, 211, 153, 0.25);
  transition: all 0.2s ease;
}

/* ==========================================================================
   ESTILOS REESTRUCTURADOS MÓDULO DE EVALUACIÓN CONTINUA Y FORMATIVA (NEM)
   ========================================================================== */
.eval-descriptive-header-card {
  background: var(--bg-card, #FFFFFF);
  border: 1.5px solid var(--border, #CBD5E1);
  border-radius: 18px;
  padding: 14px 20px 12px 20px;
  margin-bottom: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.eval-descriptive-header-card .dh-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--border, #E2E8F0);
  margin-bottom: 10px;
}

.eval-descriptive-header-card .dh-teacher-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eval-descriptive-header-card .dh-avatar {
  font-size: 2rem;
  background: var(--accent-soft, #EEF2FF);
  border: 1px solid var(--border, #C7D2FE);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eval-descriptive-header-card .dh-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-main, #0F172A);
  font-weight: 800;
}

.eval-descriptive-header-card .dh-subtitle {
  margin: 4px 0 0 0;
  font-size: 0.85rem;
  color: var(--text-muted, #64748B);
}

.eval-descriptive-header-card .dh-group-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.eval-descriptive-header-card .dh-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
}

.dh-badge-grade { background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; }
.dh-badge-phase { background: #E0E7FF; color: #3730A3; border: 1px solid #A5B4FC; }
.dh-badge-year { background: #DCFCE7; color: #166534; border: 1px solid #86EFAC; }

.eval-descriptive-header-card .dh-controls-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.eval-descriptive-header-card .dh-control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eval-descriptive-header-card .dh-select {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border, #CBD5E1);
  background: var(--bg-card, #FFFFFF);
  color: var(--text-main, #0F172A);
  font-size: 0.85rem;
}

.dh-info-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main, #0F172A);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dh-informative-term-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 10px;
  background: var(--accent-soft, #EEF2FF);
  border: 1.5px solid var(--border, #CBD5E1);
  color: var(--text-main, #0F172A);
  font-size: 0.85rem;
  font-weight: 700;
}

.dh-informative-term-badge .term-highlight {
  font-weight: 800;
  color: var(--accent, #4F46E5);
}

.dh-informative-term-badge .term-range {
  font-size: 0.78rem;
  color: var(--text-muted, #64748B);
  font-weight: 600;
}

/* ==========================================================================
   BANNER DE TÍTULOS DE EVIDENCIAS EN EL ENCABEZADO
   ========================================================================== */
.dh-weekly-evidences-titles-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 12px 0 16px 0;
  padding: 12px 14px;
  background: var(--bg-main, #F8FAFC);
  border: 1.5px dashed var(--border, #CBD5E1);
  border-radius: 14px;
}

.title-pill-card {
  background: var(--bg-card, #FFFFFF);
  border: 1.5px solid var(--border, #CBD5E1);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  transition: transform 0.2s ease;
}

.title-pill-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent, #4F46E5);
}

.title-pill-card .pill-icon {
  font-size: 1.3rem;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pill-tarea .pill-icon { background: #FEF3C7; }
.pill-ejercicio .pill-icon { background: #E0E7FF; }
.pill-proyecto .pill-icon { background: #DCFCE7; }
.pill-desempeno .pill-icon { background: #FCE7F3; }

.title-pill-card .pill-text-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.title-pill-card .pill-category-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-muted, #64748B);
}

.title-pill-card .pill-title-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main, #0F172A);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.title-pill-card .pill-meta-badge {
  font-size: 0.72rem;
  color: var(--text-muted, #64748B);
  font-weight: 600;
  margin-top: 2px;
}

.btn-sync-ai-evidences {
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  color: #FFFFFF;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
  transition: all 0.2s ease;
}

.btn-sync-ai-evidences:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

.eval-campos-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px dashed var(--border, #E2E8F0);
}

.eval-integrated-controls-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
  background: var(--accent-soft, #F8FAFC);
  border: 1.5px solid var(--border, #E2E8F0);
  border-radius: 14px;
  margin: 4px 0;
}

.eval-campos-filter-bar-inside {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.eval-days-filter-bar-inside {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--border, #CBD5E1);
}

.eval-campos-filter-bar-inside .filter-label,
.eval-days-filter-bar-inside .filter-label,
.eval-campos-filter-bar .filter-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-muted, #64748B);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.btn-campo-pill {
  padding: 4px 10px;
  border-radius: 20px;
  border: 1.5px solid var(--border, #CBD5E1);
  background: var(--bg-card, #FFFFFF);
  color: var(--text-main, #475569);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-campo-pill:hover { background: var(--accent-soft, #F8FAFC); border-color: var(--accent, #6366F1); transform: translateY(-1px); }
.btn-campo-pill.active { background: var(--accent, #6366F1); color: #FFFFFF; border-color: transparent; box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3); transform: translateY(-1px); }

.btn-campo-pill.campo-leng.active { background: #E879F9; color: #FFFFFF; }
.btn-campo-pill.campo-sab.active { background: #3B82F6; color: #FFFFFF; }
.btn-campo-pill.campo-eti.active { background: #10B981; color: #FFFFFF; }
.btn-campo-pill.campo-hum.active { background: #F59E0B; color: #FFFFFF; }

.btn-day-tab {
  padding: 4px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--border, #CBD5E1);
  background: var(--bg-card, #FFFFFF);
  color: var(--text-main, #334155);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-day-tab:hover {
  border-color: var(--accent, #6366F1);
  background: var(--accent-soft, #EEF2FF);
  transform: translateY(-1px);
}

.btn-day-tab.active {
  background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
  color: #FFFFFF;
  border-color: transparent;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.btn-day-tab .day-tab-badge {
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
}

.btn-day-tab.active .day-tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* TOOLTIP INTERACTIVO HOVER PARA COLUMNAS T1, EJ1, PROY1, DES1 */
.th-hover-tooltip {
  position: relative;
  cursor: pointer;
}

.th-hover-tooltip:hover {
  background: var(--accent-soft, #EEF2FF) !important;
}

.th-hover-tooltip .eval-tooltip-box {
  display: none;
  position: absolute;
  top: 105%;
  left: 50%;
  transform: translateX(-50%);
  width: 290px;
  background: #1E293B;
  color: #F8FAFC;
  border: 1.5px solid #475569;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.4);
  z-index: 99999;
  text-align: left;
  font-weight: normal;
  white-space: normal;
  pointer-events: none;
  animation: tooltipFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translate(-50%, -6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.th-hover-tooltip:hover .eval-tooltip-box {
  display: block;
}

.eval-tooltip-box .tt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 6px;
}

.eval-tooltip-box .tt-tag-cat {
  background: #38BDF8;
  color: #0F172A;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
}

.eval-tooltip-box .tt-tag-campo {
  background: #A855F7;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
}

.eval-tooltip-box .tt-title {
  display: block;
  font-size: 0.88rem;
  color: #FFFFFF;
  margin-bottom: 6px;
  line-height: 1.3;
}

.eval-tooltip-box .tt-meta {
  font-size: 0.78rem;
  color: #94A3B8;
  margin-bottom: 4px;
}

.eval-tooltip-box .tt-inst {
  font-size: 0.78rem;
  color: #38BDF8;
  margin-bottom: 6px;
  font-weight: 700;
}

.eval-tooltip-box .tt-pda {
  font-size: 0.74rem;
  color: #CBD5E1;
  border-top: 1px dashed #334155;
  padding-top: 6px;
  margin-top: 4px;
  line-height: 1.35;
}

/* TABLA DE CONCENTRADO DE EVIDENCIAS DIARIAS */
.eval-evidence-concentrado-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1.5px solid var(--border, #CBD5E1);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card, #FFFFFF);
  font-size: 0.82rem;
}

.eval-evidence-concentrado-table th,
.eval-evidence-concentrado-table td {
  padding: 8px 10px;
  border-right: 1px solid var(--border, #E2E8F0);
  border-bottom: 1px solid var(--border, #E2E8F0);
}

.eval-evidence-concentrado-table th {
  background: var(--accent-soft, #F8FAFC);
  color: var(--text-main, #0F172A);
  font-weight: 800;
  text-align: left;
}

.eval-evidence-concentrado-table .th-cat-group {
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  padding: 8px 12px;
  text-align: left;
}

.eval-evidence-concentrado-table th.th-sub-item {
  text-align: left;
  padding: 8px 8px 8px 12px;
}

.eval-evidence-concentrado-table .cat-tareas { background: #FEF3C7; color: #92400E; }
.eval-evidence-concentrado-table .cat-ejercicios { background: #E0E7FF; color: #3730A3; }
.eval-evidence-concentrado-table .cat-proyectos { background: #DCFCE7; color: #166534; }
.eval-evidence-concentrado-table .cat-desempeno { background: #FCE7F3; color: #9D174D; }
.eval-evidence-concentrado-table .th-cat-promedio { background: #1E1B4B; color: #FFFFFF; text-align: center; }

.input-eval-score {
  width: 52px;
  min-width: 50px;
  text-align: center;
  padding: 4px 2px;
  border-radius: 6px;
  border: 1.5px solid var(--border, #CBD5E1);
  background: var(--bg-card, #FFFFFF);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-main, #0F172A);
  font-family: inherit;
  transition: all 0.15s ease;
  caret-color: #2563EB;
  -moz-appearance: textfield;
  appearance: textfield;
  box-sizing: border-box;
}

/* Ocultar flechas numéricas nativas del navegador para que no recorten el texto (ej. 10.0) */
.input-eval-score::-webkit-outer-spin-button,
.input-eval-score::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-eval-score:disabled {
  background: #F8FAFC !important;
  color: #64748B !important;
  border-color: #E2E8F0 !important;
  cursor: not-allowed;
  opacity: 0.88;
  box-shadow: none !important;
}

.eval-evidence-concentrado-table td.cell-eval-container {
  padding: 4px 6px 4px 12px;
  text-align: left;
}

.input-eval-score:focus,
.input-eval-score.spreadsheet-active {
  border-color: #2563EB !important;
  background: #EFF6FF !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35) !important;
  outline: none !important;
  position: relative;
  z-index: 5;
}

.eval-evidence-concentrado-table tbody tr.spreadsheet-active-row {
  background-color: rgba(239, 246, 255, 0.85) !important;
}

.eval-evidence-concentrado-table tbody tr.spreadsheet-active-row td:nth-child(2) {
  color: #1D4ED8 !important;
  font-weight: 800;
}

.eval-evidence-concentrado-table th.spreadsheet-active-col-th {
  background: #DBEAFE !important;
  color: #1E40AF !important;
}

/* ==========================================================================
   ESTILOS ÁREA DE REPORTES Y DIAGNÓSTICO FORMATIVO NEM
   ========================================================================== */
.eval-reports-area-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.report-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-card, #FFFFFF);
  border: 1.5px solid var(--border, #CBD5E1);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.report-type-selector-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.report-type-btn {
  padding: 6px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border, #CBD5E1);
  background: var(--bg-card, #FFFFFF);
  color: var(--text-main, #475569);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.report-type-btn:hover {
  background: var(--accent-soft, #EEF2FF);
  border-color: var(--accent, #4F46E5);
  color: var(--accent, #4F46E5);
}

.report-type-btn.active {
  background: var(--accent, #4F46E5);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 10px var(--accent-soft, rgba(79, 70, 229, 0.3));
}

.semaforo-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.semaforo-green { background: #DCFCE7; color: #166534; border: 1px solid #86EFAC; }
.semaforo-yellow { background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; }
.semaforo-red { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }

.eval-stat-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.eval-stat-card {
  background: var(--bg-card, #FFFFFF);
  border: 1.5px solid var(--border, #CBD5E1);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.eval-stat-icon {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft, #EEF2FF);
  display: flex;
  align-items: center;
  justify-content: center;
}

.eval-stat-num {
  font-size: 1.4rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--text-main, #0F172A);
  margin: 0;
}

.eval-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted, #64748B);
  font-weight: 700;
  margin: 2px 0 0 0;
}

/* ==========================================================================
   MODAL DE SINCRONIZACIÓN IA DE EVIDENCIAS Y DIÁLOGOS
   ========================================================================== */
.modal-backdrop-custom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
}

.modal-dialog-custom {
  background: var(--bg-card, #FFFFFF);
  border-radius: 20px;
  width: 100%;
  max-width: 850px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  border: 1.5px solid var(--border, #CBD5E1);
  animation: modalFadeIn 0.25s ease-out;
}

.modal-header-custom {
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body-custom {
  background: var(--bg-main, #F8FAFC);
}

.modal-footer-custom {
  background: var(--bg-card, #FFFFFF);
}

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

/* ==========================================================================
   TOAST NOTIFICATION & SEARCH FILTER STYLES
   ========================================================================== */
.nem-toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.nem-toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.eval-search-filter-bar input:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
}

.input-eval-score:focus {
  outline: none !important;
  border-color: #059669 !important;
  background-color: #ECFDF5 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3) !important;
}

/* ==========================================================================
   SUITE DE RESPONSIVIDAD Y EXPERIENCIA TÁCTIL PARA TABLETAS (768px - 1080px)
   ========================================================================== */

/* Colapso suave del menú lateral */
.app-left-sidebar.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: none !important;
  display: none !important;
}

@media (max-width: 1080px) {
  /* 1. Encabezado en Tableta */
  .app-header {
    padding: 10px 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .header-school-context {
    max-width: 520px;
  }
  
  .header-school-title {
    font-size: 0.84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
    display: block;
  }

  .header-group-sub {
    font-size: 0.74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
    display: block;
  }

  #headerGroupCycleSelect {
    max-width: 220px;
    font-size: 0.76rem;
    padding: 5px 8px;
  }

  /* 2. Área de Trabajo y Menú Lateral */
  .planner-workspace-shell {
    padding: 10px 8px;
    gap: 8px;
  }

  .app-left-sidebar {
    width: 220px;
  }

  /* 3. Pestañas Laterales de Meses en Tableta */
  .side-month-tabs-track {
    min-width: 44px !important;
    padding: 4px 0 !important;
    gap: 2px !important;
  }

  .side-month-tab {
    width: 42px !important;
    min-height: 30px !important;
    max-height: 52px !important;
  }

  .side-month-tab .tab-abbr {
    font-size: 0.74rem !important;
  }

  .side-month-tab.active {
    width: 52px !important;
    transform: translateX(3px) !important;
  }

  /* 4. Tablas Táctiles con Columnas de Alumnos Fijas (Sticky) */
  .excel-grid-table-container,
  .attendance-table-wrap,
  .eval-matrix-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth;
  }

  .excel-sheet-table th:first-child,
  .excel-sheet-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 4;
    background: #FFFFFF;
    box-shadow: 2px 0 5px rgba(0,0,0,0.03);
  }

  .excel-sheet-table th.td-name,
  .excel-sheet-table td.td-name {
    position: sticky;
    left: 35px;
    z-index: 4;
    background: #FFFFFF;
    box-shadow: 3px 0 6px rgba(0,0,0,0.05);
  }

  /* Blancos táctiles cómodos para dedos */
  .excel-cell-input,
  .input-eval-score {
    min-height: 36px !important;
    font-size: 0.92rem !important;
    touch-action: manipulation;
  }

  .quick-pill-btn {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
  }

  /* 5. Ventanas Modales Adaptables */
  .planner-modal-window,
  .modal-dialog-custom,
  .appearance-config-modal-card {
    max-width: 94vw !important;
    max-height: 90vh !important;
    margin: 0 auto;
  }
}

@media (max-width: 820px) {
  /* Tableta en Orientación Vertical (iPad Portrait) */
  .app-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .header-brand {
    justify-content: space-between;
  }

  .header-school-context {
    max-width: 100%;
    justify-content: space-between;
  }

  .top-nav-quick-pills {
    display: flex !important;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .side-month-tab {
    width: 36px !important;
  }

  .side-month-tab.active {
    width: 46px !important;
  }
}

/* ==========================================================================
   INSTRUMENTOS DE EVALUACIÓN FORMATIVA (IA / RÚBRICA PASTEL / MODAL FLOTANTE)
   ========================================================================== */

.eval-box-instrument-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eval-instrument-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 6px;
  border-bottom: 1.5px dashed var(--border, #CBD5E1);
}

.btn-view-eval-instrument {
  padding: 5px 12px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
  transition: all 0.2s ease;
}

.btn-view-eval-instrument:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, #4338CA 0%, #6D28D9 100%);
}

.eval-meta-fields-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.83rem;
  color: var(--text-main, #334155);
}

.eval-meta-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.35;
}

.eval-meta-tag {
  color: var(--text-main, #1E293B);
  white-space: nowrap;
  font-size: 0.82rem;
}

.eval-meta-val {
  color: var(--text-muted, #475569);
  font-size: 0.82rem;
}

/* Modal Flotante de Instrumento Formativo */
.modal-dynamic-instrument-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.modal-dynamic-instrument-container {
  background: #FFFFFF;
  border-radius: 18px;
  width: 100%;
  max-width: 1080px;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 1.5px solid #CBD5E1;
  overflow: hidden;
}

.modal-instrument-top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #F8FAFC;
  border-bottom: 1.5px solid #E2E8F0;
}

.modal-instrument-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: #EEF2FF;
  color: #4338CA;
  border: 1px solid #C7D2FE;
  font-size: 0.82rem;
}

.modal-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-inst-print {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #1E293B;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-inst-print:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
}

.btn-inst-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-inst-close:hover {
  background: #FEE2E2;
  color: #DC2626;
  border-color: #FCA5A5;
}

.printable-instrument-sheet {
  padding: 24px 30px;
  overflow-y: auto;
  background: #FFFFFF;
}

/* Encabezado Oficial del Instrumento */
.inst-official-header-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #0F172A;
  margin-bottom: 12px;
}

.inst-hd-left-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0F172A;
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 10px;
  min-width: 80px;
}

.inst-sep-logo {
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}

.inst-sub-seal {
  font-size: 0.65rem;
  color: #94A3B8;
  font-weight: 700;
}

.inst-hd-center-text {
  text-align: center;
  flex: 1;
}

.inst-school-name {
  font-size: 1.15rem;
  color: #0F172A;
  margin: 0;
  font-family: var(--font-heading);
}

.inst-school-cct {
  font-size: 0.78rem;
  color: #64748B;
  margin: 2px 0 4px 0;
}

.inst-title-heading {
  font-size: 1.05rem;
  margin: 0;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.inst-hd-right-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.inst-meta-tag {
  font-size: 0.78rem;
  color: #475569;
}

.inst-meta-field {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.74rem;
  font-weight: 800;
}

/* Ficha Técnica de la Evidencia */
.inst-meta-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 12px;
}

.inst-m-cell {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.82rem;
}

.inst-m-lbl {
  color: #1E293B;
  white-space: nowrap;
}

.inst-m-val {
  color: #334155;
}

/* Tabla de Rúbrica con Colores Pasteles */
.pastel-rubric-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1.5px solid #CBD5E1;
}

.table-rubric-pastel {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  background: #FFFFFF;
}

.table-rubric-pastel th,
.table-rubric-pastel td {
  padding: 10px 12px;
  border: 1.5px solid #CBD5E1;
  vertical-align: top;
}

.th-pastel-criterios,
.th-pastel-level {
  text-align: center;
}

.th-inner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.th-main-title {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.th-sub-title {
  font-size: 0.72rem;
  opacity: 0.9;
}

.td-pastel-criterio-info {
  background: #F0F9FF;
}

.criterio-header-badge {
  font-size: 0.84rem;
  margin-bottom: 4px;
  line-height: 1.25;
}

.criterio-number {
  color: #0284C7;
}

.criterio-desc-text {
  font-size: 0.76rem;
  color: #475569;
  margin: 0;
  line-height: 1.35;
}

.td-pastel-desc {
  background: #FFFFFF;
}

.desc-p {
  margin: 0;
  font-size: 0.79rem;
  color: #334155;
  line-height: 1.4;
}

.inst-signatures-row {
  display: flex;
  justify-content: space-around;
  margin-top: 24px;
  padding-top: 12px;
}

.inst-sig-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 240px;
  text-align: center;
}

.inst-sig-line {
  width: 100%;
  border-top: 1.5px solid #0F172A;
  margin-bottom: 6px;
}

.inst-sig-author {
  font-size: 0.85rem;
  color: #0F172A;
}

.inst-sig-caption {
  font-size: 0.74rem;
  color: #64748B;
}

.inst-table-loading-spinner {
  padding: 40px;
  text-align: center;
}

.spinner-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   SELECTOR DE DÍAS EN EL MODAL DE PLAN DE CLASE OFICIAL
   ========================================================================== */
.modal-day-plan-tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F1F5F9;
  border-bottom: 1.5px solid var(--border, #CBD5E1);
  padding: 10px 18px;
  overflow-x: auto;
  flex-wrap: nowrap;
  box-sizing: border-box;
}

.btn-day-plan-tab {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border, #CBD5E1);
  background: var(--bg-card, #FFFFFF);
  color: var(--text-main, #334155);
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  min-height: 48px;
}

.btn-day-plan-tab:hover {
  background: var(--accent-soft, #EEF2FF);
  border-color: var(--accent, #6366F1);
  transform: translateY(-1px);
}

.btn-day-plan-tab.active {
  background: #FFFFFF;
  border-color: var(--accent, #4F46E5);
  color: #1E1B4B;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.2);
  outline: 2px solid rgba(79, 70, 229, 0.15);
  transform: translateY(-1px);
}

.btn-day-plan-tab .day-tab-title {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.btn-day-plan-tab.active .day-tab-title {
  color: #4F46E5;
}

.btn-day-plan-tab .day-tab-field-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid;
  line-height: 1.1;
}

/* ==========================================================================
   SEGUIMIENTO SEMANAL DETALLADO (EVIDENCIAS INDIVIDUALES + PROMEDIOS POR RUBRO)
   ========================================================================== */

/* KPI Cards del Seguimiento Semanal */
.weekly-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.weekly-kpi-card {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #CBD5E1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.weekly-kpi-card .kpi-label {
  font-size: 0.72rem;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.weekly-kpi-card .kpi-value {
  font-size: 1.35rem;
  color: #0F172A;
  font-family: var(--font-heading);
  line-height: 1.2;
}

.weekly-kpi-card .kpi-sub {
  font-size: 0.72rem;
  color: #94A3B8;
}

.weekly-kpi-card.kpi-avg { border-color: #93C5FD; background: #EFF6FF; }
.weekly-kpi-card.kpi-avg .kpi-value { color: #1E3A8A; }

.weekly-kpi-card.kpi-sob { border-color: #86EFAC; background: #F0FDF4; }
.weekly-kpi-card.kpi-sob .kpi-value { color: #166534; }

.weekly-kpi-card.kpi-sat { border-color: #FDE047; background: #FEFCE8; }
.weekly-kpi-card.kpi-sat .kpi-value { color: #854D0E; }

.weekly-kpi-card.kpi-req { border-color: #FCA5A5; background: #FEF2F2; }
.weekly-kpi-card.kpi-req .kpi-value { color: #991B1B; }

.weekly-kpi-card.kpi-evs { border-color: #C7D2FE; background: #EEF2FF; }
.weekly-kpi-card.kpi-evs .kpi-value { color: #4338CA; }

/* Tabla Detallada de Seguimiento Semanal */
.weekly-detailed-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  background: #FFFFFF;
}

.weekly-detailed-matrix-table th,
.weekly-detailed-matrix-table td {
  padding: 8px 10px;
  border-right: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.weekly-detailed-matrix-table th {
  background: #F8FAFC;
  color: #0F172A;
  font-weight: 800;
  text-align: center;
}

.weekly-detailed-matrix-table .th-cat-group {
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  padding: 8px 10px;
}

.weekly-detailed-matrix-table .th-sub-ev-item {
  background: #FFFFFF;
  font-size: 0.76rem;
  padding: 6px 8px;
}

.weekly-detailed-matrix-table .th-sub-ev-title {
  color: #0F172A;
  font-size: 0.78rem;
}

.weekly-detailed-matrix-table .th-sub-ev-date {
  color: #64748B;
  font-size: 0.7rem;
  font-weight: 700;
}

.weekly-detailed-matrix-table .th-sub-avg {
  font-size: 0.78rem;
  letter-spacing: 0.2px;
}

.weekly-detailed-matrix-table .cat-tareas-avg { background: #FEF3C7; color: #92400E; }
.weekly-detailed-matrix-table .cat-ejercicios-avg { background: #E0E7FF; color: #3730A3; }
.weekly-detailed-matrix-table .cat-proyectos-avg { background: #DCFCE7; color: #166534; }
.weekly-detailed-matrix-table .cat-desempeno-avg { background: #FCE7F3; color: #9D174D; }

.weekly-detailed-matrix-table .td-sub-avg-tareas { background: #FFFBEB; color: #92400E; font-weight: 800; }
.weekly-detailed-matrix-table .td-sub-avg-ejercicios { background: #EEF2FF; color: #3730A3; font-weight: 800; }
.weekly-detailed-matrix-table .td-sub-avg-proyectos { background: #F0FDF4; color: #166534; font-weight: 800; }
.weekly-detailed-matrix-table .td-sub-avg-desempeno { background: #FDF2F8; color: #9D174D; font-weight: 800; }

.weekly-detailed-matrix-table .td-weekly-final-avg {
  background: #F1F5F9;
  color: #1E1B4B;
  font-size: 0.88rem;
  font-weight: 900;
}

.weekly-detailed-matrix-table .tr-group-averages-footer {
  background: #F8FAFC;
  border-top: 2px solid #0F172A;
}

.text-success-score { color: #166534; font-weight: 700; }
.text-amber-score { color: #92400E; font-weight: 700; }
.text-warning-score { color: #854D0E; font-weight: 700; }
.text-danger-score { color: #991B1B; font-weight: 800; }

/* ==========================================================================
   CONCENTRADO FORMATIVO TRIMESTRAL POR CAMPOS FORMATIVOS (SEP NEM)
   ========================================================================== */

/* Filtros de Pestañas del Concentrado Trimestral */
.concentrado-filter-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-concentrado-filter {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 20px;
  border: 1.5px solid var(--border, #CBD5E1);
  background: var(--bg-card, #FFFFFF);
  color: var(--text-muted, #64748B);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-concentrado-filter:hover {
  border-color: var(--accent, #4F46E5);
  color: var(--text-main, #0F172A);
  transform: translateY(-1px);
}

.btn-concentrado-filter.active {
  background: #1E1B4B;
  color: #FFFFFF;
  border-color: #1E1B4B;
  box-shadow: 0 2px 8px rgba(30, 27, 75, 0.25);
}

.btn-concentrado-filter.filter-leng.active { background: #9D174D; border-color: #9D174D; }
.btn-concentrado-filter.filter-sab.active { background: #1E40AF; border-color: #1E40AF; }
.btn-concentrado-filter.filter-eti.active { background: #166534; border-color: #166534; }
.btn-concentrado-filter.filter-hum.active { background: #92400E; border-color: #92400E; }

/* Estilos de Celdas por Campo Formativo */
.th-field-leng { background: #FCE7F3 !important; color: #9D174D !important; }
.td-field-leng { background: #FDF2F8; color: #9D174D; font-weight: 800; }

.th-field-sab { background: #DBEAFE !important; color: #1E40AF !important; }
.td-field-sab { background: #EFF6FF; color: #1E40AF; font-weight: 800; }

.th-field-eti { background: #DCFCE7 !important; color: #166534 !important; }
.td-field-eti { background: #F0FDF4; color: #166534; font-weight: 800; }

.th-field-hum { background: #FEF3C7 !important; color: #92400E !important; }
.td-field-hum { background: #FFFBEB; color: #92400E; font-weight: 800; }

/* Cuadrícula Oficial de Firmas */
.concentrado-signatures-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  max-width: 700px;
  margin: 40px auto 20px auto;
}

.sig-box {
  text-align: center;
}

.sig-line {
  width: 80%;
  height: 40px;
  background: transparent !important;
  border: none !important;
  border-bottom: 1.5px solid #0F172A !important;
  margin: 0 auto 8px auto;
}

.sig-name {
  font-size: 0.86rem;
  color: #0F172A;
}

.sig-role {
  font-size: 0.74rem;
  color: #64748B;
}

/* ==========================================================================
   ESTILOS PARA DOSIFICACIÓN POR SEMANA (VISTA 3 DEL PLANEADOR)
   ========================================================================== */
.weekly-dosif-table-row:hover {
  background-color: #F1F5F9 !important;
}

.btn-dosif-term-filter {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-dosif-term-filter:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-open-lp-from-dosif:hover {
  background-color: #0369A1 !important;
  transform: translateY(-1px);
}

.btn-print-single-dosif:hover {
  background-color: #E2E8F0 !important;
  color: #0F172A !important;
}

@media print {
  .weekly-dosif-table-row {
    break-inside: avoid;
  }
}
