/* ==========================================================================
   BMGS — hoja de estilos compartida (index.html + verificacion.html)
   Paleta original conservada: navy #060911 · cian #3fd3ff · cian profundo #087ba3
   ========================================================================== */

:root {
  /* Zona oscura */
  --bg: #060911;
  --bg-elevated: #0b1120;
  --surface-dark: #101928;
  --border-dark: rgba(148, 163, 184, 0.16);
  --border-dark-strong: rgba(148, 163, 184, 0.30);
  --accent: #3fd3ff;
  --accent-strong: #9be8ff;
  --accent-soft: rgba(63, 211, 255, 0.10);
  --text: #eef2f8;
  --text-muted: #8d99b3;
  --text-faint: #55607a;
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.14);

  /* Zona clara */
  --bg-light: #f5f7fb;
  --surface-light: #ffffff;
  --border-light: #e3e8f1;
  --border-light-strong: #ccd5e3;
  --text-dark: #10151f;
  --text-dark-muted: #59657a;
  --text-dark-faint: #8b96a8;
  --accent-deep: #087ba3;
  --accent-deep-hover: #065a7a;
  --accent-deep-soft: rgba(8, 123, 163, 0.08);
  --danger-deep: #d7263d;
  --danger-deep-soft: rgba(215, 38, 61, 0.07);

  --radius: 3px;
  --radius-lg: 6px;
  --font-sans: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  --maxw: 1200px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border-dark);
}
.nav { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-links { list-style: none; display: flex; gap: 28px; align-items: center; }
.nav-links a {
  display: block; padding: 22px 0 20px;
  color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); border-bottom-color: var(--accent); }
.nav-links button.link-btn { all: unset; cursor: pointer; display: block; padding: 22px 0 20px; color: var(--text-muted); font-size: 14px; font-weight: 500; border-bottom: 2px solid transparent; transition: color .15s; }
.nav-links button.link-btn:hover { color: var(--text); }
.nav-links button.link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.version {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  border: 1px solid var(--border-dark-strong); border-radius: var(--radius);
  padding: 4px 10px; white-space: nowrap;
}
@media (max-width: 900px) {
  .nav { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 0; gap: 0 16px; }
  .nav-right { width: 100%; justify-content: space-between; gap: 16px; order: 3; }
  .nav-links { gap: 10px; flex-wrap: wrap; }
  .nav-links a, .nav-links button.link-btn { padding: 12px 0 10px; white-space: nowrap; font-size: 12.5px; }
  .version, .nav-changelog { display: none; }
  html { scroll-padding-top: 110px; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 20px; font: 600 14px/1.2 var(--font-sans);
  border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-primary { background: var(--accent); color: #04121b; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-dark-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline { background: var(--surface-light); color: var(--text-dark); border-color: var(--border-light-strong); }
.btn-outline:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.btn-solid { background: var(--bg); color: #fff; }
.btn-solid:hover { background: var(--accent-deep); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--bg); color: var(--text);
  padding: 168px 0 112px;
  border-bottom: 1px solid var(--border-dark);
  background-image:
    linear-gradient(to right, rgba(63, 211, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(63, 211, 255, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}
.hero::after { /* línea de acento inferior */
  content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px;
  background: linear-gradient(to right, var(--accent) 0, var(--accent) 120px, transparent 120px);
}
.eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 24px; max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 18px; line-height: 1.65; color: var(--text-muted); max-width: 62ch; margin-bottom: 16px; }
.hero p.note { font-size: 13.5px; color: var(--text-faint); max-width: 62ch; margin-bottom: 32px; padding-left: 14px; border-left: 2px solid var(--border-dark-strong); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-figure { border: 1px solid var(--border-dark-strong); border-radius: var(--radius-lg); background: var(--surface-dark); padding: 6px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .65); }
.hero-figure img { width: 100%; height: auto; border-radius: 3px; }
.hero-figure figcaption { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); padding: 10px 6px 4px; letter-spacing: .02em; }
.hero.compact { padding-bottom: 64px; }
.hero.compact h1 { max-width: 26ch; }
.hero.compact p.lead { max-width: 78ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tags span { font-family: var(--font-mono); font-size: 12px; color: var(--accent-strong); border: 1px solid var(--border-dark-strong); padding: 5px 11px; border-radius: var(--radius); }
@media (max-width: 960px) {
  .hero { padding: 132px 0 64px; }
  }

/* ---------- Contenido claro ---------- */
main { background: var(--bg-light); }

.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--border-light); }
.section-head { margin-bottom: 48px; max-width: 64ch; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section .eyebrow { color: var(--accent-deep); margin-bottom: 10px; }
.section-title { font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; color: var(--text-dark); }
.section-sub { color: var(--text-dark-muted); font-size: 15.5px; margin-top: 10px; }

/* ---------- Funcionalidades ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--border-light); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature:last-child { padding-bottom: 0; }
.feature.reverse .feature-copy { order: 2; }
.feature-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 12px; display: block; }
.feature h3 { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 14px; }
.feature p { color: var(--text-dark-muted); font-size: 15.5px; margin-bottom: 20px; }
.feature ul { list-style: none; display: grid; gap: 10px; border-top: 1px solid var(--border-light); padding-top: 18px; }
.feature li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--text-dark); }
.feature li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 2px; background: var(--accent-deep); }
.shot { border: 1px solid var(--border-light-strong); border-radius: var(--radius-lg); background: var(--surface-light); padding: 5px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 20px 40px -28px rgba(16, 24, 40, .25); }
.shot img { width: 100%; height: auto; border-radius: 3px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .feature.reverse .feature-copy { order: 0; }
}

/* ---------- Banner de verificación ---------- */
.callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; text-decoration: none; background: var(--surface-light); border: 1px solid var(--border-light); border-left: 3px solid var(--accent-deep); border-radius: var(--radius); padding: 22px 26px; transition: border-color .15s, background .15s; }
.callout:hover { border-color: var(--accent-deep); }
.callout strong { display: block; font-size: 16px; font-weight: 600; color: var(--text-dark); }
.callout .sub { display: block; font-size: 14px; color: var(--text-dark-muted); margin-top: 2px; }
.callout .go { font-size: 14px; font-weight: 600; color: var(--accent-deep); white-space: nowrap; }

/* ---------- Descargas ---------- */
.dl-table { background: var(--surface-light); border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; }
.dl-row { display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(0, 2fr) 120px 190px; gap: 24px; align-items: center; padding: 22px 28px; border-top: 1px solid var(--border-light); }
.dl-row:first-child { border-top: 0; }
.dl-head { padding-top: 12px; padding-bottom: 12px; background: #f2f6fa; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dark-faint); }
.dl-name { font-size: 16px; font-weight: 600; color: var(--text-dark); }
.dl-desc { font-size: 14.5px; color: var(--text-dark-muted); }
.dl-ver { font-family: var(--font-mono); font-size: 13px; color: var(--accent-deep); }
.dl-row.doc .dl-ver { color: var(--danger-deep); }
.dl-action { display: flex; justify-content: flex-end; }
.dl-action .btn { width: 100%; }
.dl-row.doc .btn-solid:hover { background: var(--danger-deep); }
.disclaimer { margin-top: 24px; font-size: 13.5px; color: var(--text-dark-muted); max-width: 90ch; padding-left: 14px; border-left: 2px solid var(--border-light-strong); }
@media (max-width: 860px) {
  .dl-head { display: none; }
  .dl-row { grid-template-columns: 1fr auto; gap: 8px 16px; padding: 20px; }
  .dl-desc { grid-column: 1 / -1; grid-row: 2; }
  .dl-ver { grid-column: 2; grid-row: 1; text-align: right; }
  .dl-action { grid-column: 1 / -1; grid-row: 3; margin-top: 8px; }
}

/* ---------- Tutoriales ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.video-card { display: flex; flex-direction: column; background: var(--surface-light); border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .15s; }
.video-card:hover { border-color: var(--accent-deep); }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--bg); overflow: hidden; border-bottom: 1px solid var(--border-light); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb .play { position: absolute; left: 14px; bottom: 14px; width: 40px; height: 40px; display: grid; place-items: center; background: rgba(6, 9, 17, .82); border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; color: #fff; }
.video-thumb .play svg { width: 14px; height: 14px; margin-left: 2px; }
.video-thumb .dur { position: absolute; right: 12px; bottom: 14px; font-family: var(--font-mono); font-size: 11.5px; color: #fff; background: rgba(6, 9, 17, .82); padding: 2px 7px; border-radius: 2px; }
.video-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.video-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 8px; }
.video-title { font-size: 17px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; color: var(--text-dark); }
.video-desc { font-size: 14px; color: var(--text-dark-muted); flex: 1; margin-bottom: 16px; }
.video-link { font-size: 14px; font-weight: 600; color: var(--accent-deep); text-decoration: none; align-self: flex-start; }
.video-link:hover { color: var(--accent-deep-hover); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .video-grid { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border-dark); color: var(--text-muted); font-size: 13.5px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 40px var(--gutter); display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; align-items: start; }
.footer-inner .who { color: var(--text); font-weight: 600; margin-bottom: 4px; }
.footer-inner .role { color: var(--text-muted); }
.footer-legal { list-style: none; display: grid; gap: 8px; }
.footer-legal a { color: var(--text-muted); text-decoration: none; transition: color .15s; }
.footer-legal a:hover { color: var(--accent); }
.footer-eula { font-size: 12.5px; color: var(--text-faint); }
.footer-copy { grid-column: 1 / -1; border-top: 1px solid var(--border-dark); padding-top: 20px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Modales ---------- */
.modal-overlay, .modal-fondo { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(4, 6, 11, .82); overflow-y: auto; padding: 32px 16px; }
.modal-overlay.active, .modal-fondo.active { display: flex; align-items: flex-start; justify-content: center; }
.modal-box { position: relative; margin: auto; width: 100%; max-width: 760px; background: var(--surface-dark); border: 1px solid var(--border-dark-strong); border-radius: var(--radius-lg); padding: 40px 44px; color: var(--text-muted); }
.modal-close { position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; background: none; border: 0; color: var(--text-muted); font-size: 18px; line-height: 1; cursor: pointer; border-radius: var(--radius); }
.modal-close:hover { color: var(--accent); background: var(--accent-soft); }
.modal-box h2 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); margin-bottom: 6px; }
.modal-date { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-bottom: 28px; }
.modal-box h3 { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin: 28px 0 8px; }
.modal-box p, .modal-box li { font-size: 14px; line-height: 1.75; }
.modal-box p + p { margin-top: 10px; }
.modal-box ul { padding-left: 20px; margin-top: 6px; }
.modal-box li { margin-bottom: 4px; }
.modal-box strong { color: var(--text); font-weight: 600; }
.modal-box a { color: var(--accent); }
.modal-box code { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-strong); }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.modal-actions .btn { flex: 1; min-width: 190px; }
.modal-foot { margin-top: 18px; font-size: 12.5px !important; color: var(--text-faint) !important; }
@media (max-width: 640px) { .modal-box { padding: 36px 22px 28px; } }

/* Changelog */
.changelog-entry { padding: 22px 0; border-top: 1px solid var(--border-dark); }
.changelog-entry:first-of-type { border-top: 0; padding-top: 0; }
.changelog-entry h3 { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); margin: 0 0 14px; }
.fecha-ch { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--text-faint); }
.changelog-entry ul { list-style: none; padding: 0; margin: 0; }
.changelog-entry li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; font-size: 14px; }
.tag { flex-shrink: 0; min-width: 64px; text-align: center; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; padding: 2px 8px; border-radius: 2px; margin-top: 3px; }
.tag-nuevo { background: var(--accent-soft); color: var(--accent); }
.tag-mejora { background: var(--ok-soft); color: var(--ok); }
.tag-fix { background: rgba(251, 113, 133, .14); color: #fb7185; }

/* ==========================================================================
   Página de verificación
   ========================================================================== */
.panel { background: var(--surface-light); border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; padding: 4px 10px; border-radius: var(--radius); background: var(--accent-deep-soft); color: var(--accent-deep); border: 1px solid var(--border-light); }
.chip.pass { background: var(--ok-soft); color: #0f7a52; border-color: rgba(52, 211, 153, .35); }
.chip.fail { background: var(--danger-deep-soft); color: var(--danger-deep); border-color: rgba(215, 38, 61, .30); }

.viewer-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .8fr); gap: 20px; }
.viewer { background: #081421; min-height: 410px; position: relative; overflow: hidden; }
.viewer canvas { width: 100%; height: 410px; display: block; touch-action: none; }
.viewer-tip { position: absolute; left: 14px; bottom: 12px; color: #8aa2b8; font-family: var(--font-mono); font-size: 11px; background: rgba(6, 9, 17, .85); padding: 5px 10px; border-radius: 2px; }
.view-label { position: absolute; top: 14px; left: 14px; color: #cfe6f7; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

.controls { padding: 24px; }
.controls label { display: block; font-family: var(--font-mono); color: var(--text-dark-muted); font-size: 11px; font-weight: 500; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .08em; }
.controls select { width: 100%; padding: 10px 12px; border: 1px solid var(--border-light-strong); border-radius: var(--radius); background: #fff; color: var(--text-dark); font: inherit; margin-bottom: 20px; }
.controls select:focus { outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px var(--accent-deep-soft); }
.case-id { font-family: var(--font-mono); font-size: 12px; color: var(--accent-deep); }
.case-title { font-size: 20px; font-weight: 600; color: var(--text-dark); margin: 2px 0 4px; }
.dims { color: var(--text-dark-muted); font-size: 13.5px; margin: 0 0 16px; }
.specs-label { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dark-faint); margin: 0 0 8px; }
.specs-chips { margin-bottom: 14px; }
.view-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.smallbtn { border: 1px solid var(--border-light-strong); border-radius: var(--radius); background: #fff; padding: 7px 12px; color: var(--text-dark); font: 500 12.5px var(--font-sans); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.smallbtn:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.smallbtn[aria-pressed=true] { background: var(--accent-deep-soft); border-color: var(--accent-deep); color: var(--accent-deep); }
.note-inline { margin-top: 18px; border-left: 2px solid var(--accent-deep); padding: 2px 0 2px 12px; color: var(--text-dark-muted); font-size: 12.5px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 20px; background: var(--surface-light); border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; }
.stat { padding: 18px 22px; border-left: 1px solid var(--border-light); }
.stat:first-child { border-left: 0; }
.stat .label { font-family: var(--font-mono); font-size: 11px; color: var(--text-dark-faint); text-transform: uppercase; letter-spacing: .08em; }
.stat strong { display: block; font-family: var(--font-mono); font-weight: 600; font-size: clamp(17px, 2vw, 22px); margin-top: 6px; color: var(--text-dark); }
.stat small { display: block; color: var(--text-dark-faint); font-size: 12px; margin-top: 4px; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 530px; }
th, td { text-align: right; padding: 12px 16px; border-bottom: 1px solid var(--border-light); font-size: 13.5px; white-space: nowrap; color: var(--text-dark); }
th { background: #f2f6fa; color: var(--text-dark-muted); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
th:first-child, td:first-child { text-align: left; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfe; }
.good { color: #0f7a52; font-weight: 600; }
.bad { color: var(--danger-deep); font-weight: 600; }
.neutral { color: var(--text-dark-muted); }

.panel-title { padding: 18px 20px 12px; font-weight: 600; font-size: 15px; color: var(--text-dark); }
.panel-note { padding: 0 20px 18px; color: var(--text-dark-faint); font-size: 12px; }
.metric-row { display: grid; grid-template-columns: 72px 1fr 74px; gap: 12px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--border-light); font-size: 12.5px; }
.metric-row .metric { font-family: var(--font-mono); font-weight: 600; color: var(--text-dark); }
.bar-pair { display: grid; gap: 5px; }
.bar { height: 6px; border-radius: 1px; min-width: 2px; }
.bar.bmgs { background: var(--accent-deep); }
.bar.auto { background: #f0a33b; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; padding: 0 20px 12px; color: var(--text-dark-muted); font-size: 11.5px; font-family: var(--font-mono); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 1px; margin-right: 6px; }
.legend .blue { background: var(--accent-deep); }
.legend .orange { background: #f0a33b; }

.overview table { min-width: 820px; }
.overview th, .overview td { padding: 11px 13px; }
.overview .col-spec { font-family: var(--font-mono); font-size: 12px; color: var(--text-dark-muted); text-align: left; }
.case-button { color: var(--accent-deep); background: none; border: 0; font: 500 12.5px var(--font-mono); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.case-button:hover { color: var(--accent-deep-hover); }

.footnote { border-left: 2px solid var(--accent-deep); background: var(--surface-light); border-top: 1px solid var(--border-light); border-right: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); padding: 14px 18px; color: var(--text-dark-muted); font-size: 13px; margin-top: 14px; line-height: 1.7; }
.footnote strong { color: var(--text-dark); }
.footnote.warn { border-left-color: #c57a18; }

.scope p { color: var(--text-dark-muted); font-size: 14.5px; margin-top: 12px; line-height: 1.75; }
.scope p:first-child { margin-top: 0; }
.scope p strong { color: var(--text-dark); }
.scope a { color: var(--accent-deep); text-decoration: none; }
.scope a:hover { text-decoration: underline; }

.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sub-block { margin-top: 56px; }
.verif .section { padding: 64px 0; }

@media (max-width: 900px) {
  .viewer-layout, .results-grid { grid-template-columns: 1fr; }
  .viewer canvas { height: 340px; }
  .viewer { min-height: 340px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border-light); }
}
@media (max-width: 540px) {
  :root { --gutter: 18px; }
  .hero { padding-top: 124px; }
  .viewer canvas { height: 290px; }
  .metric-row { grid-template-columns: 52px 1fr 60px; padding: 10px 12px; }
  .controls { padding: 18px; }
}

/* ---------- Fondo animado del hero ---------- */
.hero { overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero > .container { position: relative; z-index: 1; }

/* ---------- Hero principal (portada) ---------- */
.hero-main { display: flex; flex-direction: column; min-height: min(94vh, 880px); padding: 0; }
.hero-main > .container, .hero-main .hero-specs .container { width: 100%; }
.hero-main .hero-content { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 140px; padding-bottom: 72px; position: relative; z-index: 1; }
.hero-main .eyebrow { display: flex; align-items: center; margin-bottom: 26px; }
.hero-main .eyebrow .rule { display: inline-block; width: 32px; height: 1px; background: var(--accent); margin-right: 14px; }
.hero-main h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; max-width: 17ch; margin-bottom: 28px; text-wrap: balance; }
.hero-main p.lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.65; max-width: 58ch; margin-bottom: 40px; color: #a3aec6; }
.hero-main .hero-actions { display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; margin-bottom: 36px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-lg svg { transition: transform .2s; }
.btn-primary:hover svg { transform: translateY(2px); }
.hero-link { margin-left: 12px; font-size: 14.5px; font-weight: 500; color: var(--text-muted); text-decoration: none; border-bottom: 1px solid var(--border-dark-strong); padding-bottom: 2px; transition: color .15s, border-color .15s; }
.hero-link:hover { color: var(--accent); border-color: var(--accent); }
.hero-link span { display: inline-block; transition: transform .2s; }
.hero-link:hover span { transform: translateX(3px); }
.hero-avail { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-family: var(--font-mono); font-size: 12px; color: #7482a0; letter-spacing: .02em; }
.hero-avail [data-version] { color: var(--accent); }
.hero-avail i { width: 3px; height: 3px; border-radius: 50%; background: #55607a; }

.hero-specs { position: relative; z-index: 1; border-top: 1px solid var(--border-dark); background: rgba(6, 9, 17, .72); }
.hero-specs dl { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-specs .item { padding: 22px 28px; border-left: 1px solid var(--border-dark); }
.hero-specs .item:first-child { border-left: 0; padding-left: 0; }
.hero-specs dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.hero-specs dd { font-size: 15px; font-weight: 500; color: var(--text); }

/* El fondo animado se atenúa detrás del texto y gana presencia a la derecha */
.hero-main .hero-canvas { -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.14) 0%, rgba(0,0,0,.3) 40%, #000 85%); mask-image: linear-gradient(100deg, rgba(0,0,0,.14) 0%, rgba(0,0,0,.3) 40%, #000 85%); }

/* Entrada escalonada */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .8s cubic-bezier(.2, .7, .2, 1) var(--i, 0s) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; animation: none; } }

@media (max-width: 900px) {
  .hero-main { min-height: 0; }
  .hero-main .hero-content { padding-top: 132px; padding-bottom: 48px; }
  .hero-link { margin-left: 4px; }
  .hero-specs dl { grid-template-columns: repeat(2, 1fr); }
  .hero-specs .item { padding: 16px 20px; border-left: 0; border-top: 1px solid var(--border-dark); }
  .hero-specs .item:nth-child(-n+2) { border-top: 0; }
  .hero-specs .item:nth-child(odd) { padding-left: 0; }
  .hero-specs .item:nth-child(even) { border-left: 1px solid var(--border-dark); }
}
@media (max-width: 540px) {
  .hero-main .eyebrow { font-size: 11px; letter-spacing: .07em; }
  .hero-main .eyebrow .rule { width: 20px; margin-right: 10px; }
}
