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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 50%, #312e81 100%);
  min-height: 100vh;
}

/* Login */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 420px;
  width: 100%;
  overflow: hidden;
}

.login-header {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
  padding: 30px;
  text-align: center;
  color: #fff;
}

.login-header .logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 36px;
}

.login-header h1 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 5px;
}

.login-header p {
  color: #93c5fd;
  font-size: 14px;
}

/* Forms */
.form-section {
  padding: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.input-wrapper input:focus {
  border-color: #2563eb;
}

.input-wrapper .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 16px;
}

.input-wrapper .toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: none;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-primary.blue {
  background: #2563eb;
}

.btn-primary.orange {
  background: #ea580c;
}

.btn-primary.green {
  background: #16a34a;
}

.btn-primary.red {
  background: #dc2626;
}

/* Messages */
.msg-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #dc2626;
  color: #991b1b;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 13px;
}

.msg-success {
  display: none;
  background: #dcfce7;
  border: 1px solid #16a34a;
  color: #166534;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 13px;
}

.info-box.orange {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
}

/* Dashboard */
.dashboard {
  display: none;
  min-height: 100vh;
  background: #f9fafb;
}

.dashboard.active {
  display: block;
}

/* Header */
.dash-header {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-header .left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}

.dash-header h1 {
  font-size: 18px;
  color: #1f2937;
}

.subtitle {
  font-size: 12px;
  color: #6b7280;
}

.user-info {
  text-align: right;
}

.user-name {
  font-weight: bold;
  font-size: 14px;
  color: #1f2937;
}

.user-role {
  font-size: 12px;
  color: #6b7280;
}

.btn-logout {
  padding: 8px 16px;
  border: 1px solid #dc2626;
  background: #fff;
  color: #dc2626;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: #dc2626;
  color: #fff;
}

/* Admin Banner */
.admin-banner {
  background: #fff;
  padding: 20px;
  margin: 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.admin-stats {
  display: flex;
  gap: 20px;
}

.admin-stat {
  text-align: center;
}

.admin-stat .num {
  font-size: 24px;
  font-weight: bold;
  color: #1f2937;
}

.admin-stat .lbl {
  font-size: 12px;
  color: #6b7280;
}

/* Nav Bar */
.nav-bar {
  background: #fff;
  padding: 10px 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: #6b7280;
  background: transparent;
  white-space: nowrap;
  transition: all 0.2s;
}

.nav-btn:hover {
  background: #f3f4f6;
}

.nav-btn.active {
  background: #2563eb;
  color: #fff;
}

/* Content */
.content {
  padding: 20px;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

/* Cards */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.card-title {
  font-size: 16px;
  font-weight: bold;
  color: #1f2937;
}

.section-title {
  font-size: 18px;
  font-weight: bold;
  color: #1f2937;
}

.card-link {
  text-decoration: none;
  color: #2563eb;
  font-size: 13px;
  cursor: pointer;
}

.card-link:hover {
  text-decoration: underline;
}

/* Grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: #f9fafb;
  padding: 12px;
  text-align: left;
  font-size: 12px;
  font-weight: bold;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
}

td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
  color: #1f2937;
}

/* Badges */
.badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  display: inline-block;
}

.badge-green {
  background: #dcfce7;
  color: #166534;
}

.badge-red {
  background: #fef2f2;
  color: #991b1b;
}

.badge-blue {
  background: #dbeafe;
  color: #1e40af;
}

.badge-orange {
  background: #fff7ed;
  color: #9a3412;
}

.badge-purple {
  background: #f3e8ff;
  color: #7c3aed;
}

.badge-gray {
  background: #f3f4f6;
  color: #374151;
}

.badge-yellow {
  background: #fefce8;
  color: #854d0e;
}

/* Action Buttons */
.btn-add {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: #fff;
  font-weight: bold;
  transition: opacity 0.2s;
}

.btn-add:hover {
  opacity: 0.9;
}

.btn-add.purple {
  background: #7c3aed;
}

.btn-add.green {
  background: #16a34a;
}

.btn-add.orange {
  background: #ea580c;
}

.btn-save {
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  background: #2563eb;
  transition: opacity 0.2s;
}

.btn-save:hover {
  opacity: 0.9;
}

.btn-save.green {
  background: #16a34a;
}

.btn-save.purple {
  background: #7c3aed;
}

.btn-cancel {
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  background: #f3f4f6;
  color: #374151;
  transition: background 0.2s;
}

.btn-cancel:hover {
  background: #e5e7eb;
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: bold;
  color: #1f2937;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
}

.modal-close:hover {
  color: #1f2937;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Form Rows */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.filter-bar input,
.filter-bar select {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #2563eb;
}

/* Student Banner */
.student-banner {
  background: #fff;
  padding: 20px;
  margin: 20px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.student-info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.student-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fed7aa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.student-name {
  font-weight: bold;
  font-size: 18px;
  color: #1f2937;
}

.student-grade {
  font-size: 13px;
  color: #6b7280;
}

.stats-row {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-num {
  font-size: 20px;
  font-weight: bold;
  color: #1f2937;
}

.stat-label {
  font-size: 11px;
  color: #6b7280;
}

/* Footer */
.footer {
  text-align: center;
  padding: 15px;
  color: #9ca3af;
  font-size: 12px;
  border-top: 1px solid #e5e7eb;
  margin-top: 30px;
}

/* Empty State */
.empty-msg {
  text-align: center;
  padding: 20px;
  color: #9ca3af;
  font-size: 13px;
}

/* Absence Cards */
.absence-card {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  border-left: 4px solid;
}

.absence-card.falta {
  background: #fecaca;
  border-left-color: #dc2626;
}

.absence-card.amarilla {
  background: #fef9c3;
  border-left-color: #eab308;
}

.absence-card.justificada {
  background: #dbeafe;
  border-left-color: #3b82f6;
}

.absence-type {
  font-weight: bold;
  font-size: 13px;
  color: #1f2937;
}

.absence-subject {
  font-size: 12px;
  color: #6b7280;
}

.absence-date {
  font-size: 12px;
  color: #6b7280;
}

.absence-desc {
  font-size: 12px;
  color: #374151;
  margin-top: 4px;
}

/* Event Cards */
.event-card {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-left: 4px solid;
}

.event-card.reunion {
  background: #dbeafe;
  border-left-color: #3b82f6;
}

.event-card.acto {
  background: #f3e8ff;
  border-left-color: #9333ea;
}

.event-card.consejo {
  background: #dcfce7;
  border-left-color: #16a34a;
}

.event-card.feria {
  background: #fef3c7;
  border-left-color: #f59e0b;
}

.event-card.taller {
  background: #ffe4e6;
  border-left-color: #e11d48;
}

.event-icon {
  font-size: 28px;
  line-height: 1;
}

.event-content {
  flex: 1;
}

.event-title {
  font-weight: bold;
  font-size: 14px;
  color: #1f2937;
}

.event-location {
  font-size: 12px;
  color: #6b7280;
}

.event-desc {
  font-size: 12px;
  color: #374151;
  margin-top: 4px;
}

.event-right {
  text-align: right;
  min-width: 70px;
}

.event-date {
  font-weight: bold;
  font-size: 13px;
  color: #1f2937;
}

.event-time {
  font-size: 12px;
  color: #6b7280;
}

/* Badge Mandatory */
.badge-mandatory {
  background: #dc2626;
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: bold;
  display: inline-block;
}

/* Grade Items */
.grade-item {
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  background: #f9fafb;
}

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

.grade-subject {
  font-weight: bold;
  font-size: 13px;
  color: #1f2937;
}

.grade-val {
  font-weight: bold;
  font-size: 14px;
}

.grade-val.ok {
  color: #16a34a;
}

.grade-val.warn {
  color: #f59e0b;
}

.grade-val.bad {
  color: #dc2626;
}

.grade-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.grade-fill {
  height: 100%;
  border-radius: 3px;
}

.grade-fill.ok {
  background: #16a34a;
}

.grade-fill.warn {
  background: #f59e0b;
}

.grade-fill.bad {
  background: #dc2626;
}

/* Average Box */
.avg-box {
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 15px;
  border: 2px solid #e5e7eb;
}

.avg-num {
  font-size: 32px;
  font-weight: bold;
  color: #2563eb;
}

.avg-label {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

/* Attendance */
.attendance-date-picker {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
  padding: 15px;
  background: #f9fafb;
  border-radius: 12px;
}

.attendance-date-picker label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.attendance-date-picker input {
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.attendance-date-picker input:focus {
  border-color: #2563eb;
}

.attendance-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attendance-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.attendance-item .name {
  font-weight: bold;
  font-size: 14px;
  flex: 1;
  color: #1f2937;
}

.attendance-item .status-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 2px solid;
  cursor: pointer;
  font-weight: bold;
  font-size: 12px;
  transition: all 0.2s;
  background: transparent;
}

.attendance-item .status-btn.present {
  background: #dcfce7;
  border-color: #16a34a;
  color: #166534;
}

.attendance-item .status-btn.absent {
  background: #fef2f2;
  border-color: #dc2626;
  color: #991b1b;
}

/* Subject Pills */
.subject-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: #f3f4f6;
  margin: 2px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  color: #374151;
  border: none;
}

.subject-pill:hover {
  background: #e5e7eb;
}

.subject-pill.active {
  background: #2563eb;
  color: #fff;
}

/* Config Section */
.config-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.config-card h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #1f2937;
}

.tag-input-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  min-height: 44px;
  align-items: center;
}

.tag-input-container:focus-within {
  border-color: #2563eb;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 12px;
  font-size: 12px;
}

.tag .remove-tag {
  cursor: pointer;
  font-weight: bold;
  margin-left: 4px;
  color: #dc2626;
  line-height: 1;
}

.tag .remove-tag:hover {
  color: #991b1b;
}

.add-tag-input {
  border: none;
  outline: none;
  font-size: 13px;
  flex: 1;
  min-width: 100px;
}

/* Shift Tabs */
.shift-tab {
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s;
}

.shift-tab:hover {
  background: #f3f4f6;
}

.shift-tab.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

/* Responsive */
@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
  }

  .admin-banner {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .admin-stats {
    width: 100%;
    justify-content: center;
  }

  .dash-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .dash-header .left {
    justify-content: center;
  }

  .user-info {
    text-align: center;
  }

  .nav-bar {
    padding: 10px;
  }

  .content {
    padding: 10px;
  }

  .stats-row {
    flex-wrap: wrap;
  }

  .stat-item {
    flex: 0 0 45%;
  }

  .attendance-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .event-card {
    flex-wrap: wrap;
  }

  .event-right {
    min-width: auto;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .login-card {
    margin: 10px;
    border-radius: 16px;
  }

  .login-header {
    padding: 20px;
  }

  .login-header .logo {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  .login-header h1 {
    font-size: 22px;
  }

  .modal {
    width: 95%;
    max-height: 95vh;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar input,
  .filter-bar select {
    width: 100%;
  }
}

/* Libreta */
.libreta-header { padding: 15px; background: #f0f4ff; border-radius: 8px; margin-bottom: 15px; }
.libreta-info { font-size: 14px; }
.libreta-info div:first-child { font-size: 18px; margin-bottom: 4px; }
.libreta-info div:last-child { color: #6b7280; font-size: 13px; }
.libreta-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.libreta-table th { background: #1e40af; color: white; padding: 8px 10px; text-align: center; font-size: 12px; white-space: nowrap; }
.libreta-table th:first-child { text-align: left; min-width: 120px; }
.libreta-table td { padding: 7px 10px; text-align: center; border-bottom: 1px solid #e5e7eb; }
.libreta-materia { text-align: left !important; background: #f9fafb; }
.libreta-nota { min-width: 50px; }
.libreta-prom { background: #f0f4ff; font-weight: 600; }
.nota-ok { color: #16a34a; font-weight: 700; }
.nota-warn { color: #d97706; font-weight: 700; }
.nota-bad { color: #dc2626; font-weight: 700; }
.libreta-footer { margin-top: 15px; padding: 12px 15px; background: #fef2f2; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; }
.libreta-asist { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.form-control { padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; font-family: inherit; }
.btn { padding: 8px 16px; border: none; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; transition: all 0.2s; }
.btn-primary { background: #2563eb; color: white; }
.btn-primary:hover { background: #1d4ed8; }
.btn-small { padding: 5px 12px; font-size: 12px; }
.btn-danger { background: #dc2626; color: white; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger { background: #fef2f2; color: #991b1b; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-red { background: #fef2f2; color: #991b1b; }
.badge-orange { background: #fff7ed; color: #9a3412; }
.badge-green { background: #dcfce7; color: #166534; }

/* Checkbox grid */
.checkbox-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-label { display: flex; align-items: center; gap: 4px; font-size: 13px; cursor: pointer; }
.checkbox-label input { accent-color: #2563eb; }
.empty-state { text-align: center; padding: 20px; color: #9ca3af; }

/* Dashboard cards */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.dash-card { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); text-align: center; }
.dash-card h3 { font-size: 14px; color: #6b7280; margin-bottom: 8px; }
.dash-num { font-size: 32px; font-weight: 700; color: #1e40af; }
.section-actions { margin-bottom: 15px; }
.filters { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; align-items: center; }
.btn-success { background: #16a34a; color: white; }
.btn-success:hover { background: #15803d; }

/* Nota badges */
.nota-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.nota-alta { background: #dcfce7; color: #166534; }
.nota-baja { background: #fef9c3; color: #854d0e; }
.nota-muy-baja { background: #fef2f2; color: #991b1b; }

/* Calificaciones */
.calificaciones-list { display: flex; flex-direction: column; gap: 12px; }
.calif-item { background: white; border-radius: 10px; padding: 15px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.calif-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.calif-notas { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.progress-bar { height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }
.bar-high { background: #16a34a; }
.bar-mid { background: #f59e0b; }
.bar-low { background: #dc2626; }
.empty-text { color: #9ca3af; font-size: 13px; font-style: italic; }
