/* ═══════════════════════════════════════════════════════════════
   ClasesDe10 — Dashboard Stylesheet
   Hereda variables de style.css
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy:        #0f1f3d;
  --navy-light:  #1a3260;
  --gold:        #e8a030;
  --gold-light:  #f5c060;
  --cream:       #faf8f3;
  --white:       #ffffff;
  --gray-soft:   #f0ede6;
  --gray-mid:    #8a8478;
  --text-dark:   #1a1612;
  --text-body:   #3d3830;
  --teal:        #1d7a6b;
  --teal-light:  #24937f;
  --radius:      16px;
  --radius-sm:   8px;
  --sidebar-w:   260px;
  --topbar-h:    64px;
  --success:     #16a34a;
  --warning:     #d97706;
  --danger:      #dc2626;
  --info:        #2563eb;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow:      0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-body);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── LAYOUT PRINCIPAL ─────────────────────────────────────────── */
.dash-layout {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 200;
  transition: transform .3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
}
.sidebar-logo img {
  width: 40px; height: 40px;
  border-radius: 10px; object-fit: cover;
}
.sidebar-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--white);
}
.sidebar-logo-text span { color: var(--gold); }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-user-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--navy);
  font-size: .85rem;
  flex-shrink: 0;
  overflow: hidden;
}
.sidebar-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user-info { min-width: 0; }
.sidebar-user-name {
  font-size: .82rem; font-weight: 600;
  color: var(--white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: .72rem; color: var(--gold-light);
  text-transform: uppercase; letter-spacing: .06em;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
}
.sidebar-section-title {
  font-size: .65rem; font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase; letter-spacing: .12em;
  padding: 16px 20px 6px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: .875rem; font-weight: 500;
  border-radius: 0;
  transition: all .18s;
  position: relative;
  cursor: pointer;
  border: none; background: none; width: 100%; text-align: left;
}
.sidebar-link .icon {
  width: 18px; height: 18px;
  flex-shrink: 0; opacity: .7;
}
.sidebar-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}
.sidebar-link.active {
  color: var(--gold);
  background: rgba(232,160,48,0.12);
}
.sidebar-link.active .icon { opacity: 1; }
.sidebar-link.active::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--gold);
  border-radius: 0 2px 2px 0;
}
.sidebar-badge {
  margin-left: auto;
  background: var(--danger);
  color: white;
  font-size: .65rem; font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  min-width: 18px; text-align: center;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logout {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.5);
  font-size: .85rem;
  cursor: pointer;
  transition: color .2s;
  background: none; border: none; width: 100%; padding: 8px 0;
}
.sidebar-logout:hover { color: var(--danger); }

/* ── TOPBAR ──────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: var(--sidebar-w); right: 0;
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  display: flex; align-items: center;
  padding: 0 28px;
  gap: 16px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.topbar-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--navy);
  flex: 1;
}
.topbar-search {
  display: flex; align-items: center;
  background: var(--gray-soft);
  border-radius: 8px;
  padding: 8px 14px;
  gap: 8px;
  flex: 0 1 280px;
}
.topbar-search input {
  border: none; background: none;
  font-family: inherit; font-size: .85rem;
  color: var(--text-dark); outline: none;
  width: 100%;
}
.topbar-search input::placeholder { color: var(--gray-mid); }
.topbar-search svg { color: var(--gray-mid); flex-shrink: 0; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 8px;
  background: none; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--gray-mid);
  transition: background .2s, color .2s;
}
.topbar-btn:hover { background: var(--gray-soft); color: var(--navy); }
.topbar-btn .badge {
  position: absolute; top: 4px; right: 4px;
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid white;
}

.hamburger-btn {
  display: none;
  width: 38px; height: 38px;
  border-radius: 8px;
  background: none; border: none;
  flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.hamburger-btn span {
  width: 18px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: .3s;
}

/* ── MAIN CONTENT ────────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  padding-top: var(--topbar-h);
  min-height: 100vh;
  flex: 1;
}
.page-content {
  padding: 28px;
  max-width: 1400px;
}

/* ── STAT CARDS ──────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: box-shadow .2s;
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.stat-card-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.stat-card-icon.navy  { background: rgba(15,31,61,.1); color: var(--navy); }
.stat-card-icon.gold  { background: rgba(232,160,48,.15); color: var(--gold); }
.stat-card-icon.teal  { background: rgba(29,122,107,.12); color: var(--teal); }
.stat-card-icon.red   { background: rgba(220,38,38,.1); color: var(--danger); }
.stat-card-icon.green { background: rgba(22,163,74,.1); color: var(--success); }
.stat-card-trend {
  font-size: .72rem; font-weight: 600;
  padding: 3px 8px; border-radius: 100px;
}
.trend-up   { background: rgba(22,163,74,.12); color: var(--success); }
.trend-down { background: rgba(220,38,38,.1); color: var(--danger); }
.stat-card-value {
  font-size: 1.9rem; font-weight: 700;
  color: var(--text-dark); line-height: 1;
  margin-bottom: 4px;
}
.stat-card-label {
  font-size: .78rem; color: var(--gray-mid);
  font-weight: 500;
}

/* ── CARDS GENÉRICAS ─────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--text-dark);
}
.card-body { padding: 20px; }
.card-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex; align-items: center; justify-content: space-between;
}

/* ── TABLA ───────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead th {
  text-align: left;
  padding: 11px 14px;
  font-size: .72rem; font-weight: 700;
  color: var(--gray-mid);
  text-transform: uppercase; letter-spacing: .08em;
  background: var(--gray-soft);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  white-space: nowrap;
}
tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(0,0,0,0.02); }

/* ── BADGES / PILLS ──────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 100px;
  font-size: .72rem; font-weight: 600;
  white-space: nowrap;
}
.badge-success { background: rgba(22,163,74,.12); color: var(--success); }
.badge-warning { background: rgba(217,119,6,.12); color: var(--warning); }
.badge-danger  { background: rgba(220,38,38,.1); color: var(--danger); }
.badge-info    { background: rgba(37,99,235,.1); color: var(--info); }
.badge-navy    { background: rgba(15,31,61,.1); color: var(--navy); }
.badge-gold    { background: rgba(232,160,48,.15); color: #92620a; }
.badge-gray    { background: var(--gray-soft); color: var(--gray-mid); }

/* ── BOTONES ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: .875rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: all .18s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary  { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-light); }
.btn-gold     { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline  { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-success  { background: var(--success); color: white; }
.btn-success:hover { background: #15803d; }
.btn-danger   { background: var(--danger); color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-ghost    { background: transparent; color: var(--gray-mid); }
.btn-ghost:hover { background: var(--gray-soft); color: var(--text-dark); }
.btn-sm { padding: 6px 12px; font-size: .8rem; }
.btn-lg { padding: 13px 28px; font-size: 1rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-icon { padding: 8px; border-radius: 8px; }

/* ── FORMULARIOS ─────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: .82rem; font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-label .required { color: var(--danger); }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid rgba(0,0,0,0.13);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: .875rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,31,61,.1);
}
.form-control::placeholder { color: var(--gray-mid); }
.form-control.error { border-color: var(--danger); }
.form-error { font-size: .78rem; color: var(--danger); margin-top: 4px; }
.form-hint  { font-size: .78rem; color: var(--gray-mid); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }

/* ── CALENDAR ────────────────────────────────────────────────── */
.calendar-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
}
.calendar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: var(--navy);
  color: white;
}
.calendar-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
}
.calendar-nav {
  display: flex; gap: 8px;
}
.calendar-nav button {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  border: none; color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.calendar-nav button:hover { background: rgba(255,255,255,0.2); }
.calendar-grid { padding: 16px; }
.calendar-days-header {
  display: grid; grid-template-columns: repeat(7,1fr);
  margin-bottom: 8px;
}
.calendar-day-name {
  text-align: center;
  font-size: .72rem; font-weight: 700;
  color: var(--gray-mid);
  text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 0;
}
.calendar-days {
  display: grid; grid-template-columns: repeat(7,1fr);
  gap: 3px;
}
.calendar-day {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  padding: 6px 4px;
  cursor: pointer;
  transition: background .15s;
  min-height: 60px;
  position: relative;
}
.calendar-day:hover { background: var(--gray-soft); }
.calendar-day.today { background: rgba(232,160,48,.15); }
.calendar-day.today .day-num { color: var(--gold); font-weight: 700; }
.calendar-day.selected { background: var(--navy); }
.calendar-day.selected .day-num { color: white; }
.calendar-day.other-month { opacity: .35; }
.day-num {
  font-size: .82rem; font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 3px;
}
.day-dots {
  display: flex; gap: 2px; flex-wrap: wrap;
  justify-content: center;
}
.day-dot {
  width: 5px; height: 5px; border-radius: 50%;
}
.dot-navy  { background: var(--navy); }
.dot-gold  { background: var(--gold); }
.dot-teal  { background: var(--teal); }
.dot-red   { background: var(--danger); }

/* ── CLASE ITEMS ─────────────────────────────────────────────── */
.clase-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.clase-item:last-child { border-bottom: none; }
.clase-time {
  flex-shrink: 0;
  width: 56px;
  text-align: center;
  background: var(--gray-soft);
  border-radius: 10px;
  padding: 8px 6px;
}
.clase-time-hora { font-size: .75rem; font-weight: 700; color: var(--navy); }
.clase-time-min  { font-size: .65rem; color: var(--gray-mid); }
.clase-info { flex: 1; min-width: 0; }
.clase-nombre {
  font-weight: 600; font-size: .9rem;
  color: var(--text-dark); margin-bottom: 2px;
}
.clase-materia { font-size: .78rem; color: var(--gray-mid); }
.clase-estado { margin-left: auto; flex-shrink: 0; }

/* ── MODAL ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  width: 100%; max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn .2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700; color: var(--navy);
}
.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px; border: none; background: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--gray-mid);
  font-size: 1.1rem;
  transition: background .2s;
}
.modal-close:hover { background: var(--gray-soft); color: var(--text-dark); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(0,0,0,0.07);
  display: flex; gap: 10px; justify-content: flex-end;
}

/* ── NOTIFICACIONES TOAST ────────────────────────────────────── */
.toast-container {
  position: fixed; top: 80px; right: 20px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: flex; align-items: flex-start; gap: 12px;
  max-width: 360px;
  border-left: 4px solid var(--info);
  animation: toastIn .25s ease;
  pointer-events: all;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: none; }
}
.toast.success { border-color: var(--success); }
.toast.warning { border-color: var(--warning); }
.toast.error   { border-color: var(--danger); }
.toast-icon { flex-shrink: 0; margin-top: 1px; }
.toast-title { font-weight: 700; font-size: .85rem; margin-bottom: 2px; }
.toast-msg   { font-size: .8rem; color: var(--gray-mid); }

/* ── UPLOAD ZONE ─────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed rgba(0,0,0,0.15);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--navy);
  background: rgba(15,31,61,0.03);
}
.upload-zone-icon { font-size: 2.4rem; margin-bottom: 10px; }
.upload-zone-title { font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
.upload-zone-sub   { font-size: .8rem; color: var(--gray-mid); }
.upload-zone input[type=file] { display: none; }

/* ── ALERTAS ─────────────────────────────────────────────────── */
.alert {
  display: flex; gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
  margin-bottom: 16px;
}
.alert-info    { background: rgba(37,99,235,.07); border-color: var(--info); }
.alert-success { background: rgba(22,163,74,.07); border-color: var(--success); }
.alert-warning { background: rgba(217,119,6,.07); border-color: var(--warning); }
.alert-danger  { background: rgba(220,38,38,.07); border-color: var(--danger); }
.alert-icon { flex-shrink: 0; font-size: 1rem; margin-top: 1px; }
.alert-body { flex: 1; font-size: .875rem; }
.alert-title { font-weight: 700; margin-bottom: 2px; }

/* ── EMPTY STATE ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: .4; }
.empty-title { font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.empty-desc  { font-size: .875rem; color: var(--gray-mid); max-width: 280px; margin: 0 auto 20px; }

/* ── AVATAR GRUPO ────────────────────────────────────────────── */
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .75rem; color: var(--navy);
  flex-shrink: 0; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 26px; height: 26px; font-size: .65rem; }
.avatar-lg { width: 60px; height: 60px; font-size: 1.1rem; }

/* ── DROPDOWN ────────────────────────────────────────────────── */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 180px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 6px;
  z-index: 500;
  display: none;
}
.dropdown-menu.open { display: block; animation: fadeDown .15s ease; }
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: .875rem;
  color: var(--text-body);
  cursor: pointer;
  transition: background .15s;
  border: none; background: none; width: 100%; text-align: left;
}
.dropdown-item:hover { background: var(--gray-soft); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-divider {
  height: 1px; background: rgba(0,0,0,0.07); margin: 6px 0;
}

/* ── PAGINACIÓN ──────────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; gap: 4px;
}
.page-btn {
  width: 32px; height: 32px;
  border-radius: 8px; border: none;
  background: none; cursor: pointer;
  font-size: .82rem; font-weight: 600;
  color: var(--gray-mid);
  transition: all .15s;
  display: flex; align-items: center; justify-content: center;
}
.page-btn:hover { background: var(--gray-soft); color: var(--navy); }
.page-btn.active { background: var(--navy); color: white; }

/* ── SKELETON LOADER ─────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-soft) 25%, #e8e5de 50%, var(--gray-soft) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: 6px;
}
@keyframes skeleton { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 20px; width: 60%; margin-bottom: 12px; }
.skeleton-circle { border-radius: 50%; }

/* ── OVERLAY SIDEBAR MÓVIL ───────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0,0,0,0.5);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sidebar-w: 240px; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: none;
    box-shadow: var(--shadow-lg);
  }
  .sidebar-overlay.open { display: block; }
  .main-content { margin-left: 0; }
  .topbar { left: 0; }
  .hamburger-btn { display: flex; }
  .topbar-search { display: none; }
  .page-content { padding: 16px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .page-content { padding: 12px; }
  .modal { border-radius: var(--radius) var(--radius) 0 0; max-width: 100%; }
  .modal-overlay { align-items: flex-end; padding: 0; }
}
