/* ============================================================
   Portal de Preventa — sistema de diseño
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f7f9;
  --bg-panel: #ffffff;
  --bg-sunken: #eef0f4;
  --bg-hover: #e9ecf2;
  --bg-active: #e3e9f7;

  --text: #1a1d23;
  --text-soft: #545b68;
  --text-faint: #878e9c;

  --border: #dfe3ea;
  --border-strong: #c7ccd7;

  --accent: #2456c7;
  --accent-soft: #eaf0fd;
  --accent-text: #1b45a3;

  --ok: #17794a;
  --ok-soft: #e6f5ed;
  --warn: #9a6400;
  --warn-soft: #fdf2dc;
  --danger: #b0322c;
  --danger-soft: #fdeceb;
  --info: #1e6b8a;
  --info-soft: #e5f3f9;
  --tip: #6b3fa0;
  --tip-soft: #f1ebfa;

  --radius: 8px;
  --radius-sm: 5px;
  --shadow: 0 1px 2px rgba(20, 25, 40, .06), 0 4px 16px rgba(20, 25, 40, .06);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  --sidebar-w: 300px;
  --toc-w: 230px;
  --header-h: 56px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #14161b;
  --bg-panel: #1b1e25;
  --bg-sunken: #23272f;
  --bg-hover: #272c35;
  --bg-active: #2a3448;

  --text: #e7e9ee;
  --text-soft: #a8aebc;
  --text-faint: #767d8c;

  --border: #2c313b;
  --border-strong: #3d4450;

  --accent: #6b9bff;
  --accent-soft: #1d2740;
  --accent-text: #9dbcff;

  --ok: #5cc98d;
  --ok-soft: #16301f;
  --warn: #e0ae4e;
  --warn-soft: #332612;
  --danger: #f08b85;
  --danger-soft: #35191a;
  --info: #6ec5e6;
  --info-soft: #122c36;
  --tip: #b596e8;
  --tip-soft: #251c38;

  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Layout ---------- */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  grid-template-rows: var(--header-h) minmax(0, 1fr);
  grid-template-areas: "brandbar header" "sidebar main";
  height: 100vh;
}

/* ---------- Header ---------- */
.brandbar {
  grid-area: brandbar;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.brandbar .logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), #7b3fe4);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  flex: none;
}

.brandbar .title {
  font-weight: 650;
  font-size: 14px;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.brandbar .subtitle {
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.2;
}

.topbar {
  grid-area: header;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 520px;
}

.search-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}

#search {
  width: 100%;
  height: 34px;
  padding: 0 64px 0 32px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

#search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.kbd-hint {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--text-faint);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: var(--mono);
  pointer-events: none;
}

.topbar-actions { display: flex; gap: 6px; margin-left: auto; }

.icon-btn {
  height: 30px;
  min-width: 30px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-panel);
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
}

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

/* ---------- Sidebar ---------- */
.sidebar {
  grid-area: sidebar;
  overflow-y: auto;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  padding: 10px 8px 40px;
}

.nav-home {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-weight: 550;
  cursor: pointer;
  margin-bottom: 6px;
}

.nav-home:hover { background: var(--bg-hover); text-decoration: none; color: var(--text); }
.nav-home.active { background: var(--bg-active); color: var(--accent-text); }

.brand-group { margin-bottom: 2px; }

.brand-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  background: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  text-align: left;
}

.brand-head:hover { background: var(--bg-hover); }

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex: none;
  background: var(--brand-color, var(--accent));
}

.brand-head .count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 500;
}

.chevron {
  width: 12px;
  flex: none;
  color: var(--text-faint);
  transition: transform .15s ease;
}

.collapsed > .brand-head .chevron,
.collapsed > .product-head .chevron { transform: rotate(-90deg); }
.collapsed > .brand-body,
.collapsed > .product-body { display: none; }

.brand-body { padding-left: 8px; }

.product-group { margin: 1px 0; }

.product-head {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 6px 10px;
  border: 0;
  background: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text-soft);
  text-align: left;
}

.product-head:hover { background: var(--bg-hover); color: var(--text); }
.product-head.active { color: var(--accent-text); }

.product-body {
  padding-left: 12px;
  margin-left: 13px;
  border-left: 1px solid var(--border);
}

.doc-link {
  display: block;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-soft);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-link:hover { background: var(--bg-hover); color: var(--text); text-decoration: none; }

.doc-link.active {
  background: var(--bg-active);
  color: var(--accent-text);
  font-weight: 550;
}

.sidebar-section {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-faint);
  font-weight: 650;
  padding: 14px 10px 6px;
}

/* ---------- Main ---------- */
.main {
  grid-area: main;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.main-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--toc-w);
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 32px 120px;
  align-items: start;
}

.main-inner.no-toc { grid-template-columns: minmax(0, 1fr); }

/* ---------- Breadcrumb ---------- */
.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.crumbs a { color: var(--text-soft); }
.crumbs .sep { color: var(--border-strong); }

/* ---------- TOC ---------- */
.toc {
  position: sticky;
  top: 26px;
  font-size: 12.5px;
  border-left: 1px solid var(--border);
  padding-left: 14px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.toc-title {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-faint);
  font-weight: 650;
  margin-bottom: 8px;
}

.toc a {
  display: block;
  padding: 3px 0;
  color: var(--text-soft);
  border-left: 2px solid transparent;
  margin-left: -16px;
  padding-left: 14px;
}

.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.active { color: var(--accent-text); border-left-color: var(--accent); font-weight: 550; }
.toc a.lvl-3 { padding-left: 26px; font-size: 12px; }

/* ============================================================
   Tipografía del artículo — clases para usar en los HTML
   ============================================================ */

.article { min-width: 0; }

.article h1 {
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 700;
  margin: 0 0 8px;
}

.article .lead {
  font-size: 15px;
  color: var(--text-soft);
  margin: 0 0 22px;
  max-width: 70ch;
}

.article h2 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.01em;
  margin: 38px 0 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 20px;
}

.article h3 {
  font-size: 15.5px;
  font-weight: 650;
  margin: 26px 0 8px;
  scroll-margin-top: 20px;
}

.article h4 {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text-soft);
  margin: 18px 0 6px;
}

.article p { margin: 0 0 12px; max-width: 78ch; }
.article ul, .article ol { margin: 0 0 12px; padding-left: 22px; max-width: 78ch; }
.article li { margin-bottom: 5px; }
.article li > ul, .article li > ol { margin-top: 5px; }
.article strong { font-weight: 650; }
.article hr { border: 0; border-top: 1px solid var(--border); margin: 30px 0; }

.article code {
  font-family: var(--mono);
  font-size: .87em;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .1em .35em;
}

.article pre {
  position: relative;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.55;
  margin: 0 0 14px;
}

.article pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}

.copy-btn {
  position: absolute;
  top: 7px;
  right: 7px;
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--bg-panel);
  color: var(--text-soft);
  cursor: pointer;
  opacity: 0;
  transition: opacity .12s;
  font-family: inherit;
}

pre:hover .copy-btn { opacity: 1; }
.copy-btn:hover { color: var(--text); }

/* ---------- Tablas ---------- */
.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin: 0 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-scroll { overflow-x: auto; margin-bottom: 16px; }
.table-scroll table { margin-bottom: 0; }

.article th {
  text-align: left;
  background: var(--bg-sunken);
  font-weight: 650;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-soft);
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.article td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.article tbody tr:last-child td { border-bottom: 0; }
.article tbody tr:hover { background: var(--bg-hover); }
.article td.center, .article th.center { text-align: center; }
.article .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Callouts ---------- */
.callout {
  display: flex;
  gap: 10px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-faint);
  background: var(--bg-panel);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  margin: 0 0 16px;
  max-width: 78ch;
}

.callout > .ico { flex: none; font-size: 14px; line-height: 1.5; }
.callout > div { min-width: 0; }
.callout p:last-child, .callout ul:last-child, .callout ol:last-child { margin-bottom: 0; }
.callout .callout-title { font-weight: 650; margin-bottom: 3px; }

.callout.note  { border-left-color: var(--info);   background: var(--info-soft); }
.callout.tip   { border-left-color: var(--tip);    background: var(--tip-soft); }
.callout.warn  { border-left-color: var(--warn);   background: var(--warn-soft); }
.callout.danger{ border-left-color: var(--danger); background: var(--danger-soft); }
.callout.ok    { border-left-color: var(--ok);     background: var(--ok-soft); }

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: var(--bg-sunken);
  color: var(--text-soft);
  vertical-align: middle;
  white-space: nowrap;
}

.badge.ok     { background: var(--ok-soft);     color: var(--ok);     border-color: transparent; }
.badge.warn   { background: var(--warn-soft);   color: var(--warn);   border-color: transparent; }
.badge.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge.info   { background: var(--info-soft);   color: var(--info);   border-color: transparent; }
.badge.accent { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.badge.tip    { background: var(--tip-soft);    color: var(--tip);    border-color: transparent; }

/* ---------- Meta del artículo ---------- */
.doc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-faint);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ---------- Grid de cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  padding: 14px;
  color: inherit;
  transition: border-color .12s, box-shadow .12s, transform .12s;
}

a.card:hover {
  text-decoration: none;
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.card h3, .card .card-title {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 650;
}

.card p { margin: 0; font-size: 12.5px; color: var(--text-soft); }

.card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* ---------- Listas de datos y preguntas ---------- */
/* Datos a relevar, requisitos: viñeta limpia, dos columnas en pantallas anchas. */
.puntos {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 6px 22px;
  max-width: 900px;
}

.puntos li {
  position: relative;
  padding: 4px 0 4px 16px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.puntos li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .7;
}

/* Preguntas de discovery: cada una como una línea de conversación. */
.preguntas {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
  max-width: 78ch;
  counter-reset: pregunta;
}

.preguntas li {
  counter-increment: pregunta;
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--tip);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  font-size: 13.5px;
}

.preguntas li::before {
  content: counter(pregunta, decimal-leading-zero);
  flex: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--tip);
  font-variant-numeric: tabular-nums;
}

/* ---------- Pasos numerados ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 16px; max-width: 78ch; }

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 34px;
  border-left: 1px solid var(--border);
  margin-left: 11px;
}

.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -11px;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps > li > .step-title { font-weight: 650; display: block; margin-bottom: 3px; }

/* ---------- Key-value / specs ---------- */
.kv {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 16px;
  font-size: 12.5px;
  max-width: 78ch;
}

.kv dt {
  padding: 8px 12px;
  background: var(--bg-sunken);
  font-weight: 600;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.kv dd {
  margin: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }

/* ---------- Columnas ---------- */
.cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }

/* ---------- Home ---------- */
.home-hero { margin-bottom: 26px; }
.home-hero h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.02em; }
.home-hero p { color: var(--text-soft); margin: 0; font-size: 14.5px; }

.stat-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }

.stat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  padding: 11px 16px;
  min-width: 108px;
}

.stat .n { font-size: 21px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }

.brand-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.brand-swatch {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  flex: none;
  background: var(--brand-color, var(--accent));
}

.prod-chip {
  display: inline-block;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-sunken);
  color: var(--text-soft);
  margin: 0 4px 4px 0;
}

/* ---------- Búsqueda ---------- */
.search-results { max-width: 820px; }

.result {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  margin-bottom: 8px;
  color: inherit;
}

.result:hover { text-decoration: none; border-color: var(--border-strong); background: var(--bg-hover); }
.result .r-title { font-weight: 650; font-size: 13.5px; margin-bottom: 2px; }
.result .r-path { font-size: 11.5px; color: var(--text-faint); margin-bottom: 4px; }
.result .r-snip { font-size: 12.5px; color: var(--text-soft); }
.result mark { background: var(--warn-soft); color: inherit; padding: 0 2px; border-radius: 2px; }

/* ---------- Estados ---------- */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-faint);
}

.empty h2 { font-size: 17px; color: var(--text); margin: 0 0 6px; border: 0; padding: 0; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 40px auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Paginación prev/next ---------- */
.doc-nav {
  display: flex;
  gap: 10px;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.doc-nav a {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: inherit;
  background: var(--bg-panel);
}

.doc-nav a:hover { text-decoration: none; border-color: var(--border-strong); background: var(--bg-hover); }
.doc-nav .dir { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.doc-nav .nm { font-weight: 600; font-size: 13px; }
.doc-nav a.next { text-align: right; }

/* ---------- Responsive ---------- */
.menu-toggle { display: none; }

@media (max-width: 1100px) {
  .main-inner { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}

@media (max-width: 860px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--header-h) minmax(0, 1fr);
    grid-template-areas: "header" "main";
  }

  .brandbar { display: none; }
  .menu-toggle { display: inline-flex; }

  .sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 40;
    transform: translateX(-102%);
    transition: transform .18s ease;
    box-shadow: var(--shadow);
  }

  .sidebar.open { transform: none; }
  .main-inner { padding: 20px 16px 80px; }
  .kbd-hint { display: none; }
  #search { padding-right: 12px; }
}

/* ---------- Impresión ---------- */
@media print {
  .sidebar, .topbar, .brandbar, .toc, .doc-nav, .copy-btn { display: none !important; }
  .app { display: block; height: auto; }
  .main { overflow: visible; }
  .main-inner { display: block; max-width: none; padding: 0; }
  body { background: #fff; font-size: 11pt; }
  .article h2 { page-break-after: avoid; }
  .callout, table, pre { page-break-inside: avoid; }
}

/* ============================================================
   Modo presentación (artículos con <meta name="layout" content="deck">)
   ============================================================ */
.deck-wrap { margin-top: 4px; }

.deck-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.deck-counter {
  font-size: 12px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  min-width: 56px;
  text-align: center;
}

.deck-dots { display: flex; gap: 5px; margin-left: auto; }

.deck-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--border-strong);
  cursor: pointer;
}

.deck-dot.active { background: var(--accent); transform: scale(1.25); }

.deck-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  container-type: size;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: 5cqw 6cqw;
  overflow: hidden;
}

.slide.active { display: flex; }

/* Tipografía relativa al tamaño del escenario, así escala en pantalla completa */
.slide .kicker {
  font-size: 1.5cqw;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-text);
  margin-bottom: 1.6cqw;
}

.slide h2 {
  font-size: 4.2cqw;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
  margin: 0 0 2cqw;
  border: 0;
  padding: 0;
}

.slide .slide-lead {
  font-size: 1.9cqw;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0 0 2.5cqw;
  max-width: 62ch;
}

.slide .slide-foot {
  margin-top: auto;
  font-size: 1.35cqw;
  color: var(--text-faint);
  padding-top: 1.5cqw;
}

.slide .stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18cqw, 1fr));
  gap: 2cqw;
}

.slide .stat-big { min-width: 0; }
.slide .stat-big .v { font-size: 4.6cqw; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--accent-text); }
.slide .stat-big .k { font-size: 1.5cqw; color: var(--text-soft); line-height: 1.4; margin-top: .8cqw; }

.slide .grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(20cqw, 1fr)); gap: 2cqw; }

.slide .tile {
  border: 1px solid var(--border);
  border-radius: 1cqw;
  background: var(--bg-sunken);
  padding: 2cqw;
  min-width: 0;
}

.slide .tile .ic { font-size: 2.6cqw; color: var(--accent); line-height: 1; }
.slide .tile h3 { font-size: 1.8cqw; margin: 1cqw 0 .7cqw; font-weight: 650; }
.slide .tile p { font-size: 1.45cqw; color: var(--text-soft); margin: 0; line-height: 1.45; }

.slide .cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5cqw; }
.slide .cmp h3 { font-size: 1.8cqw; margin: 0 0 1.2cqw; font-weight: 650; }
.slide .cmp ul { list-style: none; padding: 0; margin: 0; }
.slide .cmp li { font-size: 1.5cqw; padding: .8cqw 0 .8cqw 3cqw; position: relative; line-height: 1.4; border-bottom: 1px solid var(--border); }
.slide .cmp li:last-child { border-bottom: 0; }
.slide .cmp li::before { position: absolute; left: 0; font-weight: 700; }
.slide .cmp .bad li { color: var(--text-soft); }
.slide .cmp .bad li::before { content: "✕"; color: var(--danger); }
.slide .cmp .good li::before { content: "✓"; color: var(--ok); }

.slide .timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5cqw; }
.slide .timeline .t { border-top: .35cqw solid var(--accent); padding-top: 1.2cqw; }
.slide .timeline .t .when { font-size: 1.3cqw; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.slide .timeline .t .val { font-size: 3cqw; font-weight: 800; letter-spacing: -.02em; }

.slide .phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8cqw; }
.slide .phase { border: 1px solid var(--border); border-radius: 1cqw; padding: 1.8cqw; min-width: 0; }
.slide .phase .n { font-size: 1.5cqw; font-weight: 800; color: var(--accent-text); }
.slide .phase h3 { font-size: 1.7cqw; margin: .6cqw 0; font-weight: 650; }
.slide .phase p { font-size: 1.35cqw; color: var(--text-soft); margin: 0 0 1cqw; line-height: 1.4; }
.slide .phase .when { font-size: 1.25cqw; color: var(--accent-text); font-weight: 650; }

.slide.cover { justify-content: center; }
.slide.cover h2 { font-size: 5.4cqw; }
.slide.cover .slide-lead { font-size: 2.1cqw; max-width: 50ch; }

.slide .cta-row { display: flex; gap: 1.5cqw; flex-wrap: wrap; margin-top: 1cqw; }
.slide .cta {
  border: 1px solid var(--accent);
  color: var(--accent-text);
  border-radius: 10cqw;
  padding: 1cqw 2.2cqw;
  font-size: 1.5cqw;
  font-weight: 650;
}

/* Pantalla completa */
.deck-stage:fullscreen {
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
  width: 100vw;
  height: 100vh;
  background: var(--bg-panel);
}

.deck-stage:fullscreen .slide { padding: 4cqw 6cqw; }

@media (max-width: 860px) {
  .deck-stage { aspect-ratio: 4 / 3; }
}

@media print {
  .deck-bar { display: none !important; }
  .deck-stage { aspect-ratio: auto; height: auto; container-type: normal; border: 0; }
  .slide { position: static; display: flex !important; page-break-after: always; min-height: 15cm; border-bottom: 1px solid #ccc; padding: 1cm; }
  .slide .kicker { font-size: 9pt; }
  .slide h2 { font-size: 22pt; }
  .slide .slide-lead, .slide .tile p, .slide .cmp li { font-size: 11pt; }
  .slide .stat-big .v { font-size: 26pt; }
  .slide .stat-big .k, .slide .tile h3, .slide .phase h3 { font-size: 11pt; }
}

/* Diapositivas con mucho contenido: misma estética, tipografía algo menor */
.slide.dense { padding: 3.6cqw 5cqw; }
.slide.dense h2 { font-size: 3.4cqw; margin-bottom: 1.4cqw; }
.slide.dense .kicker { margin-bottom: 1.1cqw; }
.slide.dense .slide-lead { font-size: 1.6cqw; margin-bottom: 1.4cqw; }
.slide.dense .timeline .val { font-size: 2.4cqw; }
.slide.dense .tile { padding: 1.5cqw; }
.slide.dense .tile h3 { font-size: 1.6cqw; margin: .7cqw 0 .5cqw; }
.slide.dense .tile p { font-size: 1.3cqw; }
.slide.dense .tile .ic { font-size: 2.2cqw; }
.slide.dense .slide-foot { font-size: 1.25cqw; padding-top: 1.1cqw; }

/* ============================================================
   Contenido embebido (<meta name="layout" content="embed">)
   ============================================================ */
.embed-wrap { margin-top: 18px; }

.embed-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.embed-bar a.icon-btn { text-decoration: none; }
.embed-bar a.icon-btn:hover { text-decoration: none; }

.embed-frame {
  display: block;
  width: 100%;
  height: 78vh;
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-sunken);
}

.embed-frame:fullscreen { height: 100vh; border: 0; border-radius: 0; }

@media (max-width: 860px) {
  .embed-frame { height: 65vh; min-height: 340px; }
}

@media print {
  .embed-bar { display: none !important; }
  .embed-frame { height: 12cm; }
}

/* ============================================================
   Bloques de paquete y control segmentado
   Interactividad sin JavaScript: el portal quita los <script> de los
   artículos, así que los estados se manejan con radios y :checked.
   ============================================================ */

.seg {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 12.5px;
}

.seg > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }

.seg > label {
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  color: var(--text-soft);
  cursor: pointer;
  user-select: none;
  transition: background .12s, color .12s, border-color .12s;
}

.seg > label:hover { background: var(--bg-hover); color: var(--text); }
.seg > input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

.seg > input:checked + label {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.seg .seg-nota { color: var(--text-faint); margin-left: auto; font-size: 11.5px; }

/* ---------- Bloques de paquete ---------- */
.pkgs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
  align-items: start;
}

.pkg {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  overflow: hidden;
  transition: border-color .14s, box-shadow .14s;
}

.pkg:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.pkg.destacado { border-color: var(--accent); }

.pkg-head {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sunken);
}

.pkg.destacado .pkg-head { background: var(--accent-soft); }

.pkg-head h3 {
  margin: 6px 0 2px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.pkg-head .sku { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); }
.pkg-head .claim { font-size: 12.5px; color: var(--text-soft); margin-top: 6px; }

.pkg-body { padding: 12px 16px 16px; }

.pkg-list { list-style: none; padding: 0; margin: 0; }

.pkg-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 6px 0;
  font-size: 12.5px;
  border-bottom: 1px solid var(--border);
}

.pkg-list li:last-child { border-bottom: 0; }
.pkg-list li::before { flex: none; font-weight: 700; line-height: 1.45; }
.pkg-list li.si::before { content: "✓"; color: var(--ok); }
.pkg-list li.no::before { content: "—"; color: var(--text-faint); }
.pkg-list li.no { color: var(--text-faint); }
.pkg-list li.suma::before { content: "＋"; color: var(--accent); }
.pkg-list li b { font-weight: 650; }
.pkg-list li .detalle { display: block; color: var(--text-faint); font-size: 11.5px; margin-top: 1px; }

/* Vista "solo diferencias": se ocultan las filas que comparten los dos paquetes.
   El radio vive dentro de .seg, así que el filtro se aplica desde el contenedor. */
.seg-wrap:has(.vista-dif:checked) .comun { display: none; }
.vista-dif:checked ~ .pkgs .comun { display: none; }  /* respaldo si no hay :has() */

/* ---------- Bloque de línea de producto ---------- */
.lineas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 18px; }

.linea {
  display: block;
  border: 1px solid var(--border);
  border-left: 3px solid var(--linea-color, var(--accent));
  border-radius: var(--radius);
  background: var(--bg-panel);
  padding: 14px 16px;
  color: inherit;
}

a.linea:hover { text-decoration: none; border-color: var(--border-strong); box-shadow: var(--shadow); }
.linea .n { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--linea-color, var(--accent)); }
.linea h3 { margin: 4px 0 6px; font-size: 15.5px; font-weight: 650; }
.linea p { margin: 0 0 10px; font-size: 12.5px; color: var(--text-soft); }
.linea .unidad { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: var(--bg-sunken); border: 1px solid var(--border); color: var(--text-soft); }

/* ---------- Detalle desplegable ---------- */
.desplegable {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  padding: 0 14px;
  margin-bottom: 14px;
}

.desplegable > summary {
  cursor: pointer;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-text);
  list-style: none;
}

.desplegable > summary::-webkit-details-marker { display: none; }
.desplegable > summary::before { content: "▸ "; color: var(--text-faint); }
.desplegable[open] > summary::before { content: "▾ "; }
.desplegable[open] > summary { border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.desplegable > :last-child { margin-bottom: 12px; }

@media print {
  .seg { display: none !important; }
  .seg-wrap:has(.vista-dif:checked) .comun { display: flex !important; }
  .desplegable > summary { color: var(--text); }
  .desplegable[open] > :last-child, .desplegable > :last-child { margin-bottom: 8px; }
}

/* ============================================================
   Inicio: portal comercial
   ============================================================ */
.ico-svg { flex: none; display: block; }

.hero {
  position: relative;
  padding: 26px 26px 24px;
  margin-bottom: 30px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-soft) 0%, transparent 55%),
    var(--bg-panel);
  overflow: hidden;
}

.hero-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 6px;
  text-wrap: balance;
}

.hero p { margin: 0 0 18px; color: var(--text-soft); font-size: 14.5px; max-width: 62ch; }

.hero-buscar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 620px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-faint);
  cursor: text;
}

.hero-buscar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.hero-buscar input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.bloque { margin-bottom: 34px; }

.bloque-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.bloque-head h2 { font-size: 17px; margin: 0; letter-spacing: -.01em; border: 0; padding: 0; }

/* ---------- Accesos de KC ---------- */
.kc-grupos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px 22px;
}

.kc-grupo-t {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.kc-tiles { display: grid; gap: 6px; }

.kc-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 550;
  transition: border-color .12s, background .12s, transform .12s;
}

.kc-tile:hover { text-decoration: none; border-color: var(--accent); background: var(--accent-soft); }
.kc-tile:hover .kc-ico { color: var(--accent-text); }
.kc-ico { color: var(--text-faint); display: grid; place-items: center; }

/* ---------- Tabla de accesos por marca ---------- */
.hub-filtro {
  margin-left: auto;
  height: 32px;
  width: 200px;
  max-width: 100%;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-panel);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  outline: none;
}

.hub-filtro:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.hub-scroll { border: 1px solid var(--border); border-radius: 10px; background: var(--bg-panel); }

table.hub {
  width: 100%;
  border: 0;
  border-radius: 0;
  margin: 0;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 540px;
}

table.hub th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 10px 7px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sunken);
  line-height: 1.25;
  vertical-align: bottom;
  white-space: normal;
}

table.hub th:first-child, table.hub td:first-child { white-space: nowrap; padding-left: 14px; }
table.hub th.center, table.hub td.center { text-align: center; }
table.hub td { padding: 6px 7px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.hub tbody tr:last-child td { border-bottom: 0; }
table.hub tbody tr:hover { background: var(--bg-hover); }

.hub-marca {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
}

.hub-marca:hover { text-decoration: none; color: var(--accent-text); }

.hub-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  background: var(--bg-panel);
  transition: background .12s, color .12s, border-color .12s;
}

.hub-btn:hover { text-decoration: none; background: var(--accent); border-color: var(--accent); color: #fff; }
.hub-btn:focus-visible, .kc-tile:focus-visible, .acceso:focus-visible, .hub-mas:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hub-vacio { color: var(--border-strong); font-weight: 700; }

.hub-mas {
  display: inline-block;
  min-width: 34px;
  padding: 4px 8px;
  border-radius: 20px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 650;
}

.hub-mas:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-text); }
.hub-nota { font-size: 12.5px; color: var(--text-faint); margin: 10px 2px 0; }

/* ---------- Contenido por marca ---------- */
.marcas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.marca-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-panel);
  color: inherit;
  transition: border-color .12s, box-shadow .12s;
}

.marca-card:hover { text-decoration: none; border-color: var(--brand-color, var(--border-strong)); box-shadow: var(--shadow); }
.marca-card .brand-swatch { width: 32px; height: 32px; font-size: 12px; }
.marca-card-txt { min-width: 0; flex: 1; }
.marca-card .card-title { margin: 0; font-size: 13.5px; }
.marca-card-meta { font-size: 11.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.marca-card-n {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

/* ---------- Accesos en la página de marca ---------- */
.accesos-marca {
  display: grid;
  gap: 8px;
  margin: 4px 0 26px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-panel);
}

.accesos-fila { display: flex; flex-wrap: wrap; gap: 8px; }
.accesos-fila.secundaria { padding-top: 8px; border-top: 1px dashed var(--border); }

.acceso {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  transition: background .12s, border-color .12s, color .12s;
}

.acceso .ico-svg { color: var(--brand-color, var(--accent)); }
.acceso:hover { text-decoration: none; border-color: var(--brand-color, var(--accent)); background: var(--bg-hover); }
.accesos-fila.secundaria .acceso { font-weight: 550; color: var(--text-soft); border-style: dashed; }

@media (max-width: 860px) {
  .hero { padding: 20px 18px; }
  .hero h1 { font-size: 23px; }
  .hub-filtro { margin-left: 0; width: 100%; }
}

@media print {
  .hero-buscar, .hub-filtro { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .kc-tile, .hub-btn, .marca-card, .acceso { transition: none; }
}

/* ============================================================
   Inicio de marca
   ============================================================ */
.brand-head.active { color: var(--accent-text); background: var(--bg-active); }

.marca-hero {
  padding: 22px 24px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand-color, var(--accent));
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-color, var(--accent)) 10%, transparent), transparent 60%),
    var(--bg-panel);
}

.marca-hero-id { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.marca-hero .brand-swatch { width: 46px; height: 46px; font-size: 16px; border-radius: 10px; }
.marca-hero h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; line-height: 1.15; }
.marca-hero-meta { font-size: 12px; color: var(--text-faint); }
.marca-hero p { margin: 0 0 14px; color: var(--text-soft); max-width: 70ch; }

.marca-hero-productos { display: flex; flex-wrap: wrap; gap: 6px; }

.marca-hero-productos a {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: var(--bg-panel);
  color: var(--text-soft);
}

.marca-hero-productos a:hover { text-decoration: none; border-color: var(--brand-color, var(--accent)); color: var(--text); }

/* ---------- Accesos grandes ---------- */
.accesos-grandes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.acceso-grande {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-panel);
  color: var(--text);
  transition: border-color .12s, box-shadow .12s, transform .12s;
}

.acceso-grande:hover {
  text-decoration: none;
  border-color: var(--brand-color, var(--accent));
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.acceso-grande:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.acceso-grande-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  color: var(--brand-color, var(--accent));
  background: color-mix(in srgb, var(--brand-color, var(--accent)) 12%, transparent);
}

.acceso-grande-txt { display: grid; gap: 2px; min-width: 0; }
.acceso-grande-t { font-weight: 650; font-size: 14px; }
.acceso-grande-s { font-size: 12px; color: var(--text-soft); line-height: 1.4; }
.acceso-grande-d { font-size: 11px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }

.accesos-faltan { font-size: 12px; color: var(--text-faint); margin: 10px 2px 0; }

/* ---------- Material y herramientas ---------- */
.extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
}

.extra {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  padding: 10px 13px;
  border: 1px dashed var(--border-strong);
  border-radius: 9px;
  color: var(--text);
}

.extra .ico-svg { grid-row: span 2; color: var(--brand-color, var(--accent)); }
.extra-t { font-size: 13px; font-weight: 600; }
.extra-d { font-size: 11px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.extra:hover { text-decoration: none; border-style: solid; border-color: var(--brand-color, var(--accent)); background: var(--bg-hover); }
.extra:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Contenido por producto ---------- */
.producto-bloque { margin-bottom: 18px; }

.producto-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.producto-nombre { font-size: 15px; font-weight: 650; color: var(--text); }
.producto-nombre:hover { color: var(--accent-text); }
.producto-desc { font-size: 12.5px; color: var(--text-faint); }

.doc-rows {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-panel);
  overflow: hidden;
}

.doc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: inherit;
}

.doc-row:last-child { border-bottom: 0; }
.doc-row:hover { text-decoration: none; background: var(--bg-hover); }
.doc-row:hover .doc-row-t { color: var(--accent-text); }
.doc-row-txt { display: grid; gap: 1px; min-width: 0; flex: 1; }
.doc-row-t { font-weight: 600; font-size: 13.5px; }
.doc-row-s { font-size: 12px; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-row .badge { flex: none; }
.doc-vacio { font-size: 12.5px; color: var(--text-faint); }

@media (max-width: 860px) {
  .marca-hero { padding: 18px; }
  .marca-hero h1 { font-size: 22px; }
  .doc-row-s { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .acceso-grande { transition: none; }
  .acceso-grande:hover { transform: none; }
}
