/* ==========================================================================
   Mandora 360 — Experiencia interactiva
   Tokens: noche, azul eléctrico, plata. Tipografía: Archivo (ancho variable).
   ========================================================================== */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var.woff2') format('woff2-variations'), url('../fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #050A16;
  --night-2: #0B1428;
  --night-3: #16223D;
  --night-line: #22304F;
  --blue: #1F6BFF;
  --blue-deep: #1552D6;
  --blue-bright: #4C95FF;
  --blue-soft: #E9F0FF;
  --silver: #C4CCD8;
  --silver-2: #8C98AB;
  --mist: #F2F4F8;
  --paper: #FFFFFF;
  --ink: #0E1628;
  --slate: #536078;
  --line: #DFE4EC;
  --ok: #0B8F4E;
  --ok-soft: #E3F5EC;
  --warn: #A96F00;
  --warn-soft: #FFF3D9;
  --bad: #C8332F;
  --bad-soft: #FDE7E6;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(14, 22, 40, .05), 0 8px 24px -12px rgba(14, 22, 40, .12);
  --shadow-dark: 0 0 0 1px var(--night-line), 0 20px 40px -24px rgba(0, 0, 0, .6);
  --header-h: 68px;
  --mobile-bar-h: 0px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
html.modal-open { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-bottom: var(--mobile-bar-h);
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue-deep); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; font-stretch: 116%; font-weight: 720; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.ico { width: 22px; height: 22px; flex: none; }
.tnum { font-variant-numeric: tabular-nums; }
.loading { color: var(--slate); padding: 24px 0; }
.noscript { padding: 16px; background: var(--warn-soft); text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; text-decoration: none; line-height: 1.2;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost-dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.22); color: #fff; }
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: transparent; border: 1px solid transparent; color: inherit; }
.icon-btn:hover { border-color: currentColor; }
.icon-btn svg { width: 22px; height: 22px; }

.demo-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; letter-spacing: .02em;
  color: var(--blue-deep); background: var(--blue-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.demo-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.demo-tag-dark { color: #9CC3FF; background: rgba(76,149,255,.14); }

/* ---------- Header ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: var(--blue-bright); transform-origin: left; transform: scaleX(0); }
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(5,10,22,.86); color: #fff;
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.header-row { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-size: 1.12rem; font-stretch: 118%; font-weight: 700; letter-spacing: -.01em; }
.brand-name b { color: var(--blue-bright); font-weight: 760; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { color: rgba(255,255,255,.78); text-decoration: none; font-size: .92rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a.is-active { color: #fff; background: rgba(255,255,255,.08); }
.header-cta { display: none; }
.menu-btn { margin-left: auto; color: #fff; }
.mobile-menu { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--night); border-bottom: 1px solid var(--night-line); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.mobile-menu nav { display: grid; padding-block: 8px 20px; }
.mobile-menu a { color: #fff; text-decoration: none; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 1.02rem; }
.mobile-menu .mobile-menu-cta { margin-top: 14px; border: 0; background: var(--blue); border-radius: 999px; text-align: center; font-weight: 600; }
@media (min-width: 1080px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-btn { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--night); color: #fff; overflow: hidden;
  padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 100px);
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 45%, rgba(31,107,255,.20), transparent 70%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 100% 56px;
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 56px); align-items: center; }
.hero-brandline { color: var(--silver); font-size: .95rem; font-weight: 500; font-stretch: 112%; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.3rem, 8vw, 4.6rem); overflow-wrap: break-word; font-stretch: 125%; font-weight: 760; letter-spacing: -.035em; line-height: 1; max-width: 12ch; }
.hero-sub { margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255,255,255,.78); max-width: 34em; }
.hero-ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.journey { list-style: none; margin-top: 34px; display: flex; flex-wrap: wrap; gap: 6px 4px; counter-reset: j; }
.journey li { counter-increment: j; }
.journey a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.66); text-decoration: none; font-size: .86rem; padding: 6px 10px 6px 6px; border-radius: 999px; }
.journey a::before { content: counter(j); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); font-size: .74rem; font-variant-numeric: tabular-nums; }
.journey a:hover { color: #fff; background: rgba(255,255,255,.06); }
.journey a.is-done::before { background: var(--blue); border-color: var(--blue); color: #fff; }
.hero-visual { margin: 0; }
.hero-map { width: 100%; aspect-ratio: 520 / 430; }
.hero-map > svg { width: 100%; height: 100%; overflow: visible; }
.map-line { stroke: rgba(160,190,235,.22); stroke-width: 1.2; fill: none; }
.map-line.is-hot { stroke: rgba(76,149,255,.75); }
.map-node rect { fill: var(--night-2); stroke: var(--night-line); }
.map-node.is-hot rect { stroke: var(--blue-bright); }
.map-node text { fill: #fff; font-family: var(--font); font-size: 15px; font-weight: 600; font-stretch: 110%; }
.map-node .map-ico { color: var(--blue-bright); }
.map-pulse { fill: #7DB3FF; }
.map-core-ring { fill: none; stroke: rgba(76,149,255,.35); }
.map-core-label { fill: var(--silver); font-family: var(--font); font-size: 12.5px; font-weight: 500; letter-spacing: .02em; text-anchor: middle; }
.hero-ticker { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 16px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); font-size: .92rem; color: rgba(255,255,255,.85); min-height: 48px; }
.ticker-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity .3s; }
.ticker-text.is-out { opacity: 0; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); }
}

/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-alt { background: var(--mist); }
.section-dark { background: var(--night); color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.section-head p { margin-top: 14px; font-size: 1.08rem; color: var(--slate); max-width: 38em; }
.section-head-dark p, .muted-dark { color: rgba(255,255,255,.68); }
.h3-dark { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.panel-dark { background: var(--night-2); border-radius: var(--r-lg); box-shadow: var(--shadow-dark); }

/* chips / toggles */
.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px 10px 12px;
  border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-md); text-align: left;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.chip:hover { border-color: var(--silver-2); }
.chip[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.chip .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--silver-2); display: grid; place-items: center; flex: none; transition: all .15s; }
.chip[aria-pressed="true"] .box { background: var(--blue); border-color: var(--blue); }
.chip[aria-pressed="true"] .box::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); }
.seg-btn { border: 0; background: transparent; min-height: 40px; padding: 8px 18px; border-radius: 999px; font-weight: 600; color: var(--slate); }
.seg-btn[aria-selected="true"], .seg-btn[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.seg-dark { background: rgba(255,255,255,.05); border-color: var(--night-line); }
.seg-dark .seg-btn { color: rgba(255,255,255,.66); }
.seg-dark .seg-btn[aria-selected="true"], .seg-dark .seg-btn[aria-pressed="true"] { background: var(--night-3); color: #fff; box-shadow: none; }

/* ---------- Antes / después ---------- */
.ba-panel { margin-top: 24px; display: grid; gap: 24px; align-items: center; }
.ba-stage { position: relative; min-height: 300px; border-radius: var(--r-lg); padding: 24px; border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.ba-stage.is-after { background: var(--night); border-color: var(--night); color: #fff; }
.ba-scatter { position: relative; height: 300px; }
.ba-item { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: var(--mist); border: 1px dashed var(--silver-2); font-size: .92rem; font-weight: 500; color: var(--slate); transition: transform .6s var(--ease), opacity .4s; }
.ba-item .ico { width: 18px; height: 18px; }
.ba-conn { display: grid; gap: 10px; }
.ba-conn-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ba-conn-row span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: var(--night-2); border: 1px solid var(--night-line); font-size: .92rem; font-weight: 500; }
.ba-conn-row .ico { width: 18px; height: 18px; color: var(--blue-bright); }
.ba-core { justify-self: center; display: grid; justify-items: center; gap: 6px; padding: 14px 0; }
.ba-core svg.core-mark { width: 64px; height: 64px; }
.ba-core strong { font-stretch: 118%; font-size: 1.05rem; }
.ba-flow { width: 2px; height: 22px; background: linear-gradient(var(--night-line), var(--blue-bright)); justify-self: center; }
.ba-result { font-size: clamp(1.5rem, 3vw, 2.1rem); font-stretch: 120%; font-weight: 740; letter-spacing: -.02em; }
.ba-result.is-bad { color: var(--bad); }
.ba-result.is-good { color: var(--blue-deep); }
.ba-copy p { color: var(--slate); margin-top: 10px; max-width: 32em; }
.ba-copy ul { margin-top: 16px; list-style: none; display: grid; gap: 8px; }
.ba-copy li { display: flex; gap: 10px; align-items: flex-start; }
.ba-copy li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; background: currentColor; opacity: .5; }
@media (min-width: 860px) { .ba-panel { grid-template-columns: 1.25fr 1fr; gap: 48px; } }

/* ---------- Diagnóstico ---------- */
.dx-grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .dx-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .dx-grid { grid-template-columns: 1fr 1fr 1fr; } }
.dx-grid .chip { width: 100%; }
.dx-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dx-count { color: var(--slate); font-size: .95rem; }
.dx-result { margin-top: 32px; padding: clamp(20px, 3vw, 32px); }
.dx-result h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.dx-result > p { color: var(--slate); margin-top: 8px; }
.dx-mods { margin-top: 20px; display: grid; gap: 12px; }
@media (min-width: 720px) { .dx-mods { grid-template-columns: 1fr 1fr; } }
.dx-mod { display: flex; gap: 14px; padding: 16px; border-radius: var(--r-md); background: var(--mist); }
.dx-mod .ico-wrap { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); color: var(--blue); flex: none; }
.dx-mod h4 { font-size: 1.02rem; font-stretch: 108%; }
.dx-mod p { font-size: .92rem; color: var(--slate); margin-top: 4px; }
.dx-mod .why { color: var(--ink); font-weight: 500; }
.dx-result .dx-actions { margin-top: 24px; }

/* ---------- Constructor ---------- */
.sb-layout { display: grid; gap: 24px; align-items: start; grid-template-columns: minmax(0, 1fr); }
.sb-layout > * { min-width: 0; }
@media (min-width: 1000px) { .sb-layout { grid-template-columns: minmax(0, 1fr) 360px; } }
.sb-filters { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: thin; }
.sb-filters .seg-btn { white-space: nowrap; border: 1px solid var(--line); background: var(--paper); min-height: 40px; }
.sb-filters .seg-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
.sb-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .sb-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1300px) { .sb-grid { grid-template-columns: 1fr 1fr 1fr; } }
.mod-card {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-content: start;
  padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); text-align: left;
  transition: border-color .2s, box-shadow .2s, background-color .2s; min-height: 118px;
}
.mod-card:hover { border-color: var(--silver-2); }
.mod-card .ico-wrap { grid-row: span 2; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--mist); color: var(--ink); transition: all .2s; }
.mod-card .mod-name { display: block; font-size: 1.02rem; font-stretch: 106%; font-weight: 680; letter-spacing: -.01em; padding-right: 34px; }
.mod-card .mod-desc { display: block; font-size: .9rem; color: var(--slate); line-height: 1.45; }
.mod-card .mod-state { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--silver); display: grid; place-items: center; }
.mod-card .mod-area { grid-column: 2; font-size: .78rem; color: var(--silver-2); font-weight: 500; }
.mod-card[aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: #FBFCFF; }
.mod-card[aria-pressed="true"] .ico-wrap { background: var(--blue); color: #fff; }
.mod-card[aria-pressed="true"] .mod-state { background: var(--blue); border-color: var(--blue); }
.mod-card[aria-pressed="true"] .mod-state::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.sb-summary { position: sticky; top: calc(var(--header-h) + 16px); background: var(--night); color: #fff; border-radius: var(--r-lg); padding: 22px; }
.sb-summary h3 { font-size: 1.3rem; font-stretch: 120%; }
.sb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.sb-stat { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-md); padding: 12px; }
.sb-stat b { display: block; font-size: 1.9rem; font-stretch: 120%; font-weight: 740; line-height: 1; font-variant-numeric: tabular-nums; }
.sb-stat span { display: block; margin-top: 6px; font-size: .76rem; color: rgba(255,255,255,.66); line-height: 1.3; }
.sb-areas { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.sb-area { font-size: .8rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--night-line); color: rgba(255,255,255,.5); }
.sb-area.is-on { color: #fff; border-color: var(--blue-bright); background: rgba(76,149,255,.14); }
.sb-selected { margin-top: 16px; max-height: 200px; overflow-y: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.sb-selected button { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--night-3); border: 0; color: #fff; }
.sb-selected button svg { width: 14px; height: 14px; opacity: .7; }
.sb-empty { margin-top: 16px; font-size: .92rem; color: rgba(255,255,255,.6); }
.sb-autos { margin-top: 16px; border-top: 1px solid var(--night-line); padding-top: 14px; }
.sb-autos summary { cursor: pointer; font-size: .92rem; font-weight: 600; min-height: 32px; }
.sb-autos ul { list-style: none; margin-top: 8px; display: grid; gap: 6px; max-height: 180px; overflow-y: auto; }
.sb-autos li { font-size: .86rem; color: rgba(255,255,255,.78); padding-left: 16px; position: relative; }
.sb-autos li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 2px; background: var(--blue-bright); }
.sb-note { margin-top: 14px; font-size: .78rem; color: rgba(255,255,255,.5); }
.sb-actions { margin-top: 18px; display: grid; gap: 8px; }
.sb-actions .btn { width: 100%; }
.sb-actions .linkish { background: none; border: 0; color: rgba(255,255,255,.66); font-size: .88rem; text-decoration: underline; min-height: 36px; }

/* ---------- Industrias ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .ind-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ind-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.ind-card { display: grid; gap: 10px; justify-items: start; padding: 14px; min-height: 96px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); text-align: left; font-weight: 600; font-size: .9rem; line-height: 1.25; transition: border-color .2s, background-color .2s; }
.ind-card .ico { color: var(--slate); }
.ind-card:hover { border-color: var(--silver-2); }
.ind-card[aria-pressed="true"] { background: var(--night); color: #fff; border-color: var(--night); }
.ind-card[aria-pressed="true"] .ico { color: var(--blue-bright); }
.ind-detail { margin-top: 24px; padding: clamp(20px, 3vw, 32px); }
.ind-detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.ind-detail-head h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.flow { list-style: none; margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 0; counter-reset: f; }
.flow li { counter-increment: f; display: flex; align-items: center; }
.flow li span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--mist); font-size: .9rem; font-weight: 600; border: 1px solid transparent; }
.flow li span::before { content: counter(f); font-size: .74rem; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.flow li:not(:last-child)::after { content: ''; width: 18px; height: 2px; background: var(--silver); margin-inline: 4px; }
.flow li.is-lit span { background: var(--blue-soft); border-color: var(--blue); }
.ind-cols { display: grid; gap: 24px; margin-top: 28px; }
@media (min-width: 860px) { .ind-cols { grid-template-columns: 1fr 1fr; } }
.ind-cols h4 { font-size: 1rem; font-stretch: 108%; margin-bottom: 12px; }
.ind-ex { list-style: none; display: grid; gap: 10px; }
.ind-ex li { padding: 12px 14px; border-left: 3px solid var(--blue); background: var(--mist); border-radius: 0 10px 10px 0; font-size: .95rem; }
.ind-mods { display: flex; flex-wrap: wrap; gap: 8px; }
.ind-mods span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: .9rem; font-weight: 500; }
.ind-mods .ico { width: 18px; height: 18px; color: var(--blue); }
.ind-detail .row-actions { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.ind-empty { margin-top: 20px; color: var(--slate); }

/* ---------- Command Center ---------- */
.cc-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.cc-views { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding-bottom: 2px; }
.cc-views::-webkit-scrollbar { display: none; }
.cc-views button { white-space: nowrap; border: 1px solid var(--night-line); background: transparent; color: rgba(255,255,255,.7); min-height: 40px; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.cc-views button[aria-selected="true"] { background: #fff; color: var(--night); border-color: #fff; }
.cc-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cc-body { margin-top: 20px; display: grid; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { padding: 18px; background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-md); text-align: left; color: #fff; transition: border-color .2s; }
button.kpi:hover { border-color: var(--blue-bright); }
.kpi-label { font-size: .84rem; color: rgba(255,255,255,.64); }
.kpi-value { display: block; margin-top: 8px; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-stretch: 120%; font-weight: 740; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi-delta { display: inline-block; margin-top: 10px; font-size: .8rem; color: #7FD3A8; }
.kpi-delta.is-down { color: #FF9B96; }
.cc-cols { display: grid; gap: 16px; }
@media (min-width: 1000px) { .cc-cols { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.cc-card { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-lg); padding: 18px; min-width: 0; }
.cc-card h3 { font-size: 1.02rem; font-stretch: 110%; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cc-card h3 small { font-size: .78rem; font-weight: 500; color: rgba(255,255,255,.5); font-stretch: 100%; letter-spacing: 0; }
.chart { margin-top: 14px; width: 100%; height: 190px; }
.chart .bar { fill: var(--blue); }
.chart .bar.is-alt { fill: #3A4E78; }
.chart .axis { fill: rgba(255,255,255,.5); font-family: var(--font); font-size: 11px; }
.chart .grid { stroke: rgba(255,255,255,.07); }
.chart .line { fill: none; stroke: var(--blue-bright); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: rgba(76,149,255,.12); }
.chart-legend { display: flex; gap: 16px; margin-top: 8px; font-size: .8rem; color: rgba(255,255,255,.62); }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--blue); margin-right: 6px; vertical-align: -1px; }
.chart-legend i.alt { background: #3A4E78; }
.pipe { margin-top: 14px; display: grid; gap: 10px; }
.pipe-row { display: grid; grid-template-columns: 110px 1fr 44px; gap: 10px; align-items: center; font-size: .86rem; }
.pipe-track { height: 10px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.pipe-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--blue); transition: width .6s var(--ease); }
.pipe-row b { text-align: right; font-variant-numeric: tabular-nums; }
.alerts, .actions, .feed { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.alerts li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--r-md); background: rgba(255,255,255,.03); border: 1px solid var(--night-line); font-size: .9rem; }
.alerts .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--blue-bright); }
.alerts .dot.warn { background: #F2B544; }
.alerts .dot.bad { background: #FF7A73; }
.alerts small { display: block; color: rgba(255,255,255,.5); font-size: .78rem; margin-top: 2px; }
.actions label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--night-line); font-size: .9rem; cursor: pointer; min-height: 44px; }
.actions input { width: 20px; height: 20px; accent-color: var(--blue-bright); margin: 1px 0 0; flex: none; }
.actions label.is-done span { text-decoration: line-through; color: rgba(255,255,255,.45); }
.table-wrap { margin-top: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 520px; }
.tbl th { text-align: left; font-weight: 600; font-size: .78rem; color: rgba(255,255,255,.5); padding: 8px 10px; border-bottom: 1px solid var(--night-line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.status.ok { color: #7FD3A8; background: rgba(11,143,78,.16); }
.status.warn { color: #F2C267; background: rgba(169,111,0,.2); }
.status.bad { color: #FF9B96; background: rgba(200,51,47,.2); }
.status.info { color: #9CC3FF; background: rgba(76,149,255,.16); }
.status.muted { color: rgba(255,255,255,.62); background: rgba(255,255,255,.07); }
.light .status.ok { color: var(--ok); background: var(--ok-soft); }
.light .status.warn { color: var(--warn); background: var(--warn-soft); }
.light .status.bad { color: var(--bad); background: var(--bad-soft); }
.light .status.info { color: var(--blue-deep); background: var(--blue-soft); }
.light .status.muted { color: var(--slate); background: var(--mist); }
.meter { height: 8px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; min-width: 60px; }
.meter span { display: block; height: 100%; width: 0; background: var(--blue-bright); border-radius: inherit; transition: width .5s var(--ease); }
.meter span.warn { background: #F2B544; }
.meter span.bad { background: #FF7A73; }
.team { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.team li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; font-size: .9rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: var(--night-3); color: #9CC3FF; }
.team small { display: block; color: rgba(255,255,255,.5); font-size: .78rem; }

/* ---------- Tabs demos ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; border: 0; background: transparent; padding: 12px 14px; min-height: 48px; font-weight: 600; color: var(--slate); white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }
.demo-panel { min-height: 420px; }
.demo-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.demo-toolbar .left { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; flex: 1; min-width: 0; }
.search { position: relative; flex: 1 1 220px; max-width: 320px; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--slate); pointer-events: none; }
.input, .search input, select.input {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: 10px 12px; font-size: 1rem;
}
.search input { padding-left: 38px; }
select.input { width: auto; padding-right: 32px; }
.input:focus, .search input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(31,107,255,.2); }

/* CRM kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.kcol { background: var(--mist); border-radius: var(--r-md); padding: 10px; scroll-snap-align: start; min-height: 220px; }
.kcol-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 10px; font-size: .86rem; font-weight: 700; }
.kcol-head span { color: var(--slate); font-weight: 600; font-variant-numeric: tabular-nums; }
.kcards { display: grid; gap: 8px; }
.kcard { display: block; width: 100%; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px; transition: border-color .2s, box-shadow .2s; }
.kcard:hover { border-color: var(--silver-2); box-shadow: var(--shadow); }
.kcard strong { display: block; font-size: .94rem; line-height: 1.3; }
.kcard .sub { display: block; font-size: .82rem; color: var(--slate); margin-top: 4px; }
.kcard .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; font-size: .82rem; }
.kcard .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.kempty { font-size: .84rem; color: var(--silver-2); padding: 8px 4px; }
.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 3px rgba(31,107,255,.55); } 100% { box-shadow: 0 0 0 0 rgba(31,107,255,0); } }

/* Tablas claras */
.panel .table-wrap { margin-top: 0; }
.tbl-light { min-width: 640px; }
.tbl-light th { color: var(--slate); border-bottom: 1px solid var(--line); background: var(--mist); }
.tbl-light td { border-bottom: 1px solid var(--line); }
.tbl-light tr.is-alert td { background: #FFF8F7; }
.tbl-light .row-btn { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; min-height: 36px; padding: 6px 12px; font-size: .84rem; font-weight: 600; }
.tbl-light .row-btn:hover { border-color: var(--ink); }
.light .meter { background: var(--mist); }
.light .meter span { background: var(--blue); }
.light .meter span.warn { background: #E0A11B; }
.light .meter span.bad { background: var(--bad); }
.ops-summary, .inv-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
@media (min-width: 760px) { .ops-summary, .inv-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.mini { padding: 12px 14px; border-radius: var(--r-md); background: var(--mist); border: 1px solid transparent; text-align: left; }
button.mini:hover { border-color: var(--silver-2); }
button.mini[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); }
.mini b { display: block; font-size: 1.5rem; font-stretch: 118%; font-weight: 740; font-variant-numeric: tabular-nums; line-height: 1.1; }
.mini span { font-size: .8rem; color: var(--slate); }
.inv-flow { margin-top: 16px; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); }
.inv-flow ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.inv-flow li { font-size: .86rem; padding: 7px 12px; border-radius: 999px; background: var(--mist); color: var(--slate); transition: all .3s; }
.inv-flow li.is-lit { background: var(--blue); color: #fff; }
.inv-flow p { font-size: .9rem; color: var(--slate); }

/* Modal detalle */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.detail-grid div span { display: block; font-size: .78rem; color: var(--slate); }
.detail-grid div strong { font-size: .96rem; }
.detail-grid .full { grid-column: 1 / -1; }
.stage-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.stage-picker button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; min-height: 38px; padding: 6px 12px; font-size: .86rem; font-weight: 600; }
.stage-picker button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.timeline-mini { list-style: none; display: grid; gap: 8px; margin-top: 8px; font-size: .88rem; }
.timeline-mini li { padding-left: 16px; position: relative; color: var(--slate); }
.timeline-mini li::before { content: ''; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.evidence { display: flex; gap: 8px; margin-top: 8px; }
.evidence span { display: grid; place-items: center; width: 72px; height: 56px; border-radius: 8px; background: var(--mist); border: 1px dashed var(--silver-2); color: var(--slate); }
.evidence svg { width: 22px; height: 22px; }

/* CX */
.cx { display: grid; gap: 20px; }
@media (min-width: 960px) { .cx { grid-template-columns: 1fr 1fr; } }
.cx-phone { max-width: 380px; width: 100%; justify-self: center; background: var(--night); color: #fff; border-radius: 30px; padding: 16px; box-shadow: var(--shadow); }
.cx-screen { background: #fff; color: var(--ink); border-radius: 20px; padding: 22px 18px; min-height: 420px; display: grid; align-content: start; gap: 14px; }
.cx-screen h4 { font-size: 1.15rem; }
.cx-screen p { color: var(--slate); font-size: .92rem; }
.cx-stars { display: flex; gap: 6px; }
.cx-stars button { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; color: var(--silver-2); }
.cx-stars button svg { width: 26px; height: 26px; }
.cx-stars button.is-on { color: #E0A11B; border-color: #E0A11B; background: #FFF8E6; }
.cx-stars button.is-on svg { fill: currentColor; }
.cx-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.cx-steps li { font-size: .8rem; padding: 6px 10px; border-radius: 999px; background: var(--mist); color: var(--slate); }
.cx-steps li.is-lit { background: var(--blue); color: #fff; }
.cx-dash { display: grid; gap: 12px; align-content: start; }
.csat-big { display: flex; align-items: baseline; gap: 10px; }
.csat-big b { font-size: 3rem; font-stretch: 122%; font-weight: 760; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.csat-bars { display: grid; gap: 6px; margin-top: 10px; }
.csat-bars div { display: grid; grid-template-columns: 30px 1fr 30px; gap: 8px; align-items: center; font-size: .84rem; }
.cx-alert { padding: 14px; border-radius: var(--r-md); background: var(--bad-soft); color: #7A1D1A; font-size: .92rem; display: flex; gap: 10px; }
.cx-alert svg { flex: none; width: 20px; height: 20px; }
.cx-alert.ok { background: var(--ok-soft); color: #0A5A33; }
.cx-list { list-style: none; display: grid; gap: 8px; }
.cx-list li { padding: 10px 12px; border-radius: 10px; background: var(--mist); font-size: .88rem; }
.cx-list li b { font-variant-numeric: tabular-nums; }

/* ---------- Automation Lab ---------- */
.lab-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .lab-grid { grid-template-columns: 300px minmax(0, 1fr); } }
.lab-events { display: grid; gap: 8px; align-content: start; }
@media (max-width: 959px) { .lab-events { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; } }
.lab-ev { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; border-radius: var(--r-md); border: 1px solid var(--night-line); background: transparent; color: rgba(255,255,255,.8); font-weight: 600; text-align: left; white-space: nowrap; }
.lab-ev .ico { color: var(--blue-bright); }
.lab-ev[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.lab-ev[aria-pressed="true"] .ico { color: #fff; }
.lab-stage { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); min-width: 0; }
.lab-stage-head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.lab-stage-head h3 { font-size: 1.3rem; font-stretch: 118%; }
.lab-steps { list-style: none; margin-top: 22px; display: grid; gap: 0; }
.lab-step { display: grid; grid-template-columns: 36px 1fr; gap: 14px; opacity: .32; transition: opacity .35s var(--ease); }
.lab-step.is-on { opacity: 1; }
.lab-step .node { position: relative; display: grid; justify-items: center; }
.lab-step .node i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--night-line); background: var(--night); display: grid; place-items: center; font-style: normal; font-size: .76rem; font-weight: 700; font-variant-numeric: tabular-nums; transition: all .3s; z-index: 1; }
.lab-step.is-on .node i { border-color: var(--blue-bright); background: var(--blue); }
.lab-step .node::after { content: ''; position: absolute; top: 28px; bottom: 0; width: 2px; background: var(--night-line); }
.lab-step.is-on .node::after { background: linear-gradient(var(--blue-bright), var(--night-line)); }
.lab-step:last-child .node::after { display: none; }
.lab-step .txt { padding-bottom: 18px; }
.lab-step strong { display: block; font-size: 1rem; }
.lab-step span { display: block; font-size: .9rem; color: rgba(255,255,255,.66); margin-top: 2px; }
.lab-log { margin-top: 8px; padding: 12px 14px; border-radius: var(--r-md); background: var(--night); border: 1px solid var(--night-line); font-size: .84rem; color: rgba(255,255,255,.72); min-height: 48px; font-variant-numeric: tabular-nums; }
.auto-center { margin-top: clamp(48px, 7vw, 80px); }
.auto-center > p { margin-top: 8px; }
.auto-grid { margin-top: 24px; display: grid; gap: 12px; }
@media (min-width: 640px) { .auto-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .auto-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .auto-grid { grid-template-columns: repeat(5, 1fr); } }
.auto-card { padding: 18px; border-radius: var(--r-md); background: var(--night-2); border: 1px solid var(--night-line); }
.auto-card .ico { color: var(--blue-bright); }
.auto-card h4 { margin-top: 12px; font-size: 1rem; font-stretch: 108%; }
.auto-card dl { margin: 12px 0 0; display: grid; gap: 10px; }
.auto-card dt { font-size: .74rem; color: rgba(255,255,255,.5); font-weight: 600; }
.auto-card dd { margin: 2px 0 0; font-size: .88rem; color: rgba(255,255,255,.86); }

/* ---------- Un día ---------- */
.day-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .day-grid { grid-template-columns: minmax(0, 1fr) 380px; } }
.day-track { list-style: none; display: grid; gap: 0; }
.day-item { display: grid; grid-template-columns: 96px 1fr; gap: 16px; }
.day-item button { all: unset; display: contents; cursor: pointer; }
.day-time { font-size: .88rem; font-weight: 700; color: var(--slate); padding-top: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.day-body { position: relative; padding: 12px 16px 12px 20px; border-left: 2px solid var(--line); margin-bottom: 4px; border-radius: 0 10px 10px 0; transition: background-color .25s; }
.day-body::before { content: ''; position: absolute; left: -7px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--silver); transition: all .25s; }
.day-body strong { display: block; font-size: 1rem; }
.day-body span { display: block; font-size: .9rem; color: var(--slate); margin-top: 2px; }
.day-item.is-past .day-body::before { background: var(--blue); border-color: var(--blue); }
.day-item.is-past .day-body { border-left-color: var(--blue); }
.day-item.is-now .day-body { background: var(--blue-soft); }
.day-item.is-now .day-time { color: var(--blue-deep); }
.day-item:focus-within .day-body { outline: 3px solid var(--blue-bright); outline-offset: 2px; }
.day-side { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; background: var(--night); color: #fff; border-radius: var(--r-lg); padding: 20px; }
.day-clock { font-size: 2.4rem; font-stretch: 122%; font-weight: 760; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.day-now { margin-top: 6px; color: rgba(255,255,255,.72); font-size: .95rem; min-height: 3em; }
.day-mods { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.day-mods span { display: flex; align-items: center; gap: 8px; font-size: .8rem; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--night-line); color: rgba(255,255,255,.45); transition: all .3s; }
.day-mods span .ico { width: 16px; height: 16px; }
.day-mods span.is-on { color: #fff; border-color: var(--blue-bright); background: rgba(76,149,255,.16); }
.day-mods span.was-on { color: rgba(255,255,255,.8); }
.day-controls { margin-top: 18px; display: flex; gap: 8px; }
.day-controls .icon-btn { border: 1px solid var(--night-line); color: #fff; }
.day-controls .btn { flex: 1; }
@media (max-width: 959px) { .day-side { position: relative; top: 0; order: -1; } .day-item { grid-template-columns: 76px 1fr; gap: 10px; } }

/* ---------- Arquitectura ---------- */
.arch-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .arch-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.arch-stack { list-style: none; display: grid; gap: 0; justify-items: center; }
.arch-stack li { display: grid; justify-items: center; width: 100%; }
.arch-stack li:not(:last-child)::after { content: ''; width: 2px; height: 16px; background: var(--silver); }
.arch-node { width: min(100%, 420px); display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 52px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); font-weight: 600; text-align: left; transition: all .2s; }
.arch-node .ico { color: var(--blue); }
.arch-node:hover { border-color: var(--silver-2); }
.arch-node[aria-pressed="true"] { background: var(--night); color: #fff; border-color: var(--night); }
.arch-node[aria-pressed="true"] .ico { color: var(--blue-bright); }
.arch-node:last-child { font-stretch: 112%; }
.arch-detail { position: sticky; top: calc(var(--header-h) + 16px); padding: clamp(20px, 3vw, 32px); }
.arch-detail .ico-wrap { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--blue); color: #fff; }
.arch-detail h3 { margin-top: 16px; font-size: clamp(1.5rem, 3vw, 2rem); }
.arch-detail p { margin-top: 10px; color: var(--slate); font-size: 1.02rem; }
.arch-detail .arch-nav { margin-top: 20px; display: flex; gap: 8px; }
.arch-detail .arch-links { margin-top: 16px; font-size: .9rem; color: var(--slate); }
@media (max-width: 899px) { .arch-detail { position: relative; top: 0; } }

/* ---------- Calculadora ---------- */
.calc-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .calc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.calc-form { padding: clamp(20px, 3vw, 28px); display: grid; gap: 18px; }
.calc-q label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: .96rem; }
.calc-q output { font-weight: 740; font-stretch: 118%; color: var(--blue-deep); font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.calc-q input[type="range"] { width: 100%; margin-top: 10px; accent-color: var(--blue); height: 32px; }
.calc-q .scale { display: flex; justify-content: space-between; font-size: .76rem; color: var(--silver-2); }
.calc-out { padding: clamp(20px, 3vw, 28px); background: var(--night); color: #fff; border-radius: var(--r-lg); }
.calc-out h3 { font-size: 1.3rem; font-stretch: 118%; }
.calc-big { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.calc-big div { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-md); padding: 14px; }
.calc-big b { display: block; font-size: 2rem; font-stretch: 122%; font-weight: 760; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-big span { display: block; margin-top: 6px; font-size: .8rem; color: rgba(255,255,255,.64); }
.calc-out h4 { margin-top: 20px; font-size: .96rem; font-stretch: 108%; }
.calc-out ul { list-style: none; margin-top: 8px; display: grid; gap: 6px; }
.calc-out li { font-size: .9rem; color: rgba(255,255,255,.82); padding-left: 16px; position: relative; }
.calc-out li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 2px; background: var(--blue-bright); }
.calc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.calc-tags span { font-size: .82rem; padding: 6px 10px; border-radius: 999px; background: var(--night-3); }
.calc-disclaimer { margin-top: 16px; font-size: .78rem; color: rgba(255,255,255,.52); }
.calc-out .btn { margin-top: 18px; width: 100%; }

/* ---------- Final ---------- */
.final { background: var(--night); color: #fff; padding-block: clamp(80px, 12vw, 150px); text-align: center; position: relative; overflow: hidden; }
.final::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 0%, rgba(31,107,255,.28), transparent 70%); pointer-events: none; }
.final-inner { position: relative; display: grid; justify-items: center; }
.final-mark { width: 72px; height: 72px; }
.final h2 { margin-top: 24px; font-size: clamp(2.3rem, 6.4vw, 4.6rem); font-stretch: 125%; letter-spacing: -.035em; max-width: 14ch; }
.final-sub { margin-top: 16px; font-size: clamp(1.1rem, 2vw, 1.35rem); color: rgba(255,255,255,.76); }
.final-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.final-contact { list-style: none; margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.final-contact a { color: rgba(255,255,255,.8); text-decoration: none; font-weight: 500; }
.final-contact a:hover { color: #fff; text-decoration: underline; }

/* ---------- Formulario ---------- */
.form-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .form-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; } }
.form-intro h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.form-intro > p { margin-top: 14px; color: var(--slate); font-size: 1.06rem; }
.form-points { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.form-points li { display: flex; gap: 12px; align-items: flex-start; }
.form-points li::before { content: ''; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-soft); box-shadow: inset 0 0 0 5px var(--blue-soft), inset 0 0 0 10px var(--blue); margin-top: 2px; }
.form-direct { margin-top: 28px; }
.form-direct p { font-weight: 600; }
.form-direct-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; }
.chip-link:hover { border-color: var(--ink); }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: 16px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .92rem; }
.field legend { margin-bottom: 8px; padding: 0; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: 11px 13px; font-size: 1rem; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(31,107,255,.2); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.field-err { color: var(--bad); font-size: .84rem; min-height: 0; }
.req { color: var(--bad); }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.radio input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 12px; font-size: .82rem; color: var(--slate); }
.form-status { margin-top: 10px; font-size: .92rem; }
.form-status.is-error { color: var(--bad); }
.form-done { text-align: left; }
.form-done h3 { font-size: 1.6rem; }
.form-done p { margin-top: 10px; color: var(--slate); }
.form-done .form-direct-links { margin-top: 20px; }
.prefill-note { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-deep); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: #03060E; color: rgba(255,255,255,.72); padding-block: 48px 24px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr 1.3fr; } }
.brand-footer { color: #fff; }
.footer-tag { margin-top: 10px; font-size: .92rem; }
.footer-contact { list-style: none; display: grid; gap: 8px; }
.footer-contact a { color: #fff; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-demo p { font-size: .86rem; }
.footer-demo .btn { margin-top: 14px; }
.footer-copy { margin-top: 36px; font-size: .82rem; color: rgba(255,255,255,.45); }

/* ---------- Barra móvil ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(5,10,22,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,.08); }
.mobile-bar a { display: grid; place-items: center; min-height: 46px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; border: 1px solid rgba(255,255,255,.2); }
.mobile-bar .mb-demo { background: var(--blue); border-color: var(--blue); }
@media (max-width: 1079px) { :root { --mobile-bar-h: calc(62px + env(safe-area-inset-bottom)); } }
@media (min-width: 1080px) { .mobile-bar { display: none; } }

/* ---------- M360 guía ---------- */
.m360 { position: fixed; right: 16px; bottom: calc(var(--mobile-bar-h) + 16px); z-index: 48; display: grid; justify-items: end; gap: 10px; }
.m360-fab { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--night); box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 12px 30px -8px rgba(5,10,22,.55); display: grid; place-items: center; }
.m360-fab svg { width: 40px; height: 40px; }
.m360-fab:hover { box-shadow: 0 0 0 2px var(--blue-bright), 0 12px 30px -8px rgba(5,10,22,.55); }
.m360-bubble { position: relative; max-width: 260px; background: var(--paper); color: var(--ink); border-radius: 16px 16px 4px 16px; padding: 14px 36px 14px 16px; box-shadow: 0 16px 40px -12px rgba(5,10,22,.35); border: 1px solid var(--line); font-size: .92rem; font-weight: 500; }
.m360-bubble-close { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; background: transparent; display: grid; place-items: center; color: var(--slate); }
.m360-bubble-close svg { width: 16px; height: 16px; }
.m360-panel { width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100dvh - var(--header-h) - var(--mobile-bar-h) - 100px)); display: flex; flex-direction: column; background: var(--paper); border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 24px 60px -16px rgba(5,10,22,.45); overflow: hidden; }
.m360-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; background: var(--night); color: #fff; }
.m360-avatar { width: 42px; height: 42px; flex: none; }
.m360-name { font-weight: 740; font-stretch: 118%; font-size: 1.05rem; }
.m360-role { font-size: .8rem; color: rgba(255,255,255,.62); }
.m360-close { margin-left: auto; color: #fff; }
.m360-body { padding: 16px; overflow-y: auto; display: grid; gap: 10px; }
.m360-msg { background: var(--mist); border-radius: 4px 14px 14px 14px; padding: 12px 14px; font-size: .94rem; }
.m360-options { display: grid; gap: 6px; }
.m360-options button { text-align: left; min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: .92rem; }
.m360-options button:hover { border-color: var(--blue); color: var(--blue-deep); }
.m360-route { list-style: none; display: grid; gap: 4px; font-size: .86rem; color: var(--slate); counter-reset: r; }
.m360-route li { counter-increment: r; display: flex; gap: 8px; }
.m360-route li::before { content: counter(r); font-weight: 700; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.m360-row { display: flex; gap: 8px; flex-wrap: wrap; }
.m360-row .btn { flex: 1 1 auto; }

/* ---------- Modal ---------- */
.modal { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -20px rgba(5,10,22,.5); }
.modal::backdrop { background: rgba(5,10,22,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-inner { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 20px 16px 12px 22px; border-bottom: 1px solid var(--line); }
.modal-kicker { font-size: .82rem; color: var(--slate); }
.modal-head h3 { font-size: 1.35rem; margin-top: 4px; }
.modal-body { padding: 18px 22px 24px; overflow-y: auto; display: grid; gap: 16px; }
.modal-body h4 { font-size: .92rem; font-stretch: 106%; }
.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--mobile-bar-h) + 20px); transform: translate(-50%, 20px); z-index: 70; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .92rem; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Antes/después en pantallas pequeñas: sin posicionamiento absoluto */
@media (max-width: 640px) {
  .ba-scatter { height: auto; display: flex; flex-wrap: wrap; gap: 10px; }
  .ba-item { position: static; }
  .ba-stage { min-height: 0; }
}

/* ---------- Complementos ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lab-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.lab-actions .btn, .day-controls .btn { gap: 8px; }
.lab-actions .btn svg, .day-controls .btn svg { width: 18px; height: 18px; }
.btn:disabled, .icon-btn:disabled { opacity: .45; cursor: not-allowed; }
.form-status a { color: inherit; font-weight: 600; }
.day-side .demo-tag { margin-bottom: 10px; }
.arch-links strong { color: var(--ink); }
}

/* ---------- Complementos ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lab-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.calc-out .btn + .btn { margin-top: 10px; }
.icon-btn:disabled { opacity: .35; pointer-events: none; }
.day-controls .btn span { white-space: nowrap; }

/* Tablas como tarjetas en móvil */
@media (max-width: 700px) {
  table.tbl.tbl-cards { min-width: 0; width: 100%; }
  .tbl-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl-cards, .tbl-cards tbody, .tbl-cards tr { display: block; width: 100%; }
  .tbl-cards tr { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; padding: 8px 12px; background: var(--paper); }
  .tbl-cards tr.is-alert { background: #FFF8F7; border-color: #F3C9C7; }
  .tbl-cards tr.is-alert td { background: transparent; }
  .tbl-cards td { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 0; border: 0 !important; text-align: left; overflow-wrap: anywhere; }
  .tbl-cards td::before { content: attr(data-label); font-size: .76rem; font-weight: 600; color: var(--slate); }
  .tbl-cards td > * { justify-self: start; }
  .tbl-cards td:not([data-label]) { display: block; padding-top: 8px; }
  .tbl-cards td:not([data-label])::before { content: none; }
  .tbl-cards td[colspan] { display: block; }
  .panel:has(.tbl-cards) { background: transparent; border: 0; box-shadow: none; }
  .panel .table-wrap:has(.tbl-cards) { overflow-x: visible; }
}

/* Páginas simples (404 / gracias) */
.page-simple { background: var(--night); }
.page-simple .final { min-height: 100vh; min-height: 100dvh; display: grid; align-items: center; }
.final-title { margin-top: 24px; font-size: clamp(2rem, 5.6vw, 3.8rem); font-stretch: 125%; letter-spacing: -.03em; max-width: 18ch; line-height: 1.05; }
.sb-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 420px) {
  .sb-stats { grid-template-columns: minmax(0, 1fr); }
  .sb-stat { display: flex; align-items: center; gap: 14px; padding: 10px 14px; }
  .sb-stat b { font-size: 1.6rem; min-width: 2ch; }
  .sb-stat span { margin-top: 0; }
}

/* =====================================================================
   V2 — Recorrido guiado: Descubre → Construye → Explora → Demo
   ===================================================================== */
.kicker { font-size: .86rem; font-weight: 650; color: var(--blue-deep); letter-spacing: .01em; margin-bottom: 10px; }
.section-dark .kicker, .hero .kicker { color: #9CC3FF; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center p { margin-inline: auto; }
.wrap-narrow { max-width: 920px; }
.seg-center { margin-inline: auto; display: flex; width: fit-content; }

/* Hero */
.hero h1 { max-width: 14ch; font-size: clamp(2.2rem, 6.2vw, 4.7rem); }
.hero-sub { max-width: 34em; }

/* El problema */
.ba-copy .ba-chain { list-style: none; margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 0; align-items: center; }
.ba-copy .ba-chain li { display: flex; align-items: center; }
.ba-copy .ba-chain li::before { content: none; }
.ba-chain li span { display: inline-block; padding: 7px 12px; border-radius: 999px; font-size: .88rem; font-weight: 600; }
.ba-chain li:not(:last-child)::after { content: ''; width: 18px; height: 2px; margin: 0 2px; background: currentColor; opacity: .35; }
.ba-chain.is-bad { color: var(--bad); }
.ba-chain.is-bad span { background: #FFF1F0; color: #9E2A26; }
.ba-chain.is-good { color: var(--blue); }
.ba-chain.is-good span { background: var(--blue-soft); color: var(--blue-deep); }
.ba-chain.is-good li:first-child span { background: var(--night); color: #fff; }
.ba-hub { position: relative; height: 320px; }
.ba-hub::before { content: ''; position: absolute; left: 50%; top: 50%; width: 64%; height: 70%; transform: translate(-50%, -50%); border: 1px dashed rgba(156,195,255,.35); border-radius: 50%; }
.ba-spoke { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 10px; background: var(--night-2); border: 1px solid var(--night-line); font-size: .82rem; font-weight: 500; white-space: nowrap; }
.ba-spoke .ico { width: 16px; height: 16px; color: var(--blue-bright); }
.ba-hub .ba-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 0; }
@media (max-width: 640px) {
  .ba-hub { height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .ba-hub::before { content: none; }
  .ba-spoke { position: static; transform: none; }
  .ba-hub .ba-core { position: static; transform: none; width: 100%; order: -1; padding-bottom: 8px; }
}

/* Diagnóstico por pasos */
.dx-card { padding: clamp(20px, 4vw, 40px); }
.dx-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 24px; }
.dx-progress span { height: 4px; border-radius: 4px; background: var(--line); transition: background-color .3s; }
.dx-progress span.is-done { background: var(--blue); }
.dx-progress span.is-now { background: linear-gradient(90deg, var(--blue) 50%, var(--line) 50%); }
.dx-step { font-size: .84rem; font-weight: 650; color: var(--blue-deep); }
.dx-q { margin-top: 6px; font-size: clamp(1.5rem, 3vw, 2rem); outline: none; }
.dx-hint { margin-top: 8px; color: var(--slate); }
.dx-options { margin-top: 20px; display: grid; gap: 10px; }
@media (min-width: 640px) { .dx-options { grid-template-columns: 1fr 1fr; } }
.dx-opt { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); text-align: left; font-weight: 600; font-size: 1rem; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.dx-opt:hover { border-color: var(--silver-2); }
.dx-opt .box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--silver); display: grid; place-items: center; color: transparent; transition: all .2s; }
.dx-opt .box svg { width: 15px; height: 15px; }
.dx-opt[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.dx-opt[aria-pressed="true"] .box { background: var(--blue); border-color: var(--blue); color: #fff; }
.dx-nav { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dx-nav .dx-count { flex: 1; min-width: 140px; }
.dx-nav .btn-primary { margin-left: auto; }
.dx-mod .multi { font-size: .8rem; color: var(--blue-deep); font-weight: 600; }
.dx-more { margin-top: 12px; color: var(--slate); font-size: .92rem; }

/* Constructor M360 */
@media (min-width: 1000px) { .sb-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; } }
.sb-system { display: grid; gap: 12px; }
@media (min-width: 1000px) { .sb-system { position: sticky; top: calc(var(--header-h) + 16px); } }
.sb-visual, .sb-result { background: var(--night); color: #fff; border-radius: var(--r-lg); }
.sb-visual { padding: 10px 6px 4px; }
.sb-result { padding: 22px; }
.sb-svg { display: block; width: 100%; height: auto; max-height: 340px; }
.sb-core-ring { fill: var(--night-2); stroke: var(--night-line); }
.sb-seg { fill: #16223D; transition: fill .35s var(--ease), fill-opacity .35s var(--ease); }
.sb-seg.is-on { fill: var(--blue); }
.sb-dot { fill: rgba(255,255,255,.16); transition: fill .3s; }
.sb-dot.is-on { fill: #fff; }
.sb-dot.is-new { animation: dotpop .6s var(--ease); transform-box: fill-box; transform-origin: center; }
@keyframes dotpop { 0% { transform: scale(2.2); } 100% { transform: scale(1); } }
.sb-lbl { font-size: 12.5px; font-weight: 600; fill: rgba(255,255,255,.4); font-family: inherit; transition: fill .3s; }
.sb-lbl.is-on { fill: #fff; }
.sb-num { font-size: 30px; font-weight: 760; fill: #fff; font-family: inherit; font-stretch: 120%; }
.sb-num-l { font-size: 11px; fill: rgba(255,255,255,.6); font-family: inherit; }
.sb-kicker { font-size: .82rem; font-weight: 650; color: #9CC3FF; }
.sb-result h3 { margin-top: 4px; font-size: 1.3rem; font-stretch: 118%; }
.sb-checks { list-style: none; margin-top: 16px; display: grid; gap: 4px; max-height: 240px; overflow-y: auto; }
.sb-checks li { display: flex; align-items: center; gap: 10px; font-size: .92rem; padding: 4px 0; }
.sb-checks .chk { flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--blue); display: grid; place-items: center; }
.sb-checks .chk svg { width: 13px; height: 13px; color: #fff; }
.sb-checks button { margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: rgba(255,255,255,.5); display: grid; place-items: center; }
.sb-checks button:hover { color: #fff; background: rgba(255,255,255,.08); }
.sb-checks button svg { width: 14px; height: 14px; }
.sb-note { font-size: .88rem; color: rgba(255,255,255,.72); }
.sb-note:empty { display: none; }
.mod-switch { position: absolute; top: 16px; right: 16px; width: 34px; height: 20px; border-radius: 999px; background: var(--line); transition: background-color .2s; }
.mod-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(5,10,22,.25); transition: transform .2s var(--ease); }
.mod-card[aria-pressed="true"] .mod-switch { background: var(--blue); }
.mod-card[aria-pressed="true"] .mod-switch::after { transform: translateX(14px); }
.mod-card .mod-name { padding-right: 44px; }
.mod-card { min-height: 0; }
.sb-mini { display: none; }
@media (max-width: 999px) {
  .sb-system { display: contents; }
  .sb-visual { order: -1; }
  .sb-mini { display: flex; position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 14px; border-radius: 999px; background: var(--night); color: #fff; font-size: .9rem; box-shadow: var(--shadow); }
  .sb-mini b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
  .sb-mini a { color: #9CC3FF; font-weight: 600; text-decoration: none; }
  .sb-svg { max-height: 300px; }
}
@media (max-width: 559px) {
  .sb-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mod-card { grid-template-columns: 1fr; padding: 12px; gap: 8px; }
  .mod-card .ico-wrap { grid-row: auto; width: 36px; height: 36px; }
  .mod-card .mod-desc { display: none; }
  .mod-card .mod-name { font-size: .92rem; padding-right: 0; }
  .mod-switch { top: 14px; right: 12px; }
}

/* Explora M360 */
.xp-cards { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .xp-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.xp-card { display: grid; align-content: start; gap: 6px; text-align: left; min-height: 150px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.xp-card:hover { border-color: var(--silver-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.xp-card-wide { grid-column: span 2; background: var(--night); color: #fff; border-color: var(--night); }
.xp-card-wide .xp-desc { color: rgba(255,255,255,.7); }
.xp-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-deep); margin-bottom: 8px; }
.xp-card-wide .xp-ico { background: var(--blue); color: #fff; }
.xp-name { overflow-wrap: anywhere; hyphens: auto; font-size: 1.1rem; font-weight: 700; font-stretch: 110%; letter-spacing: -.01em; }
.xp-desc { font-size: .9rem; color: var(--slate); line-height: 1.45; }
.xp-card.is-active { border-color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.xp-card-wide.is-active { box-shadow: inset 0 0 0 2px var(--blue-bright); }
@media (max-width: 480px) { .xp-card { min-height: 0; padding: 14px; } .xp-desc { font-size: .84rem; } .xp-name { font-size: 1rem; font-stretch: 100%; } }
.xp-stage { margin-top: 20px; }
.xp-pane { border-radius: var(--r-lg); padding: clamp(18px, 3vw, 32px); background: var(--paper); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 12px); animation: panein .35s var(--ease); }
.xp-pane-dark { background: var(--night); border-color: var(--night); }
@keyframes panein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.xp-pane-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.xp-pane-head h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); outline: none; }
.xp-pane-head p { margin-top: 6px; color: var(--slate); }
.xp-pane-dark .xp-pane-head p { color: rgba(255,255,255,.68); }
.xp-close { flex: none; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-weight: 600; color: inherit; }
.xp-pane-dark .xp-close { border-color: rgba(255,255,255,.24); }
.xp-close:hover { border-color: currentColor; }
.auto-center { margin-top: 32px; border-top: 1px solid var(--night-line); padding-top: 20px; }
.auto-center summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; min-height: 44px; }
.auto-center summary::-webkit-details-marker { display: none; }
.auto-center summary::after { content: '+'; margin-left: auto; font-size: 1.5rem; font-weight: 400; color: rgba(255,255,255,.6); }
.auto-center[open] summary::after { content: '−'; }
.auto-center summary span { font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.55); }
.context-cta { margin-top: clamp(32px, 5vw, 48px); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; text-align: center; }
.context-cta p { font-weight: 600; font-size: 1.05rem; }

/* M360 asesor */
.m360-bubble-act { margin-top: 10px; min-height: 38px; padding: 8px 14px; border-radius: 999px; border: 0; background: var(--blue); color: #fff; font-weight: 600; font-size: .88rem; }
.m360-bubble p { margin: 0; }

/* Honeypot: fuera de pantalla, recortado y sin interacción */
.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* Ajustes V2 tras revisión visual */
.sb-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .sb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .sb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .sb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .sb-svg { max-height: 270px; }
  .sb-checks { max-height: 150px; }
  .sb-result { padding: 20px; }
}
@media (max-width: 640px) {
  .ba-copy .ba-chain { flex-direction: column; align-items: flex-start; gap: 0; }
  .ba-copy .ba-chain li { flex-direction: column; align-items: flex-start; }
  .ba-chain li:not(:last-child)::after { width: 2px; height: 10px; margin: 2px 0 2px 20px; }
}
