/* =========================
   ESTILOS GENERALES Y LAYOUT
   ========================= */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
}
/* Cajas de estado de materias (aprobada, regular, etc) */
.status-box {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-align: center;
    color: white;
    transition: background-color 0.3s ease;
}
.status-enabled { background-color: #22c55e; } 
.status-disabled { background-color: #ef4444; cursor: help; } 
.status-planned-unlocked { background-color: #38bdf8; } 

/* =========================
    TARJETAS Y TABLAS DE AÑO
    ========================= */
.year-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}
.year-header {
    background-color: #1f2937; 
    color: white;
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
    user-select: none;
}
.year-header:hover {
    background: #374151;
    color: #fbbf24;
    cursor: pointer;
}
.year-header svg {
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
th { background-color: #f9fafb; } 
tr:nth-child(even) { background-color: #f9fafb; }

/* =========================
    MODO PLANIFICADOR
    ========================= */
.planner-mode-active body { background-color: #eef2ff; } 
tr.planned-row {
    outline: 2px dashed #3b82f6; 
    outline-offset: -2px;
    background-color: #eff6ff !important; 
}
.key-icon, .info-icon, .notes-icon {
    cursor: help;
    font-weight: bold;
    display: inline-block;
    margin-left: 8px;
    transition: color 0.2s, transform 0.2s;
}
.key-icon { color: #f59e0b; } 
.info-icon { color: #3b82f6; } 
.notes-icon { color: #6b7280; cursor: pointer; }
.notes-icon.has-note { color: #22c55e; transform: scale(1.2); }


/* =========================
    DASHBOARD Y RESUMENES
    ========================= */
.summary-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}
.summary-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1d4ed8; 
}
.summary-label {
    font-size: 1rem;
    font-weight: 500;
    color: #4b5563; 
}

/* =========================
    TOGGLE SWITCH
    ========================= */
.toggle-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    width: 60px;
    height: 34px;
    background-color: #ccc;
    border-radius: 34px;
    transition: .4s;
    position: relative;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}
.toggle-input:checked + .toggle-slider {
    background-color: #2563eb;
}
.toggle-input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* =========================
    TOOLTIP PERSONALIZADO
    ========================= */
.custom-tooltip {
    position: absolute;
    background-color: #1f2937; 
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    z-index: 50;
    max-width: 320px;
    pointer-events: none; 
    opacity: 0;
    transition: opacity 0.2s;
}
.custom-tooltip.visible {
    opacity: 1;
}
.custom-tooltip h3 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #4a5568; 
    padding-bottom: 0.5rem;
}
    .custom-tooltip ul {
    list-style-position: inside;
    padding-left: 0.25rem;
}

/* =========================
    BARRA DE PROGRESO
    ========================= */
.progress-bar-container {
    background-color: #e5e7eb; 
    border-radius: 0.5rem;
    overflow: hidden;
    width: 100%;
}
.progress-bar {
    background-color: #22c55e; 
    height: 1.75rem;
    transition: width 0.5s ease-in-out;
    text-align: center;
    color: white;
    font-weight: bold;
    line-height: 1.75rem;
}

/* =========================
    COLUMNAS RESPONSIVAS
    ========================= */
.info-col {
    display: none;
}
@media (min-width: 768px) { 
    .info-col {
        display: table-cell;
    }
}
/* =========================
    ACORDEÓN Y PERIODOS DE EXAMEN
    ========================= */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.15s ease-out;
}


.accordion-content.expanded {
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 0.5rem;
}


#exam-periods-container {
    min-height: auto;
    overflow: visible;
}
.exam-period-past {
    opacity: 0.6;
    background-color: #f3f4f6; 
}
.exam-period-past h3, .exam-period-past p {
    text-decoration: line-through;
}
.pie-text {
    font-size: 24px;
    font-weight: bold;
    fill: #1f2937;
    pointer-events: none;
}
.course-approved {
    text-decoration: line-through;
    opacity: 0.6;
}
/* =========================
    MODAL DE NOTAS PERSONALES (MEJORADO)
    ========================= */
#notes-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 99;
    display: none; /* Oculto por defecto, solo se muestra con JS */
    align-items: center;
    justify-content: center;
    animation: fadeInPanel 0.25s;
}
#notes-modal {
    position: relative;
    background-color: #fff;
    padding: 2.5rem 2rem 2rem 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px 0 rgba(34,39,43,0.18), 0 1.5px 6px 0 rgba(34,39,43,0.08);
    width: 95%;
    max-width: 520px;
    animation: fadeInPanel 0.25s;
}
#notes-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
#notes-modal-title::before {
    content: "📝";
    font-size: 1.3em;
    margin-right: 0.3em;
}
#notes-close-btn {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    background: none;
    border: none;
    font-size: 1.7rem;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2;
}
#notes-close-btn:hover {
    color: #1e293b;
}
#notes-textarea {
    width: 100%;
    min-height: 140px;
    border: 1.5px solid #cbd5e1;
    border-radius: 0.75rem;
    background: #f8fafc;
    font-size: 1.1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    resize: vertical;
    transition: border 0.2s;
}
#notes-textarea:focus {
    border-color: #2563eb;
    outline: none;
    background: #fff;
}
#notes-modal .flex {
    gap: 1.2rem;
}
#notes-cancel-btn, #notes-save-btn {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.7rem 2.2rem;
    border-radius: 0.6rem;
    transition: background 0.2s, color 0.2s;
}
#notes-cancel-btn {
    background: #e5e7eb;
    color: #334155;
}
#notes-cancel-btn:hover {
    background: #cbd5e1;
}
#notes-save-btn {
    background: #2563eb;
    color: #fff;
}
#notes-save-btn:hover {
    background: #1d4ed8;
}

/* =========================
    CALENDARIO ACADÉMICO
    ========================= */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.calendar-day {
    cursor: pointer;
    display: flex; justify-content: center; align-items: center;
    height: 36px; border-radius: 8px; font-weight: 500;
    transition: all 0.2s; position: relative;
}
.calendar-day:not(.day-header):hover { transform: scale(1.1); z-index: 10; }
.calendar-day.day-header { cursor: default; }
.past-day { text-decoration: line-through; opacity: 0.6; }
.current-day { 
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white !important;
    font-weight: 700; 
    text-decoration: none !important;
    opacity: 1 !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    border: none;
}
.nav-btn { background-color: #f3f4f6; border-radius: 9999px; padding: 0.5rem; transition: background-color 0.2s; }
.nav-btn:hover { background-color: #e5e7eb; }
.legend-item { cursor: pointer; transition: opacity 0.2s; }
.legend-item.filtered { opacity: 0.4; }
.event-dot {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
}
/* Modal Calendario */
#calendar-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s; }
#calendar-modal-overlay.visible { opacity: 1; visibility: visible; }
.calendar-modal-content { background: white; padding: 24px; border-radius: 16px; width: 90%; max-width: 400px; transform: scale(0.9); transition: all 0.3s; }
#calendar-modal-overlay.visible .calendar-modal-content { transform: scale(1); }
/* Colores Calendario */
.bg-comienzo-fin { background-color: #38bdf8; color: white; }
.bg-inscripcion-materias { background-color: #fb923c; color: white; }
.bg-inscripcion-examenes { background-color: #3b82f6; color: white; }
.bg-mesas-examenes { background-color: #ef4444; color: white; }
.bg-feriado { background-color: #4b5563; color: white; }
.bg-receso { background-color: #15803d; color: white; }
.bg-personal { background-color: #8b5cf6; color: white; }

/* =========================
    SELECTOR DE VISTA (PLAN/MAPA)
    ========================= */
.view-selector-btn {
    padding: 1rem 2rem;
    font-weight: 700;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent;
    white-space: nowrap;
}
.view-selector-btn.active {
    background-color: #3b82f6; 
    color: white;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.view-selector-btn:not(.active) {
    background-color: #e5e7eb; 
    color: #374151; 
}
    .view-selector-btn:not(.active):hover {
    background-color: #d1d5db; 
    }


/* =========================
    MODAL DE AYUDA DEL PLANIFICADOR
    ========================= */
#planner-help-modal-overlay {
    transition: opacity 0.2s ease-in-out;
}

/* =========================
    LOGOS INSTITUCIONALES
    ========================= */
.logo-institucional {
    height: 100px;
    width: auto;
    object-fit: contain;
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.4,0.2,0.2,1), box-shadow 0.25s;
    will-change: transform, box-shadow;
    background: transparent;
    padding: 0;
    border-radius: 0;
    vertical-align: middle;
}
.logo-institucional:hover {
    transform: scale(1.13);
    box-shadow: none;
    z-index: 2;
}

/* ============================================= */
/* == CSS PARA EL MAPA DE CORRELATIVIDADES == */
/* ============================================= */

#map-svg-container {
    cursor: grab;
    height: 75vh;
    overflow: hidden;
    border-radius: 12px;
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
}
#map-svg-container:active {
    cursor: grabbing;
}
#career-map {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.05));
}
.legend-color-box {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.4);
}
.map-grid-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem; 
    align-items: start;
}
.map-main-column {
    min-width: 0; 
}
.map-info-column {
    position: sticky;
    top: 0; 
    width: 320px; 
    transition: opacity 0.3s ease-in-out;
    align-self: start;
}
@media (max-width: 1024px) {
    .map-grid-container {
        grid-template-columns: 1fr;
    }
    .map-info-column {
        position: relative;
        top: 0;
        width: 100%;
        margin-top: 0rem;
    }
}

/* === PALETA ESCALA DE GRISES PARA MAPA Y CAJAS === */
:root {
  --color-map-1: #22272b; /* Gris muy oscuro */
  --color-map-2: #444950; /* Gris oscuro */
  --color-map-3: #7b818a; /* Gris medio */
  --color-map-4: #e5e7eb; /* Gris claro */
  --color-map-5: #f7f7f7; /* Gris muy claro */
}


.map-node-rect {
  fill: #f7f7f7; 
  stroke: #7b818a; 
  stroke-width: 1px;
  cursor: pointer;
  rx: 3;
  ry: 3;
}


.map-node:hover .map-node-rect {
  stroke: #444950; 
}


.map-node.active .map-node-rect {
  stroke: #2563eb !important;
  stroke-width: 2px !important;
  fill: #ffffff !important;
}


.map-node.active .map-node-text {
  fill: #22272b;
  font-weight: bold;
}


.map-node.prereq .map-node-rect,
.map-node.unlocks .map-node-rect,
.map-node.rendir .map-node-rect {
  fill: #e8f2ff; 
  stroke: #3b82f6;
}


.map-node.enabled .map-node-rect {
  fill: #d1fae5 !important; 
  stroke: #10b981;
}


.map-node.disabled .map-node-rect {
  fill: #fef3c7 !important; 
  stroke: #f59e0b;
}


.map-node.blocked .map-node-rect {
  fill: #fee2e2 !important; 
  stroke: #ef4444;
}


.map-node .map-node-text {
  fill: #22272b; 
  font-size: 11px;
  pointer-events: none;
  font-weight: 600;
}
.map-node.active .map-node-text {
  font-weight: bold;
}


.map-link {
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.8;
}
.link-cursar-reg {
  stroke: #2563eb;
  stroke-width: 2px;
}
.link-cursar-reg.active {
  stroke: #1d4ed8;
  stroke-width: 3px;
}

.link-cursar-aprob {
  stroke: #a21caf;
  stroke-width: 2px;
}
.link-cursar-aprob.active {
  stroke: #86198f;
  stroke-width: 3px;
}

.link-rendir-aprob {
  stroke: #e11d48;
  stroke-width: 2px;
}
.link-rendir-aprob.active {
  stroke: #be185d;
  stroke-width: 3px;
}

/* === COLORES PARA LA LEYENDA del MAPA === */
.legend-cursar-reg {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.legend-cursar-reg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  pointer-events: none;
}

.legend-cursar-aprob {
  background: linear-gradient(135deg, #c026d3 0%, #86198f 100%);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.legend-cursar-aprob::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  pointer-events: none;
}

.legend-rendir-aprob {
  background: linear-gradient(135deg, #ef4444 0%, #be185d 100%);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.legend-rendir-aprob::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  pointer-events: none;
}


#map-info-panel {
    background: rgba(255,255,255,0.98);
    color: var(--color-map-1);
    border: 1.5px solid rgba(226,232,240,0.6);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06), 0 3px 10px rgba(0,0,0,0.04);
    padding: 24px 22px 22px 22px;
    transition: opacity 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(4px);
    position: relative;
}
#map-info-panel.visible {
    animation: fadeInPanel 0.3s ease;
}
@keyframes fadeInPanel {
  from { 
    opacity: 0; 
    transform: translateY(12px) scale(0.98);
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1);
  }
}
#close-panel-btn {
    color: var(--color-map-2);
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   TÍTULOS DE COLUMNAS DEL MAPA DE CORRELATIVIDADES
   ========================= */
.map-year-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #264AE8;
    text-align: center;
    margin-bottom: 1.2rem;
    letter-spacing: 0.01em;
    background: linear-gradient(90deg, #e0e7ff 0%, #f3f4f6 100%);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    box-shadow: 0 1px 4px 0 rgba(38,74,232,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
@media (max-width: 640px) {
  .map-year-title {
    font-size: 1rem;
    padding: 0.4rem 0;
    margin-bottom: 0.7rem;
  }
}

/* =========================
   CHECKBOX 
   ========================= */
.checkbox-label.checkbox-custom {
    position: relative;
    padding-left: 2.1em;
    gap: 0.7em;
    user-select: none;
}
.checkbox-label .checkbox-custom-box {
    position: absolute;
    left: 0.3em;
    top: 50%;
    transform: translateY(-50%);
    width: 1.4em;
    height: 1.4em;
    border: 2.2px solid #2563eb;
    border-radius: 0.35em;
    background: #fff;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    box-shadow: 0 1px 6px #2563eb13;
    display: flex;
    align-items: center;
    justify-content: center;
}
.checkbox-label input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    left: 0.3em;
    top: 50%;
    width: 1.4em;
    height: 1.4em;
    margin: 0;
    z-index: 2;
    cursor: pointer;
    transform: translateY(-50%);
}
.checkbox-label input[type="checkbox"]:not(:disabled):hover + .checkbox-custom-box {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px #a5b4fc33;
}
.checkbox-label input[type="checkbox"]:focus + .checkbox-custom-box {
    box-shadow: 0 0 0 3px #a5b4fc55;
    border-color: #2563eb;
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom-box {
    border-color: #2563eb;
    background: #2563eb;
    box-shadow: 0 2px 8px #2563eb33;
}
.checkbox-label .checkbox-custom-box::after {
    content: "";
    display: block;
    width: 0.7em;
    height: 0.38em;
    border-left: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    opacity: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -60%) scale(0.7) rotate(-45deg);
    transition: opacity 0.13s, transform 0.13s;
    pointer-events: none;
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom-box::after {
    opacity: 1;
    transform: translate(-50%, -60%) scale(1) rotate(-45deg);
}

.checkbox-label input[type="checkbox"]:disabled + .checkbox-custom-box {
    border-color: #cbd5e1;
    background: #f3f4f6;
    box-shadow: none;
}
.checkbox-label input[type="checkbox"]:disabled + .checkbox-custom-box::after {
    border-left: 2.5px solid #cbd5e1;
    border-bottom: 2.5px solid #cbd5e1;
}
.checkbox-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
}
.checkbox-label.checkbox-custom input[type="checkbox"]:disabled + .checkbox-custom-box {
    opacity: 0.6;
}
.checkbox-label.checkbox-custom input[type="checkbox"]:disabled ~ span, 
.checkbox-label.checkbox-custom input[type="checkbox"]:disabled ~ strong, 
.checkbox-label.checkbox-custom input[type="checkbox"]:disabled ~ em {
    opacity: 0.6;
    color: #a1a1aa;
}

/* Aordeón tablas de año */
.year-table-container {
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), padding 0.3s;
    will-change: max-height, padding;
}
.year-table-container.collapsed {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* =========================
   TABLAS RESPONSIVAS PARA MATERIAS
   ========================= */
@media (max-width: 900px) {
  .year-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(90deg, #fff 90%, #e0e7ff 100%);
  }
  table {
    min-width: 600px;
    font-size: 0.98em;
  }
  th, td {
    padding-left: 0.5em !important;
    padding-right: 0.5em !important;
  }
  .info-col {
    display: none !important;
  }
}
@media (max-width: 600px) {
  .year-header {
    font-size: 1.05rem;
    padding: 0.7rem 0.7rem;
  }
  table {
    min-width: 480px;
    font-size: 0.93em;
  }
  .year-card {
    margin-bottom: 1.1rem;
    border-radius: 0.5rem;
  }
  .checkbox-label.checkbox-custom {
    padding-left: 1.5em;
    font-size: 1em;
  }
}

.year-table-container::-webkit-scrollbar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 8px;
}
.year-table-container::-webkit-scrollbar-thumb {
  background: #d0d8fe;
  border-radius: 8px;
}
.year-table-container {
  scrollbar-width: thin;
  scrollbar-color: #a5b4fc #e5e7eb;
}

/* === Tabla académica con iconos e interacción === */
.table-academic th {
  background: #f9fafb !important;
  color: #1e293b;
  font-weight: 700;
  font-size: 1.05em;
  border: none;
  letter-spacing: 0.01em;
  vertical-align: middle;
  padding-top: 1em;
  padding-bottom: 1em;
}
.table-academic th .th-icon {
  margin-right: 0.4em;
  font-size: 1.1em;
  vertical-align: middle;
}
.table-academic td {
  vertical-align: middle;
  font-size: 1.04em;
  border: none;
  background: transparent;
  transition: background 0.18s;
  padding-top: 0.85em;
  padding-bottom: 0.85em;
}
.table-academic tr {
  transition: background 0.18s;
}
.table-academic tr:hover {
  background: #f3f4f6 !important;
}
.table-academic .subject-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: 0.6em;
  background: #e0e7ff;
  font-size: 1.25em;
  margin-right: 0.8em;
  box-shadow: 0 1px 4px #2563eb11;
  font-weight: 700;
  color: #2563eb;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  transition: box-shadow 0.18s, background 0.18s;
}
.table-academic .subject-avatar:active {
  box-shadow: 0 0 0 2px #2563eb33;
  background: #c7d2fe;
}
.table-academic .subject-main {
  font-weight: 600;
  color: #1e293b;
  font-size: 1.07em;
  vertical-align: middle;
}
.table-academic .subject-id {
  color: #64748b;
  font-size: 0.98em;
  font-weight: 500;
  margin-right: 0.3em;
  vertical-align: middle;
}
.table-academic .action-icon {
  font-size: 1.15em;
  margin-left: 0.5em;
  cursor: pointer;
  opacity: 0.7;
  transition: color 0.18s, opacity 0.18s, transform 0.18s;
  vertical-align: middle;
}
.table-academic .action-icon:hover {
  color: #2563eb;
  opacity: 1;
  transform: scale(1.18);
}
.table-academic .status-box {
  min-width: 80px;
  border-radius: 0.5em;
  font-size: 1em;
  padding: 0.4em 0.7em;
}
.table-academic tr td {
  vertical-align: middle;
}
.table-academic tr td .subject-avatar {
  vertical-align: middle;
}

/* === MEJORAS ADICIONALES PARA EL MAPA === */

/* Título de la sección del mapa */
#map-view h2 {
    position: relative;
    display: inline-block;
}
#map-view h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 2px;
}
