/* Margarita Maza 2026 — estilos compartidos */

/* Paleta oficial Secretaría de las Mujeres 2024-2030 (guía de marca):
   Guinda PANTONE 7421 C #611232 · Dorado PANTONE 1255 C #a6802d ·
   Negro PANTONE Neutral Black C #161a1d */
@font-face {
  font-family: 'Patria';
  src: url('/fonts/Patria-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Patria';
  src: url('/fonts/Patria-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Patria';
  src: url('/fonts/Patria-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --guinda-900: #490e26;
  --guinda-700: #611232;
  --guinda-600: #7a1a40;
  --guinda-500: #96345c;
  --guinda-100: #f5e6ec;
  --oro-500: #a6802d;
  --oro-100: #f6ecd9;
  --gris-900: #161a1d;
  --gris-700: #4b5263;
  --gris-500: #6b7280;
  --gris-300: #d7dae0;
  --gris-100: #f4f5f7;
  --blanco: #ffffff;
  --rojo-600: #b91c1c;
  --verde-600: #15803d;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(73, 14, 38, 0.08);
  --shadow-lg: 0 12px 32px rgba(73, 14, 38, 0.16);
  --font-display: 'Patria', 'Georgia', serif;
  --font-body: 'Noto Sans', 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

.msi {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  vertical-align: -15%;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--gris-900);
  background: var(--gris-100);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--guinda-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Topbar ─────────────────────────────────────────────────────────── */
.topbar {
  background: var(--guinda-900);
  color: var(--blanco);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blanco);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .15s;
}
.topbar a.brand:hover { color: var(--blanco); opacity: .8; text-decoration: none; }
.topbar .brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .7rem;
  opacity: .8;
  letter-spacing: .04em;
}
.brand-logo { height: 32px; width: auto; display: block; flex-shrink: 0; }
.dash-sidebar .brand-logo { height: 24px; }
.auth-card .brand-logo { height: 34px; width: auto; margin: 0 auto; }
.topbar nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar nav a { color: var(--blanco); opacity: .9; font-size: .92rem; }
.topbar nav a:hover { opacity: 1; text-decoration: none; border-bottom: 2px solid var(--oro-500); }
.btn-nav {
  background: var(--oro-500);
  color: var(--guinda-900) !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  border-bottom: none !important;
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(150deg, var(--guinda-900), var(--guinda-700) 60%, var(--guinda-500));
  color: var(--blanco);
  padding: 64px 0 72px;
  text-align: center;
}
.hero .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.35);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 820px; margin: 0 auto .4em; }
.hero .tema {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--oro-100);
  max-width: 700px;
  margin: 0 auto 28px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.hero-portrait {
  display: block;
  width: 136px; height: 136px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 10px; border: 4px solid var(--oro-500); background: var(--blanco);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.hero-portrait:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,.4); }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-portrait-cap {
  display: block; font-size: .72rem; letter-spacing: .04em; color: var(--oro-100);
  opacity: .85; margin-bottom: 22px;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--oro-500); color: var(--guinda-900); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(201,151,29,.4); }
.btn-outline { background: transparent; color: var(--blanco); border: 1.5px solid rgba(255,255,255,.6); }
.btn-ghost { background: var(--gris-100); color: var(--gris-900); }
.btn-danger { background: var(--rojo-600); color: var(--blanco); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-sm { padding: 7px 16px; font-size: .82rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ── Sections ───────────────────────────────────────────────────────── */
section.block { padding: 56px 0; }
section.block.alt { background: var(--blanco); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head .kicker {
  color: var(--guinda-600);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.section-head p { color: var(--gris-700); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.card {
  background: var(--blanco);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gris-300);
}
.card h3 { color: var(--guinda-700); font-size: 1.05rem; }
.card p { color: var(--gris-700); font-size: .92rem; line-height: 1.55; margin: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--guinda-100); color: var(--guinda-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 14px;
}

/* ── Timeline (cronograma) ─────────────────────────────────────────── */
.timeline { position: relative; margin-top: 20px; }
.timeline::before {
  content: ''; position: absolute; left: 19px; top: 6px; bottom: 6px;
  width: 2px; background: var(--gris-300);
}
.tl-item { position: relative; padding: 0 0 28px 54px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 10px; top: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--guinda-700); border: 3px solid var(--blanco);
  box-shadow: 0 0 0 2px var(--guinda-700);
}
.tl-item h4 { margin: 0 0 4px; font-size: 1rem; color: var(--gris-900); }
.tl-item .tl-meta { font-size: .8rem; color: var(--guinda-600); font-weight: 600; margin-bottom: 4px; }
.tl-item p { margin: 0; color: var(--gris-700); font-size: .9rem; }

/* ── Premios ────────────────────────────────────────────────────────── */
.premio-card { text-align: center; border-top: 4px solid var(--oro-500); }
.premio-card .monto { font-family: var(--font-display); font-size: 1.9rem; color: var(--guinda-800, var(--guinda-700)); margin: 6px 0; }
.premio-card .lugar { color: var(--oro-500); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: .78rem; }

/* ── Forms ──────────────────────────────────────────────────────────── */
.form-card {
  background: var(--blanco);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  max-width: 760px;
  margin: 0 auto;
}
fieldset { border: none; padding: 0; margin: 0 0 26px; }
legend {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--guinda-700);
  font-size: 1.05rem;
  padding: 0;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--gris-300);
  padding-bottom: 8px;
  width: 100%;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gris-700);
  margin-bottom: 6px;
}
.field .hint { font-size: .78rem; color: var(--gris-500); margin-top: 4px; }
.field input[type=text],
.field input[type=email],
.field input[type=tel],
.field input[type=number],
.field input[type=password],
.field input[type=search],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--gris-300);
  border-radius: 8px;
  font-size: .93rem;
  font-family: inherit;
  color: var(--gris-900);
  background: var(--blanco);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--guinda-600);
  box-shadow: 0 0 0 3px var(--guinda-100);
}
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.check-field { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: var(--gris-100); border-radius: 8px; margin-bottom: 10px; }
.check-field input { margin-top: 3px; }
.check-field label { font-size: .85rem; font-weight: 400; color: var(--gris-700); margin: 0; }
.file-drop {
  border: 2px dashed var(--gris-300);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  color: var(--gris-500);
  font-size: .88rem;
  cursor: pointer;
  transition: border-color .15s;
}
.file-drop:hover, .file-drop.drag { border-color: var(--guinda-600); color: var(--guinda-700); }
.file-drop input { display: none; }
.file-preview { margin-top: 12px; display: none; }
.file-preview img { max-height: 220px; border-radius: 8px; margin: 0 auto; border: 1px solid var(--gris-300); }

.alert { padding: 12px 16px; border-radius: 8px; font-size: .88rem; margin-bottom: 18px; }
.alert-error { background: #fdecec; color: var(--rojo-600); border: 1px solid #f4b8b8; }
.alert-success { background: #e9f9ef; color: var(--verde-600); border: 1px solid #b6e8c6; }
.alert-info { background: var(--guinda-100); color: var(--guinda-700); border: 1px solid #e3c1d8; }

.progress-bar { height: 6px; border-radius: 4px; background: var(--gris-300); overflow: hidden; margin: 14px 0; display: none; }
.progress-bar > div { height: 100%; background: var(--guinda-600); width: 0%; transition: width .2s; }

/* ── Confirmación / folio ──────────────────────────────────────────── */
.folio-box {
  text-align: center;
  padding: 40px;
}
.folio-box .check {
  width: 64px; height: 64px; border-radius: 50%; background: #e9f9ef; color: var(--verde-600);
  display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 18px;
}
.folio-code {
  font-family: 'Roboto Mono', monospace;
  background: var(--gris-100);
  border: 1px dashed var(--gris-300);
  border-radius: 8px;
  padding: 12px 20px;
  display: inline-block;
  font-size: 1rem;
  color: var(--guinda-700);
  margin: 14px 0;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
footer {
  background: var(--gris-900);
  color: #c7c9d1;
  padding: 40px 0 26px;
  font-size: .85rem;
}
footer a { color: #d9b568; }
footer .foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 24px; margin-bottom: 24px; }
footer h4 { color: var(--blanco); font-size: .85rem; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .05em; }
footer .foot-bottom {
  border-top: 1px solid #333849; padding-top: 18px; text-align: center; color: #8b8fa3; font-size: .78rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px;
}
.visit-counter { display: inline-flex; align-items: center; gap: 4px; }
.visit-counter .msi { font-size: 1rem; }
.visit-counter strong { color: #c7c9d1; font-weight: 600; }

/* ── Auth / login ───────────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--guinda-900), var(--guinda-700));
  padding: 24px;
}
.auth-card {
  background: var(--blanco);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 36px 34px;
  width: 100%;
  max-width: 380px;
}
.auth-card .logo-row { text-align: center; margin-bottom: 22px; }
.auth-card .logo-row .badge-role {
  display: inline-block; background: var(--guinda-100); color: var(--guinda-700);
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; margin-top: 6px;
}

/* ── Dashboard shell ────────────────────────────────────────────────── */
.dash-shell { display: flex; min-height: 100vh; }
.dash-sidebar {
  width: 240px; flex-shrink: 0; background: var(--guinda-900); color: var(--blanco);
  padding: 22px 16px; display: flex; flex-direction: column;
}
.dash-sidebar .brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.dash-sidebar .who { font-size: .78rem; opacity: .75; margin-bottom: 24px; }
.dash-sidebar nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dash-sidebar nav a, .dash-sidebar nav button {
  color: var(--blanco); background: none; border: none; text-align: left;
  padding: 10px 12px; border-radius: 8px; font-size: .9rem; cursor: pointer; font-family: inherit;
}
.dash-sidebar nav a:hover, .dash-sidebar nav a.active { background: rgba(255,255,255,.12); text-decoration: none; }
.dash-sidebar .logout { margin-top: auto; opacity: .8; }
.dash-main { flex: 1; padding: 28px 32px; max-width: 100%; overflow-x: auto; }
.dash-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.dash-header h1 { font-size: 1.5rem; margin: 0; }
.dash-header .sub { color: var(--gris-500); font-size: .88rem; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 16px; margin-bottom: 26px; }
.stat-card { background: var(--blanco); border: 1px solid var(--gris-300); border-radius: var(--radius); padding: 18px 20px; }
.stat-card .num { font-family: var(--font-display); font-size: 1.8rem; color: var(--guinda-700); }
.stat-card .lbl { font-size: .78rem; color: var(--gris-500); text-transform: uppercase; letter-spacing: .04em; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar select, .toolbar input[type=search] {
  padding: 8px 12px; border: 1.5px solid var(--gris-300); border-radius: 8px; font-size: .85rem; font-family: inherit;
}

.section-title { font-size: 1.02rem; font-weight: 700; color: var(--gris-900); margin: 0 0 14px; }

.estad-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: .82rem; }
.bar-label { width: 78px; flex: none; color: var(--gris-600); }
.bar-track { flex: 1; background: var(--gris-100); border-radius: 6px; height: 14px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--guinda-600); border-radius: 6px; }
.bar-count { width: 34px; text-align: right; flex: none; font-weight: 700; color: var(--gris-700); }

.eval-cat-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.eval-cat-tab {
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--gris-300); background: var(--blanco);
  color: var(--gris-700); font-size: .85rem; font-weight: 600; font-family: inherit; cursor: pointer;
}
.eval-cat-tab.active { background: var(--guinda-700); border-color: var(--guinda-700); color: var(--blanco); }

.table-wrap { background: var(--blanco); border-radius: var(--radius); border: 1px solid var(--gris-300); overflow: auto; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 760px; }
thead th {
  text-align: left; padding: 12px 14px; background: var(--gris-100); color: var(--gris-700);
  font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--gris-300); white-space: nowrap;
}
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--gris-100); vertical-align: middle; }
tbody tr:hover { background: var(--guinda-100); }
tbody tr:last-child td { border-bottom: none; }
.link-btn { background: none; border: none; color: var(--guinda-700); cursor: pointer; font-size: .85rem; font-weight: 600; padding: 0; font-family: inherit; }
.link-btn:hover { text-decoration: underline; }
.muted { color: var(--gris-500); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--gris-500); }

.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700;
  background: color-mix(in srgb, var(--badge-color) 14%, white); color: var(--badge-color);
}

/* ── Modal ──────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,10,20,.55);
  display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 100; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--blanco); border-radius: var(--radius); max-width: 640px; width: 100%;
  padding: 28px; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto;
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.modal-head h2 { font-size: 1.2rem; margin: 0; }
.modal-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--gris-500); line-height: 1; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-bottom: 18px; font-size: .88rem; }
.detail-grid .full { grid-column: 1 / -1; }
.detail-grid dt { font-weight: 700; color: var(--gris-700); font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px; }
.detail-grid dd { margin: 0; color: var(--gris-900); }
.modal img.obra { width: 100%; border-radius: 10px; border: 1px solid var(--gris-300); margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--gris-300); padding-top: 18px; }

.spinner {
  width: 22px; height: 22px; border: 3px solid var(--guinda-100); border-top-color: var(--guinda-600);
  border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Aviso de privacidad (gate de entrada) ─────────────────────────── */
.aviso-overlay {
  position: fixed; inset: 0; background: rgba(20, 10, 20, .68);
  display: none; align-items: center; justify-content: center; padding: 20px; z-index: 500;
}
.aviso-overlay.open { display: flex; }
.aviso-modal {
  background: var(--blanco); border-radius: var(--radius); max-width: 620px; width: 100%;
  padding: 32px; box-shadow: var(--shadow-lg); max-height: 85vh; overflow-y: auto;
}
.aviso-modal h2 {
  color: var(--guinda-700); font-size: 1.2rem; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.aviso-modal h2 .msi { font-size: 1.3rem; }
.aviso-body { font-size: .88rem; color: var(--gris-700); line-height: 1.65; margin-bottom: 22px; }
.aviso-body p { margin: 0 0 12px; }
.aviso-body p:last-child { margin-bottom: 0; }
.aviso-body strong { color: var(--gris-900); }

/* ── Constancia de participación (imprimible) ─────────────────────── */
.constancia-doc { max-width: 820px; margin: 0 auto; }
.constancia-border {
  background: var(--blanco); border: 2px solid var(--oro-500); border-radius: 4px;
  padding: 48px 40px; text-align: center; box-shadow: var(--shadow);
  outline: 1px solid var(--guinda-700); outline-offset: -10px;
}
.constancia-logo { height: 46px; margin-bottom: 18px; }
.constancia-kicker { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gris-500); margin-bottom: 8px; }
.constancia-title { font-size: 2rem; color: var(--guinda-700); margin: 0 0 4px; }
.constancia-title span { color: var(--oro-500); }
.constancia-subtitle { font-size: 1.05rem; color: var(--gris-700); font-weight: 600; margin-bottom: 30px; }
.constancia-body { font-size: 1.05rem; line-height: 1.9; color: var(--gris-900); max-width: 620px; margin: 0 auto 32px; }
.constancia-meta { display: flex; justify-content: center; gap: 48px; margin-bottom: 40px; flex-wrap: wrap; }
.constancia-meta .lbl { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gris-500); margin-bottom: 4px; }
.constancia-meta .val { font-family: var(--font-display); font-size: 1.15rem; color: var(--guinda-700); }
.constancia-firmas { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.constancia-firmas .firma { font-size: .82rem; color: var(--gris-700); width: 200px; }
.constancia-firmas .linea { border-top: 1.5px solid var(--gris-500); margin-bottom: 8px; padding-top: 46px; }

@media print {
  .no-print { display: none !important; }
  body { background: var(--blanco); }
  .constancia-border { box-shadow: none; }
  section.block { padding: 0; }
}

@media (max-width: 780px) {
  .topbar .container { flex-direction: column; align-items: flex-start; gap: 10px; }
  .topbar nav { width: 100%; row-gap: 8px; }
  .dash-shell { flex-direction: column; }
  .dash-sidebar { width: 100%; flex-direction: column; align-items: stretch; padding: 14px 16px; }
  .dash-sidebar .who { display: none; }
  .dash-sidebar nav { flex-direction: row; flex-wrap: wrap; gap: 6px; margin-top: 12px; flex: none; }
  .dash-sidebar nav a { flex: none; }
  .dash-sidebar .logout { margin-top: 12px; }
  .dash-main { padding: 20px 16px; }
  .stat-row {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 6px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
  }
  .stat-card { flex: 0 0 156px; }
  .detail-grid { grid-template-columns: 1fr; }
  .estad-cols { grid-template-columns: 1fr; }
}
