/* ============================================================
   PRAXIS Aula IA — Sistema de diseño
   Paleta: Navy #101B2D · Blanco · Turquesa #2DD4BF · Lima #B8FF1F
   ============================================================ */

:root {
  --navy: #101B2D;
  --navy-2: #1A2A44;
  --turquoise: #2DD4BF;
  --turquoise-deep: #0FA896;
  --lime: #B8FF1F;
  --lime-deep: #8CCB00;

  /* Tema claro */
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --surface-2: #EEF2F8;
  --text: #16233A;
  --text-soft: #5B6B84;
  --line: #E3E9F2;
  --shadow: 0 1px 2px rgba(16,27,45,.05), 0 8px 24px rgba(16,27,45,.07);
  --shadow-lift: 0 2px 6px rgba(16,27,45,.08), 0 16px 40px rgba(16,27,45,.14);
  --primary: var(--navy);
  --primary-ink: #FFFFFF;
  --accent: var(--turquoise-deep);
  --ok: #16A34A;
  --warn: #F59E0B;
  --bad: #EF4444;
  --radius: 18px;
  --radius-s: 12px;
  --font: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --nav-h: 66px;
  --top-h: 60px;
}

[data-theme="dark"] {
  --bg: #0B1424;
  --surface: #14213A;
  --surface-2: #1B2B49;
  --text: #EDF2FA;
  --text-soft: #93A3BD;
  --line: #24365A;
  --shadow: 0 1px 2px rgba(0,0,0,.25), 0 10px 30px rgba(0,0,0,.35);
  --shadow-lift: 0 2px 8px rgba(0,0,0,.35), 0 18px 48px rgba(0,0,0,.5);
  --primary: var(--lime);
  --primary-ink: #0E1A0A;
  --accent: var(--turquoise);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100dvh;
  transition: background .35s ease, color .35s ease;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; color: inherit; }
.hidden { display: none !important; }

/* ---------- Barra superior ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--top-h);
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: .98rem; font-weight: 800; letter-spacing: -.01em; }
.brand-accent { color: var(--accent); }
.brand-text small { font-size: .68rem; color: var(--text-soft); font-weight: 600; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  color: var(--text-soft);
  transition: background .2s, transform .15s, color .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn:active { transform: scale(.9); }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--turquoise), var(--lime));
  color: var(--navy); font-weight: 800; font-size: .9rem;
  display: grid; place-items: center; cursor: pointer;
  transition: transform .15s;
}
.avatar:active { transform: scale(.9); }

/* ---------- Layout principal ---------- */
.app {
  max-width: 860px; margin: 0 auto;
  padding: calc(var(--top-h) + 18px) 18px calc(var(--nav-h) + 28px);
  animation: fadeUp .4s ease both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(.92); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.screen-enter { animation: fadeUp .38s cubic-bezier(.2,.8,.25,1) both; }

/* ---------- Navegación inferior ---------- */
.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; justify-content: space-around; align-items: stretch;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: .66rem; font-weight: 700; color: var(--text-soft);
  transition: color .2s, transform .12s;
}
.nav-item:active { transform: scale(.88); }
.nav-item.active { color: var(--accent); }
.nav-ico { font-size: 1.25rem; }
.nav-cam-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border: 3px solid var(--lime);
  display: grid; place-items: center; font-size: 1.35rem;
  margin-top: -22px; box-shadow: var(--shadow-lift);
  transition: transform .15s;
}
[data-theme="dark"] .nav-cam-circle { background: linear-gradient(135deg, var(--lime), var(--lime-deep)); }
.nav-item.nav-cam:active .nav-cam-circle { transform: scale(.9); }

/* ---------- Tipografía de pantalla ---------- */
.hero-title {
  font-size: clamp(1.55rem, 5.5vw, 2.2rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
  margin: 6px 0 4px;
}
.hero-sub { color: var(--text-soft); font-size: .95rem; margin-bottom: 20px; }
.section-label {
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-soft); margin: 26px 0 10px;
}

/* ---------- Grilla de tarjetas de creación ---------- */
.create-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 640px) { .create-grid { grid-template-columns: repeat(3, 1fr); } }
.create-card {
  position: relative; text-align: left;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 16px 16px;
  box-shadow: var(--shadow);
  transition: transform .18s cubic-bezier(.2,.8,.25,1), box-shadow .18s, border-color .18s;
  animation: pop .35s ease both;
  overflow: hidden;
}
.create-card:nth-child(n) { animation-delay: calc(var(--i, 0) * 40ms); }
.create-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--accent); }
.create-card:active { transform: scale(.96); }
.create-card .cc-emoji {
  font-size: 1.7rem; display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--surface-2); margin-bottom: 10px;
}
.create-card h3 { font-size: .95rem; font-weight: 800; letter-spacing: -.01em; }
.create-card p { font-size: .74rem; color: var(--text-soft); margin-top: 2px; }
.create-card .cc-time {
  position: absolute; top: 12px; right: 12px;
  font-size: .62rem; font-weight: 800; color: var(--turquoise-deep);
  background: color-mix(in srgb, var(--turquoise) 14%, transparent);
  padding: 3px 8px; border-radius: 99px;
}
[data-theme="dark"] .create-card .cc-time { color: var(--turquoise); }

/* Tarjeta destacada (hero de calificación) */
.feature-banner {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 70%);
  color: #fff; border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow-lift); cursor: pointer;
  transition: transform .18s;
  border: 1px solid rgba(255,255,255,.08);
}
.feature-banner:active { transform: scale(.97); }
.feature-banner .fb-emoji { font-size: 2rem; }
.feature-banner h3 { font-size: 1rem; font-weight: 800; }
.feature-banner p { font-size: .78rem; opacity: .75; }
.feature-banner .fb-cta {
  margin-left: auto; white-space: nowrap;
  background: var(--lime); color: var(--navy);
  font-weight: 800; font-size: .74rem;
  padding: 9px 14px; border-radius: 99px;
}

/* ---------- Formularios (wizard) ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 7px; }
.field input[type="text"], .field textarea, .field select {
  width: 100%; padding: 13px 14px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-s);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--turquoise) 18%, transparent);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 16px; border-radius: 99px;
  background: var(--surface); border: 1.5px solid var(--line);
  font-size: .84rem; font-weight: 700;
  transition: all .18s;
}
.chip:active { transform: scale(.93); }
.chip.selected {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
[data-theme="dark"] .chip.selected { background: var(--lime); color: var(--navy); border-color: var(--lime); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 14px;
  font-weight: 800; font-size: .95rem;
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn:active { transform: scale(.96); }
.btn-primary {
  width: 100%;
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  color: #fff; box-shadow: 0 10px 24px rgba(16,27,45,.28);
}
[data-theme="dark"] .btn-primary {
  background: linear-gradient(120deg, var(--lime), #d3ff6b);
  color: var(--navy); box-shadow: 0 10px 26px rgba(184,255,31,.22);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  background: var(--surface); border: 1.5px solid var(--line); color: var(--text);
  font-size: .84rem; padding: 11px 16px;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-mini { padding: 8px 14px; border-radius: 10px; font-size: .78rem; }
.btn-lime { background: var(--lime); color: var(--navy); }
.btn-turq { background: var(--turquoise); color: var(--navy); }
.btn-danger-soft { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }

/* ---------- Tarjetas de resultado ---------- */
.result-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow); margin-bottom: 12px;
  animation: fadeUp .4s ease both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
.result-card h4 {
  display: flex; align-items: center; gap: 9px;
  font-size: .92rem; font-weight: 800; margin-bottom: 8px;
}
.result-card h4 .rc-ico {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-size: 1rem;
  background: var(--surface-2);
}
.result-card p, .result-card li { font-size: .88rem; color: var(--text); }
.result-card ul { padding-left: 20px; display: grid; gap: 5px; }
.result-card .muted { color: var(--text-soft); font-size: .8rem; }
.rc-badge {
  display: inline-block; font-size: .64rem; font-weight: 800;
  padding: 3px 9px; border-radius: 99px; margin-left: auto;
  background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn);
}
.rc-badge.ok { background: color-mix(in srgb, var(--turquoise) 15%, transparent); color: var(--turquoise-deep); }
[data-theme="dark"] .rc-badge.ok { color: var(--turquoise); }
.rc-time {
  font-size: .68rem; font-weight: 800; color: var(--text-soft);
  background: var(--surface-2); padding: 2px 8px; border-radius: 99px;
}

/* Fila de acciones inteligentes */
.smart-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.smart-row::-webkit-scrollbar { display: none; }
.smart-row .btn-ghost { flex: none; }

/* ---------- Loading inteligente ---------- */
.loading-stage {
  min-height: 55vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 18px;
}
.orb {
  width: 86px; height: 86px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--turquoise), var(--lime), var(--turquoise));
  animation: spin 1.6s linear infinite;
  display: grid; place-items: center;
  box-shadow: 0 0 60px color-mix(in srgb, var(--turquoise) 45%, transparent);
}
.orb::after {
  content: '✨'; font-size: 1.6rem;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg); display: grid; place-items: center;
  animation: spin 1.6s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-msg { font-weight: 800; font-size: 1.05rem; min-height: 1.6em; animation: fadeIn .4s; }
.loading-sub { color: var(--text-soft); font-size: .82rem; }
.progressbar {
  width: min(320px, 80%); height: 8px; border-radius: 99px;
  background: var(--surface-2); overflow: hidden;
}
.progressbar > div {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--turquoise), var(--lime));
  border-radius: 99px; transition: width .45s ease;
}
.skeleton {
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  padding: 18px; margin-bottom: 12px;
}
.sk-line {
  height: 12px; border-radius: 6px; margin-bottom: 10px;
  background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 50%, var(--surface)) 50%, var(--surface-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Preguntas Saber ---------- */
.q-card { --i: 0; }
.q-context {
  background: var(--surface-2); border-left: 3px solid var(--turquoise);
  padding: 10px 12px; border-radius: 8px; font-size: .84rem; margin-bottom: 10px;
  font-style: italic;
}
.q-option {
  display: flex; gap: 10px; align-items: flex-start;
  width: 100%; text-align: left;
  padding: 11px 12px; border-radius: 12px; margin-bottom: 7px;
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: .86rem; transition: all .18s;
}
.q-option:hover { border-color: var(--accent); }
.q-option .q-letter {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; font-weight: 800; font-size: .78rem;
  background: var(--surface-2);
}
.q-option.correct { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, var(--surface)); }
.q-option.correct .q-letter { background: var(--ok); color: #fff; }
.q-option.wrong { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 7%, var(--surface)); }
.q-option.wrong .q-letter { background: var(--bad); color: #fff; }
.q-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag {
  font-size: .66rem; font-weight: 800; padding: 4px 10px; border-radius: 99px;
  background: var(--surface-2); color: var(--text-soft);
}
.tag.t-easy { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.tag.t-mid { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.tag.t-hard { background: color-mix(in srgb, var(--bad) 13%, transparent); color: var(--bad); }
.q-explain {
  margin-top: 10px; padding: 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--turquoise) 9%, var(--surface));
  border: 1px dashed var(--turquoise); font-size: .82rem;
  animation: fadeUp .3s ease both;
}

/* ---------- Calificación ---------- */
.photo-drop {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 34px 20px; text-align: center; cursor: pointer;
  background: var(--surface); transition: all .2s;
}
.photo-drop:hover { border-color: var(--turquoise); background: color-mix(in srgb, var(--turquoise) 5%, var(--surface)); }
.photo-drop .pd-emoji { font-size: 2.4rem; display: block; margin-bottom: 8px; }
.photo-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.photo-thumb {
  width: 74px; height: 96px; border-radius: 10px; object-fit: cover;
  border: 2px solid var(--turquoise); box-shadow: var(--shadow);
  animation: pop .3s ease both;
}
.scan-line {
  position: relative; overflow: hidden;
}
.scan-line::after {
  content: ''; position: absolute; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  animation: scan 1.4s ease-in-out infinite;
}
@keyframes scan { 0% { top: 0; } 50% { top: calc(100% - 3px); } 100% { top: 0; } }

.student-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px; border-bottom: 1px solid var(--line);
  animation: fadeUp .35s ease both; animation-delay: calc(var(--i, 0) * 35ms);
}
.student-row:last-child { border-bottom: none; }
.st-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: .8rem;
  background: var(--surface-2); color: var(--text-soft);
}
.st-name { font-size: .86rem; font-weight: 700; flex: 1; min-width: 0; }
.st-name small { display: block; font-weight: 600; font-size: .7rem; color: var(--text-soft); }
.st-grade {
  font-weight: 800; font-size: .95rem; min-width: 44px; text-align: right;
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.g { background: var(--ok); box-shadow: 0 0 8px color-mix(in srgb, var(--ok) 60%, transparent); }
.dot.y { background: var(--warn); box-shadow: 0 0 8px color-mix(in srgb, var(--warn) 60%, transparent); }
.dot.r { background: var(--bad); box-shadow: 0 0 8px color-mix(in srgb, var(--bad) 60%, transparent); }

/* Barras de estadística */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-size: .78rem; }
.bar-row .bar-label { width: 58px; flex: none; font-weight: 700; color: var(--text-soft); }
.bar-track { flex: 1; height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar-fill {
  height: 100%; border-radius: 99px; width: 0;
  background: linear-gradient(90deg, var(--turquoise), var(--lime));
  transition: width .8s cubic-bezier(.2,.8,.25,1);
}
.bar-fill.bad { background: linear-gradient(90deg, #F87171, var(--bad)); }
.bar-fill.warn { background: linear-gradient(90deg, #FCD34D, var(--warn)); }
.bar-val { width: 38px; flex: none; text-align: right; font-weight: 800; }

/* ---------- Dashboard ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
  animation: pop .35s ease both; animation-delay: calc(var(--i, 0) * 50ms);
}
.stat-card .sc-num { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.stat-card .sc-label { font-size: .72rem; font-weight: 700; color: var(--text-soft); }
.stat-card .sc-emoji { font-size: 1.1rem; }
.donut-wrap { display: flex; align-items: center; gap: 20px; }
.donut { transform: rotate(-90deg); }
.donut .donut-bg { stroke: var(--surface-2); }
.donut .donut-val { stroke: url(#donutGrad); stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.2,.8,.25,1); }
.alert-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 12px; border-radius: 12px; margin-bottom: 8px;
  background: var(--surface-2); font-size: .82rem;
  animation: fadeUp .3s ease both;
}
.alert-item .ai-emoji { flex: none; }
.todo-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: .86rem;
}
.todo-item:last-child { border-bottom: none; }
.todo-check {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  border: 2px solid var(--line); display: grid; place-items: center;
  font-size: .7rem; color: transparent; transition: all .18s;
}
.todo-item.done .todo-check { background: var(--turquoise); border-color: var(--turquoise); color: var(--navy); }
.todo-item.done span.todo-text { text-decoration: line-through; color: var(--text-soft); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10, 16, 28, .55); backdrop-filter: blur(4px);
  display: grid; place-items: end center;
  animation: fadeIn .2s ease;
}
@media (min-width: 640px) { .modal-backdrop { place-items: center; } }
.modal {
  width: 100%; max-width: 520px; max-height: 86dvh; overflow-y: auto;
  background: var(--surface); border-radius: 22px 22px 0 0; padding: 22px;
  animation: slideUp .3s cubic-bezier(.2,.8,.25,1) both;
}
@media (min-width: 640px) { .modal { border-radius: 22px; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 12px; }

/* ---------- Toast ---------- */
.toast-wrap {
  position: fixed; bottom: calc(var(--nav-h) + 16px); left: 0; right: 0; z-index: 70;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--navy); color: #fff;
  padding: 12px 20px; border-radius: 99px;
  font-size: .84rem; font-weight: 700;
  box-shadow: var(--shadow-lift);
  animation: slideUp .3s ease both;
  display: flex; align-items: center; gap: 8px;
}
[data-theme="dark"] .toast { background: var(--lime); color: var(--navy); }
.toast.out { animation: fadeIn .25s ease reverse both; }

/* ---------- Filosofía / banner docente decide ---------- */
.philosophy {
  display: flex; gap: 10px; align-items: flex-start;
  background: color-mix(in srgb, var(--lime) 13%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--lime-deep) 35%, var(--line));
  border-radius: var(--radius-s); padding: 12px 14px;
  font-size: .8rem; margin: 14px 0;
}
.philosophy strong { display: block; font-size: .82rem; }

/* ---------- Impresión / exportación ---------- */
.print-area { display: none; }
@media print {
  body > *:not(#printArea) { display: none !important; }
  .print-area { display: block !important; font-family: Georgia, serif; color: #111; }
  .print-area h1 { font-size: 20pt; margin-bottom: 4pt; }
  .print-area h2 { font-size: 13pt; margin: 12pt 0 4pt; border-bottom: 1px solid #999; padding-bottom: 2pt; }
  .print-area p, .print-area li { font-size: 10.5pt; line-height: 1.5; }
  .print-area .pr-meta { color: #555; font-size: 9pt; margin-bottom: 10pt; }
}

/* ---------- Utilidades ---------- */
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.empty-state {
  text-align: center; padding: 44px 20px; color: var(--text-soft);
}
.empty-state .es-emoji { font-size: 2.6rem; display: block; margin-bottom: 10px; }
.count-chip {
  font-size: .68rem; font-weight: 800;
  background: var(--surface-2); color: var(--text-soft);
  padding: 3px 10px; border-radius: 99px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
