/* ==========================================================================
   peptalk — estilos
   1. Tokens  2. Base  3. Layout  4. Componentes  5. Secciones  6. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Alias locales sobre los tokens de marca (brand/tokens/tokens.css). */
  --bg: var(--pt-bg);
  --surface: var(--pt-surface);
  --sand: var(--pt-surface-muted);
  --line: var(--pt-border);
  --ink: var(--pt-text);
  --ink-2: var(--pt-text-soft);
  --ink-3: var(--pt-text-muted);
  --orange: var(--pt-color-brand-orange);
  --rust: var(--pt-color-support-rust);
  --peach: var(--pt-color-brand-orange-light);
  --peach-2: var(--pt-color-brand-amber);
  --cream: var(--pt-color-brand-cream);
  --dark: var(--pt-color-support-night);
  --dark-2: var(--pt-color-support-night-2);

  --r-sm: var(--pt-radius-sm);
  --r: var(--pt-radius-md);
  --r-lg: var(--pt-radius-lg);
  --r-xl: var(--pt-radius-xl);
  --shadow-1: var(--pt-shadow-sm);
  --shadow-2: var(--pt-shadow-lg);
  --ease: var(--pt-motion-ease);
  --wrap: var(--pt-layout-container);
  --nav-h: var(--pt-layout-nav-height);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--pt-font-family-sans); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--rust); }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; color: #fff; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* 3. Layout ---------------------------------------------------------------- */
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.section { padding-block: 104px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rust); margin-bottom: 12px; }
.kicker-light { color: var(--peach); }

/* 4. Componentes ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; transition: transform .15s var(--ease), filter .15s, background .15s; }
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; filter: brightness(1.25); }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { filter: brightness(.94); color: var(--ink); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; height: 52px; font-size: 15px; }
.btn-link { background: none; border: 0; color: var(--rust); font-weight: 600; font-size: 14px; padding: 6px 4px; }

.chip-sm { height: 32px; padding: 0 13px; font-size: 13px; }

.tag { display: inline-flex; height: 24px; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--cream); color: var(--rust); font-size: 12px; font-weight: 600; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.d-aprob { background: var(--ink); }
.d-inv { background: var(--peach); }
.d-noap { border: 2px solid var(--ink); }
.d-proh { background: var(--orange); }
.d-pend { border: 1.5px dashed #8F8F8F; }
.d-cosm { background: var(--peach-2); border: 1.5px solid #E09A50; }
.d-nolist { background: #C8C8C8; }


input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; padding: 12px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,106,0,.14); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
[aria-invalid="true"] { border-color: #C2410C !important; }

/* 5. Secciones -------------------------------------------------------------- */

/* Topbar + nav */
.topbar { background: var(--ink); color: #D8D2CA; font-size: 12.5px; text-align: center; padding: 9px 16px; }
.topbar a { color: var(--peach); margin-left: 6px; }
.nav { position: sticky; top: 0; z-index: 40; background: rgba(252,251,249,.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(26,26,26,.04); }
.nav-in { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--orange); border-radius: 2px; transform: scaleX(0); transition: transform .2s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { height: 40px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-left: auto; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: clip; padding: 72px 0 0; }
.hero-glow { position: absolute; inset: -200px -200px auto auto; width: 820px; height: 820px; background: radial-gradient(closest-side, rgba(255,176,102,.38), rgba(255,216,171,.18) 55%, transparent); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--cream); border: 1px solid var(--peach-2); color: var(--rust); font-size: 12.5px; font-weight: 600; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,106,0,.18); }
h1 { margin: 22px 0 20px; font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.hl { background: linear-gradient(100deg, var(--rust), var(--orange) 60%, #FF8A33); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 540px; }

.search { position: relative; margin-top: 32px; max-width: 560px; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow-1); transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--orange); box-shadow: 0 0 0 5px rgba(255,106,0,.12), var(--shadow-1); }
.search-ico { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.search input { border: 0 !important; box-shadow: none !important; height: 48px; padding: 0 12px; font-size: 16px; background: transparent; }
.kbd { font: 600 12px Inter, sans-serif; color: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; margin-right: 8px; }
.search-go { flex: none; width: 48px; height: 48px; border: 0; border-radius: 13px; background: var(--orange); color: var(--ink); display: grid; place-items: center; transition: filter .15s; }
.search-go:hover { filter: brightness(.94); }
.search-go svg { width: 20px; height: 20px; stroke-width: 2.2; }
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-2); }
.sugg li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.sugg li[aria-selected="true"], .sugg li:hover { background: var(--cream); }
.sugg b { font-size: 15px; }
.sugg small { color: var(--ink-3); font-size: 13px; }
.sugg .sugg-sys { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.sugg .sugg-empty { cursor: default; color: var(--ink-2); font-size: 14px; }
.sugg .sugg-empty:hover { background: none; }
.freq { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--ink-3); }

.hero-art { position: relative; min-height: 420px; display: grid; place-items: center; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(4deg); } }
.link { color: var(--rust); font-weight: 600; font-size: 14px; }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust > div { display: flex; gap: 14px; align-items: flex-start; }
.ti { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--cream); color: var(--rust); display: grid; place-items: center; }
.ti svg { width: 20px; height: 20px; }
.trust b { font-size: 15px; }
.trust p { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }

/* Sistemas */
#sistemas { padding-top: 104px; }
.dark-panel { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 50% 75%, rgba(255,106,0,.20), transparent 60%), linear-gradient(180deg, var(--dark-2), var(--dark)); color: #fff; border-radius: var(--r-xl); padding: 56px 48px 40px; }
.dp-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.dp-head .kicker { color: var(--peach); }
.dp-head p { max-width: 330px; color: rgba(255,255,255,.62); font-size: 15px; }
.dp-grid { display: grid; grid-template-columns: 280px 1fr 320px; gap: 24px; align-items: center; margin-top: 32px; }
.sys-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sys-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: rgba(255,255,255,.82); font-size: 14px; text-align: left; transition: background .15s, border-color .15s; }
.sys-list button:hover { background: rgba(255,255,255,.06); }
.sys-list button[aria-selected="true"] { background: rgba(255,106,0,.14); border-color: rgba(255,106,0,.45); color: #fff; }
.sys-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--peach); }
.sys-ic svg { width: 16px; height: 16px; }
[aria-selected="true"] .sys-ic { background: var(--orange); color: var(--ink); }
.sys-list .n { margin-left: auto; font-size: 12px; color: rgba(255,255,255,.45); font-variant-numeric: tabular-nums; }
.sys-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: 22px; backdrop-filter: blur(6px); }
.sys-card .top { display: flex; gap: 12px; align-items: center; }
.sys-card .sys-ic { width: 40px; height: 40px; background: var(--orange); color: var(--ink); }
.sys-card .sys-ic svg { width: 20px; height: 20px; }
.sys-card h3 { font-size: 20px; }
.sys-card .cnt { font-size: 13px; color: rgba(255,255,255,.55); }
.sys-card p { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.72); }
.sys-card .lbl { margin-top: 18px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.pep-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pep-pills button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; font-size: 12.5px; font-weight: 600; }
.pep-pills button:hover { border-color: var(--peach); }
.sys-card .btn { margin-top: 20px; width: 100%; }

/* Biblioteca */

@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 820px; }
th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; transition: background .12s; }
tbody tr:hover { background: var(--cream); }
td .st { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
td small { display: block; color: var(--ink-3); font-size: 12.5px; }

.empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--line); border-radius: var(--r); }
.empty p { color: var(--ink-3); margin: 6px 0 18px; }
.note { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 13px; color: var(--ink-3); }

/* Estados */
.band { margin-top: 104px; padding: 88px 0; background: linear-gradient(180deg, var(--cream), var(--bg)); border-block: 1px solid var(--line); }
.states { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 20px; align-items: start; }
.states-copy p { margin-top: 16px; color: var(--ink-2); }
.legend-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-1); }
.legend-card h3 { font-size: 16px; margin-bottom: 6px; }
.legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.legend li { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; font-size: 14px; }
.legend li small { grid-column: 2; color: var(--ink-3); font-size: 12.5px; }

/* Novedades */
.news { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.news-main { padding: 40px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.news-main > p { margin-top: 16px; color: var(--ink-2); max-width: 560px; }
.news-cats { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.news-cats li { display: flex; gap: 14px; align-items: center; font-size: 14.5px; color: var(--ink-2); }
.news-cats .tag { min-width: 104px; justify-content: center; }
.newsletter { padding: 40px; border-radius: var(--r-xl); background: radial-gradient(500px 260px at 100% 0, rgba(255,106,0,.35), transparent 60%), var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.newsletter h3 { font-size: 26px; letter-spacing: -.03em; }
.newsletter .muted { color: rgba(255,255,255,.6); margin-top: 8px; }
.nl-row { display: flex; gap: 8px; margin-top: 22px; }
.newsletter input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; height: 48px; border-radius: 999px; padding: 0 18px; }
.newsletter input::placeholder { color: rgba(255,255,255,.45); }
.newsletter .btn { height: 48px; }
.form-msg { margin-top: 12px; font-size: 13.5px; min-height: 1em; }
.newsletter .form-msg { color: var(--peach); }

/* Derivación */
.referral { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); }
.ref-copy { padding: 48px; background: linear-gradient(160deg, var(--dark-2), var(--dark)); color: #fff; }
.ref-copy > p { margin-top: 14px; color: rgba(255,255,255,.7); }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='3'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.isnot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.isnot div { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.isnot small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--peach); }
.isnot b { display: block; margin-top: 4px; font-size: 14px; }
.urg { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.7); }
.urg a { color: var(--peach); font-weight: 700; }
.steps { list-style: none; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 12px; font-size: 14px; }
.steps li { display: flex; gap: 12px; align-items: center; }
.steps span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 1px solid rgba(255,255,255,.3); }
.ref-form { padding: 48px; display: grid; gap: 14px; align-content: start; }
.ref-form h3 { font-size: 24px; letter-spacing: -.03em; margin-bottom: 4px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 13.5px; font-weight: 600; padding: 0; }
.field em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: -8px; }
.hint.row { display: flex; justify-content: space-between; margin-top: 0; }
.err { font-size: 12.5px; color: #C2410C; font-weight: 500; }
.err:empty { display: none; }
.mod { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.mod label { position: relative; }
.mod input { position: absolute; opacity: 0; }
.mod span { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, background .15s; cursor: pointer; }
.mod span small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
.mod input:checked + span { border-color: var(--orange); background: var(--cream); box-shadow: inset 0 0 0 1px var(--orange); }
.mod input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--orange); flex: none; }
.err-summary { padding: 12px 14px; border-radius: 12px; background: #FFF1E8; border: 1px solid #FDBA8C; font-size: 13.5px; color: #9A3412; }
.ref-form .form-msg { color: var(--ink-2); }

/* Guías */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; transition: border-color .15s, transform .2s var(--ease), box-shadow .2s; }
.guide:hover { border-color: var(--peach-2); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.guide .tag { align-self: flex-start; }
.guide h3 { font-size: 19px; line-height: 1.25; }
.guide .muted { margin-top: auto; }

/* Método */
.method { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.method li { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.method .num { display: block; font-size: 44px; font-weight: 800; letter-spacing: -.04em; background: linear-gradient(180deg, var(--orange), var(--peach-2)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; margin-bottom: 18px; }
.method p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }
.disclaimer { margin-top: 24px; padding: 22px 26px; border-radius: var(--r); background: var(--sand); display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.disclaimer b { color: var(--ink); }

/* Footer */
.foot { margin-top: 120px; background: var(--ink); color: #D8D2CA; padding: 64px 0 28px; }
.foot-in { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-brand img { height: 40px; width: auto; }
.foot-brand p { margin-top: 14px; font-size: 14px; color: #A8A19A; max-width: 260px; }
.foot h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.foot-in a { display: block; color: #D8D2CA; text-decoration: none; font-size: 14px; padding: 4px 0; }
.foot-in a:hover { color: var(--peach); }
.foot-b { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #8F8780; }

/* Drawer ficha */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(20,17,16,.45); backdrop-filter: blur(2px); animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--bg); box-shadow: -20px 0 60px rgba(0,0,0,.18); overflow-y: auto; padding: 32px; animation: slide .28s var(--ease) both; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-x { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.drawer-x svg { width: 18px; height: 18px; }
.drawer h2 { font-size: 36px; margin-top: 14px; }

/* Reveal al scrollear */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* 6. Responsive ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .dp-grid { grid-template-columns: 1fr 1fr; }
  .sys-list { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .states { grid-template-columns: 1fr 1fr; }
  .states-copy { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --nav-h: 62px; }
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.06); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .2s, opacity .2s; }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links a::after { display: none; }
  .nav-cta { display: none; }
  .burger { display: flex; }
  .hero { padding-top: 40px; }
  .hero-in { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { min-height: 0; }
  .trust { grid-template-columns: 1fr; gap: 18px; margin-top: 40px; }
  .section { padding-top: 80px; }
  #sistemas { padding-top: 80px; }
  .dark-panel { padding: 36px 20px 24px; border-radius: var(--r-lg); }
  .dp-head { flex-direction: column; align-items: start; gap: 12px; }
  .dp-grid { grid-template-columns: 1fr; }
  .sys-list { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
  .sys-list li { flex: none; }
  .sys-list button { white-space: nowrap; }
  .news, .referral, .guides, .method { grid-template-columns: 1fr; }
  .news-main, .newsletter, .ref-copy, .ref-form { padding: 28px 22px; }
  .states { grid-template-columns: 1fr; }
  .band { margin-top: 80px; padding: 64px 0; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .kbd { display: none; }
  .field-2, .isnot { grid-template-columns: 1fr; }
  .nl-row { flex-direction: column; }
  .drawer { padding: 24px 18px; }
  .topbar { font-size: 11.5px; }
}

/* 7. Componentes v2 ---------------------------------------------------------- */

/* Íconos Lucide (assets/icons.svg) */
.i { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.125em; fill: none; stroke: currentColor; }
.search-ico { width: 20px; height: 20px; color: var(--ink-3); }
.search-go .i { width: 20px; height: 20px; }
.ti .i { width: 20px; height: 20px; }
.drawer-x .i { width: 18px; height: 18px; }
.btn .i { width: 16px; height: 16px; }

.chip-sm { display: inline-flex; align-items: center; height: 32px; padding: 0 13px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; font-size: 13px; font-weight: 500; transition: border-color .15s; }
.chip-sm:hover { border-color: var(--ink); }

/* Ícono de sistema en baldosa con degradé de marca */
.sys-tile { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; color: #fff; background: radial-gradient(120% 120% at 25% 15%, #FFC66B 0%, #FF7A12 45%, #E63B00 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px rgba(255,106,0,.28); }
.sys-tile .i { width: 18px; height: 18px; stroke-width: 2; }
.sys-tile.sm { width: 28px; height: 28px; border-radius: 9px; }
.sys-tile.sm .i { width: 15px; height: 15px; }
.sys-tile.lg { width: 48px; height: 48px; border-radius: 15px; }
.sys-tile.lg .i { width: 24px; height: 24px; }

/* Medidor de evidencia */
.ev-meter { display: inline-flex; align-items: center; gap: 10px; }
.ev-meter .bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 21px; }
.ev-meter .bars i { width: 5px; border-radius: 2px; background: var(--sand); }
.ev-meter .bars i.on { background: linear-gradient(180deg, var(--orange), var(--rust)); }
.ev-meter.pending .bars i { background: transparent; box-shadow: inset 0 0 0 1.2px #B9B1A8; }
.ev-txt { display: grid; line-height: 1.2; }
.ev-txt b { font-size: 13px; }
.ev-txt small { font-size: 12px; color: var(--ink-3); }
.ev-mini { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.ev-A { background: var(--ink); color: #fff; } .ev-B { background: var(--rust); color: #fff; } .ev-C { background: var(--orange); color: var(--ink); }
.ev-D { background: var(--peach); color: var(--ink); } .ev-E { background: var(--peach-2); color: var(--ink); } .ev-none { background: var(--sand); color: var(--ink-2); }

/* Estados por agencia */
.ag-strip { display: flex; gap: 6px; flex-wrap: wrap; }
.ag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; letter-spacing: .03em; color: var(--ink-2); }
.ag-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ag-cell { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.ag-h { display: flex; align-items: center; gap: 6px; font-size: 12px; min-width: 0; }
.ag-h .i { width: 14px; height: 14px; color: var(--rust); }
.ag-h small { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-v { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; }

/* Desplegable de marca */
.bsel { position: relative; min-width: 0; }
.bsel-btn { width: 100%; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; font-size: 15px; transition: border-color .15s, box-shadow .15s, background .15s; }
.bsel-btn:hover { border-color: #D6CEC4; }
.bsel.open .bsel-btn, .bsel-btn:focus-visible { outline: none; border-color: var(--orange); box-shadow: var(--pt-shadow-focus); }
.bsel-btn[aria-invalid="true"] { border-color: #C2410C; }
.bsel-label { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.bsel-val { display: inline-flex; align-items: center; gap: 8px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bsel-chev { margin-left: auto; width: 16px; height: 16px; color: var(--ink-3); transition: transform .2s var(--ease); }
.bsel.open .bsel-chev { transform: rotate(180deg); }
.bsel-list { position: absolute; z-index: 35; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: 320px; max-height: 300px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2); outline: none; animation: pop .16s var(--ease) both; transform-origin: top left; }
.bsel.up .bsel-list { top: auto; bottom: calc(100% + 6px); transform-origin: bottom left; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.bsel-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 14px; cursor: pointer; }
.bsel-list li.active { background: var(--cream); }
.bsel-list li[aria-selected="true"] { font-weight: 600; }
.bsel-check { margin-left: auto; width: 16px; height: 16px; color: var(--rust); opacity: 0; }
.bsel-list li[aria-selected="true"] .bsel-check { opacity: 1; }
.bsel-compact .bsel-btn { height: 40px; border-radius: 999px; font-size: 13.5px; font-weight: 500; padding: 0 12px 0 14px; }
.bsel-compact.is-set .bsel-btn { background: var(--cream); border-color: var(--peach-2); }
.bsel-compact.is-set .bsel-label { color: var(--rust); }

/* Hero · ficha destacada */
.molecule { position: absolute; top: -26px; right: -10px; width: 210px; height: auto; filter: drop-shadow(0 30px 40px rgba(255,106,0,.22)); animation: float 7s ease-in-out infinite; z-index: 0; }
.spot { position: relative; z-index: 1; margin-top: 120px; width: min(100%, 420px); background: rgba(255,255,255,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.spot.swap .spot-body { animation: swap .45s var(--ease) both; }
@keyframes swap { from { opacity: 0; transform: translateX(10px); } }
.spot-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 0; }
.spot-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.spot-eyebrow .i { color: var(--rust); width: 15px; height: 15px; }
.spot-pager { display: flex; gap: 6px; }
.spot-pager button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--line); transition: width .25s var(--ease), background .2s; }
.spot-pager button[aria-current] { width: 22px; background: var(--orange); }
.spot-body { padding: 16px 20px 18px; display: grid; gap: 16px; }
.spot-id { display: flex; gap: 14px; align-items: center; }
.spot-sys { font-size: 12px; font-weight: 600; color: var(--rust); }
.spot-id h3 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.spot-id p { font-size: 13px; color: var(--ink-3); }
.spot-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line); }
.spot-cta { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: filter .15s; }
.spot-cta:hover { color: #fff; filter: brightness(1.3); }
.spot-cta .i { width: 15px; height: 15px; }
.spot-progress { height: 3px; background: var(--sand); }
.spot-progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--orange), var(--peach)); transform-origin: left; animation: progress 6s linear both; }
.spot-progress i.still { animation-play-state: paused; }
@keyframes progress { from { transform: scaleX(0); } }

/* Sistemas · cuerpo 3D */
.body-wrap { position: relative; display: grid; justify-items: center; }
.body-stage { position: relative; width: 100%; height: 600px; }
.body-stage canvas { display: block; touch-action: pan-y; }
.body-loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: rgba(255,255,255,.45); }
.body-hint { margin-top: 4px; font-size: 12.5px; color: rgba(255,255,255,.45); }
.body-markers { position: absolute; inset: 0; pointer-events: none; }
.marker { position: absolute; left: 0; top: 0; pointer-events: auto; width: 0; height: 0; padding: 0; border: 0; background: none; color: #fff; }
.marker-dot { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.65); backdrop-filter: blur(2px); transition: transform .2s var(--ease), background .2s, border-color .2s; }
.marker-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #fff; }
.marker:hover .marker-dot, .marker:focus-visible .marker-dot { transform: scale(1.25); border-color: var(--peach); }
.marker.on .marker-dot { background: rgba(255,106,0,.35); border-color: var(--orange); }
.marker.on .marker-dot::after { background: var(--orange); }
.marker.on .marker-dot::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--orange); animation: ring 1.8s ease-out infinite; }
@keyframes ring { to { transform: scale(2.6); opacity: 0; } }
.marker-label { position: absolute; left: 14px; top: -12px; white-space: nowrap; padding: 4px 9px; border-radius: 999px; background: rgba(20,17,16,.78); border: 1px solid rgba(255,255,255,.14); font-size: 11.5px; font-weight: 600; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s var(--ease); pointer-events: none; }
.marker:hover .marker-label, .marker:focus-visible .marker-label, .marker.on .marker-label { opacity: 1; transform: none; }
.sys-card .btn .i { margin-left: 2px; }

/* Sistemas · respaldo SVG (sin WebGL) */
.body-stage.is-svg svg { width: 100%; height: 100%; stroke: none; }
.body-stage .skin-fill { fill: url(#bdSkin); stroke: rgba(255,255,255,.2); stroke-width: 1.2; }
.body-stage .def { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 1; }
.body-stage .ctx { fill: rgba(255,255,255,.03); stroke: rgba(255,255,255,.1); stroke-width: .8; }
.body-stage .o { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.22); stroke-width: .9; transition: fill .3s, stroke .3s; }
.body-stage .line, .body-stage .rim { fill: none; }
.body-stage .bone { stroke-width: 4; stroke-linecap: round; }
.body-stage .thin { stroke-width: .6; }
.body-stage .sys { cursor: pointer; }
.body-stage .sys:hover .o { stroke: rgba(255,216,171,.6); }
.body-stage .sys.on { filter: url(#bdGlow); }
.body-stage .sys.on .o { fill: url(#bdHot); stroke: #FFD8AB; }
.body-stage .sys.on .line, .body-stage .sys.on .rim { fill: none; stroke: #FF8A33; stroke-width: 1.6; }

/* Biblioteca · barra de filtros */
.lib-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.lib-head p { margin-top: 8px; font-size: 14px; }
.lib-bar { position: relative; z-index: 5; margin-top: 28px; padding: 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-1); display: grid; gap: 12px; }
.lib-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mini-search { position: relative; flex: 1 1 240px; min-width: 200px; }
.mini-search .i { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.mini-search input[type=search] { height: 40px; padding-left: 40px; border-radius: 999px; background: var(--bg); font-size: 14px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); margin-left: auto; }
.seg button { width: 36px; height: 32px; border: 0; border-radius: 999px; background: transparent; display: grid; place-items: center; color: var(--ink-3); }
.seg button .i { width: 17px; height: 17px; }
.seg button.on { background: var(--ink); color: #fff; }
.chips-wrap { position: relative; margin: 0 -12px; padding-top: 12px; border-top: 1px solid var(--line); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 12px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 40px), transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 36px; padding: 0 6px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13.5px; font-weight: 500; line-height: 1; white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.chip .i { width: 15px; height: 15px; color: var(--rust); }
.chip:hover { border-color: var(--ink); }
.chip .n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--sand); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] .i { color: var(--peach); }
.chip[aria-pressed="true"] .n { background: var(--orange); color: var(--ink); }
.lib-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 32px; margin: 18px 0 14px; }
.lib-status .small { color: var(--ink-3); }
.lib-status .small b { color: var(--ink); }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.af { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 11px; border-radius: 999px; border: 1px solid var(--peach-2); background: var(--cream); color: var(--rust); font-size: 12.5px; font-weight: 600; }
.af .i { width: 13px; height: 13px; }
.af:hover { border-color: var(--rust); }
#clearAll { display: inline-flex; align-items: center; gap: 6px; }
#clearAll .i { width: 14px; height: 14px; }

/* Biblioteca · tarjetas */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .15s, box-shadow .2s var(--ease), transform .2s var(--ease); animation: rise .35s var(--ease) both; }
.card:hover { border-color: var(--peach-2); box-shadow: 0 18px 40px rgba(26,26,26,.08); transform: translateY(-3px); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.card-band { position: relative; display: flex; align-items: center; gap: 10px; padding: 16px 16px 14px; background: linear-gradient(135deg, var(--cream), #FFE9D2); overflow: hidden; }
.card-mark { position: absolute; right: -14px; top: -18px; width: 96px; height: 96px; color: var(--orange); opacity: .1; stroke-width: 1.4; transition: transform .4s var(--ease), opacity .3s; }
.card:hover .card-mark { transform: rotate(-8deg) scale(1.06); opacity: .16; }
.card-sys { font-size: 12.5px; font-weight: 600; color: var(--rust); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-band .ev-meter { position: relative; }
.card-main { display: grid; gap: 2px; padding: 14px 16px 0; }
.card-main h3 { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.card-main .alias { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-type { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.card-type .i { color: var(--ink-3); }
.card .ag-strip { padding: 14px 16px 0; }
.card-f { display: flex; justify-content: space-between; align-items: center; margin: 14px 16px 16px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--ink-3); }
.verif { display: inline-flex; align-items: center; gap: 6px; }
.go { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.card:hover .go { background: var(--orange); border-color: var(--orange); }
.t-pep { display: flex; align-items: center; gap: 10px; }
.sugg li .sys-tile { flex: none; }

/* Leyenda */
.legend li .ev-meter { grid-row: span 1; }

/* Ficha (drawer) */
.drawer { padding: 0; }
.drawer-x { z-index: 2; }
.d-hero { position: relative; padding: 32px 28px 24px; background: linear-gradient(160deg, var(--cream), #FFE4C6); overflow: hidden; }
.d-hero .card-mark { width: 200px; height: 200px; right: -40px; top: -30px; opacity: .1; }
.crumbs { position: relative; font-size: 12.5px; color: var(--ink-3); }
.d-id { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.d-id h2 { font-size: 34px; font-weight: 800; letter-spacing: -.035em; }
.d-id .alias { color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.badges { position: relative; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.badges .tag, .badges .rev { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.badges .tag { background: var(--surface); color: var(--rust); }
.badges .tag-ghost { background: rgba(255,255,255,.55); color: var(--ink-2); }
.badges .rev { border: 1px dashed #B5ADA4; color: var(--ink-2); }
.badges .i { width: 14px; height: 14px; }
.d-stats { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; padding: 20px 28px 0; }
.d-stats > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; gap: 8px; align-content: start; }
.d-stats small { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.d-stats .big { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.d-stats .big span { font-size: 16px; color: var(--ink-3); font-weight: 600; }
.d-block { margin: 20px 28px 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.d-block h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 14px; }
.d-block h3 .i { color: var(--rust); width: 17px; height: 17px; }
.d-block p { font-size: 14.5px; color: var(--ink-2); }
.d-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 13px !important; color: var(--ink-3) !important; }
.d-note .i { margin-top: 2px; }
.d-cta { display: flex; gap: 14px; margin: 20px 28px 0; padding: 22px; border-radius: var(--r); background: var(--ink); color: #fff; }
.d-cta-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,106,0,.18); color: var(--peach); }
.d-cta-ic .i { width: 20px; height: 20px; }
.d-cta p { color: rgba(255,255,255,.7); font-size: 14px; margin: 6px 0 16px; }
.d-foot { margin: 18px 28px 28px; font-size: 12.5px; color: var(--ink-3); }

@media (max-width: 900px) {
  .molecule { width: 140px; right: 0; top: -30px; }
  .spot { margin-top: 70px; width: 100%; }
  .body-stage { height: 480px; }
  .lib-row .filters { order: 3; width: 100%; }
  .seg { margin-left: 0; }
}
@media (max-width: 560px) {
  .filters .bsel { flex: 1 1 calc(50% - 8px); }
  .bsel-list { max-width: calc(100vw - 48px); }
  .ag-grid { grid-template-columns: 1fr 1fr; }
  .d-hero { padding: 28px 18px 20px; }
  .d-stats { grid-template-columns: 1fr; padding: 18px 18px 0; }
  .d-block, .d-cta { margin-inline: 18px; }
  .d-foot { margin-inline: 18px; }
  .spot-foot { flex-wrap: wrap; }
}
.lib-bar > * { min-width: 0; }
.card .ag-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.card .ag { justify-content: center; padding: 0 4px; gap: 5px; font-size: 11px; letter-spacing: .02em; }
.d-stats .ev-txt small { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12px; }
.dp-grid > * { min-width: 0; }
.body-stage { overflow: hidden; }
.body-stage canvas { width: 100% !important; }
.lib-row > * { min-width: 0; }

/* 8. Banner + hoja redondeada + barra flotante -------------------------------- */
.topbar { position: relative; padding: 10px 16px 26px; background: radial-gradient(600px 80px at 50% 0, rgba(255,106,0,.35), transparent 70%), var(--dark); color: #E9E2DA; font-size: 13px; }
.topbar p { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.tb-cta { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px 0 13px; border-radius: 999px; background: var(--orange); color: var(--ink) !important; font-weight: 600; text-decoration: none; margin: 0 !important; transition: filter .15s; }
.tb-cta:hover { filter: brightness(1.08); }
.tb-cta .i { width: 15px; height: 15px; }
.nav { position: relative; top: auto; z-index: 3; margin-top: -16px; border-radius: 22px 22px 0 0; background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; }
.nav.scrolled { box-shadow: none; }

.pillbar { position: fixed; z-index: 50; top: 14px; left: 50%; width: min(1120px, calc(100% - 24px)); transform: translate(-50%, -150%); opacity: 0; pointer-events: none; transition: transform .5s var(--ease), opacity .3s; }
.pillbar.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.pill { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 62px; padding: 0 9px 0 26px; border-radius: 999px; background: rgba(20,17,16,.74); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 50px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.06); color: #fff; }
.pill-links { display: flex; gap: 26px; }
.pill-links a { color: rgba(255,255,255,.82); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .15s; }
.pill-links a:hover, .pill-links a.active { color: #fff; }
.pill-brand img { height: 28px; width: auto; display: block; }
.pill-actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.pill-ic { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #fff; transition: background .15s; }
.pill-ic:hover { background: rgba(255,255,255,.1); }
.pill-ic .i { width: 19px; height: 19px; }
.pill-cta { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; transition: transform .15s var(--ease); }
.pill-cta:hover { color: var(--ink); transform: scale(1.03); }
.pill-menu { width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--orange); color: var(--ink); transition: background .2s, transform .2s var(--ease); }
.pill-menu:hover { transform: rotate(90deg); }
.pill-menu[aria-expanded="true"] { background: var(--peach); transform: rotate(90deg); }
.pill-menu .i { width: 20px; height: 20px; stroke-width: 2.4; }
.pill-panel { margin: 10px 0 0 auto; width: min(560px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; border-radius: 26px; background: rgba(20,17,16,.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 24px 60px rgba(0,0,0,.3); animation: pop .2s var(--ease) both; transform-origin: top right; }
.pill-panel a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; color: #fff; text-decoration: none; transition: background .15s; }
.pill-panel a:hover { background: rgba(255,255,255,.07); color: #fff; }
.pill-panel a > .i { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: rgba(255,106,0,.16); color: var(--peach); }
.pill-panel b { display: block; font-size: 14px; }
.pill-panel small { display: block; font-size: 12.5px; color: rgba(255,255,255,.55); }

.foot-social { margin-top: 18px; }
.foot-social a { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; transition: background .15s, border-color .15s; }
.foot-social a:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: #fff; }
.foot-social .x-logo { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .topbar { font-size: 12px; padding: 9px 12px 24px; }
  .tb-txt { display: none; }
  .pill { grid-template-columns: auto 1fr; padding: 0 7px 0 20px; height: 58px; }
  .pill-links, .pill-ic { display: none; }
  .pill-brand { grid-column: 1; grid-row: 1; }
  .pill-cta { height: 42px; padding: 0 16px; font-size: 14px; }
  .pill-panel { grid-template-columns: 1fr; width: 100%; max-height: calc(100vh - 110px); overflow-y: auto; }
  .nav-links { top: calc(var(--nav-h) + 40px); }
}
.ag-detail { grid-template-columns: 1fr; }
.ag-detail .ag-cell { gap: 8px; }
.ag-note { font-size: 13px !important; line-height: 1.45; color: var(--ink-2) !important; }
.ag-src { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; text-decoration: none; word-break: break-word; }
.ag-src .i { width: 13px; height: 13px; }
.refs { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 13.5px; }
.refs a { font-weight: 600; text-decoration: none; }
.refs a:hover { text-decoration: underline; }
.refs small { display: block; color: var(--ink-3); font-size: 12px; }
.d-review { display: flex; gap: 8px; align-items: flex-start; margin: 20px 28px 0; padding: 12px 14px; border-radius: 12px; background: var(--sand); font-size: 12.5px; color: var(--ink-2); }
.d-review .i { margin-top: 2px; flex: none; color: var(--rust); }
@media (max-width: 560px) { .d-review { margin-inline: 18px; } }
