/* ═══════════════════════════════════════════════════════════════════════════
   THD · Sistema de diseño compartido
   Única fuente de verdad de colores, tipografía y componentes de la app.
   Identidad: azul marino + dorado (la misma paleta que fija el skill de
   reportes). Georgia para títulos y marca; sistema para el cuerpo.
   Guía viva de componentes: /ui-kit.html
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Marca */
  --azul: #1F3864;
  --azul-m: #2E5D9E;
  --azul-p: #0D2137;
  --azul-c: #E8EFF8;
  --oro: #B8860B;
  --oro-br: #D4AF37;
  --oro-hover: #C79F2C;
  --oro-lt: #FEF9E7;
  --oro-txt: #8A6508;

  /* Estados (mismos hex en toda la app) */
  --rojo: #C0392B;
  --rojo-lt: #FDEDEC;
  --verde: #1E8449;
  --verde-lt: #EAFAF1;
  --ambar: #E67E22;
  --ambar-lt: #FEF5E7;
  --ambar-txt: #B45309;

  /* Neutros */
  --gris: #F4F6F9;
  --gris-m: #D5DCE8;
  --gris-txt: #5B6B8C;      /* 5.3:1 sobre blanco — apto para texto */
  --texto: #1A1A2E;
  --texto-2: #5B6B8C;
  --blanco: #FFFFFF;

  /* Espaciado, radios, sombras */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
  --sh-sm: 0 1px 2px rgba(13, 33, 55, .06), 0 1px 3px rgba(13, 33, 55, .08);
  --sh-md: 0 4px 12px rgba(13, 33, 55, .10);
  --sh-lg: 0 12px 32px rgba(13, 33, 55, .18);

  /* Tipografía (mínimo 12px en toda la app) */
  --font-titulo: Georgia, "Times New Roman", serif;
  --font-cuerpo: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --fs-xs: 12px; --fs-sm: 14px; --fs-md: 16px; --fs-lg: 20px; --fs-xl: 26px;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }  /* el atributo hidden siempre gana sobre display:flex/grid de los componentes */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-cuerpo);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--texto);
  background: var(--gris);
}
h1, h2, h3 { font-family: var(--font-titulo); color: var(--azul); line-height: 1.25; margin: 0 0 var(--sp-3); }
h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); }
p { margin: 0 0 var(--sp-3); }
a { color: var(--azul-m); }
img, svg { max-width: 100%; }
.muted { color: var(--texto-2); }
.small { font-size: var(--fs-xs); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack > * + * { margin-top: var(--sp-3); }
.row { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }

/* Foco visible y consistente */
:focus-visible { outline: 3px solid var(--azul-m); outline-offset: 2px; border-radius: var(--r-sm); }
.app-header :focus-visible, .on-dark :focus-visible { outline-color: var(--oro-br); }

/* ── Contenedores ─────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 820px; margin: var(--sp-5) auto var(--sp-7); padding: 0 var(--sp-4); }
.container-narrow { max-width: 560px; }
.container-wide { max-width: 1080px; }

/* ── Header de la app ─────────────────────────────────────────────────── */
.app-header { background: var(--azul); color: #fff; box-shadow: var(--sh-sm); }
.app-header-inner {
  max-width: 1080px; margin: 0 auto; padding: var(--sp-3) var(--sp-4);
  display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
}
.logo { font-family: var(--font-titulo); font-weight: bold; letter-spacing: 3px; font-size: 20px; color: #fff; text-decoration: none; white-space: nowrap; }
.logo span { color: var(--oro-br); }
.app-header .app-sub { font-size: var(--fs-xs); color: #cdd8ea; margin-top: 2px; letter-spacing: 0; font-family: var(--font-cuerpo); font-weight: normal; }
.app-nav { display: flex; align-items: center; gap: var(--sp-1); margin-left: auto; flex-wrap: wrap; }
.app-nav a, .app-nav button {
  color: #e3eaf6; text-decoration: none; background: transparent; border: 0; cursor: pointer;
  font: inherit; font-size: var(--fs-sm); padding: 10px 12px; border-radius: var(--r-sm); min-height: 44px;
  display: inline-flex; align-items: center; gap: 6px;
}
.app-nav a:hover, .app-nav button:hover { background: rgba(255, 255, 255, .10); color: #fff; }
.app-nav a[aria-current="page"] { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; }
.app-nav .nav-sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .25); margin: 0 var(--sp-1); }

/* Header centrado (páginas de respondente) */
.app-header-center { text-align: center; padding: var(--sp-4) var(--sp-4) var(--sp-3); }
.app-header-center .titulo { font-size: var(--fs-sm); font-weight: 600; letter-spacing: .5px; margin-top: 6px; text-transform: uppercase; }
.app-header-center .app-sub { font-size: var(--fs-xs); color: #cdd8ea; margin-top: 2px; }
.app-header.is-sticky { position: sticky; top: 0; z-index: 30; }

/* Menú desplegable simple (usa <details>, funciona sin JS) */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; z-index: 40;
  background: #fff; color: var(--texto); border-radius: var(--r-md); box-shadow: var(--sh-lg); padding: var(--sp-2);
}
.menu-panel a, .menu-panel button {
  display: flex; width: 100%; text-align: left; color: var(--texto); background: none; border: 0; cursor: pointer;
  font: inherit; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; min-height: 44px; align-items: center;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--azul-c); }
.menu-panel .is-danger { color: var(--rojo); }
.menu-panel hr { border: 0; border-top: 1px solid var(--gris-m); margin: var(--sp-2) 0; }

/* ── Tarjetas ─────────────────────────────────────────────────────────── */
.card { background: #fff; border: 1px solid var(--gris-m); border-radius: var(--r-lg); padding: var(--sp-5); margin-bottom: var(--sp-4); box-shadow: var(--sh-sm); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-sub { color: var(--texto-2); font-size: var(--fs-sm); margin: -4px 0 var(--sp-4); }
.card-accent { border-left: 4px solid var(--oro-br); }
.card-flat { box-shadow: none; }

/* ── Botones ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--r-md); border: 1px solid transparent;
  font: inherit; font-size: var(--fs-sm); font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .05s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--oro-br); color: var(--azul); box-shadow: var(--sh-sm); }
.btn-primary:hover { background: var(--oro-hover); box-shadow: var(--sh-md); }
.btn-secondary { background: #fff; color: var(--azul-m); border-color: var(--azul-m); }
.btn-secondary:hover { background: var(--azul-c); }
.btn-ghost { background: transparent; color: var(--azul-m); }
.btn-ghost:hover { background: var(--azul-c); }
.btn-danger { background: var(--rojo); color: #fff; }
.btn-danger:hover { background: #A93226; }
.btn-danger-ghost { background: transparent; color: var(--rojo); }
.btn-danger-ghost:hover { background: var(--rojo-lt); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: var(--fs-xs); }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: var(--fs-md); }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(31, 56, 100, .35); border-top-color: var(--azul); animation: thd-spin .7s linear infinite;
}
.btn-danger.is-loading::after, .btn-secondary.is-loading::after { border-color: rgba(255,255,255,.4); border-top-color: #fff; }
.btn-secondary.is-loading::after { border-color: rgba(46,93,158,.3); border-top-color: var(--azul-m); }
@keyframes thd-spin { to { transform: rotate(360deg); } }

/* ── Formularios ──────────────────────────────────────────────────────── */
.field { margin-bottom: var(--sp-4); }
.field > label, label.field-label { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--azul); margin-bottom: 6px; }
.field .hint { display: block; font-size: var(--fs-xs); color: var(--texto-2); margin-top: 6px; }
.field .req { color: var(--rojo); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"],
select, textarea, .input {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; font-size: var(--fs-md); color: var(--texto);
  background: #fff; border: 1px solid #aebbd1; border-radius: var(--r-md);
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--azul-m); box-shadow: 0 0 0 3px rgba(46, 93, 158, .22); }
input::placeholder, textarea::placeholder { color: #7B88A3; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--rojo); background: var(--rojo-lt); }
.field-error { color: var(--rojo); font-size: var(--fs-xs); font-weight: 600; margin-top: 6px; }
.check { display: flex; align-items: flex-start; gap: var(--sp-2); min-height: 44px; padding: 8px 0; font-size: var(--fs-sm); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--azul-m); }

/* ── Insignias, alertas, estados vacíos ───────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.badge::before { content: "•"; font-weight: 900; }
.badge-ok { background: var(--verde-lt); color: var(--verde); }   .badge-ok::before { content: "✓"; }
.badge-warn { background: var(--ambar-lt); color: var(--ambar-txt); } .badge-warn::before { content: "!"; }
.badge-error { background: var(--rojo-lt); color: var(--rojo); }   .badge-error::before { content: "✕"; }
.badge-info { background: var(--azul-c); color: var(--azul); }     .badge-info::before { content: "i"; font-style: italic; font-family: var(--font-titulo); }
.badge-neutral { background: #EDF0F5; color: var(--texto-2); }
.badge-gold { background: var(--oro-lt); color: var(--oro-txt); }

.alert { display: flex; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); border: 1px solid; border-left-width: 4px; font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.alert::before { font-weight: 900; flex-shrink: 0; width: 20px; text-align: center; }
.alert > div > :last-child { margin-bottom: 0; }
.alert-info { background: var(--azul-c); border-color: var(--azul-m); color: var(--azul); }   .alert-info::before { content: "i"; font-family: var(--font-titulo); font-style: italic; }
.alert-ok { background: var(--verde-lt); border-color: var(--verde); color: #145A32; }          .alert-ok::before { content: "✓"; }
.alert-warn { background: var(--ambar-lt); border-color: var(--ambar); color: #7C3A0A; }        .alert-warn::before { content: "!"; }
.alert-error { background: var(--rojo-lt); border-color: var(--rojo); color: #7B241C; }         .alert-error::before { content: "✕"; }

.empty-state { text-align: center; padding: var(--sp-6) var(--sp-4); color: var(--texto-2); }
.empty-state .empty-icon { font-size: 40px; line-height: 1; margin-bottom: var(--sp-3); }
.empty-state h3 { color: var(--azul); margin-bottom: var(--sp-2); }
.empty-state p { max-width: 420px; margin: 0 auto var(--sp-4); }
.loading-state { text-align: center; padding: var(--sp-6); color: var(--texto-2); }
.spinner { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--gris-m); border-top-color: var(--azul-m); animation: thd-spin .8s linear infinite; vertical-align: middle; margin-right: 8px; }
.skeleton { background: linear-gradient(90deg, #E9EDF3 25%, #F4F6F9 50%, #E9EDF3 75%); background-size: 200% 100%; animation: thd-shimmer 1.2s infinite; border-radius: var(--r-sm); min-height: 16px; }
@keyframes thd-shimmer { to { background-position: -200% 0; } }

/* ── Progreso y stepper ───────────────────────────────────────────────── */
.progress { height: 10px; background: var(--gris-m); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--azul-m), var(--oro-br)); border-radius: 999px; transition: width .25s; }
.progress-bar-sticky {
  position: sticky; top: 0; z-index: 25; background: rgba(244, 246, 249, .96); backdrop-filter: blur(4px);
  padding: var(--sp-2) var(--sp-4); border-bottom: 1px solid var(--gris-m);
}
.progress-bar-sticky .progress-label { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--texto-2); margin-bottom: 6px; font-weight: 600; }

.stepper { list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: flex; gap: var(--sp-2); flex-wrap: wrap; counter-reset: paso; }
.stepper li { flex: 1 1 150px; position: relative; background: #fff; border: 1px solid var(--gris-m); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-3) var(--sp-3) 52px; min-height: 64px; counter-increment: paso; }
.stepper li::before {
  content: counter(paso); position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--fs-sm);
  background: var(--gris-m); color: var(--azul);
}
.stepper .step-title { font-weight: 700; font-size: var(--fs-sm); color: var(--azul); }
.stepper .step-state { font-size: var(--fs-xs); color: var(--texto-2); margin-top: 2px; }
.stepper li.is-done { border-color: #A9DFBF; background: var(--verde-lt); }
.stepper li.is-done::before { content: "✓"; background: var(--verde); color: #fff; }
.stepper li.is-current { border-color: var(--oro-br); box-shadow: 0 0 0 2px var(--oro-br); background: var(--oro-lt); }
.stepper li.is-current::before { background: var(--oro-br); color: var(--azul); }
.stepper li.is-locked { opacity: .75; }
.stepper li.is-locked::before { content: "🔒"; background: #EDF0F5; font-size: 13px; }

/* ── Tablas ───────────────────────────────────────────────────────────── */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: var(--sp-4); }
table.simple { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
table.simple th { text-align: left; color: var(--texto-2); font-weight: 700; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .4px; padding: 8px 10px; border-bottom: 2px solid var(--gris-m); white-space: nowrap; }
table.simple td { padding: 10px; border-bottom: 1px solid #E9EDF3; vertical-align: top; }

/* ── Modal ────────────────────────────────────────────────────────────── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(13, 33, 55, .55); display: flex; align-items: center; justify-content: center; padding: var(--sp-4); z-index: 100; }
.modal { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg); width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; padding: var(--sp-5); }
.modal h2 { margin-top: 0; font-size: var(--fs-lg); }
.modal-body { color: var(--texto); margin-bottom: var(--sp-4); }
.modal-body p:last-child { margin-bottom: 0; }
.modal-actions { display: flex; gap: var(--sp-2); justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 480px) { .modal-actions .btn { flex: 1 1 100%; } }

/* ── Toasts ───────────────────────────────────────────────────────────── */
.toast-stack { position: fixed; z-index: 120; left: 50%; bottom: var(--sp-4); transform: translateX(-50%); display: flex; flex-direction: column; gap: var(--sp-2); width: min(92vw, 460px); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4);
  background: var(--azul-p); color: #fff; border-radius: var(--r-md); box-shadow: var(--sh-lg); font-size: var(--fs-sm); line-height: 1.45;
  border-left: 4px solid var(--azul-m); animation: thd-toast-in .2s ease-out;
}
.toast-ok { border-left-color: #2ECC71; }
.toast-error { border-left-color: #E74C3C; background: #3A1410; }
.toast-warn { border-left-color: var(--ambar); }
.toast .toast-msg { flex: 1; }
.toast .toast-close { background: none; border: 0; color: #fff; opacity: .7; cursor: pointer; font-size: 20px; line-height: 1; min-width: 28px; min-height: 28px; }
.toast .toast-close:hover { opacity: 1; }
@keyframes thd-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Ayuda contextual ("?" de glosario) ───────────────────────────────── */
.tip {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-left: 6px;
  border-radius: 50%; background: var(--azul-c); color: var(--azul-m); font-size: 12px; font-weight: 800; font-family: var(--font-cuerpo);
  cursor: help; position: relative; vertical-align: middle; border: 0; padding: 0;
}
.tip::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  width: max-content; max-width: min(260px, 70vw); padding: 8px 10px; background: var(--azul-p); color: #fff; border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 400; line-height: 1.45; text-align: left; box-shadow: var(--sh-md);
  display: none; z-index: 50; pointer-events: none;
}
/* display:none (no visibility) para que el globo oculto no ensanche la página en móvil */
.tip:hover::after, .tip:focus::after, .tip:focus-visible::after { display: block; }

/* ── Escala de respuesta (Likert 1–6) para tests ──────────────────────── */
.item-card { background: #fff; border: 1px solid var(--gris-m); border-radius: var(--r-lg); padding: var(--sp-4); margin-bottom: var(--sp-3); box-shadow: var(--sh-sm); scroll-margin-top: 96px; }
.item-card.is-invalid { border-color: var(--rojo); box-shadow: 0 0 0 3px rgba(192, 57, 43, .18); background: #FFFBFA; }
.item-card.is-answered { border-left: 4px solid var(--verde); }
.item-num { font-family: var(--font-titulo); color: var(--oro-txt); font-weight: bold; font-size: var(--fs-sm); margin-bottom: 4px; }
.item-text { font-size: var(--fs-md); line-height: 1.5; margin-bottom: var(--sp-3); color: var(--texto); }
.likert { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.likert button {
  min-height: 48px; border: 1px solid #aebbd1; background: #fff; color: var(--azul); border-radius: var(--r-md);
  font: inherit; font-size: var(--fs-md); font-weight: 700; cursor: pointer; transition: background .12s, border-color .12s, color .12s;
}
.likert button:hover { background: var(--azul-c); }
.likert button[aria-pressed="true"], .likert button.is-selected { background: var(--azul); border-color: var(--azul); color: #fff; }
.likert-ends { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: var(--fs-xs); color: var(--texto-2); margin-top: 6px; }
.likert-all { display: none; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 6px; font-size: var(--fs-xs); color: var(--texto-2); text-align: center; line-height: 1.25; }
.likert-sel { min-height: 20px; margin-top: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--azul-m); }
@media (min-width: 640px) {
  .likert-all { display: grid; }
  .likert-ends.has-all, .likert-sel { display: none; }
}

/* ── Menús del header (summary con aspecto de botón de navegación) ───── */
.app-nav .menu > summary {
  color: #e3eaf6; font-size: var(--fs-sm); padding: 10px 12px; border-radius: var(--r-sm); min-height: 44px;
  display: inline-flex; align-items: center; gap: 6px; user-select: none;
}
.app-nav .menu > summary:hover, .app-nav .menu[open] > summary { background: rgba(255, 255, 255, .10); color: #fff; }
.app-nav .menu-panel a, .app-nav .menu-panel button { color: var(--texto); font-size: var(--fs-sm); }
.app-nav .menu-panel .is-danger { color: var(--rojo); }

/* ── Migas de pan ("dónde estoy") ─────────────────────────────────────── */
.breadcrumb { background: #fff; border-bottom: 1px solid var(--gris-m); }
.breadcrumb-inner { max-width: 1080px; margin: 0 auto; padding: 10px var(--sp-4); font-size: var(--fs-sm); color: var(--texto-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--azul-m); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--azul); font-weight: 700; }
.breadcrumb .sep { color: #9AA6BE; }

/* ── Tarjeta de empresa / diagnóstico (panel del consultor) ───────────── */
.company-card { display: grid; gap: var(--sp-3); }
.company-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-3); flex-wrap: wrap; }
.company-name { font-family: var(--font-titulo); font-size: var(--fs-lg); color: var(--azul); font-weight: bold; margin: 0; }
.company-meta { font-size: var(--fs-sm); color: var(--texto-2); margin-top: 2px; }
.company-status { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.company-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }
.company-actions .menu { margin-left: auto; }
.company-actions .menu-panel { right: 0; left: auto; }
.progress-mini { flex: 1 1 140px; min-width: 120px; }
.progress-mini .progress { height: 8px; }
.progress-mini small { display: block; font-size: var(--fs-xs); color: var(--texto-2); margin-top: 4px; }

/* ── Responsive y accesibilidad ───────────────────────────────────────── */
@media (max-width: 640px) {
  .container { margin-top: var(--sp-4); padding: 0 var(--sp-3); }
  .card { padding: var(--sp-4); border-radius: var(--r-md); }
  h1 { font-size: 22px; }
  .app-nav { margin-left: 0; width: 100%; }
  .menu-panel { right: auto; left: 0; }
  .stepper li { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

@media print {
  body { background: #fff; }
  .app-header, .app-nav, .toast-stack, .no-print, .btn { display: none !important; }
  .card { box-shadow: none; break-inside: avoid; }
}
