/* ==========================================================================
   BISHION COTIZADOR · SISTEMA DE DISEÑO (Hito 1)
   --------------------------------------------------------------------------
   Hoja de estilos única, sin preprocesador ni dependencias externas.
   Hereda el lenguaje visual de www.bishion.com: fondo casi negro, retícula
   limpia, bordes de 1px semitransparentes, acentos lima/cian/rosa, títulos
   display condensados y botones tipo píldora. Soporta tema claro y oscuro.

   ÍNDICE
   01. Tokens de marca (tema oscuro por defecto)
   02. Tema claro
   03. Reset y base tipográfica
   04. Retícula, contenedores y utilidades
   05. Botones
   06. Insignias, chips y píldoras
   07. Tarjetas
   08. Cabecera y navegación
   09. Menú móvil
   10. Pie de página
   11. Formularios
   12. Alertas y avisos
   13. Autenticación (login y registro)
   14. Dashboard
   15. Administración
   16. Páginas de estado (verificación y errores)
   17. Responsive
   18. Accesibilidad y preferencias
   19. Impresión
   ========================================================================== */

/* ==========================================================================
   01. TOKENS DE MARCA · El tema oscuro es el estado base.
   ========================================================================== */

:root {
  /* Paleta oficial de Bishion (no inventar tonos nuevos). */
  --bh-black: #060708;
  --bh-panel: #0d0e0f;
  --bh-cream: #f4f1e8;
  --bh-muted: #8f9ca9;
  --bh-lime: #ddf85f;
  --bh-lime-soft: #eafd8e;
  --bh-cyan: #3ee6fa;
  --bh-pink: #f48bf7;
  --bh-violet: #8f68f5;
  --bh-paper: #f4f1e9;
  --bh-ink: #161511;

  /* Tipografías locales (se cargan desde assets/bishion/fonts/fonts.css). */
  --bh-font-display: "Oswald", "Arial Narrow", sans-serif;
  --bh-font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --bh-font-mono: "SFMono-Regular", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Tokens semánticos: permiten cambiar de tema sin tocar los componentes. */
  --bh-bg: var(--bh-black);
  --bh-bg-soft: #0b0c0d;
  --bh-surface: var(--bh-panel);
  --bh-surface-2: #111214;
  --bh-surface-3: #16171a;
  --bh-text: var(--bh-cream);
  --bh-text-soft: #c9c6bd;
  --bh-text-muted: var(--bh-muted);
  --bh-line: rgba(244, 241, 232, 0.14);
  --bh-line-strong: rgba(244, 241, 232, 0.28);
  --bh-line-faint: rgba(244, 241, 232, 0.08);
  --bh-input-bg: rgba(6, 7, 8, 0.55);
  --bh-header-bg: rgba(6, 7, 8, 0.82);
  --bh-panel-bg: #0b0c0d;
  --bh-hover-bg: rgba(244, 241, 232, 0.05);

  /* Acentos con variante "ink" para fondos claros. */
  --bh-lime-ink: #667a00;
  --bh-cyan-ink: #0a6d78;
  --bh-pink-ink: #a51f9b;
  --bh-violet-ink: #5b3fd0;
  --bh-accent-text: var(--bh-lime);
  --bh-error-text: #ffb3e7;

  /* Fondos suaves de estados y etiquetas. */
  --bh-tag-lime-bg: rgba(221, 248, 95, 0.14);
  --bh-tag-lime-color: #e8ff8a;
  --bh-tag-cyan-bg: rgba(62, 230, 250, 0.13);
  --bh-tag-cyan-color: #9df4ff;
  --bh-tag-pink-bg: rgba(244, 139, 247, 0.14);
  --bh-tag-pink-color: #ffbcfb;
  --bh-tag-violet-bg: rgba(143, 104, 245, 0.16);
  --bh-tag-violet-color: #cbb9ff;
  --bh-tag-muted-bg: rgba(244, 241, 232, 0.08);
  --bh-tag-muted-color: var(--bh-text-soft);

  /* Glows de fondo y retícula. */
  --bh-glow-lime: rgba(221, 248, 95, 0.1);
  --bh-glow-pink: rgba(244, 139, 247, 0.08);
  --bh-glow-cyan: rgba(62, 230, 250, 0.07);
  --bh-grid-line: rgba(244, 241, 232, 0.035);

  /* Radios, sombras y transiciones compartidas. */
  --bh-radius-sm: 10px;
  --bh-radius: 16px;
  --bh-radius-lg: 20px;
  --bh-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.28);
  --bh-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --bh-shadow-lime: 0 12px 32px rgba(221, 248, 95, 0.16);
  --bh-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --bh-transition: 180ms var(--bh-ease);

  /* Medidas globales. */
  --bh-container: 1180px;
  --bh-container-narrow: 760px;
  --bh-header-height: 76px;
  --bh-focus: var(--bh-lime);

  color-scheme: dark;
}

/* ==========================================================================
   02. TEMA CLARO · Se activa con html[data-theme="light"] (lo fija app.js).
   ========================================================================== */

html[data-theme="light"] {
  --bh-bg: var(--bh-paper);
  --bh-bg-soft: #ece8de;
  --bh-surface: #faf8f1;
  --bh-surface-2: #fffdf8;
  --bh-surface-3: #f1eee5;
  --bh-text: var(--bh-ink);
  --bh-text-soft: #3c382f;
  --bh-text-muted: #5c574d;
  --bh-line: rgba(22, 21, 17, 0.14);
  --bh-line-strong: rgba(22, 21, 17, 0.28);
  --bh-line-faint: rgba(22, 21, 17, 0.07);
  --bh-input-bg: #fffdf8;
  --bh-header-bg: rgba(244, 241, 233, 0.88);
  --bh-panel-bg: #f4f1e9;
  --bh-hover-bg: rgba(22, 21, 17, 0.045);

  --bh-accent-text: var(--bh-lime-ink);
  --bh-error-text: var(--bh-pink-ink);

  --bh-tag-lime-bg: rgba(221, 248, 95, 0.55);
  --bh-tag-lime-color: #3f4c00;
  --bh-tag-cyan-bg: rgba(62, 230, 250, 0.26);
  --bh-tag-cyan-color: #07515a;
  --bh-tag-pink-bg: rgba(244, 139, 247, 0.26);
  --bh-tag-pink-color: #7c1574;
  --bh-tag-violet-bg: rgba(143, 104, 245, 0.2);
  --bh-tag-violet-color: #3d2a8f;
  --bh-tag-muted-bg: rgba(22, 21, 17, 0.07);
  --bh-tag-muted-color: #4a463d;

  --bh-glow-lime: rgba(221, 248, 95, 0.34);
  --bh-glow-pink: rgba(244, 139, 247, 0.18);
  --bh-glow-cyan: rgba(62, 230, 250, 0.15);
  --bh-grid-line: rgba(22, 21, 17, 0.055);

  --bh-shadow-sm: 0 8px 24px rgba(58, 50, 26, 0.1);
  --bh-shadow: 0 18px 50px rgba(58, 50, 26, 0.16);
  --bh-shadow-lime: 0 12px 32px rgba(102, 122, 0, 0.18);

  --bh-focus: var(--bh-lime-ink);
  color-scheme: light;
}

/* ==========================================================================
   03. RESET Y BASE TIPOGRÁFICA
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--bh-text);
  background-color: var(--bh-bg);
  font-family: var(--bh-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.bh-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image:
    radial-gradient(900px 520px at 8% -12%, var(--bh-glow-lime), transparent 62%),
    radial-gradient(880px 520px at 94% 2%, var(--bh-glow-pink), transparent 60%),
    radial-gradient(1100px 620px at 50% 112%, var(--bh-glow-cyan), transparent 64%);
  background-attachment: fixed;
}

body.bh-auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image:
    radial-gradient(760px 520px at 12% 0%, var(--bh-glow-lime), transparent 62%),
    radial-gradient(780px 540px at 88% 8%, var(--bh-glow-pink), transparent 60%),
    radial-gradient(900px 560px at 50% 110%, var(--bh-glow-cyan), transparent 64%);
  background-attachment: fixed;
}

/* Retícula decorativa muy tenue, fija detrás del contenido. */
body.bh-app::before,
body.bh-auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--bh-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bh-grid-line) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 78%);
}

/* El contenido siempre por encima de la retícula decorativa. */
.bh-header,
.bh-main,
.bh-footer,
.bh-auth {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5rem;
  color: var(--bh-text);
  font-family: var(--bh-font-display);
  font-weight: 600;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--bh-accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--bh-transition);
}

a:hover {
  color: var(--bh-cyan);
}

img,
svg,
picture {
  max-width: 100%;
}

img {
  height: auto;
  vertical-align: middle;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  color: #090a0b;
  background: var(--bh-lime);
}

/* Foco visible y consistente en toda la aplicación. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--bh-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   04. RETÍCULA, CONTENEDORES Y UTILIDADES
   ========================================================================== */

.bh-container {
  width: 100%;
  max-width: var(--bh-container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.bh-container--narrow {
  max-width: var(--bh-container-narrow);
}

.bh-main {
  flex: 1 0 auto;
  padding-block: clamp(1.75rem, 4vw, 3.5rem) clamp(2.5rem, 6vw, 5rem);
}

.bh-main:focus {
  outline: none;
}

.bh-page {
  display: block;
}

.bh-page--narrow {
  max-width: var(--bh-container-narrow);
  margin-inline: auto;
}

.bh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  color: var(--bh-accent-text);
  font-family: var(--bh-font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.3;
  text-transform: uppercase;
}

.bh-eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: currentColor;
}

.bh-section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.bh-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.015em;
  line-height: 0.98;
  text-transform: uppercase;
}

.bh-subtitle {
  max-width: 62ch;
  margin: 0;
  color: var(--bh-text-muted);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.bh-muted {
  color: var(--bh-text-muted);
}

.bh-accent {
  color: var(--bh-accent-text);
}

.bh-cyan {
  color: var(--bh-cyan);
}

.bh-pink {
  color: var(--bh-pink);
}

.bh-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.bh-actions--center {
  justify-content: center;
}

.bh-divider {
  height: 1px;
  margin-block: clamp(1.5rem, 3vw, 2.25rem);
  border: 0;
  background: var(--bh-line);
}

/* Enlace de salto para lectores de pantalla y teclado. */
.bh-skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100000;
  padding: 0.75rem 1.1rem;
  border-radius: 6px;
  color: #090a0b;
  background: var(--bh-lime);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transform: translateY(-220%);
  transition: transform 160ms var(--bh-ease);
}

.bh-skip-link:focus-visible {
  transform: none;
  outline-offset: 3px;
}

.bh-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.bh-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bh-list--check li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--bh-text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.bh-list--check li::before {
  content: "";
  position: absolute;
  top: 0.28rem;
  left: 0;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--bh-tag-lime-bg);
  box-shadow: inset 0 0 0 1px var(--bh-tag-lime-color);
}

.bh-list--check li::after {
  content: "";
  position: absolute;
  top: 0.52rem;
  left: 0.35rem;
  width: 0.38rem;
  height: 0.2rem;
  border-left: 2px solid var(--bh-tag-lime-color);
  border-bottom: 2px solid var(--bh-tag-lime-color);
  transform: rotate(-45deg);
}

/* ==========================================================================
   05. BOTONES · Todos tipo píldora (pill), foco visible y transición corta.
   ========================================================================== */

.bh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  max-width: 100%;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--bh-text);
  background: transparent;
  font-family: var(--bh-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--bh-transition),
    border-color var(--bh-transition),
    color var(--bh-transition),
    transform var(--bh-transition),
    box-shadow var(--bh-transition);
}

.bh-btn svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.bh-btn:hover {
  transform: translateY(-1px);
}

.bh-btn--primary {
  color: #090a0b;
  background: var(--bh-lime);
  border-color: transparent;
  box-shadow: var(--bh-shadow-lime);
}

.bh-btn--primary:hover {
  color: #090a0b;
  background: var(--bh-lime-soft);
}

.bh-btn--secondary {
  color: #090a0b;
  background: var(--bh-cyan);
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(62, 230, 250, 0.18);
}

.bh-btn--secondary:hover {
  color: #090a0b;
  background: #88f4ff;
}

.bh-btn--ghost {
  color: var(--bh-text);
  background: transparent;
  border-color: var(--bh-line-strong);
}

.bh-btn--ghost:hover {
  color: var(--bh-text);
  background: var(--bh-hover-bg);
  border-color: var(--bh-lime);
}

.bh-btn--quiet {
  color: var(--bh-text-muted);
  background: transparent;
  border-color: transparent;
}

.bh-btn--quiet:hover {
  color: var(--bh-text);
  background: var(--bh-hover-bg);
}

.bh-btn--danger {
  color: var(--bh-error-text);
  background: transparent;
  border-color: rgba(244, 139, 247, 0.42);
}

.bh-btn--danger:hover {
  color: var(--bh-error-text);
  background: var(--bh-tag-pink-bg);
  border-color: var(--bh-pink);
}

.bh-btn--sm {
  min-height: 38px;
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
}

.bh-btn--lg {
  min-height: 54px;
  padding: 0.9rem 1.75rem;
  font-size: 0.975rem;
}

.bh-btn--block {
  width: 100%;
}

/* Estado no disponible: mantiene contraste y comunica con claridad. */
.bh-btn[disabled],
.bh-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   06. INSIGNIAS, CHIPS Y PÍLDORAS
   ========================================================================== */

.bh-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-family: var(--bh-font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.bh-badge--lime {
  color: var(--bh-tag-lime-color);
  background: var(--bh-tag-lime-bg);
}

.bh-badge--cyan {
  color: var(--bh-tag-cyan-color);
  background: var(--bh-tag-cyan-bg);
}

.bh-badge--pink {
  color: var(--bh-tag-pink-color);
  background: var(--bh-tag-pink-bg);
}

.bh-badge--violet {
  color: var(--bh-tag-violet-color);
  background: var(--bh-tag-violet-bg);
}

.bh-badge--muted {
  color: var(--bh-tag-muted-color);
  background: var(--bh-tag-muted-bg);
}

.bh-badge--outline {
  color: var(--bh-text-soft);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--bh-line-strong);
}

.bh-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--bh-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.bh-chip__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.bh-chip--ok {
  color: var(--bh-tag-lime-color);
  background: var(--bh-tag-lime-bg);
}

.bh-chip--pending {
  color: var(--bh-tag-pink-color);
  background: var(--bh-tag-pink-bg);
}

.bh-chip--admin {
  color: var(--bh-tag-cyan-color);
  background: var(--bh-tag-cyan-bg);
}

.bh-chip--neutral {
  color: var(--bh-tag-muted-color);
  background: var(--bh-tag-muted-bg);
}

/* ==========================================================================
   07. TARJETAS · Esquinas de 16-20 px, borde de 1 px y glow por acento.
   ========================================================================== */

.bh-card {
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius-lg);
  background:
    linear-gradient(168deg, var(--bh-surface-2), var(--bh-surface));
  box-shadow: var(--bh-shadow-sm);
}

.bh-card--pad {
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.bh-card--plain {
  background: var(--bh-surface);
  box-shadow: none;
}

.bh-card--accent {
  position: relative;
  overflow: hidden;
}

.bh-card--accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(1.25rem, 3vw, 2.25rem);
  right: clamp(1.25rem, 3vw, 2.25rem);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bh-lime), var(--bh-cyan), var(--bh-pink));
}

/* Tarjeta de acción del dashboard. */
.bh-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(0.9rem, 2vw, 1.25rem);
}

.bh-action-card {
  --card-accent: var(--bh-lime);
  --card-glow: rgba(221, 248, 95, 0.12);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 196px;
  padding: clamp(1.15rem, 2.2vw, 1.55rem);
  overflow: hidden;
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius-lg);
  color: var(--bh-text);
  background:
    radial-gradient(120% 120% at 100% 100%, var(--card-glow), transparent 58%),
    linear-gradient(168deg, var(--bh-surface-2), var(--bh-surface));
  text-decoration: none;
  transition:
    transform var(--bh-transition),
    border-color var(--bh-transition),
    box-shadow var(--bh-transition);
}

.bh-action-card--cyan {
  --card-accent: var(--bh-cyan);
  --card-glow: rgba(62, 230, 250, 0.1);
}

.bh-action-card--pink {
  --card-accent: var(--bh-pink);
  --card-glow: rgba(244, 139, 247, 0.1);
}

.bh-action-card--violet {
  --card-accent: var(--bh-violet);
  --card-glow: rgba(143, 104, 245, 0.12);
}

a.bh-action-card:hover,
button.bh-action-card:hover {
  color: var(--bh-text);
  border-color: var(--card-accent);
  transform: translateY(-3px);
  box-shadow: var(--bh-shadow);
}

.bh-action-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.bh-action-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--bh-line);
  border-radius: 13px;
  color: var(--card-accent);
  background: var(--bh-hover-bg);
}

.bh-action-card__icon svg {
  width: 21px;
  height: 21px;
}

.bh-action-card__title {
  margin: 0.3rem 0 0;
  font-family: var(--bh-font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-transform: uppercase;
}

.bh-action-card__text {
  margin: 0;
  color: var(--bh-text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.bh-action-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--bh-line-faint);
  color: var(--card-accent);
  font-family: var(--bh-font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bh-action-card__foot svg {
  width: 17px;
  height: 17px;
  transition: transform var(--bh-transition);
}

a.bh-action-card:hover .bh-action-card__foot svg {
  transform: translateX(3px);
}

/* Tarjetas que todavía no tienen acción (hitos futuros). */
.bh-action-card--soon {
  border-style: dashed;
  background: linear-gradient(168deg, var(--bh-surface-2), var(--bh-surface));
}

.bh-action-card--soon:hover {
  border-color: var(--bh-line-strong);
  transform: none;
  box-shadow: var(--bh-shadow-sm);
}

.bh-action-card--soon .bh-action-card__icon,
.bh-action-card--soon .bh-action-card__foot {
  color: var(--bh-text-muted);
}

.bh-action-card--form {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

/* Tarjeta informativa / destacada. */
.bh-note {
  display: grid;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding: clamp(1.25rem, 2.6vw, 1.9rem);
  border: 1px solid var(--bh-line);
  border-left: 3px solid var(--bh-lime);
  border-radius: var(--bh-radius);
  background: var(--bh-surface);
}

.bh-note__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-family: var(--bh-font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.bh-note__text {
  margin: 0;
  color: var(--bh-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.bh-note--info {
  border-left-color: var(--bh-cyan);
}

.bh-note--pending {
  border-left-color: var(--bh-pink);
}

/* ==========================================================================
   08. CABECERA Y NAVEGACIÓN
   ========================================================================== */

.bh-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--bh-line);
  background: var(--bh-header-bg);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
}

.bh-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  min-height: var(--bh-header-height);
}

.bh-brand {
  display: block;
  flex: 0 0 auto;
  width: clamp(150px, 16vw, 196px);
  line-height: 0;
  text-decoration: none;
}

.bh-brand img {
  display: block;
  width: 100%;
  height: auto;
}

html[data-theme="light"] .bh-brand img,
html[data-theme="light"] .bh-auth__brand img,
html[data-theme="light"] .bh-footer__brand img {
  filter: brightness(0) saturate(0);
}

.bh-nav {
  margin-inline: auto;
}

.bh-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.7vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bh-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.1rem;
  color: var(--bh-text-soft);
  font-family: var(--bh-font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--bh-transition);
}

.bh-nav__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 0;
  height: 1px;
  background: var(--bh-lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 220ms var(--bh-ease);
}

.bh-nav__link:hover {
  color: var(--bh-lime);
}

.bh-nav__link:hover::after,
.bh-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.bh-nav__link[aria-current="page"] {
  color: var(--bh-lime);
}

.bh-nav__link--soon {
  color: var(--bh-text-muted);
  cursor: default;
}

.bh-nav__link--soon:hover {
  color: var(--bh-text-muted);
}

.bh-nav__link--soon:hover::after {
  transform: scaleX(0);
}

.bh-nav__link .bh-badge {
  margin-left: 0.1rem;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.bh-header__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

/* Toggle de tema: luna en oscuro, sol en claro (lo controla data-theme). */
.bh-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--bh-line-strong);
  border-radius: 999px;
  color: var(--bh-text);
  background: transparent;
  font-family: var(--bh-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  transition:
    border-color var(--bh-transition),
    background-color var(--bh-transition),
    color var(--bh-transition);
}

.bh-theme-toggle:hover {
  border-color: var(--bh-lime);
  background: var(--bh-hover-bg);
}

.bh-theme-toggle__icon {
  display: block;
  width: 18px;
  height: 18px;
}

.bh-theme-toggle__icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.bh-theme-toggle__label {
  line-height: 1;
}

html[data-theme="dark"] .bh-theme-toggle [data-theme-icon="sun"],
html[data-theme="light"] .bh-theme-toggle [data-theme-icon="moon"] {
  display: none;
}

/* Chip de usuario autenticado. */
.bh-user {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.25rem 0.8rem 0.25rem 0.3rem;
  border: 1px solid var(--bh-line);
  border-radius: 999px;
  background: var(--bh-surface);
}

.bh-user__avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #090a0b;
  background: linear-gradient(135deg, var(--bh-lime), var(--bh-cyan));
  font-family: var(--bh-font-display);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.bh-user__meta {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.bh-user__name {
  max-width: 15ch;
  overflow: hidden;
  color: var(--bh-text);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bh-user__role {
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.bh-header__logout {
  display: inline-flex;
  margin: 0;
}

.bh-only-desktop {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* Botón hamburguesa. */
.bh-nav-toggle {
  display: none;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--bh-line-strong);
  border-radius: 50%;
  color: var(--bh-text);
  background: transparent;
  transition:
    border-color var(--bh-transition),
    background-color var(--bh-transition);
}

.bh-nav-toggle:hover {
  border-color: var(--bh-lime);
  background: var(--bh-hover-bg);
}

.bh-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 220ms var(--bh-ease), opacity 150ms linear;
}

.bh-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.bh-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.bh-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   09. MENÚ MÓVIL · Se muestra bajo la cabecera cuando [hidden] se retira.
   ========================================================================== */

.bh-nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 59;
  max-height: calc(100vh - var(--bh-header-height));
  padding: 1rem clamp(1rem, 4vw, 2.5rem) 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-bottom: 1px solid var(--bh-line);
  background: var(--bh-panel-bg);
  box-shadow: var(--bh-shadow);
}

.bh-nav-panel:not([hidden]) {
  display: block;
}

.bh-nav-panel__links {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bh-nav-panel__links a,
.bh-nav-panel__links span.bh-nav-panel__soon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--bh-line-faint);
  color: var(--bh-text);
  font-family: var(--bh-font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
}

.bh-nav-panel__links a:hover {
  color: var(--bh-lime);
}

.bh-nav-panel__links a[aria-current="page"] {
  color: var(--bh-lime);
}

.bh-nav-panel__links .bh-badge {
  flex: 0 0 auto;
}

.bh-nav-panel__auth {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.bh-nav-panel__auth .bh-user {
  justify-content: flex-start;
  width: 100%;
  border-radius: var(--bh-radius);
}

.bh-nav-panel__auth .bh-user__name {
  max-width: 100%;
}

.bh-nav-panel__auth form {
  display: grid;
  margin: 0;
}

.bh-nav-panel__auth .bh-btn {
  width: 100%;
}

/* ==========================================================================
   10. PIE DE PÁGINA
   ========================================================================== */

.bh-footer {
  flex: 0 0 auto;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding-block: clamp(2rem, 4vw, 3rem) 1.5rem;
  border-top: 1px solid var(--bh-line);
  background: var(--bh-bg-soft);
}

.bh-footer__top {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(200px, 0.8fr) minmax(240px, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.bh-footer__brand {
  display: inline-block;
  width: clamp(170px, 15vw, 210px);
  line-height: 0;
  text-decoration: none;
}

.bh-footer__brand img {
  display: block;
  width: 100%;
  height: auto;
}

.bh-footer__tagline {
  max-width: 38ch;
  margin: 1rem 0 0;
  color: var(--bh-text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.bh-footer__label {
  margin: 0 0 0.85rem;
  color: var(--bh-accent-text);
  font-family: var(--bh-font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.bh-footer__nav {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}

.bh-footer__nav a,
.bh-footer__contact a {
  color: var(--bh-text-soft);
  font-size: 0.86rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--bh-transition);
}

.bh-footer__nav a:hover,
.bh-footer__contact a:hover {
  color: var(--bh-lime);
}

.bh-footer__contact {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  font-size: 0.86rem;
}

.bh-footer__contact .bh-footer__phone {
  color: var(--bh-text);
  font-family: var(--bh-font-display);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.bh-footer__contact span {
  color: var(--bh-text-muted);
  font-size: 0.8rem;
}

.bh-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.5rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--bh-line);
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.bh-footer__bottom a {
  color: var(--bh-text-muted);
  text-decoration: none;
}

.bh-footer__bottom a:hover {
  color: var(--bh-lime);
}

/* ==========================================================================
   11. FORMULARIOS
   ========================================================================== */

.bh-form {
  display: grid;
  gap: 1rem;
}

.bh-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.bh-field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.bh-label {
  color: var(--bh-text-soft);
  font-family: var(--bh-font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.bh-label__optional {
  color: var(--bh-text-muted);
  font-weight: 400;
  letter-spacing: 0;
}

.bh-input,
.bh-select,
.bh-textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--bh-line-strong);
  border-radius: 12px;
  color: var(--bh-text);
  background: var(--bh-input-bg);
  font-family: var(--bh-font-body);
  font-size: 0.95rem;
  line-height: 1.35;
  transition:
    border-color var(--bh-transition),
    box-shadow var(--bh-transition),
    background-color var(--bh-transition);
}

.bh-textarea {
  min-height: 120px;
  resize: vertical;
}

.bh-input::placeholder {
  color: var(--bh-text-muted);
  opacity: 0.8;
}

.bh-input:hover,
.bh-select:hover,
.bh-textarea:hover {
  border-color: var(--bh-line-strong);
}

.bh-input:focus,
.bh-select:focus,
.bh-textarea:focus {
  outline: 2px solid var(--bh-focus);
  outline-offset: 1px;
  border-color: var(--bh-focus);
  background: var(--bh-surface-2);
}

.bh-input.is-invalid,
.bh-input[aria-invalid="true"] {
  border-color: var(--bh-pink);
  box-shadow: 0 0 0 3px rgba(244, 139, 247, 0.14);
}

.bh-field__error {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0;
  color: var(--bh-error-text);
  font-size: 0.8rem;
  line-height: 1.4;
}

.bh-field__error::before {
  content: "!";
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1rem;
  height: 1rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  color: var(--bh-bg);
  background: currentColor;
  font-size: 0.65rem;
  font-weight: 800;
}

.bh-field__hint {
  margin: 0;
  color: var(--bh-text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* Campo de contraseña con botón de visibilidad. */
.bh-input-group {
  position: relative;
  display: block;
}

.bh-input-group .bh-input {
  padding-right: 3.15rem;
}

.bh-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: var(--bh-text-muted);
  background: transparent;
  transform: translateY(-50%);
  transition: color var(--bh-transition), background-color var(--bh-transition);
}

.bh-password-toggle:hover {
  color: var(--bh-text);
  background: var(--bh-hover-bg);
}

.bh-password-toggle svg {
  width: 19px;
  height: 19px;
}

.bh-password-toggle [data-icon="eye-off"] {
  display: none;
}

.bh-password-toggle[aria-pressed="true"] [data-icon="eye"] {
  display: none;
}

.bh-password-toggle[aria-pressed="true"] [data-icon="eye-off"] {
  display: block;
}

/* Casilla de verificación personalizada. */
.bh-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--bh-text-soft);
  font-size: 0.86rem;
  line-height: 1.45;
  cursor: pointer;
}

.bh-checkbox input[type="checkbox"] {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0.12rem 0 0;
  border: 1px solid var(--bh-line-strong);
  border-radius: 6px;
  background: var(--bh-input-bg);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background-color var(--bh-transition), border-color var(--bh-transition);
}

.bh-checkbox input[type="checkbox"]:checked {
  border-color: var(--bh-lime);
  background: var(--bh-lime);
}

.bh-checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23090a0b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
}

/* Autocompletado del navegador en tema oscuro. */
html[data-theme="dark"] .bh-input:-webkit-autofill,
html[data-theme="dark"] .bh-input:-webkit-autofill:hover,
html[data-theme="dark"] .bh-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--bh-text);
  box-shadow: 0 0 0 1000px #0b0c0d inset;
  caret-color: var(--bh-text);
}

/* Acciones del formulario. */
.bh-form__actions {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.bh-form__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.bh-form__link {
  color: var(--bh-text-muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.bh-form__link a,
.bh-form__link:hover {
  color: var(--bh-accent-text);
}

/* ==========================================================================
   12. ALERTAS Y AVISOS
   ========================================================================== */

.bh-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--bh-line);
  border-radius: 14px;
  color: var(--bh-text-soft);
  background: var(--bh-surface);
  font-size: 0.885rem;
  line-height: 1.5;
}

.bh-alert svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 0.1rem;
}

.bh-alert--success {
  border-color: rgba(221, 248, 95, 0.4);
  color: var(--bh-tag-lime-color);
  background: var(--bh-tag-lime-bg);
}

.bh-alert--error {
  border-color: rgba(244, 139, 247, 0.42);
  color: var(--bh-error-text);
  background: var(--bh-tag-pink-bg);
}

.bh-alert--info {
  border-color: rgba(62, 230, 250, 0.38);
  color: var(--bh-tag-cyan-color);
  background: var(--bh-tag-cyan-bg);
}

.bh-alert--error ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.bh-alert--error li + li {
  margin-top: 0.2rem;
}

.bh-alert__title {
  display: block;
  margin-bottom: 0.1rem;
  font-weight: 700;
}

/* ==========================================================================
   13. AUTENTICACIÓN · Login, registro y pantallas centradas.
   ========================================================================== */

.bh-auth {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: clamp(1.25rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
}

.bh-auth__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 560px);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.bh-auth__brand {
  display: block;
  width: clamp(160px, 40vw, 205px);
  line-height: 0;
  text-decoration: none;
}

.bh-auth__brand img {
  display: block;
  width: 100%;
  height: auto;
}

.bh-auth__card {
  position: relative;
  width: min(100%, 560px);
  padding: clamp(1.35rem, 4vw, 2.5rem);
  overflow: hidden;
  border: 1px solid var(--bh-line);
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 100% 0%, var(--bh-glow-pink), transparent 55%),
    linear-gradient(168deg, var(--bh-surface-2), var(--bh-surface));
  box-shadow: var(--bh-shadow);
}

.bh-auth__card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 15%;
  left: 15%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--bh-lime), var(--bh-cyan), var(--bh-pink), transparent);
}

.bh-auth__head {
  margin-bottom: clamp(1.3rem, 3vw, 1.85rem);
}

.bh-auth__title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.9rem, 5vw, 2.55rem);
  letter-spacing: -0.01em;
  line-height: 0.98;
  text-transform: uppercase;
}

.bh-auth__intro {
  margin: 0;
  color: var(--bh-text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.bh-auth__foot {
  width: min(100%, 560px);
  margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

.bh-auth__separator {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.35rem 0;
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.bh-auth__separator::before,
.bh-auth__separator::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--bh-line);
}

.bh-auth__switch {
  margin: 0;
  color: var(--bh-text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: center;
}

/* Recuadro discreto de credenciales de prueba. */
.bh-demo {
  margin-top: 1.5rem;
  padding: 0.95rem 1rem;
  border: 1px dashed var(--bh-line-strong);
  border-radius: 14px;
  background: var(--bh-hover-bg);
}

.bh-demo__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  color: var(--bh-accent-text);
  font-family: var(--bh-font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.bh-demo__list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.bh-demo__item {
  display: grid;
  grid-template-columns: minmax(82px, auto) 1fr;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
}

.bh-demo__item dt {
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.bh-demo__item dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--bh-text-soft);
  font-family: var(--bh-font-mono);
  font-size: 0.74rem;
  line-height: 1.45;
}

.bh-demo__item code {
  color: var(--bh-text);
  font-family: inherit;
}

/* Nota de verificación al pie del registro. */
.bh-register-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.1rem;
  padding: 0.8rem 0.9rem;
  border-left: 2px solid var(--bh-cyan);
  border-radius: 0 10px 10px 0;
  color: var(--bh-text-muted);
  background: var(--bh-tag-cyan-bg);
  font-size: 0.8rem;
  line-height: 1.5;
}

.bh-register-note svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 0.1rem;
  color: var(--bh-cyan);
}

/* ==========================================================================
   14. DASHBOARD
   ========================================================================== */

.bh-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
}

.bh-page-head__main {
  min-width: 0;
}

.bh-page-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 0.96;
  text-wrap: balance;
}

.bh-page-title__name {
  color: var(--bh-lime);
  overflow-wrap: anywhere;
}

.bh-page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  color: var(--bh-text-muted);
  font-size: 0.86rem;
}

.bh-page-meta__date {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--bh-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.bh-page-meta__date svg {
  width: 15px;
  height: 15px;
}

.bh-page-head__aside {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.bh-panel {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.bh-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}

.bh-panel__title {
  margin: 0;
  font-family: var(--bh-font-display);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bh-panel__hint {
  margin: 0;
  color: var(--bh-text-muted);
  font-size: 0.82rem;
}

/* ==========================================================================
   15. ADMINISTRACIÓN · Tarjetas KPI y bloque del verificador.
   ========================================================================== */

.bh-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.25rem);
}

.bh-kpi {
  --kpi-accent: var(--bh-lime);
  --kpi-glow: rgba(221, 248, 95, 0.1);
  position: relative;
  display: grid;
  gap: 0.4rem;
  min-height: 148px;
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
  overflow: hidden;
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius-lg);
  background:
    radial-gradient(130% 120% at 100% 0%, var(--kpi-glow), transparent 58%),
    linear-gradient(168deg, var(--bh-surface-2), var(--bh-surface));
}

.bh-kpi::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--kpi-accent);
  opacity: 0.75;
}

.bh-kpi--cyan {
  --kpi-accent: var(--bh-cyan);
  --kpi-glow: rgba(62, 230, 250, 0.1);
}

.bh-kpi--pink {
  --kpi-accent: var(--bh-pink);
  --kpi-glow: rgba(244, 139, 247, 0.1);
}

.bh-kpi__label {
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.bh-kpi__value {
  margin: 0;
  color: var(--kpi-accent);
  font-family: var(--bh-font-display);
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.bh-kpi__hint {
  margin: 0;
  color: var(--bh-text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.bh-admin-block {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.bh-admin-block__main {
  max-width: 62ch;
}

.bh-admin-block__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.5rem;
  font-family: var(--bh-font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.bh-admin-block__text {
  margin: 0;
  color: var(--bh-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   16. PÁGINAS DE ESTADO · Verificación, 403 y 404.
   ========================================================================== */

.bh-verify {
  position: relative;
  overflow: hidden;
}

.bh-verify__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--bh-line-strong);
  border-radius: 17px;
  color: var(--bh-pink);
  background: var(--bh-tag-pink-bg);
}

.bh-verify__icon svg {
  width: 28px;
  height: 28px;
}

.bh-verify__email {
  color: var(--bh-text);
  font-family: var(--bh-font-mono);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.bh-status {
  display: grid;
  flex: 1 0 auto;
  place-items: center;
  padding-block: clamp(2rem, 7vw, 5rem);
}

.bh-status__inner {
  width: min(100%, 680px);
  text-align: center;
}

.bh-status__code {
  margin: 0 0 0.5rem;
  color: transparent;
  background: linear-gradient(100deg, var(--bh-lime), var(--bh-cyan) 55%, var(--bh-pink));
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--bh-font-display);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.8;
}

.bh-status__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  text-transform: uppercase;
}

.bh-status__text {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--bh-text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ==========================================================================
   17. RESPONSIVE · Escritorio > 1024 px · tablet <= 1024 px · móvil <= 767 px
   ========================================================================== */

@media (max-width: 1024px) {
  :root {
    --bh-header-height: 68px;
  }

  .bh-nav {
    display: none;
  }

  .bh-nav-toggle {
    display: grid;
  }

  .bh-only-desktop {
    display: none !important;
  }

  .bh-brand {
    width: clamp(142px, 22vw, 176px);
  }

  .bh-footer__top {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .bh-footer__contact {
    grid-column: 1 / -1;
  }

  .bh-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .bh-action-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }

  .bh-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bh-kpi:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  :root {
    --bh-header-height: 64px;
  }

  body {
    font-size: 15px;
  }

  .bh-header__inner {
    gap: 0.65rem;
  }

  .bh-theme-toggle {
    min-height: 38px;
    padding: 0.35rem 0.55rem;
  }

  .bh-theme-toggle__label {
    display: none;
  }

  .bh-nav-toggle {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .bh-main {
    padding-block: 1.5rem 3rem;
  }

  .bh-page-head {
    align-items: flex-start;
  }

  .bh-page-title {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
    overflow-wrap: anywhere;
  }

  .bh-action-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bh-action-card {
    min-height: 0;
  }

  .bh-kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bh-kpi:last-child {
    grid-column: auto;
  }

  .bh-kpi {
    min-height: 0;
  }

  .bh-form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .bh-footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .bh-footer__contact {
    grid-column: auto;
  }

  .bh-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .bh-auth__card {
    border-radius: 18px;
  }

  .bh-demo__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
  }

  .bh-nav-panel__links a,
  .bh-nav-panel__links span.bh-nav-panel__soon {
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .bh-brand {
    width: 132px;
  }

  .bh-theme-toggle {
    padding-inline: 0.5rem;
  }
}

/* ==========================================================================
   18. ACCESIBILIDAD Y PREFERENCIAS
   ========================================================================== */

/* Respeta a quien prefiere menos movimiento. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .bh-btn:hover,
  a.bh-action-card:hover,
  button.bh-action-card:hover {
    transform: none;
  }
}

/* Alto contraste del sistema operativo. */
@media (forced-colors: active) {
  .bh-btn,
  .bh-theme-toggle,
  .bh-nav-toggle,
  .bh-input,
  .bh-action-card,
  .bh-card,
  .bh-kpi {
    border: 1px solid ButtonText;
  }

  .bh-btn--primary {
    color: ButtonText;
    background: ButtonFace;
  }

  .bh-nav__link[aria-current="page"] {
    text-decoration: underline;
  }
}

/* ==========================================================================
   19. IMPRESIÓN · Documento limpio en blanco y negro.
   ========================================================================== */

@media print {
  body.bh-app,
  body.bh-auth-page {
    color: #111;
    background: #fff;
  }

  body.bh-app::before,
  body.bh-auth-page::before {
    display: none;
  }

  .bh-header,
  .bh-footer,
  .bh-theme-toggle,
  .bh-nav-toggle,
  .bh-nav-panel,
  .bh-skip-link,
  .bh-actions,
  .bh-demo {
    display: none !important;
  }

  .bh-main {
    padding: 0;
  }

  .bh-card,
  .bh-action-card,
  .bh-kpi,
  .bh-auth__card {
    border: 1px solid #bbb;
    background: #fff;
    box-shadow: none;
  }

  .bh-page-title,
  .bh-title,
  .bh-auth__title,
  .bh-status__title {
    color: #111;
  }

  .bh-status__code {
    color: #111;
    background: none;
    -webkit-text-fill-color: #111;
  }

  a {
    color: #111;
    text-decoration: underline;
  }
}

/* Desplazamiento bloqueado mientras el menú móvil está abierto. */
body.bh-menu-open {
  overflow: hidden;
}

/* Tarjeta de cierre de sesión a lo ancho del grid de acciones. */
.bh-action-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem 1.25rem;
  min-height: 0;
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1.15rem, 2.2vw, 1.55rem);
}

.bh-action-card--wide .bh-action-card__icon {
  width: 38px;
  height: 38px;
}

.bh-action-card--wide .bh-action-card__copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.bh-action-card--wide .bh-action-card__title {
  margin: 0;
  font-size: 1.05rem;
}

.bh-action-card--wide .bh-action-card__text {
  font-size: 0.82rem;
}

.bh-action-card--wide .bh-action-card__foot {
  margin: 0;
  padding: 0;
  border: 0;
}

@media (max-width: 600px) {
  .bh-action-card--wide {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .bh-action-card--wide .bh-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Ajustes de espaciado reutilizables (evitan estilos inline en las vistas). */
.bh-actions--flush {
  margin-top: 0;
}

.bh-auth__switch {
  margin: 1.25rem 0 0;
}

.bh-section-title--spaced {
  margin-top: 1.75rem;
}


/* ==========================================================================
   20. AJUSTES DE CONTRASTE DEL TEMA CLARO
   Los acentos de marca (lima, cian, rosa) son muy luminosos sobre papel;
   en tema claro se sustituyen por sus variantes "ink" para texto, iconos,
   bordes y subrayados, manteniendo la identidad de color.
   ========================================================================== */

html[data-theme="light"] .bh-nav__link:hover,
html[data-theme="light"] .bh-nav__link[aria-current="page"],
html[data-theme="light"] .bh-nav-panel__links a:hover,
html[data-theme="light"] .bh-nav-panel__links a[aria-current="page"] {
  color: var(--bh-lime-ink);
}

html[data-theme="light"] .bh-nav__link::after {
  background: var(--bh-lime-ink);
}

html[data-theme="light"] .bh-page-title__name {
  color: var(--bh-lime-ink);
}

html[data-theme="light"] .bh-action-card {
  --card-accent: var(--bh-lime-ink);
}

html[data-theme="light"] .bh-action-card--cyan {
  --card-accent: var(--bh-cyan-ink);
}

html[data-theme="light"] .bh-action-card--pink {
  --card-accent: var(--bh-pink-ink);
}

html[data-theme="light"] .bh-action-card--violet {
  --card-accent: var(--bh-violet-ink);
}

html[data-theme="light"] .bh-kpi {
  --kpi-accent: var(--bh-lime-ink);
}

html[data-theme="light"] .bh-kpi--cyan {
  --kpi-accent: var(--bh-cyan-ink);
}

html[data-theme="light"] .bh-kpi--pink {
  --kpi-accent: var(--bh-pink-ink);
}

html[data-theme="light"] .bh-theme-toggle:hover,
html[data-theme="light"] .bh-nav-toggle:hover,
html[data-theme="light"] .bh-btn--ghost:hover,
html[data-theme="light"] .bh-btn--quiet:hover {
  border-color: var(--bh-lime-ink);
}

html[data-theme="light"] .bh-note {
  border-left-color: var(--bh-lime-ink);
}

html[data-theme="light"] .bh-note--info {
  border-left-color: var(--bh-cyan-ink);
}

html[data-theme="light"] .bh-note--pending {
  border-left-color: var(--bh-pink-ink);
}

html[data-theme="light"] .bh-verify__icon {
  color: var(--bh-pink-ink);
}

html[data-theme="light"] .bh-status__code {
  background: linear-gradient(100deg, var(--bh-lime-ink), var(--bh-cyan-ink) 55%, var(--bh-pink-ink));
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-theme="light"] .bh-register-note {
  border-left-color: var(--bh-cyan-ink);
}

html[data-theme="light"] .bh-register-note svg {
  color: var(--bh-cyan-ink);
}

html[data-theme="light"] .bh-footer__nav a:hover,
html[data-theme="light"] .bh-footer__contact a:hover,
html[data-theme="light"] .bh-footer__bottom a:hover {
  color: var(--bh-lime-ink);
}

/* ==========================================================================
   21. CATÁLOGO ADMIN · Listado de solo lectura de áreas y cursos.
   Reutiliza los tokens, tarjetas, chips e insignias del sistema de diseño.
   ========================================================================== */

/* Cinco KPI del catálogo en escritorio (Áreas, Cursos, Tarjetas, Sin precio, Inactivos). */
.bh-cat-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Acentos nuevos para las dos tarjetas KPI que no existían. */
.bh-kpi--violet {
  --kpi-accent: var(--bh-violet);
  --kpi-glow: rgba(143, 104, 245, 0.1);
}

.bh-kpi--muted {
  --kpi-accent: var(--bh-text-muted);
  --kpi-glow: rgba(244, 241, 232, 0.06);
}

html[data-theme="light"] .bh-kpi--violet {
  --kpi-accent: var(--bh-violet-ink);
}

html[data-theme="light"] .bh-kpi--muted {
  --kpi-accent: var(--bh-text-muted);
}

/* Código en línea (comandos de sincronización) dentro de textos explicativos. */
.bh-cat-code {
  padding: 0.08em 0.4em;
  border-radius: 6px;
  color: var(--bh-text-soft);
  background: var(--bh-tag-muted-bg);
  font-family: var(--bh-font-mono);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

/* Bloque de estado de sincronización: datos técnicos en tipografía monoespaciada. */
.bh-cat-sync {
  padding: clamp(1.1rem, 2.6vw, 1.75rem);
}

.bh-cat-sync__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.75rem;
  margin: 0;
}

.bh-cat-sync__item {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.bh-cat-sync__item--wide {
  grid-column: 1 / -1;
}

.bh-cat-sync__item dt {
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.bh-cat-sync__item dd {
  margin: 0;
  color: var(--bh-text-soft);
  font-family: var(--bh-font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.bh-cat-sync__item dd a {
  color: var(--bh-accent-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--bh-transition);
}

.bh-cat-sync__item dd a:hover {
  border-bottom-color: currentColor;
}

.bh-cat-sync__item dd a:focus-visible {
  outline: 2px solid var(--bh-focus);
  outline-offset: 3px;
}

.bh-cat-hash {
  display: inline-block;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  color: var(--bh-tag-cyan-color);
  background: var(--bh-tag-cyan-bg);
  font-family: var(--bh-font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.bh-cat-sync__empty {
  color: var(--bh-text-muted);
}

.bh-cat-sync__foot {
  margin: 1.1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--bh-line-faint);
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* Acordeón por área: <details> nativo, compacto y accesible por teclado. */
.bh-cat-area {
  margin-top: 0.85rem;
  overflow: clip;
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius);
  background: linear-gradient(168deg, var(--bh-surface-2), var(--bh-surface));
}

.bh-cat-area__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.9rem;
  padding: 0.95rem clamp(1rem, 2.5vw, 1.5rem);
  cursor: pointer;
  list-style: none;
  transition: background-color var(--bh-transition);
}

.bh-cat-area__summary::-webkit-details-marker {
  display: none;
}

.bh-cat-area__summary:hover {
  background: var(--bh-hover-bg);
}

.bh-cat-area__summary:focus-visible {
  outline: 2px solid var(--bh-focus);
  outline-offset: -2px;
}

.bh-cat-area[open] > .bh-cat-area__summary {
  border-bottom: 1px solid var(--bh-line);
}

/* Chevron dibujado en CSS: apunta abajo cerrado y arriba abierto. */
.bh-cat-area__summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  margin-left: 0.25rem;
  border-right: 2px solid var(--bh-text-muted);
  border-bottom: 2px solid var(--bh-text-muted);
  transform: rotate(45deg);
  transition: transform var(--bh-transition);
}

.bh-cat-area[open] > .bh-cat-area__summary::after {
  transform: rotate(-135deg);
}

.bh-cat-area__name {
  font-family: var(--bh-font-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.bh-cat-area__slug {
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.bh-cat-area__count {
  margin-left: auto;
  color: var(--bh-accent-text);
  font-family: var(--bh-font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bh-cat-empty {
  margin: 0;
  padding: 1rem clamp(1rem, 2.5vw, 1.5rem);
  color: var(--bh-text-muted);
  font-size: 0.88rem;
}

/* Tabla de cursos del área. */
.bh-cat-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.bh-cat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.bh-cat-table th {
  padding: 0.7rem clamp(1rem, 2.5vw, 1.5rem);
  border-bottom: 1px solid var(--bh-line);
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.bh-cat-table td {
  padding: 0.85rem clamp(1rem, 2.5vw, 1.5rem);
  border-bottom: 1px solid var(--bh-line-faint);
  vertical-align: middle;
}

.bh-cat-table tbody tr {
  transition: background-color var(--bh-transition);
}

.bh-cat-table tbody tr:hover {
  background: var(--bh-hover-bg);
}

.bh-cat-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Celda del curso: miniatura 3:2 + título, descripción corta y slug. */
.bh-cat-course {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.bh-cat-thumb {
  position: relative;
  display: grid;
  flex: 0 0 92px;
  place-items: center;
  width: 92px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--bh-line);
  border-radius: 10px;
  color: var(--bh-accent-text);
  background:
    radial-gradient(120% 120% at 0% 0%, var(--bh-tag-cyan-bg), transparent 60%),
    var(--bh-surface-3);
}

.bh-cat-thumb img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Iniciales visibles si la miniatura no existe o no se puede descargar. */
.bh-cat-thumb__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--bh-font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.bh-cat-course__info {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.bh-cat-course__title {
  color: var(--bh-text);
  font-weight: 600;
  line-height: 1.3;
}

.bh-cat-course__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-width: 52ch;
  overflow: hidden;
  color: var(--bh-text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.bh-cat-course__slug {
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  line-height: 1.4;
  opacity: 0.85;
  overflow-wrap: anywhere;
}

/* Chips compactos de sesiones, duración y modalidad. */
.bh-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.bh-cat-chips .bh-chip {
  padding: 0.24rem 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
}

.bh-cat-price {
  color: var(--bh-text);
  font-family: var(--bh-font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.bh-cat-price--none {
  color: var(--bh-text-muted);
  font-style: italic;
  font-weight: 500;
}

/* Badge de estado del curso. */
.bh-cat-state {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-family: var(--bh-font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.bh-cat-state__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.bh-cat-state--active {
  color: var(--bh-tag-lime-color);
  background: var(--bh-tag-lime-bg);
}

.bh-cat-state--inactive {
  color: var(--bh-tag-muted-color);
  background: var(--bh-tag-muted-bg);
}

/* Enlace discreto a la ficha pública del curso. */
.bh-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--bh-text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid var(--bh-line);
  transition:
    color var(--bh-transition),
    border-color var(--bh-transition);
}

.bh-cat-link svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  transition: transform var(--bh-transition);
}

.bh-cat-link:hover {
  color: var(--bh-accent-text);
  border-bottom-color: currentColor;
}

.bh-cat-link:hover svg {
  transform: translate(1px, -1px);
}

.bh-cat-link:focus-visible {
  outline: 2px solid var(--bh-focus);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Catálogo · Ajustes responsive (después de las reglas base para no chocar
   con los breakpoints globales de la sección 17).
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .bh-cat-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .bh-cat-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bh-cat-kpis .bh-kpi:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .bh-cat-kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  .bh-cat-kpis .bh-kpi:last-child {
    grid-column: auto;
  }

  .bh-cat-area__summary {
    padding-inline: 1rem;
  }

  .bh-cat-area__name {
    flex: 1 1 100%;
  }

  .bh-cat-area__count {
    margin-left: 0;
  }

  /* La tabla pasa a tarjetas apiladas: una tarjeta por curso. */
  .bh-cat-table-wrap {
    overflow: visible;
  }

  .bh-cat-table,
  .bh-cat-table tbody,
  .bh-cat-table tr,
  .bh-cat-table td {
    display: block;
  }

  .bh-cat-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .bh-cat-table tbody {
    display: grid;
    gap: 0.75rem;
    padding: 0.75rem 1rem 1rem;
  }

  .bh-cat-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem 0.75rem;
    padding: 0.9rem;
    border: 1px solid var(--bh-line);
    border-radius: var(--bh-radius-sm);
    background: var(--bh-surface);
  }

  .bh-cat-table tbody tr:hover {
    background: var(--bh-surface);
  }

  .bh-cat-table td {
    padding: 0;
    border: 0;
  }

  .bh-cat-table td[data-label="Curso"],
  .bh-cat-table td[data-label="Detalles"],
  .bh-cat-table td[data-label="Sitio"] {
    grid-column: 1 / -1;
  }

  .bh-cat-table td[data-label="Precio"] {
    grid-column: 1;
    align-self: center;
  }

  .bh-cat-table td[data-label="Estado"] {
    grid-column: 2;
    align-self: center;
    justify-self: end;
  }

  .bh-cat-thumb {
    flex: 0 0 78px;
    width: 78px;
  }
}

/* Con movimiento reducido, el enlace del catálogo no desplaza su icono. */
@media (prefers-reduced-motion: reduce) {
  .bh-cat-link:hover svg {
    transform: none;
  }
}

/* Alto contraste del sistema: refuerza el borde de cada área y tarjeta móvil. */
@media (forced-colors: active) {
  .bh-cat-area,
  .bh-cat-table tbody tr,
  .bh-cat-thumb {
    border: 1px solid ButtonText;
  }
}

/* ==========================================================================
   22. COTIZADOR (H4) · Pantalla de nueva cotización.
   Reutiliza tokens, tarjetas, botones y formularios del sistema de diseño.
   Añade la retícula de dos columnas, tarjetas de curso con checkbox visible,
   controles segmentados, resumen sticky y el diálogo de vista previa.
   ========================================================================== */

/* Alpine oculta el componente hasta que arranca (evita parpadeo de plantillas). */
[x-cloak] {
  display: none !important;
}

/* Retícula principal: formulario a la izquierda, asesor + resumen a la derecha. */
.bh-cot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: clamp(1.25rem, 2.6vw, 2rem);
  /* La columna lateral se estira para que el resumen pueda quedar sticky
     mientras se recorren las tarjetas de curso. */
  align-items: stretch;
}

.bh-cot-main {
  min-width: 0;
}

.bh-cot-head {
  align-items: flex-start;
}

.bh-cot-folio {
  font-family: var(--bh-font-mono);
  text-transform: none;
  letter-spacing: 0.04em;
}

.bh-cot-form {
  display: grid;
  gap: clamp(0.9rem, 1.8vw, 1.35rem);
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* --------------------------------------------------------------------------
   Secciones del formulario (tarjetas numeradas)
   -------------------------------------------------------------------------- */

.bh-cot-section {
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius-lg);
  background: linear-gradient(168deg, var(--bh-surface-2), var(--bh-surface));
  box-shadow: var(--bh-shadow-sm);
  scroll-margin-top: calc(var(--bh-header-height) + 1rem);
}

.bh-cot-section--final {
  border-color: var(--bh-line-strong);
}

.bh-cot-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.85rem 1rem;
  padding: clamp(1rem, 2.4vw, 1.4rem) clamp(1rem, 2.6vw, 1.6rem);
  border-bottom: 1px solid var(--bh-line);
  background: var(--bh-hover-bg);
}

.bh-cot-step {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(221, 248, 95, 0.4);
  border-radius: 10px;
  color: var(--bh-accent-text);
  background: var(--bh-tag-lime-bg);
  font-family: var(--bh-font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.bh-cot-section__title {
  margin: 0;
  font-family: var(--bh-font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
}

.bh-cot-section__hint {
  max-width: 58ch;
  margin: 0.3rem 0 0;
  color: var(--bh-text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.bh-cot-section__body {
  display: grid;
  gap: clamp(0.9rem, 1.8vw, 1.25rem);
  padding: clamp(1rem, 2.6vw, 1.6rem);
}

.bh-cot-grid {
  display: grid;
  gap: 1rem;
}

.bh-cot-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bh-cot-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bh-cot-field-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.bh-cot-correos {
  min-height: 74px;
}

/* Chips de correos capturados (válidos en verde, inválidos en rosa). */
.bh-cot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bh-cot-chips .bh-chip {
  max-width: 100%;
  text-transform: none;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Ejemplos de introducción
   -------------------------------------------------------------------------- */

.bh-cot-ejemplos {
  padding: 0.9rem;
  border: 1px dashed var(--bh-line-strong);
  border-radius: var(--bh-radius-sm);
  background: var(--bh-input-bg);
}

.bh-cot-ejemplos__title {
  margin: 0 0 0.65rem;
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bh-cot-ejemplos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.bh-cot-ejemplo {
  display: grid;
  gap: 0.3rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius-sm);
  color: var(--bh-text);
  background: var(--bh-surface);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--bh-transition),
    background-color var(--bh-transition),
    transform var(--bh-transition);
}

.bh-cot-ejemplo:hover {
  border-color: var(--bh-cyan);
  background: var(--bh-hover-bg);
  transform: translateY(-1px);
}

.bh-cot-ejemplo:focus-visible {
  outline: 2px solid var(--bh-focus);
  outline-offset: 2px;
}

.bh-cot-ejemplo__title {
  color: var(--bh-cyan);
  font-family: var(--bh-font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bh-cot-ejemplo__text {
  color: var(--bh-text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Planes de pago (radios en tarjeta)
   -------------------------------------------------------------------------- */

.bh-cot-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.bh-cot-planes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.8rem;
}

.bh-cot-plan {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius);
  background: var(--bh-surface);
  cursor: pointer;
  transition:
    border-color var(--bh-transition),
    background-color var(--bh-transition),
    box-shadow var(--bh-transition),
    transform var(--bh-transition);
}

.bh-cot-plan:hover {
  border-color: var(--bh-line-strong);
  transform: translateY(-1px);
}

.bh-cot-plan.is-selected {
  border-color: var(--bh-lime);
  background:
    linear-gradient(160deg, rgba(221, 248, 95, 0.12), transparent 70%),
    var(--bh-surface);
  box-shadow: 0 0 0 1px var(--bh-lime) inset;
}

.bh-cot-plan__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.bh-cot-plan:has(.bh-cot-plan__input:focus-visible) {
  outline: 2px solid var(--bh-focus);
  outline-offset: 2px;
}

.bh-cot-plan__check {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  border: 1px solid var(--bh-line-strong);
  border-radius: 50%;
  background: var(--bh-input-bg);
  transition: border-color var(--bh-transition), background-color var(--bh-transition);
}

.bh-cot-plan__input:checked + .bh-cot-plan__check {
  border-color: var(--bh-lime);
  background: var(--bh-lime);
}

.bh-cot-plan__input:checked + .bh-cot-plan__check::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #090a0b;
}

.bh-cot-plan__body {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.bh-cot-plan__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}

.bh-cot-plan__name {
  font-family: var(--bh-font-display);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.bh-cot-plan__mult {
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  color: var(--bh-tag-lime-color);
  background: var(--bh-tag-lime-bg);
  font-family: var(--bh-font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.bh-cot-plan__desc {
  color: var(--bh-text-muted);
  font-size: 0.79rem;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Cursos: contador global, bloques por área y tarjetas
   -------------------------------------------------------------------------- */

.bh-cot-contador {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--bh-line);
  border-radius: 999px;
  color: var(--bh-text-muted);
  background: var(--bh-surface);
  font-family: var(--bh-font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.bh-cot-contador strong {
  color: var(--bh-accent-text);
  font-size: 0.92rem;
  font-weight: 700;
}

.bh-cot-aviso {
  margin: 0;
  color: var(--bh-error-text);
  font-size: 0.82rem;
  line-height: 1.45;
}

.bh-cot-area {
  margin-top: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius);
  background: linear-gradient(168deg, var(--bh-surface-2), var(--bh-surface));
}

.bh-cot-area:first-of-type {
  margin-top: 0;
}

.bh-cot-area__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  padding: 0.85rem clamp(0.85rem, 2vw, 1.15rem);
  border-bottom: 1px solid var(--bh-line);
  background: var(--bh-hover-bg);
}

.bh-cot-area__name {
  margin: 0;
  font-family: var(--bh-font-display);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
}

.bh-cot-area__count {
  margin: 0.2rem 0 0;
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bh-cot-area__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.bh-cot-area__actions .bh-btn {
  min-height: 34px;
  padding: 0.35rem 0.7rem;
  font-size: 0.74rem;
}

.bh-cot-cursos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 0.8rem;
  padding: clamp(0.8rem, 2vw, 1rem);
}

.bh-cot-curso {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius);
  background: var(--bh-surface);
  cursor: pointer;
  transition:
    border-color var(--bh-transition),
    box-shadow var(--bh-transition),
    transform var(--bh-transition),
    opacity var(--bh-transition);
}

.bh-cot-curso:hover {
  border-color: var(--bh-line-strong);
  transform: translateY(-2px);
}

.bh-cot-curso.is-selected {
  border-color: var(--bh-lime);
  box-shadow:
    0 0 0 1px var(--bh-lime) inset,
    0 10px 28px rgba(221, 248, 95, 0.12);
}

.bh-cot-curso.is-disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.bh-cot-curso.is-disabled:hover {
  border-color: var(--bh-line);
  transform: none;
}

.bh-cot-curso:has(.bh-cot-curso__input:focus-visible) {
  outline: 2px solid var(--bh-focus);
  outline-offset: 2px;
}

.bh-cot-curso__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Checkbox visible en la esquina superior derecha de cada tarjeta. */
.bh-cot-curso__check {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--bh-line-strong);
  border-radius: 7px;
  background: var(--bh-surface-2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: background-color var(--bh-transition), border-color var(--bh-transition);
}

.bh-cot-curso__input:checked + .bh-cot-curso__check {
  border-color: var(--bh-lime);
  background: var(--bh-lime);
}

.bh-cot-curso__input:checked + .bh-cot-curso__check::after {
  content: "";
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23090a0b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}

.bh-cot-curso__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-bottom: 1px solid var(--bh-line-faint);
  background:
    radial-gradient(90% 90% at 20% 10%, var(--bh-glow-cyan), transparent 65%),
    linear-gradient(150deg, var(--bh-surface-3), var(--bh-surface-2));
}

.bh-cot-curso__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms var(--bh-ease);
}

.bh-cot-curso:hover .bh-cot-curso__img {
  transform: scale(1.04);
}

.bh-cot-curso__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--bh-text-muted);
  font-family: var(--bh-font-display);
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bh-cot-curso__body {
  display: grid;
  gap: 0.4rem;
  padding: 0.85rem;
}

.bh-cot-curso__name {
  padding-right: 1.25rem;
  font-family: var(--bh-font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: uppercase;
}

.bh-cot-curso__desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--bh-text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bh-cot-curso__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.bh-cot-curso__chips .bh-chip {
  padding: 0.22rem 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.bh-cot-curso__price {
  margin-top: 0.25rem;
  color: var(--bh-accent-text);
  font-family: var(--bh-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.bh-cot-curso[aria-disabled="true"] .bh-cot-curso__price {
  color: var(--bh-text-muted);
}

/* --------------------------------------------------------------------------
   Opciones: sliders, campos numéricos y controles segmentados
   -------------------------------------------------------------------------- */

.bh-cot-range {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
}

.bh-cot-range__number {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.bh-cot-range__slider {
  width: 100%;
  min-height: 44px;
  margin: 0;
  accent-color: var(--bh-lime);
  background: transparent;
  cursor: pointer;
}

.bh-cot-range__slider:focus-visible {
  outline: 2px solid var(--bh-focus);
  outline-offset: 2px;
}

.bh-cot-segment {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.28rem;
  border: 1px solid var(--bh-line);
  border-radius: 999px;
  background: var(--bh-input-bg);
}

.bh-cot-segment__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  color: var(--bh-text-soft);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    color var(--bh-transition),
    background-color var(--bh-transition),
    border-color var(--bh-transition);
}

.bh-cot-segment__item input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.bh-cot-segment__item:hover {
  color: var(--bh-text);
  background: var(--bh-hover-bg);
}

.bh-cot-segment__item.is-selected {
  color: #090a0b;
  background: var(--bh-lime);
  box-shadow: var(--bh-shadow-lime);
}

.bh-cot-segment__item:has(input:focus-visible) {
  outline: 2px solid var(--bh-focus);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Acción final y confirmación
   -------------------------------------------------------------------------- */

.bh-cot-final__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.bh-cot-final__hint {
  margin: 0;
  color: var(--bh-text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.bh-cot-confirm {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.35rem;
  padding: clamp(1rem, 2.4vw, 1.4rem);
  border: 1px solid rgba(221, 248, 95, 0.42);
  border-radius: var(--bh-radius);
  background:
    linear-gradient(165deg, rgba(221, 248, 95, 0.11), transparent 70%),
    var(--bh-surface);
}

.bh-cot-confirm__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.bh-cot-confirm__title {
  margin: 0;
  font-family: var(--bh-font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.bh-cot-confirm__intro {
  margin: 0;
  color: var(--bh-text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.bh-cot-confirm__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem 1.25rem;
  margin: 0;
}

.bh-cot-confirm__grid div {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.bh-cot-confirm__grid dt {
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bh-cot-confirm__grid dd {
  margin: 0;
  color: var(--bh-text-soft);
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.bh-cot-confirm__total {
  color: var(--bh-accent-text) !important;
  font-family: var(--bh-font-display);
  font-size: 1.2rem !important;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bh-cot-confirm__note {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--bh-line-faint);
}

.bh-cot-confirm__note p {
  margin: 0;
  color: var(--bh-text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Columna lateral: asesor y resumen sticky
   -------------------------------------------------------------------------- */

.bh-cot-aside {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-width: 0;
}

.bh-cot-asesor {
  display: grid;
  gap: 0.9rem;
}

.bh-cot-asesor__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.bh-cot-asesor__avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #090a0b;
  background: linear-gradient(150deg, var(--bh-lime-soft), var(--bh-lime));
  font-family: var(--bh-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  text-transform: uppercase;
}

.bh-cot-asesor__label {
  margin: 0;
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bh-cot-asesor__name {
  margin: 0.15rem 0 0;
  font-family: var(--bh-font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.bh-cot-asesor__role {
  margin: 0.2rem 0 0;
  color: var(--bh-text-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.bh-cot-asesor__data {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.bh-cot-asesor__data div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--bh-line-faint);
}

.bh-cot-asesor__data div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.bh-cot-asesor__data dt {
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bh-cot-asesor__data dd {
  margin: 0;
  color: var(--bh-text-soft);
  font-size: 0.8rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.bh-cot-asesor__data a {
  color: var(--bh-accent-text);
  text-decoration: none;
}

.bh-cot-asesor__data a:hover {
  text-decoration: underline;
}

.bh-cot-resumen {
  position: sticky;
  top: calc(var(--bh-header-height) + 1rem);
  display: grid;
  gap: 0.85rem;
  padding: clamp(1rem, 2.4vw, 1.35rem);
  overflow: hidden;
}

.bh-cot-resumen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--bh-lime), var(--bh-cyan), var(--bh-pink));
}

.bh-cot-resumen__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
}

.bh-cot-resumen__title {
  margin: 0;
  font-family: var(--bh-font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bh-cot-resumen__estado {
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bh-cot-resumen__calculando {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--bh-accent-text);
  font-family: var(--bh-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bh-cot-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid var(--bh-line-strong);
  border-top-color: var(--bh-lime);
  border-radius: 50%;
  animation: bh-cot-girar 700ms linear infinite;
}

@keyframes bh-cot-girar {
  to {
    transform: rotate(360deg);
  }
}

.bh-cot-resumen__empty {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  padding: 1rem 0.5rem;
  color: var(--bh-text-muted);
  text-align: center;
}

.bh-cot-resumen__empty-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px dashed var(--bh-line-strong);
  border-radius: 12px;
  color: var(--bh-text-muted);
}

.bh-cot-resumen__empty-icon svg {
  width: 22px;
  height: 22px;
}

.bh-cot-resumen__empty p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
}

.bh-cot-resumen__error {
  margin: 0;
}

.bh-cot-resumen__body {
  display: grid;
  gap: 0.85rem;
}

.bh-cot-resumen__plan {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin: 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius-sm);
  background: var(--bh-input-bg);
  font-family: var(--bh-font-display);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.bh-cot-resumen__mult {
  color: var(--bh-accent-text);
  font-family: var(--bh-font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.bh-cot-totales {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.bh-cot-totales div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.bh-cot-totales dt {
  color: var(--bh-text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.bh-cot-totales dd {
  margin: 0;
  color: var(--bh-text-soft);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.bh-cot-totales__neg {
  color: var(--bh-error-text) !important;
}

.bh-cot-totales__sub {
  color: var(--bh-text-muted);
  font-weight: 400;
}

.bh-cot-totales__total {
  margin-top: 0.2rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(221, 248, 95, 0.36);
  border-radius: var(--bh-radius-sm);
  background: var(--bh-tag-lime-bg);
}

.bh-cot-totales__total dt {
  color: var(--bh-tag-lime-color);
  font-family: var(--bh-font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bh-cot-totales__total dd {
  color: var(--bh-tag-lime-color);
  font-family: var(--bh-font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.bh-cot-mensualidades {
  display: grid;
  gap: 0.4rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--bh-line);
}

.bh-cot-mensualidades__title {
  margin: 0;
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bh-cot-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.bh-cot-tabla th {
  padding: 0.3rem 0.4rem;
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.bh-cot-tabla td {
  padding: 0.42rem 0.4rem;
  border-top: 1px solid var(--bh-line-faint);
  color: var(--bh-text-soft);
  text-align: left;
  white-space: nowrap;
}

.bh-cot-tabla tbody tr.is-selected td {
  color: var(--bh-text);
  background: var(--bh-tag-lime-bg);
}

.bh-cot-tabla td:last-child {
  width: 1%;
  text-align: right;
}

.bh-cot-tabla .bh-badge {
  font-size: 0.54rem;
}

.bh-cot-resumen__nota {
  margin: 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--bh-line-faint);
  color: var(--bh-text-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.bh-cot-resumen__nota strong {
  color: var(--bh-text-soft);
  font-weight: 600;
}

.bh-cot-resumen__foot {
  padding-top: 0.85rem;
  border-top: 1px solid var(--bh-line-faint);
}

/* --------------------------------------------------------------------------
   Diálogo de vista previa
   -------------------------------------------------------------------------- */

.bh-cot-dialog {
  width: min(740px, calc(100vw - 2rem));
  max-height: min(88vh, 900px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--bh-line-strong);
  border-radius: var(--bh-radius-lg);
  color: var(--bh-text);
  background: var(--bh-surface);
  box-shadow: var(--bh-shadow);
}

.bh-cot-dialog::backdrop {
  background: rgba(3, 4, 5, 0.74);
  backdrop-filter: blur(3px);
}

.bh-cot-dialog[open] {
  animation: bh-cot-aparecer 180ms var(--bh-ease);
}

@keyframes bh-cot-aparecer {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.bh-cot-dialog__panel {
  display: grid;
  max-height: inherit;
}

.bh-cot-dialog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: clamp(1rem, 2.4vw, 1.4rem);
  border-bottom: 1px solid var(--bh-line);
  background: var(--bh-hover-bg);
}

.bh-cot-dialog__head .bh-eyebrow {
  margin-bottom: 0.35rem;
}

.bh-cot-dialog__title {
  margin: 0;
  font-family: var(--bh-font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.bh-cot-dialog__hint {
  max-width: 55ch;
  margin: 0.3rem 0 0;
  color: var(--bh-text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.bh-cot-kbd {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--bh-line-strong);
  border-radius: 5px;
  color: var(--bh-text-muted);
  background: var(--bh-input-bg);
  font-family: var(--bh-font-mono);
  font-size: 0.6rem;
  line-height: 1.2;
}

.bh-cot-dialog__body {
  padding: clamp(1rem, 2.4vw, 1.4rem);
  overflow-y: auto;
}

.bh-cot-email {
  max-height: min(48vh, 520px);
  margin: 0;
  padding: 1rem;
  overflow: auto;
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius-sm);
  color: var(--bh-text-soft);
  background: var(--bh-input-bg);
  font-family: var(--bh-font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}

.bh-cot-dialog__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: clamp(0.85rem, 2vw, 1.1rem) clamp(1rem, 2.4vw, 1.4rem);
  border-top: 1px solid var(--bh-line);
}

.bh-cot-copiado {
  margin-right: auto;
  color: var(--bh-accent-text);
  font-family: var(--bh-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.bh-cot-dialog .bh-field__error {
  padding: 0 clamp(1rem, 2.4vw, 1.4rem) clamp(0.85rem, 2vw, 1.1rem);
}

/* --------------------------------------------------------------------------
   Tema claro: los tintes de selección necesitan más contraste.
   -------------------------------------------------------------------------- */

html[data-theme="light"] .bh-cot-section,
html[data-theme="light"] .bh-cot-area {
  background: var(--bh-surface);
}

html[data-theme="light"] .bh-cot-curso.is-selected,
html[data-theme="light"] .bh-cot-plan.is-selected {
  border-color: var(--bh-lime-ink);
  box-shadow: 0 0 0 1px var(--bh-lime-ink) inset;
}

html[data-theme="light"] .bh-cot-curso__price {
  color: var(--bh-lime-ink);
}

html[data-theme="light"] .bh-cot-curso__img {
  opacity: 0.96;
}

/* --------------------------------------------------------------------------
   Responsive del cotizador
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .bh-cot-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  /* En tablet y móvil el resumen pasa a ser un bloque final no sticky. */
  .bh-cot-aside {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    order: 2;
  }

  .bh-cot-resumen {
    position: static;
  }

  .bh-cot-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .bh-cot-section__head {
    padding: 0.9rem 1rem;
  }

  .bh-cot-section__body {
    padding: 0.9rem 1rem;
  }

  .bh-cot-step {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 0.62rem;
  }

  .bh-cot-contador {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .bh-cot-grid--2,
  .bh-cot-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .bh-cot-range {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .bh-cot-cursos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.75rem;
  }

  .bh-cot-curso__body {
    padding: 0.7rem;
  }

  .bh-cot-curso__name {
    padding-right: 0;
    font-size: 0.88rem;
  }

  .bh-cot-curso__desc {
    font-size: 0.74rem;
  }

  .bh-cot-curso__price {
    font-size: 0.95rem;
  }

  .bh-cot-area__actions {
    width: 100%;
  }

  .bh-cot-area__actions .bh-btn {
    flex: 1 1 auto;
  }

  .bh-cot-segment {
    border-radius: var(--bh-radius-sm);
  }

  .bh-cot-segment__item {
    flex: 1 1 auto;
  }

  .bh-cot-final__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .bh-cot-final__actions .bh-btn {
    width: 100%;
  }

  .bh-cot-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .bh-cot-confirm__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bh-cot-dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
  }

  .bh-cot-dialog__head,
  .bh-cot-dialog__body,
  .bh-cot-dialog__foot {
    padding-inline: 1rem;
  }

  .bh-cot-email {
    max-height: 46vh;
    font-size: 0.74rem;
  }

  .bh-cot-dialog__foot .bh-btn {
    width: 100%;
  }

  .bh-cot-copiado {
    width: 100%;
    margin-right: 0;
  }

  .bh-cot-plan__top {
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .bh-cot-cursos {
    grid-template-columns: minmax(0, 1fr);
  }

  .bh-cot-curso__media {
    aspect-ratio: 16 / 10;
  }

  .bh-cot-asesor__data div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .bh-cot-tabla th,
  .bh-cot-tabla td {
    padding-inline: 0.25rem;
  }
}

/* Movimiento reducido: sin giros ni desplazamientos. */
@media (prefers-reduced-motion: reduce) {
  .bh-cot-spinner {
    animation: none;
  }

  .bh-cot-dialog[open] {
    animation: none;
  }

  .bh-cot-curso:hover,
  .bh-cot-plan:hover,
  .bh-cot-ejemplo:hover {
    transform: none;
  }

  .bh-cot-curso:hover .bh-cot-curso__img {
    transform: none;
  }
}

/* Alto contraste: refuerza los controles seleccionados y las tarjetas. */
@media (forced-colors: active) {
  .bh-cot-section,
  .bh-cot-area,
  .bh-cot-curso,
  .bh-cot-plan,
  .bh-cot-dialog {
    border: 1px solid ButtonText;
  }

  .bh-cot-curso.is-selected,
  .bh-cot-plan.is-selected,
  .bh-cot-segment__item.is-selected {
    border: 2px solid Highlight;
  }

  .bh-cot-curso__check {
    border: 1px solid ButtonText;
    background: ButtonFace;
  }
}

/* ==========================================================================
   23. PERFIL · Edición de los datos del asesor.
   ========================================================================== */

.bh-perfil-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(1.25rem, 2.6vw, 2rem);
  align-items: start;
}

.bh-perfil-main {
  min-width: 0;
}

.bh-perfil-form {
  display: grid;
  gap: clamp(1.1rem, 2.4vw, 1.6rem);
}

.bh-perfil-form__head {
  padding-bottom: clamp(0.85rem, 2vw, 1.15rem);
  border-bottom: 1px solid var(--bh-line);
}

.bh-perfil-form__title {
  margin: 0;
  font-family: var(--bh-font-display);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bh-perfil-form__hint {
  margin: 0.3rem 0 0;
  color: var(--bh-text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.bh-perfil-readonly {
  color: var(--bh-text-muted);
  background: var(--bh-surface-3);
  cursor: default;
}

.bh-perfil-readonly:focus {
  outline: none;
  border-color: var(--bh-line-strong);
  background: var(--bh-surface-3);
}

.bh-perfil-aside {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-width: 0;
}

.bh-perfil-card {
  display: grid;
  gap: 1rem;
}

.bh-perfil-card__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.bh-perfil-card__avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  color: #090a0b;
  background: linear-gradient(150deg, var(--bh-cyan), var(--bh-lime));
  font-family: var(--bh-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.bh-perfil-card__name {
  margin: 0;
  font-family: var(--bh-font-display);
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.bh-perfil-card__role {
  margin: 0.2rem 0 0;
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bh-perfil-card__estado {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.bh-perfil-card__data {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.bh-perfil-card__data div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--bh-line-faint);
}

.bh-perfil-card__data div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.bh-perfil-card__data dt {
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bh-perfil-card__data dd {
  margin: 0;
  color: var(--bh-text-soft);
  font-size: 0.82rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.bh-perfil-card__nota {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--bh-line-faint);
  color: var(--bh-text-muted);
  font-size: 0.79rem;
  line-height: 1.5;
}

.bh-perfil-card__nota svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 0.08rem;
  color: var(--bh-accent-text);
}

html[data-theme="light"] .bh-perfil-readonly {
  background: var(--bh-surface-3);
}

@media (max-width: 1024px) {
  .bh-perfil-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .bh-perfil-aside {
    order: 2;
  }
}

@media (max-width: 767px) {
  .bh-perfil-form {
    padding: 1rem;
  }

  .bh-perfil-card__data div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
}

/* ==========================================================================
   24. COTIZACIONES (H5) · Pantalla de enviada, historial y estados de envío.
   Reutiliza los tokens, tarjetas, chips y botones del sistema de diseño.
   ========================================================================== */

/* --- 24.1 Banner de resultado (cotización enviada / error de envío) --- */
.bh-recibo-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1rem, 2.6vw, 1.75rem);
  align-items: start;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, var(--bh-glow-lime), transparent 60%),
    linear-gradient(165deg, var(--bh-surface-2), var(--bh-surface));
  box-shadow: var(--bh-shadow-sm);
}

.bh-recibo-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--bh-accent-text);
}

.bh-recibo-hero.is-error {
  background:
    radial-gradient(120% 140% at 0% 0%, var(--bh-glow-pink), transparent 60%),
    linear-gradient(165deg, var(--bh-surface-2), var(--bh-surface));
}

.bh-recibo-hero.is-error::after {
  background: var(--bh-pink);
}

.bh-recibo-hero__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: var(--bh-tag-lime-color);
  background: var(--bh-tag-lime-bg);
  box-shadow: inset 0 0 0 1px var(--bh-line);
}

.bh-recibo-hero.is-error .bh-recibo-hero__icon {
  color: var(--bh-tag-pink-color);
  background: var(--bh-tag-pink-bg);
}

.bh-recibo-hero__icon svg {
  width: 30px;
  height: 30px;
}

.bh-recibo-hero__main {
  min-width: 0;
}

.bh-recibo-hero__main .bh-eyebrow {
  margin-bottom: 0.55rem;
}

.bh-recibo-hero__title {
  margin: 0 0 0.6rem;
  font-family: var(--bh-font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.02;
  text-transform: uppercase;
}

.bh-recibo-hero__folio {
  display: inline-block;
  color: var(--bh-accent-text);
  font-family: var(--bh-font-mono);
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.bh-recibo-hero.is-error .bh-recibo-hero__folio {
  color: var(--bh-pink);
}

.bh-recibo-hero__text {
  max-width: 62ch;
  margin: 0 0 0.75rem;
  color: var(--bh-text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.bh-recibo-hero__correos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.bh-recibo-hero__correos .bh-chip {
  max-width: 100%;
}

.bh-recibo-hero__correo {
  overflow-wrap: anywhere;
}

.bh-recibo-hero__copia {
  margin: 0;
  color: var(--bh-text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.bh-recibo-hero__copia a {
  color: var(--bh-accent-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--bh-transition);
}

.bh-recibo-hero__copia a:hover {
  border-bottom-color: currentColor;
}

.bh-recibo-hero__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  text-align: right;
}

.bh-recibo-hero__fecha {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.bh-recibo-hero__fecha svg {
  width: 14px;
  height: 14px;
}

/* Alerta de error con acción de reenvío. */
.bh-recibo-alerta {
  align-items: flex-start;
}

.bh-recibo-alerta__body {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.bh-recibo-alerta__text {
  margin: 0;
  color: inherit;
  line-height: 1.55;
}

.bh-recibo-alerta__form {
  margin-top: 0.35rem;
}

/* --- 24.2 Tarjeta tipo recibo (detalle de la cotización) --- */
.bh-recibo {
  margin: 0;
  overflow: clip;
}

.bh-recibo__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  padding: clamp(1.1rem, 2.6vw, 1.6rem) clamp(1.1rem, 2.6vw, 1.75rem);
  border-bottom: 1px solid var(--bh-line);
  background: linear-gradient(165deg, var(--bh-surface-2), transparent);
}

.bh-recibo__head .bh-eyebrow {
  margin-bottom: 0.4rem;
}

.bh-recibo__title {
  margin: 0;
  font-family: var(--bh-font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.bh-recibo__head-aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
}

.bh-recibo__fecha {
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.bh-recibo__body {
  display: grid;
  gap: clamp(1.15rem, 2.8vw, 1.75rem);
  padding: clamp(1.1rem, 2.6vw, 1.75rem);
}

.bh-recibo__section {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.bh-recibo__section + .bh-recibo__section {
  padding-top: clamp(1.15rem, 2.8vw, 1.75rem);
  border-top: 1px dashed var(--bh-line);
}

.bh-recibo__section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-family: var(--bh-font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bh-recibo__section-title::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  background: var(--bh-accent-text);
}

.bh-recibo__sep {
  margin-inline: 0.3rem;
  color: var(--bh-text-muted);
}

.bh-recibo__mult {
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  color: var(--bh-tag-lime-color);
  background: var(--bh-tag-lime-bg);
  font-family: var(--bh-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.bh-recibo__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.9rem 1.75rem;
  margin: 0;
}

.bh-recibo__meta > div {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  align-content: start;
}

.bh-recibo__meta dt {
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.bh-recibo__meta dd {
  margin: 0;
  color: var(--bh-text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.bh-recibo__meta dd a {
  color: var(--bh-accent-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--bh-transition);
}

.bh-recibo__meta dd a:hover {
  border-bottom-color: currentColor;
}

.bh-recibo__area {
  display: grid;
  gap: 0.35rem;
}

.bh-recibo__area + .bh-recibo__area {
  margin-top: 0.85rem;
}

.bh-recibo__area-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

.bh-recibo__area-name {
  margin: 0;
  color: var(--bh-text-soft);
  font-family: var(--bh-font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.bh-recibo__area-sub {
  color: var(--bh-accent-text);
  font-family: var(--bh-font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.bh-recibo__empty {
  margin: 0;
  color: var(--bh-text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.bh-recibo__nota {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--bh-line);
  border-radius: 12px;
  color: var(--bh-text-muted);
  background: var(--bh-surface-2);
  font-size: 0.82rem;
  line-height: 1.55;
}

.bh-recibo__nota svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 0.12rem;
  color: var(--bh-accent-text);
}

.bh-recibo__nota strong {
  color: var(--bh-text-soft);
}

/* Tablas del recibo y de mensualidades. */
.bh-recibo-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.bh-recibo-tabla th {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--bh-line);
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.bh-recibo-tabla th:last-child,
.bh-recibo-tabla td:last-child {
  text-align: right;
}

.bh-recibo-tabla td {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--bh-line-faint);
  color: var(--bh-text-soft);
  line-height: 1.45;
  vertical-align: top;
}

.bh-recibo-tabla td:first-child {
  color: var(--bh-text);
  overflow-wrap: anywhere;
}

.bh-recibo-tabla tbody tr:last-child td {
  border-bottom: 0;
}

.bh-recibo-tabla tbody tr.is-selected td {
  background: var(--bh-tag-lime-bg);
  color: var(--bh-tag-lime-color);
}

.bh-recibo-tabla tbody tr.is-selected td:first-child {
  box-shadow: inset 3px 0 0 var(--bh-accent-text);
}

.bh-recibo-tabla tbody tr.is-selected td .bh-muted {
  color: inherit;
  opacity: 0.7;
}

/* Totalizadores. */
.bh-recibo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1rem, 2.6vw, 1.75rem);
  align-items: start;
}

.bh-recibo-totales {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.bh-recibo-totales > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--bh-line-faint);
}

.bh-recibo-totales dt {
  color: var(--bh-text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.bh-recibo-totales dd {
  margin: 0;
  color: var(--bh-text-soft);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bh-recibo-totales__neg {
  color: var(--bh-error-text);
}

.bh-recibo-totales__sub {
  color: var(--bh-text-muted);
  font-size: 0.72rem;
}

.bh-recibo-totales__total {
  align-items: center;
  padding: 0.8rem 0.95rem !important;
  border: 1px solid var(--bh-tag-lime-color);
  border-radius: 12px;
  background: var(--bh-tag-lime-bg);
}

.bh-recibo-totales__total dt {
  color: var(--bh-tag-lime-color);
  font-family: var(--bh-font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bh-recibo-totales__total dd {
  color: var(--bh-tag-lime-color);
  font-family: var(--bh-font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  white-space: nowrap;
}

.bh-recibo-mensualidades {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.bh-recibo-mensualidades__title {
  margin: 0;
  color: var(--bh-text-soft);
  font-family: var(--bh-font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Mensaje del asesor. */
.bh-recibo-mensaje__saludo {
  margin: 0;
  color: var(--bh-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
}

.bh-recibo-mensaje__bloque {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--bh-line-strong);
  border-radius: 0 10px 10px 0;
  background: var(--bh-surface-2);
}

.bh-recibo-mensaje__label {
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bh-recibo-mensaje__texto {
  margin: 0;
  color: var(--bh-text-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Firma del asesor. */
.bh-recibo-firma {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 2.4vw, 1.35rem);
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius);
  background: linear-gradient(160deg, var(--bh-surface-2), var(--bh-surface));
}

.bh-recibo-firma__avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: #090a0b;
  background: linear-gradient(150deg, var(--bh-cyan), var(--bh-lime));
  font-family: var(--bh-font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.bh-recibo-firma__body {
  min-width: 0;
}

.bh-recibo-firma__nombre {
  margin: 0;
  color: var(--bh-text);
  font-family: var(--bh-font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.bh-recibo-firma__cargo {
  margin: 0.15rem 0 0;
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bh-recibo-firma__contacto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.3rem;
  margin: 0.45rem 0 0;
  color: var(--bh-text-soft);
  font-size: 0.84rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.bh-recibo-firma__contacto a {
  color: var(--bh-accent-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--bh-transition);
}

.bh-recibo-firma__contacto a:hover {
  border-bottom-color: currentColor;
}

.bh-recibo__acciones {
  margin-top: clamp(1.5rem, 3.5vw, 2.25rem);
}

/* --- 24.3 Historial de cotizaciones --- */
.bh-hist-kpis {
  margin-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
}

.bh-hist-panel {
  overflow: clip;
}

.bh-hist-panel > .bh-panel__head {
  margin: 0;
  padding: clamp(1rem, 2.4vw, 1.4rem) clamp(1rem, 2.6vw, 1.5rem);
  border-bottom: 1px solid var(--bh-line);
}

.bh-hist-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.bh-hist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.bh-hist-table th {
  padding: 0.7rem clamp(0.85rem, 2vw, 1.25rem);
  border-bottom: 1px solid var(--bh-line);
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.bh-hist-table th:last-child {
  text-align: right;
}

.bh-hist-table td {
  padding: 0.85rem clamp(0.85rem, 2vw, 1.25rem);
  border-bottom: 1px solid var(--bh-line-faint);
  vertical-align: middle;
}

.bh-hist-table tbody tr {
  transition: background-color var(--bh-transition);
}

.bh-hist-table tbody tr:hover {
  background: var(--bh-hover-bg);
}

.bh-hist-table tbody tr:last-child td {
  border-bottom: 0;
}

.bh-hist-folio {
  display: inline-block;
  white-space: nowrap;
  color: var(--bh-accent-text);
  font-family: var(--bh-font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color var(--bh-transition);
  overflow-wrap: anywhere;
}

.bh-hist-folio:hover {
  border-bottom-color: currentColor;
}

.bh-hist-meta {
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
}

.bh-hist-prospecto {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.bh-hist-prospecto__name {
  color: var(--bh-text);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bh-hist-prospecto__correo {
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.68rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bh-hist-prospecto__mas {
  margin-left: 0.3rem;
  padding: 0 0.32rem;
  border-radius: 5px;
  color: var(--bh-tag-cyan-color);
  background: var(--bh-tag-cyan-bg);
  font-size: 0.62rem;
}

.bh-hist-total {
  display: inline-flex;
  flex-direction: column;
  gap: 0.05rem;
  color: var(--bh-text);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.bh-hist-total__moneda {
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.bh-hist-estado {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-family: var(--bh-font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.bh-hist-estado__dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.bh-hist-estado--ok {
  color: var(--bh-tag-lime-color);
  background: var(--bh-tag-lime-bg);
  box-shadow: inset 0 0 0 1px rgba(221, 248, 95, 0.34);
}

.bh-hist-estado--error {
  color: var(--bh-tag-pink-color);
  background: var(--bh-tag-pink-bg);
  box-shadow: inset 0 0 0 1px rgba(244, 139, 247, 0.34);
}

.bh-hist-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.bh-hist-actions__form {
  display: inline-flex;
}

.bh-hist-empty {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  margin: 0;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.15rem, 3vw, 2rem);
  text-align: center;
  border: 0;
  background: transparent;
}

.bh-hist-empty__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  color: var(--bh-accent-text);
  background: var(--bh-tag-lime-bg);
  box-shadow: inset 0 0 0 1px var(--bh-line);
}

.bh-hist-empty__icon svg {
  width: 30px;
  height: 30px;
}

.bh-hist-empty__title {
  margin: 0;
  font-family: var(--bh-font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.bh-hist-empty__text {
  max-width: 46ch;
  margin: 0;
  color: var(--bh-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Pie con paginación manual (sin Tailwind). */
.bh-hist-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  padding: clamp(0.9rem, 2vw, 1.15rem) clamp(1rem, 2.6vw, 1.5rem);
  border-top: 1px solid var(--bh-line);
  background: var(--bh-surface-2);
}

.bh-paginacion__info {
  margin: 0;
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.bh-paginacion {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bh-paginacion .bh-btn.is-disabled,
.bh-paginacion .bh-btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* --- 24.4 Tema claro --- */
html[data-theme="light"] .bh-recibo-hero {
  background:
    radial-gradient(120% 140% at 0% 0%, var(--bh-glow-lime), transparent 60%),
    linear-gradient(165deg, var(--bh-surface-2), var(--bh-surface));
}

html[data-theme="light"] .bh-recibo-hero.is-error {
  background:
    radial-gradient(120% 140% at 0% 0%, var(--bh-glow-pink), transparent 60%),
    linear-gradient(165deg, var(--bh-surface-2), var(--bh-surface));
}

html[data-theme="light"] .bh-hist-estado--ok {
  box-shadow: inset 0 0 0 1px rgba(102, 122, 0, 0.34);
}

html[data-theme="light"] .bh-hist-estado--error {
  box-shadow: inset 0 0 0 1px rgba(165, 31, 155, 0.3);
}

html[data-theme="light"] .bh-recibo__area-sub {
  color: var(--bh-lime-ink);
}

html[data-theme="light"] .bh-recibo__nota svg {
  color: var(--bh-lime-ink);
}

/* --- 24.5 Responsive --- */
@media (max-width: 1024px) {
  .bh-recibo__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* La tabla del historial pasa a tarjetas apiladas. */
  .bh-hist-table-wrap {
    overflow: visible;
  }

  .bh-hist-table,
  .bh-hist-table tbody,
  .bh-hist-table tr,
  .bh-hist-table td {
    display: block;
  }

  .bh-hist-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .bh-hist-table tbody {
    display: grid;
    gap: 0.8rem;
    padding: 0.85rem;
  }

  .bh-hist-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--bh-line);
    border-radius: var(--bh-radius);
    background: linear-gradient(165deg, var(--bh-surface-2), var(--bh-surface));
  }

  .bh-hist-table tbody tr:hover {
    background: linear-gradient(165deg, var(--bh-surface-2), var(--bh-surface));
  }

  .bh-hist-table td {
    display: grid;
    grid-template-columns: 6.75rem minmax(0, 1fr);
    align-items: baseline;
    gap: 0.35rem 0.85rem;
    padding: 0.32rem 0;
    border: 0;
  }

  .bh-hist-table td::before {
    content: attr(data-label);
    color: var(--bh-text-muted);
    font-family: var(--bh-font-mono);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .bh-hist-table td[data-label="Acciones"] {
    display: block;
    padding-top: 0.6rem;
    margin-top: 0.35rem;
    border-top: 1px solid var(--bh-line-faint);
  }

  .bh-hist-table td[data-label="Acciones"]::before {
    display: none;
  }

  .bh-hist-actions {
    justify-content: flex-start;
  }

  .bh-hist-total {
    flex-direction: row;
    align-items: baseline;
    gap: 0.4rem;
  }
}

@media (max-width: 900px) {
  .bh-recibo-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .bh-recibo-hero__aside {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .bh-recibo-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.15rem;
  }

  .bh-recibo-hero__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .bh-recibo-hero__icon svg {
    width: 24px;
    height: 24px;
  }

  .bh-recibo-hero__aside {
    grid-column: auto;
  }

  .bh-recibo__head,
  .bh-recibo__body {
    padding: 1.1rem;
  }

  .bh-recibo__meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .bh-recibo-tabla {
    font-size: 0.82rem;
  }

  .bh-recibo-tabla th,
  .bh-recibo-tabla td {
    padding: 0.5rem 0.55rem;
  }

  .bh-recibo-tabla th {
    font-size: 0.54rem;
    white-space: normal;
  }

  .bh-recibo-totales__total {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .bh-recibo__acciones .bh-btn {
    flex: 1 1 100%;
  }

  .bh-hist-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .bh-paginacion {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .bh-hist-table td {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }

  .bh-recibo-firma {
    align-items: flex-start;
  }

  .bh-recibo-firma__avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 1.15rem;
  }
}

/* --- 24.6 Accesibilidad, alto contraste e impresión --- */
@media (forced-colors: active) {
  .bh-recibo-hero,
  .bh-recibo,
  .bh-recibo-firma,
  .bh-hist-table tbody tr,
  .bh-hist-estado {
    border: 1px solid ButtonText;
  }
}

@media print {
  .bh-recibo-hero,
  .bh-recibo__acciones,
  .bh-recibo-alerta,
  .bh-hist-actions,
  .bh-hist-footer,
  .bh-paginacion {
    display: none !important;
  }

  .bh-recibo {
    border: 1px solid #999;
  }
}

/* ==========================================================================
   25. ADMINISTRACIÓN (H6)
   --------------------------------------------------------------------------
   Capa visual del panel de administración: pestañas, tablas con versión móvil
   a tarjetas, precios inline, planes, opciones, ejemplos y auditoría.
   Reutiliza tokens, botones, formularios, tarjetas y KPIs del sistema.
   ========================================================================== */

/* --- 25.1 Barra de pestañas administrativas --- */
.bh-admin-tabs {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  overflow-x: auto;
  border-bottom: 1px solid var(--bh-line);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.bh-admin-tabs__list {
  display: flex;
  align-items: stretch;
  gap: 0.15rem;
  min-width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bh-admin-tabs__item {
  display: flex;
}

.bh-admin-tabs__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 0.9rem;
  border-radius: 12px 12px 0 0;
  color: var(--bh-text-muted);
  font-family: var(--bh-font-body);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color var(--bh-transition),
    background-color var(--bh-transition);
}

.bh-admin-tabs__link::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  bottom: -1px;
  left: 0.9rem;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  transition: background-color var(--bh-transition);
}

.bh-admin-tabs__dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.bh-admin-tabs__link:hover {
  color: var(--bh-text);
  background: var(--bh-hover-bg);
}

.bh-admin-tabs__link:hover::after {
  background: var(--bh-line-strong);
}

.bh-admin-tabs__link[aria-current="page"] {
  color: var(--bh-text);
}

.bh-admin-tabs__link[aria-current="page"] .bh-admin-tabs__dot {
  color: var(--bh-accent-text);
  opacity: 1;
  box-shadow: 0 0 0 4px var(--bh-glow-lime);
}

.bh-admin-tabs__link[aria-current="page"]::after {
  background: var(--bh-accent-text);
}

.bh-admin-tabs__link:focus-visible {
  outline: 2px solid var(--bh-focus);
  outline-offset: 2px;
}

/* --- 25.2 Barra de filtros --- */
.bh-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: clamp(1rem, 2.5vw, 1.35rem);
}

.bh-admin-toolbar__fields {
  display: flex;
  flex: 1 1 460px;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.85rem;
  min-width: 0;
}

.bh-admin-toolbar__fields .bh-field {
  flex: 1 1 220px;
  min-width: 0;
}

.bh-admin-toolbar__select {
  flex: 0 1 220px;
}

.bh-admin-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* --- 25.3 Tablas de administración (versión móvil a tarjetas) --- */
.bh-admin-table-card {
  overflow: hidden;
}

.bh-admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.bh-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.bh-admin-table th {
  padding: 0.7rem clamp(1rem, 2.5vw, 1.5rem);
  border-bottom: 1px solid var(--bh-line);
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.bh-admin-table td {
  padding: 0.85rem clamp(1rem, 2.5vw, 1.5rem);
  border-bottom: 1px solid var(--bh-line-faint);
  vertical-align: middle;
}

.bh-admin-table tbody tr {
  transition: background-color var(--bh-transition);
}

.bh-admin-table tbody tr:hover {
  background: var(--bh-hover-bg);
}

.bh-admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.bh-admin-table time {
  white-space: nowrap;
}

/* Celdas y helpers reutilizados por las tablas */
.bh-admin-cell {
  color: var(--bh-text-soft);
  overflow-wrap: anywhere;
}

.bh-admin-muted {
  color: var(--bh-text-muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.bh-admin-mono {
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.bh-admin-description {
  max-width: 48ch;
  margin: 0;
  color: var(--bh-text-soft);
  font-size: 0.84rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.bh-admin-link {
  color: var(--bh-accent-text);
  font-family: var(--bh-font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color var(--bh-transition),
    border-color var(--bh-transition);
}

.bh-admin-link:hover {
  color: var(--bh-text);
  border-bottom-color: currentColor;
}

.bh-admin-link:focus-visible {
  outline: 2px solid var(--bh-focus);
  outline-offset: 3px;
}

.bh-admin-person {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.bh-admin-person__name {
  color: var(--bh-text);
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.bh-admin-person__meta {
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.bh-admin-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.bh-admin-chips .bh-chip {
  padding: 0.22rem 0.48rem;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}

.bh-admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.bh-admin-row-actions form {
  margin: 0;
}

.bh-admin-amount {
  color: var(--bh-text);
  font-family: var(--bh-font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.bh-admin-amount__moneda {
  margin-left: 0.2rem;
  color: var(--bh-text-muted);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* Estado / insignia con punto (cuentas, cotizaciones, planes y auditoría) */
.bh-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-family: var(--bh-font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.bh-status::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.bh-status--ok {
  color: var(--bh-tag-lime-color);
  background: var(--bh-tag-lime-bg);
}

.bh-status--pending {
  color: var(--bh-tag-pink-color);
  background: var(--bh-tag-pink-bg);
}

.bh-status--error {
  color: var(--bh-tag-pink-color);
  background: var(--bh-tag-pink-bg);
}

.bh-status--info {
  color: var(--bh-tag-cyan-color);
  background: var(--bh-tag-cyan-bg);
}

.bh-status--neutral {
  color: var(--bh-tag-muted-color);
  background: var(--bh-tag-muted-bg);
}

/* Precio actual y formulario inline de actualización */
.bh-admin-price {
  color: var(--bh-text);
  font-family: var(--bh-font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.bh-admin-price--none {
  color: var(--bh-text-muted);
  font-style: italic;
  font-weight: 500;
}

.bh-admin-vigencia {
  display: block;
  margin-top: 0.22rem;
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.bh-price-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bh-price-form .bh-input {
  flex: 0 1 8.5rem;
  width: 8.5rem;
  min-height: 38px;
  padding: 0.35rem 0.55rem;
  font-family: var(--bh-font-mono);
  font-size: 0.8rem;
  text-align: right;
}

.bh-price-form .bh-btn {
  min-height: 38px;
  padding: 0.4rem 0.85rem;
}

/* --- 25.4 Estado vacío reutilizable --- */
.bh-admin-empty {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  padding: clamp(1.75rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2rem);
  text-align: center;
}

.bh-admin-empty__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--bh-line);
  border-radius: 16px;
  color: var(--bh-accent-text);
  background: var(--bh-tag-lime-bg);
}

.bh-admin-empty__icon svg {
  width: 26px;
  height: 26px;
}

.bh-admin-empty__title {
  margin: 0.25rem 0 0;
  font-family: var(--bh-font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bh-admin-empty__text {
  max-width: 48ch;
  margin: 0;
  color: var(--bh-text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* --- 25.5 Paginación manual de administración --- */
.bh-admin-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem clamp(1rem, 2.5vw, 1.5rem);
  border-top: 1px solid var(--bh-line-faint);
}

/* --- 25.6 Actividad reciente (dashboard y auditoría) --- */
.bh-admin-feed-card {
  padding: 0.25rem clamp(1.1rem, 3vw, 1.6rem);
}

.bh-admin-feed {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bh-admin-feed__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--bh-line-faint);
}

.bh-admin-feed__item:last-child {
  border-bottom: 0;
}

.bh-admin-feed__dot {
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--bh-cyan);
  box-shadow: 0 0 0 4px var(--bh-tag-cyan-bg);
}

.bh-admin-feed__title {
  margin: 0;
  color: var(--bh-text);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.bh-admin-feed__text {
  margin: 0.15rem 0 0;
  color: var(--bh-text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.bh-admin-feed__meta {
  margin: 0.4rem 0 0;
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

/* --- 25.7 Planes y multiplicadores --- */
.bh-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(0.9rem, 2vw, 1.25rem);
}

.bh-plan-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.1rem, 2.4vw, 1.4rem);
}

.bh-plan-card--inactive {
  border-style: dashed;
}

.bh-plan-card--inactive .bh-plan-card__title {
  color: var(--bh-text-soft);
}

.bh-plan-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.bh-plan-card__ident {
  min-width: 0;
}

.bh-plan-card__title {
  margin: 0;
  font-family: var(--bh-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
}

.bh-plan-card__slug {
  margin: 0.2rem 0 0;
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.bh-plan-card__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.bh-plan-card__form {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--bh-line-faint);
}

.bh-plan-card__form .bh-input,
.bh-plan-card__form .bh-textarea {
  min-height: 42px;
  font-size: 0.9rem;
}

.bh-plan-card__form .bh-textarea {
  min-height: 68px;
}

.bh-plan-card__actions {
  display: flex;
  justify-content: flex-end;
}

.bh-plan-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.95rem;
  border-top: 1px solid var(--bh-line-faint);
}

.bh-plan-card__foot-text {
  color: var(--bh-text-muted);
  font-family: var(--bh-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Formulario plegable para crear un plan */
.bh-newplan {
  margin-top: clamp(1rem, 2vw, 1.4rem);
  border: 1px dashed var(--bh-line-strong);
  border-radius: var(--bh-radius-lg);
  background: transparent;
}

.bh-newplan__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 1rem clamp(1.1rem, 2.5vw, 1.4rem);
  cursor: pointer;
  list-style: none;
  border-radius: var(--bh-radius-lg);
}

.bh-newplan__summary::-webkit-details-marker {
  display: none;
}

.bh-newplan__summary:focus-visible {
  outline: 2px solid var(--bh-focus);
  outline-offset: 2px;
}

.bh-newplan__summary-title {
  color: var(--bh-text);
  font-family: var(--bh-font-display);
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bh-newplan__summary-hint {
  color: var(--bh-text-muted);
  font-size: 0.78rem;
}

.bh-newplan[open] .bh-newplan__summary {
  border-bottom: 1px solid var(--bh-line);
  border-radius: var(--bh-radius-lg) var(--bh-radius-lg) 0 0;
}

.bh-newplan > .bh-newplan__form {
  border: 0;
  border-radius: 0 0 var(--bh-radius-lg) var(--bh-radius-lg);
  background: var(--bh-surface);
  box-shadow: none;
}

/* --- 25.8 Ejemplos de mensajes --- */
.bh-admin-examples {
  display: grid;
  gap: 1rem;
}

.bh-admin-example {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  margin: 0;
  padding: clamp(0.9rem, 2vw, 1.15rem);
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius);
  background: var(--bh-surface);
}

.bh-admin-example__legend {
  padding: 0 0.4rem;
  color: var(--bh-accent-text);
  font-family: var(--bh-font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --- 25.9 Tema claro --- */
html[data-theme="light"] .bh-admin-table tbody tr:hover {
  background: var(--bh-hover-bg);
}

html[data-theme="light"] .bh-admin-example {
  background: var(--bh-surface-2);
}

html[data-theme="light"] .bh-newplan > .bh-newplan__form {
  background: var(--bh-surface-2);
}

html[data-theme="light"] .bh-admin-tabs__link[aria-current="page"] .bh-admin-tabs__dot {
  box-shadow: 0 0 0 4px var(--bh-glow-lime);
}

/* --- 25.10 Responsive · tablet 1024 px --- */
@media (max-width: 1024px) {
  .bh-admin-toolbar__fields {
    flex-basis: 100%;
  }

  .bh-admin-toolbar__actions {
    width: 100%;
    justify-content: flex-end;
  }

  /* La tabla de administración pasa a tarjetas apiladas. */
  .bh-admin-table-wrap {
    overflow: visible;
  }

  .bh-admin-table,
  .bh-admin-table tbody,
  .bh-admin-table tr,
  .bh-admin-table td {
    display: block;
  }

  .bh-admin-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .bh-admin-table tbody {
    display: grid;
    gap: 0.75rem;
    padding: 0.75rem 1rem 1rem;
  }

  .bh-admin-table tbody tr {
    display: grid;
    gap: 0.6rem;
    padding: 0.95rem;
    border: 1px solid var(--bh-line);
    border-radius: var(--bh-radius-sm);
    background: var(--bh-surface);
  }

  .bh-admin-table tbody tr:hover {
    background: var(--bh-surface);
  }

  .bh-admin-table td {
    padding: 0;
    border: 0;
  }

  .bh-admin-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.22rem;
    color: var(--bh-text-muted);
    font-family: var(--bh-font-mono);
    font-size: 0.56rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .bh-admin-table td[data-label="Acciones"] .bh-admin-row-actions {
    margin-top: 0.1rem;
  }

  html[data-theme="light"] .bh-admin-table tbody tr {
    background: var(--bh-surface-2);
  }

  html[data-theme="light"] .bh-admin-table tbody tr:hover {
    background: var(--bh-surface-2);
  }
}

/* --- 25.11 Responsive · móvil 767 px --- */
@media (max-width: 767px) {
  .bh-admin-tabs {
    margin-inline: calc(clamp(1rem, 4vw, 2.5rem) * -1);
    padding-inline: clamp(1rem, 4vw, 2.5rem);
  }

  .bh-admin-tabs__link {
    padding: 0.7rem 0.75rem;
    font-size: 0.78rem;
  }

  .bh-plan-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bh-admin-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .bh-admin-pagination .bh-paginacion {
    width: 100%;
    justify-content: space-between;
  }

  .bh-price-form {
    flex-wrap: wrap;
  }

  .bh-price-form .bh-input {
    flex: 1 1 9rem;
    width: auto;
  }

  .bh-price-form .bh-btn {
    flex: 1 1 auto;
  }

  .bh-admin-feed-card {
    padding-inline: 1rem;
  }

  .bh-newplan__form {
    padding: 1rem;
  }
}

/* --- 25.12 Responsive · móvil pequeño 480 px --- */
@media (max-width: 480px) {
  .bh-admin-toolbar__fields .bh-field,
  .bh-admin-toolbar__select {
    flex: 1 1 100%;
  }

  .bh-admin-toolbar__actions .bh-btn {
    flex: 1 1 auto;
  }

  .bh-admin-table tbody {
    padding: 0.6rem 0.65rem 0.8rem;
  }

  .bh-admin-pagination .bh-paginacion {
    flex-direction: column;
    align-items: stretch;
  }

  .bh-admin-pagination .bh-paginacion .bh-btn {
    width: 100%;
    justify-content: center;
  }

  .bh-plan-card__head,
  .bh-plan-card__foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .bh-admin-feed__item {
    gap: 0.6rem;
  }
}

/* --- 25.13 Accesibilidad y preferencias --- */
@media (prefers-reduced-motion: reduce) {
  .bh-admin-tabs__link,
  .bh-admin-table tbody tr,
  .bh-admin-link {
    transition: none;
  }
}

@media (forced-colors: active) {
  .bh-admin-tabs,
  .bh-admin-table tbody tr,
  .bh-plan-card,
  .bh-admin-example,
  .bh-newplan {
    border: 1px solid ButtonText;
  }
}

@media print {
  .bh-admin-tabs,
  .bh-admin-toolbar,
  .bh-admin-pagination,
  .bh-admin-row-actions,
  .bh-price-form,
  .bh-plan-card__form,
  .bh-plan-card__foot,
  .bh-newplan {
    display: none !important;
  }
}
