/* Sobtree — Consultoría IA × Salesforce
   Dirección «Foco»: azul marino y blanco, Open Sans, bordes redondeados. Guía completa en DESIGN.md. */
:root {
  --bg: #050F2C;
  --bg-alt: #0A1A42;
  --bg-deep: #030A1F;
  --panel: #0C1F4F;
  --panel-2: #1A3F8C;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .24);
  --white: #FFFFFF;
  --text-2: #D4DEF4;
  --text-3: #8FA2CC;
  --accent: #6AA2FF;
  --accent-2: #9CC2FF;
  --accent-rgb: 106, 162, 255;
  --ok: #3CCF9A;
  --paper: #FFFFFF;
  --paper-2: #EEF3FC;
  --ink: #050F2C;
  --ink-2: #3E5079;

  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 32px);
  --r: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .65);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--white);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: inherit; letter-spacing: -0.03em; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--bg); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.dot-accent { color: var(--accent); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 16px; line-height: 1;
  text-decoration: none; border-radius: 999px; padding: 16px 26px;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--white); color: var(--ink); }
.btn-primary:hover { background: #E6EEFF; }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--panel-2); }
.btn-sm { padding: 12px 20px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 15, 44, .86);
  backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--white); }
.brand-word { font-size: 26px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.brand-word .dot-accent { color: var(--accent); }
.brand-bar { width: 1px; height: 26px; background: rgba(255, 255, 255, .3); }
.brand-sf { height: 46px; width: auto; margin: -8px -4px; }
.brand-tag { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--text-2); transition: color .15s; }
.nav a:hover { color: var(--white); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: none; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, top .2s; }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; padding: 8px var(--gutter) 22px; border-bottom: 1px solid var(--line); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { text-decoration: none; padding: 13px 0; font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 14px; }

/* ---------- Portada «Foco» ---------- */
.foco { position: relative; overflow: hidden; padding: clamp(28px, 4.5vh, 48px) 0 clamp(24px, 3.5vh, 36px); }
.foco-spot {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(520px circle at var(--px, 50%) var(--py, 30%), rgba(var(--accent-rgb), .22), transparent 60%);
}
.foco.is-live .foco-spot { opacity: 1; }
.foco-copy { position: relative; max-width: 1040px; margin: 0 auto; text-align: center; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.foco h1 {
  margin-top: 16px; font-size: clamp(38px, 5.2vw, 76px); font-weight: 800; line-height: 1.0; letter-spacing: -0.045em;
  transform: translateX(var(--shift, 0px)); transition: transform .25s ease-out;
}
.hl { position: relative; color: var(--accent); white-space: nowrap; }
.hl svg { position: absolute; left: 0; right: 0; bottom: -0.16em; width: 100%; height: .28em; overflow: visible; }
.hl path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.1s .35s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.foco-sub { margin: 20px auto 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--text-2); max-width: 38em; }
.foco-actions { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Diagrama */
.flow { position: relative; margin-top: clamp(28px, 4.5vh, 44px); }
.flow-nodes { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.flow-nodes li { flex: 1 1 0; min-width: 0; display: flex; transition: flex-grow .45s var(--ease); }
.flow-nodes li.on { flex-grow: 2.2; }
.flow-node {
  width: 100%; text-align: left; font: inherit; color: var(--white); cursor: pointer;
  padding: 18px 22px; border-radius: 24px; background: var(--panel); border: 1px solid #18306B;
  transition: background-color .3s ease, border-color .3s ease;
}
.flow-nodes li.on .flow-node { background: var(--panel-2); border-color: var(--accent); }
.flow-k { display: block; font-size: 12px; font-weight: 700; color: var(--accent-2); }
.flow-name { display: block; margin-top: 4px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.flow-text { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--text-2); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s var(--ease), opacity .3s ease; }
.flow-nodes li.on .flow-text { max-height: 6em; opacity: 1; }
.flow-wire { height: 2px; margin: 0 24px; background-color: #12275A; background-image: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: wire 1.8s linear infinite; }
@keyframes wire { from { background-position: -40% 0; } to { background-position: 140% 0; } }

/* Cómo lo hacemos */
.how-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.how {
  text-decoration: none; color: var(--white); padding: 20px 22px; border-radius: 26px; background: var(--panel);
  display: flex; align-items: center; gap: 16px;
  transition: transform .3s var(--ease), background-color .3s ease, color .3s ease;
}
.how:hover { transform: translateY(-8px) rotate(-.6deg); background: var(--white); color: var(--ink); }
.how-n { font-size: 36px; font-weight: 800; letter-spacing: -0.04em; white-space: nowrap; line-height: 1; }
.how-t { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; color: var(--text-2); transition: color .3s ease; }
.how-t b { display: block; font-size: 16px; color: var(--white); transition: color .3s ease; }
.how:hover .how-t { color: var(--ink-2); }
.how:hover .how-t b { color: var(--ink); }
.how-go { font-size: 13.5px; font-weight: 700; color: var(--accent-2); white-space: nowrap; transition: color .2s ease, transform .2s ease; }
.how:hover .how-go { color: var(--ink); transform: translateX(4px); }

/* Confianza */
.trust { margin-top: 22px; display: flex; align-items: center; gap: 20px; }
.trust-label { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.trust-track { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.trust-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; width: max-content; animation: marquee 36s linear infinite; }
.trust:hover .trust-list { animation-play-state: paused; }
.trust-list li { padding: 9px 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.trust-list img { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: .75; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Artículos en portada ---------- */
.reads { position: relative; background: var(--paper); color: var(--ink); border-radius: var(--r-xl) var(--r-xl) 0 0; }
.reads .wrap { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(56px, 7vw, 96px); }
.reads-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.reads-head h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.035em; }
.reads-head a { font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; }
.reads-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.feature { grid-column: span 7; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 14px; }
.cover { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--bg); }
.cover img, .cover svg { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feature:hover .cover img, .feature:hover .cover svg, .item:hover .thumb svg, .item:hover .thumb img { transform: scale(1.05); }
.line-tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #1F4FA8; }
.feature-title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
.feature-sum { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.feature:hover .feature-title { color: #1F4FA8; }
.reads-list { grid-column: span 5; display: flex; flex-direction: column; }
.reads-list > p { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6A7BA3; }
.item { padding: 16px 8px; border-top: 1px solid #DCE4F4; text-decoration: none; color: var(--ink); display: flex; gap: 16px; align-items: center; border-radius: 12px; transition: background-color .2s ease, padding-left .2s ease; }
.item:last-child { border-bottom: 1px solid #DCE4F4; }
.item:hover { background: var(--paper-2); padding-left: 16px; }
.thumb { width: 96px; height: 68px; flex: none; border-radius: 14px; overflow: hidden; background: var(--bg); }
.thumb svg, .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.item-title { display: block; margin-top: 4px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.item-meta { display: block; margin-top: 4px; font-size: 13px; color: #6A7BA3; }

/* ---------- Asistente ---------- */
.assist { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; width: 380px; max-width: calc(100% - 32px); }
.assist[hidden] { display: none; }
.assist-card { width: 100%; padding: 22px; background: var(--paper); color: var(--ink); border-radius: 28px 28px 8px 28px; box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .7); animation: pop .35s var(--ease) both; }
.assist-card[hidden] { display: none; }
.assist-card { position: relative; }
.assist-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--paper-2); color: var(--ink); font: inherit; font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background-color .2s ease; }
.assist-close:hover { background: #DCE4F4; }
.assist-k { padding-right: 36px; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.assist-k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1F4FA8; }
.assist-title { margin-top: 8px; font-size: 26px; line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; }
.assist-form { margin-top: 14px; display: flex; gap: 8px; }
.assist-form input { flex: 1; min-width: 0; padding: 13px 16px; border: 1.5px solid #D4DEF4; border-radius: 999px; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.assist-form input:focus { border-color: var(--accent); }
.assist-form button { width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; background: var(--ink); color: #fff; font: inherit; font-size: 20px; cursor: pointer; }
.assist-note { margin-top: 8px; font-size: 12px; color: #5D6E95; }
.assist-note a { color: #5D6E95; }
.assist-fab { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--accent); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 16px 40px -12px rgba(var(--accent-rgb), .7); transition: transform .2s ease; }
.assist-fab:hover { transform: scale(1.06); }
.assist-fab svg { width: 24px; height: 24px; }
.ask-box { display: flex; gap: 8px; padding: 6px; border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.ask-box input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--bg); outline: none; }
.ask-box input::placeholder { color: #5a6b7b; }
.ask-box .btn-primary { background: var(--bg); color: #fff; }
.ask-box .btn-primary:hover { background: var(--panel-2); }
.ask-box:focus-within { box-shadow: 0 0 0 3px rgba(156,194,255,.55), 0 10px 30px -12px rgba(0,0,0,.5); }
.ask-chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ask-chips button { font: inherit; font-size: 13.5px; font-weight: 500; color: var(--text-2); background: rgba(255,255,255,.05); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.ask-chips button:hover { color: #fff; border-color: var(--accent); }

.chat { width: min(720px, calc(100% - 32px)); max-height: min(86vh, 860px); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--bg-alt); color: var(--white); box-shadow: 0 40px 90px -20px rgba(0,0,0,.7); }
.chat[open] { display: flex; flex-direction: column; }
.chat::backdrop { background: rgba(3, 10, 31, .65); backdrop-filter: blur(3px); }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-head p { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.chat-tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(var(--accent-rgb),.18); color: var(--accent-2); }
.chat-close { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-strong); background: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 160px; }
.msg { flex-shrink: 0; max-width: 92%; padding: 12px 15px; border-radius: 14px; font-size: 15.5px; line-height: 1.55; }
.msg p + p, .msg ul { margin-top: 8px; }
.msg ul { padding-left: 1.2em; }
.msg.user { align-self: flex-end; background: var(--white); color: var(--bg); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.bot sup a { display: inline-block; min-width: 16px; margin-left: 2px; padding: 0 4px; border-radius: 5px; background: rgba(var(--accent-rgb),.2); color: var(--accent-2); font-size: 11px; font-weight: 700; text-align: center; text-decoration: none; }
.msg-sources { margin: 12px 0 0; padding: 10px 0 0 1.4em; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); }
.msg-sources a { color: var(--accent-2); }
.msg.offer { align-self: flex-start; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: rgba(var(--accent-rgb),.14); border: 1px solid rgba(156,194,255,.35); }
.msg.error { align-self: flex-start; background: rgba(224, 48, 96, .12); border: 1px solid rgba(224, 48, 96, .4); }
.msg.typing { display: flex; gap: 5px; padding: 16px; }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: blink 1.2s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .2s; }
.msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-form { margin: 0 14px; }
.chat-foot { padding: 10px 18px 14px; font-size: 12px; color: var(--text-3); }
.chat-foot a { color: var(--text-2); }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--accent-2); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.section h2 { margin-top: 14px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.section-sub { margin-top: 16px; font-size: 18px; color: var(--text-2); max-width: 40em; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 16px; }
.card-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .14); margin-bottom: 20px; }
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Oferta */
.offer { display: grid; grid-template-columns: 1.6fr 1fr; margin-top: 48px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.offer-main { padding: clamp(28px, 4vw, 44px); background: var(--panel); }
.offer-main h3 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; margin: 16px 0 14px; }
.offer-main > p { color: var(--text-2); max-width: 38em; }
.badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(60, 207, 154, .16); border: 1px solid rgba(60, 207, 154, .45); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-size: 16px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: rgba(60, 207, 154, .18); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 7px; height: 4px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.offer-side { padding: clamp(28px, 4vw, 40px); background: var(--bg-deep); display: flex; flex-direction: column; gap: 22px; }
.offer-facts { margin: 0; display: grid; gap: 0; }
.offer-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.offer-facts dt { color: var(--text-3); font-size: 15px; }
.offer-facts dd { margin: 0; font-weight: 700; text-align: right; }
.fine { font-size: 13.5px; color: var(--text-3); text-align: center; }
.services { margin-top: 20px; }
.svc { display: flex; flex-direction: column; }
.svc p { flex: 1; }
.svc-meta { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--accent-2); }

/* Casos de uso */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.tabs button {
  font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--text-2);
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 18px; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.tabs button:hover { color: #fff; border-color: #fff; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--bg); border-color: #fff; }
.uc-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.uc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; animation: ucIn .35s ease both; }
.uc:nth-child(2) { animation-delay: .05s; }
.uc:nth-child(3) { animation-delay: .1s; }
@keyframes ucIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.uc-area { font-size: 13px; font-weight: 600; color: var(--accent-2); }
.uc h3 { font-size: 19px; font-weight: 700; margin: 10px 0 10px; }
.uc p { color: var(--text-2); font-size: 15.5px; flex: 1; }
.uc-kpis { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.uc-kpis li { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 6px; background: rgba(255,255,255,.07); }

/* ROI */
.roi-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.roi-card { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 36px); box-shadow: var(--shadow); display: grid; gap: 22px; }
.field-range { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: baseline; }
.field-range label { font-size: 15px; font-weight: 500; color: var(--text-2); }
.field-range output { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.field-range input { grid-column: 1 / -1; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), rgba(255,255,255,.14) var(--p, 50%)); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); }
.roi-out { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; padding: 22px; border-radius: var(--r); background: var(--bg-deep); }
.roi-k { display: block; font-size: 13px; color: var(--text-3); }
.roi-v { display: block; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.roi-v.sm { font-size: clamp(20px, 2.2vw, 24px); }

/* Pasos */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: rgba(var(--accent-rgb),.45); }
.steps li { position: relative; }
.step-n { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 17px; background: var(--bg-alt); border: 2px solid var(--accent); }
.steps li:first-child .step-n { background: var(--accent); color: var(--bg); }
.step-w { display: block; margin-top: 22px; font-size: 13.5px; font-weight: 600; color: var(--accent-2); }
.steps h3 { font-size: 21px; font-weight: 700; margin: 6px 0 10px; }
.steps p { color: var(--text-2); font-size: 15.5px; padding-right: 8px; }

/* Comparativa */
.cmp-wrap { margin-top: 48px; overflow-x: auto; }
.cmp { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; font-size: 16px; }
.cmp th, .cmp td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp thead th { font-size: 16px; font-weight: 700; color: var(--text-2); padding-top: 22px; }
.cmp tbody th { text-align: left; font-weight: 500; color: var(--text-2); }
.cmp .cmp-us { background: rgba(var(--accent-rgb), .1); color: #fff; }
.cmp thead .cmp-us { border-radius: 12px 12px 0 0; font-weight: 800; font-size: 17px; }
.cmp tbody tr:last-child .cmp-us { border-radius: 0 0 12px 12px; }
.dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent-2); vertical-align: middle; }
.dot.d3 { background: var(--accent-2); }
.dot.d2 { background: linear-gradient(90deg, var(--accent-2) 50%, transparent 50%); }
.dot.d1 { background: transparent; }
.cmp-legend { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--text-3); }
.cmp-legend .dot { width: 12px; height: 12px; margin-left: 10px; }
.cmp-legend .dot:first-child { margin-left: 0; }

/* Autodiagnóstico */
.diag-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.diag-head { position: sticky; top: 110px; }
.diag-box { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 36px); box-shadow: var(--shadow); min-height: 420px; }
.diag-progress { height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.diag-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .35s ease; }
.diag-count { margin-top: 16px; font-size: 14px; color: var(--text-3); }
.diag-question { font-size: clamp(21px, 2.2vw, 25px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin: 6px 0 22px; }
.diag-opts { display: grid; gap: 10px; }
.diag-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  font-family: var(--font); font-size: 16px; font-weight: 500; color: #fff;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-strong); border-radius: 12px; padding: 15px 16px; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.diag-opt:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.diag-opt[aria-pressed="true"] { border-color: var(--accent); background: rgba(var(--accent-rgb),.16); }
.diag-opt .k { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.1); }
.diag-nav { margin-top: 20px; min-height: 40px; }
.diag-result:focus { outline: none; }
.r-level { font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin-top: 10px; }
.gauge { height: 10px; border-radius: 10px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 18px; }
.gauge span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 10px; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.r-score { margin-top: 10px; font-size: 14px; color: var(--text-3); }
.r-score span { font-weight: 800; color: #fff; }
.diag-result > p:not(.eyebrow):not(.r-level):not(.r-score) { margin-top: 16px; color: var(--text-2); }
.r-rec { padding: 16px 18px; border-radius: 12px; background: var(--bg-deep); border-left: 3px solid var(--ok); color: #fff !important; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.faq { border-bottom: 1px solid var(--line); }
.faq:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 22px 44px 22px 0; font-size: 17.5px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 28px; width: 10px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(-135deg); top: 32px; }
.faq p { padding: 0 0 24px; color: var(--text-2); max-width: 44em; }

/* Contacto */
.section-cta { background: var(--bg-alt); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.contact-points li { position: relative; padding-left: 30px; color: var(--text-2); }
.contact-points li::before { content: ""; position: absolute; left: 0; top: 4px; width: 19px; height: 19px; border-radius: 50%; background: rgba(60,207,154,.18); }
.contact-points li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 7px; height: 4px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.contact-mail { margin-top: 28px; color: var(--text-3); font-size: 15.5px; }
.contact-mail a { color: #fff; font-weight: 600; }
.contact { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 36px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.contact input:not([type="checkbox"]), .contact select, .contact textarea {
  font-family: var(--font); font-size: 16px; color: #fff; width: 100%;
  background: var(--bg-deep); border: 1px solid var(--line-strong); border-radius: 10px; padding: 13px 14px; resize: vertical;
  transition: border-color .15s;
}
.contact select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.contact select option { background: var(--bg); color: #fff; }
.contact input:focus, .contact select:focus, .contact textarea:focus { outline: none; border-color: var(--accent); }
.contact [aria-invalid="true"] { border-color: #ff8a80 !important; }
.consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 12px !important; font-weight: 400 !important; font-size: 14px !important; line-height: 1.5; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.consent a { color: #fff; }
.consent.invalid span { color: #ffb4ab; }
.hp { position: absolute !important; left: -9999px; }
.contact .btn { justify-self: start; }
.form-status { font-size: 15px; min-height: 1.5em; color: var(--text-2); }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #ffb4ab; }

/* Pie */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid nav, .footer-grid > div { display: flex; flex-direction: column; gap: 10px; }
.footer-h { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.footer-grid a:not(.brand) { text-decoration: none; color: var(--text-3); font-size: 15px; }
.footer-grid a:not(.brand):hover { color: #fff; }
.footer-note { color: var(--text-3); font-size: 15px; max-width: 26em; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; padding-bottom: 12px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 14px; }
.footer-bottom a { color: var(--text-3); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.trademark { color: rgba(255,255,255,.4); font-size: 12.5px; padding-bottom: 32px; }


/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: block; margin-left: 0; }
  .header-cta { margin-left: auto; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .flow-nodes { flex-wrap: wrap; }
  .flow-nodes li, .flow-nodes li.on { flex: 1 1 calc(50% - 6px); }
  .flow-text { max-height: 6em; opacity: 1; }
  .flow-wire { display: none; }
}
@media (max-width: 960px) {
  .roi-grid, .diag-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; }
  .grid-3, .uc-panel, .how-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .diag-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature, .reads-list { grid-column: 1 / -1; }
  .how { padding: 16px 18px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand { gap: 10px; }
  .brand-word { font-size: 23px; }
  .brand-bar { height: 22px; }
  .brand-sf { height: 40px; margin: -8px -4px; }
  .brand-tag { font-size: 12px; }
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .foco-copy { text-align: left; }
  .foco-actions { justify-content: stretch; }
  .foco-actions .btn { flex: 1 1 100%; }
  .flow-nodes { gap: 8px; }
  .flow-nodes li { flex: 1 1 calc(50% - 4px); }
  .flow-nodes li.on { flex: 1 1 100%; }
  .flow-node { padding: 14px 16px; border-radius: 18px; }
  .flow-name { font-size: 17px; }
  .flow-text { max-height: 0; opacity: 0; }
  .flow-nodes li.on .flow-text { max-height: 8em; opacity: 1; }
  .how-n { font-size: 30px; min-width: 3.4ch; }
  .how-go { display: none; }
  .how-t { font-size: 15px; }
  .trust { flex-direction: column; align-items: flex-start; gap: 10px; }
  .trust-track { width: 100%; }
  .assist { right: 16px; bottom: 16px; }
  .chat { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border-radius: 0; border: 0; }
  .ask-box .btn { padding: 10px 14px; }
  .grid-4, .steps, .row-2 { grid-template-columns: 1fr; }
  .roi-out { grid-template-columns: 1fr 1fr; }
  .roi-out > div:first-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .thumb { width: 80px; height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .hl path { stroke-dashoffset: 0; }
  .foco-spot { display: none; }
  .foco h1 { transform: none; }
}

/* ---------- Análisis (páginas de contenido) ---------- */
.page-title { font-size: clamp(32px, 4vw, 48px); font-weight: 800; margin-top: 12px; }
.post-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 18px; }
.post-list a { text-decoration: none; }
.post-list a:hover h2 { color: var(--accent-2); }
.post-list h2 { font-size: 22px; font-weight: 700; }
.post-list p { margin-top: 10px; color: var(--text-2); }
.prose { max-width: 760px; }
.prose .back { display: block; width: fit-content; margin-bottom: 28px; color: var(--text-3); text-decoration: none; }
.prose .back:hover { color: var(--white); }
.prose h1 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 800; margin-top: 14px; }
.prose-meta { margin-top: 14px; font-size: 14.5px; color: var(--text-3); }
.prose-body { margin-top: 36px; }
.prose-body h2 { font-size: 26px; font-weight: 700; margin-top: 48px; }
.prose-body h3 { font-size: 20px; font-weight: 700; margin-top: 32px; }
.prose-body p, .prose-body li { color: var(--text-2); margin-top: 16px; }
.prose-body ul, .prose-body ol { padding-left: 1.3em; }
.prose-body a { color: var(--accent-2); }
.prose-body strong { color: var(--white); }
.prose-body code { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.prose-body blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); }
.prose-body table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 15px; }
.prose-body th, .prose-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose-cta { margin-top: 56px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.prose-cta p { font-weight: 600; }

/* Asistente: sugerencias dentro del diálogo */
.chat-chips { margin: 0 14px 10px; }
.chat-chips[hidden] { display: none; }
.section-sub a { color: var(--accent-2); }
