/* BrandestBot — sistema visual del sitio · Manual de marca v2.0 (oct. 2026)
   Un solo verde (menta del logo), petróleo de fondo, coral solo para el problema, Archivo como única familia. */

/* ---------- Tokens ---------- */
:root {
  --petroleo-900: #04232B;
  --petroleo-800: #0B3139;
  --petroleo-700: #12404A;
  --menta-400: #7CCBC4;
  --menta-200: #BFE7E1;
  --menta-050: #E3F1EC;
  --menta-700: #1B706A;
  --coral-500: #FF5A2B;
  --coral-700: #C2462A;
  --hueso: #F4F6F5;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-pill: 999px;
  --maxw: 1200px;
  --gutter: 40px;
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

/* Tema Noche (por defecto) */
:root, .t-dark {
  --surface: var(--petroleo-900);
  --surface-raised: var(--petroleo-800);
  --surface-sunken: var(--petroleo-700);
  --ink: var(--hueso);
  --ink-muted: #A7C2BD;
  --accent: var(--menta-400);
  --on-accent: var(--petroleo-900);
  --accent-text: var(--menta-400);
  --signal: var(--coral-500);
  --on-signal: var(--petroleo-900);
  --line: #1D4A52;
  --line-glow: rgba(124, 203, 196, 0.35);
  --focus: var(--menta-200);
  --glow: 0 0 0 1px rgba(124, 203, 196, 0.35), 0 0 32px rgba(124, 203, 196, 0.22);
  --lift: 0 24px 48px rgba(0, 0, 0, 0.35);
  --bone: var(--hueso); /* alias heredado de las páginas legales */
}

/* Tema Día */
.t-light {
  --surface: var(--hueso);
  --surface-raised: #FFFFFF;
  --surface-sunken: var(--menta-050);
  --ink: #0B2B30;
  --ink-muted: #4A6662;
  --accent: var(--menta-400);
  --on-accent: #0B2B30;
  --accent-text: var(--menta-700);
  --signal: var(--coral-700);
  --on-signal: #FFFFFF;
  --line: #CFE2DC;
  --line-glow: rgba(27, 112, 106, 0.25);
  --focus: var(--menta-700);
  --glow: 0 0 0 1px rgba(27, 112, 106, 0.25), 0 12px 32px rgba(11, 43, 48, 0.10);
  --lift: 0 18px 40px rgba(11, 43, 48, 0.12);
  --bone: #0B2B30;
}
.t-dark, .t-light { background: var(--surface); color: var(--ink); }
.t-raised { background: var(--surface-raised); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--petroleo-900);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--menta-400); color: var(--petroleo-900); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
section[id], [id] { scroll-margin-top: 88px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--menta-400); color: var(--petroleo-900);
  font-weight: 700; padding: 12px 20px; text-decoration: none; border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografía: cuatro niveles ---------- */
.display {
  font-weight: 800; font-stretch: 88%; letter-spacing: -0.045em; line-height: 0.95;
  font-size: clamp(48px, 7.2vw, 92px);
}
.titular, .sec-title {
  font-weight: 800; font-stretch: 92%; letter-spacing: -0.02em; line-height: 1.06;
  font-size: clamp(32px, 4.2vw, 52px);
}
.h3 {
  font-weight: 800; font-stretch: 92%; letter-spacing: -0.01em; line-height: 1.2;
  font-size: 21px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; font-stretch: 112%;
  letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.3;
  color: var(--accent-text);
}
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-muted); max-width: 560px; }
.muted { color: var(--ink-muted); }
.hl { color: var(--accent-text); }
.hl-signal { color: var(--signal); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-md);
  font: 700 16px/1 var(--font); letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-1px); background: var(--menta-200); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--accent-text); }
.btn-secondary:hover { background: var(--surface-sunken); }
.btn-ghost { background: transparent; color: var(--accent-text); padding: 0 4px; min-height: 44px; }
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Pills de estado ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 30px; padding: 0 13px; border-radius: var(--r-pill);
  font: 700 13px/1 var(--font); white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill-visto { background: var(--signal); color: var(--on-signal); }
.pill-ok { background: var(--accent); color: var(--on-accent); }
.pill-neutral { background: var(--surface-sunken); color: var(--ink); }
.pill-neutral::before { background: var(--accent-text); }

/* ---------- Tarjetas ---------- */
.card {
  background: var(--surface-raised); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
}
.card-glow { border-color: var(--line-glow); box-shadow: var(--glow); }
.icon { width: 30px; height: 30px; color: var(--accent-text); flex: none; }
.icon-sm { width: 20px; height: 20px; color: var(--accent-text); flex: none; }

/* ---------- Chat recreado ---------- */
.chat {
  width: 100%; max-width: 380px;
  background: var(--surface-raised); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--lift); overflow: hidden;
}
.chat-glow { border-color: var(--line-glow); box-shadow: var(--glow), var(--lift); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-av {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--petroleo-900); display: grid; place-items: center; overflow: hidden;
}
.chat-av img { width: 26px; height: auto; }
.chat-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.chat-status { font-weight: 500; font-size: 12.5px; color: var(--accent-text); }
.chat-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.bubble { max-width: 84%; padding: 10px 12px 8px; border-radius: var(--r-md); font-size: 15px; line-height: 1.45; }
.bubble-in { align-self: flex-start; background: var(--surface-sunken); color: var(--ink); border-top-left-radius: 4px; }
.bubble-out { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-top-right-radius: 4px; }
.bubble-meta { display: block; margin-top: 4px; text-align: right; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; opacity: .75; }
.chat-note { align-self: flex-start; margin-top: 6px; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: var(--r-md); border-top-left-radius: 4px; background: var(--surface-sunken); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-text); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------- Navegación ---------- */
.site-header { position: sticky; top: 0; z-index: 200; }
.site-nav {
  background: rgba(4, 35, 43, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid #1D4A52;
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 28px; width: auto; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 15px; font-weight: 600; color: #A7C2BD; text-decoration: none; }
.nav-links a:hover { color: var(--hueso); }
.nav-actions { display: flex; align-items: center; gap: 20px; flex: none; }
.nav-login { font-size: 15px; font-weight: 600; color: var(--hueso); text-decoration: none; white-space: nowrap; }
.nav-login:hover { color: var(--menta-400); }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  background: transparent; border: 1px solid #1D4A52; color: var(--hueso);
  align-items: center; justify-content: center; cursor: pointer;
}
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: var(--petroleo-900); padding: 96px 22px 40px;
  flex-direction: column; gap: 26px; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu > a { font-size: 24px; font-weight: 800; font-stretch: 92%; color: var(--hueso); text-decoration: none; }
.mm-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.mobile-close {
  position: fixed; top: 14px; right: 16px; z-index: 301;
  width: 44px; height: 44px; border-radius: 12px;
  background: transparent; border: 1px solid #1D4A52; color: var(--hueso);
  display: none; align-items: center; justify-content: center; cursor: pointer;
}
.mobile-close.open { display: flex; }

/* ---------- Footer ---------- */
.site-footer { background: var(--petroleo-800); border-top: 1px solid #1D4A52; padding: 64px 0 32px; color: var(--hueso); }
.fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.flogo img { height: 28px; width: auto; margin-bottom: 18px; }
.ftagline { font-size: 15px; color: #A7C2BD; line-height: 1.6; max-width: 320px; margin-bottom: 20px; }
.ficons { display: flex; gap: 10px; }
.ficons a {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid #1D4A52;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--menta-400); text-decoration: none;
}
.ficons a:hover { border-color: var(--menta-400); }
.fcol h2 {
  font-size: 13px; font-weight: 700; font-stretch: 112%; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--hueso); margin-bottom: 16px;
}
.fl { display: block; font-size: 15px; color: #A7C2BD; text-decoration: none; padding: 5px 0; }
.fl:hover { color: var(--menta-400); }
.fbottom {
  border-top: 1px solid #1D4A52; padding-top: 22px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.fbottom p, .fbottom a { font-size: 13px; color: #A7C2BD; text-decoration: none; }
.fbottom .flinks { display: flex; gap: 20px; }
.fbottom a:hover { color: var(--menta-400); }

/* ---------- Secciones de la home ---------- */
.sec { padding: 112px 0; }
.sec-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: 52px; }
.sec-head-split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: 52px; }
.sec-head-split .sec-head { margin-bottom: 0; }

/* Hero */
.hero { position: relative; padding: 80px 0 96px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -160px; top: 20px; width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 203, 196, 0.15) 0%, rgba(124, 203, 196, 0) 65%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.trust-row { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.hero-visual { position: relative; flex: 1 1 420px; min-height: 560px; }
.hv-before {
  position: absolute; left: 0; top: 24px; width: 300px; transform: rotate(-4deg);
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; box-shadow: var(--lift);
}
.hv-before-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.hv-label { font-size: 12px; font-weight: 700; font-stretch: 112%; letter-spacing: .14em; color: var(--ink-muted); }
.hv-before .bubble { max-width: 100%; }
.hv-count { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--signal); }
.hv-chat { position: absolute; right: 0; top: 128px; }

/* Franja de estados */
.status-strip { background: var(--petroleo-800); border-top: 1px solid #1D4A52; border-bottom: 1px solid #1D4A52; padding: 18px 0; overflow: hidden; }
.status-track { display: flex; gap: 16px; align-items: center; white-space: nowrap; width: max-content; animation: strip 50s linear infinite; }
.status-track time { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: #A7C2BD; }
@keyframes strip { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Problema */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stat { display: flex; flex-direction: column; }
.stat-value { font-weight: 800; font-stretch: 88%; letter-spacing: -0.045em; line-height: 1; font-size: 72px; font-variant-numeric: tabular-nums; color: var(--accent-text); }
.stat-signal .stat-value { color: var(--signal); }
.stat-label { margin-top: 14px; font-size: 17px; font-weight: 600; line-height: 1.45; }
.stat-source { margin-top: auto; padding-top: 18px; font-size: 13px; color: var(--ink-muted); }
.stat-source::before { content: ""; display: block; border-top: 1px solid var(--line); margin-bottom: 12px; }
.stat-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.stat-accent .stat-value, .stat-accent .stat-source { color: var(--on-accent); }
.stat-accent .stat-source::before { border-color: rgba(4, 35, 43, 0.25); }

/* Grillas */
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature { display: flex; flex-direction: column; gap: 14px; }
.feature p { font-size: 15.5px; color: var(--ink-muted); line-height: 1.6; }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-bottom: 32px; }
.step { border-top: 2px solid var(--accent); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.step-num {
  align-self: flex-start; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent-text);
  border: 1px solid var(--line-glow); border-radius: var(--r-sm); padding: 7px 10px;
}
.step p { font-size: 15.5px; color: var(--ink-muted); line-height: 1.6; }
.trust-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.trust-big { font-size: 24px; font-weight: 700; line-height: 1.4; }
.trust-list { list-style: none; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.trust-list li { display: flex; gap: 12px; align-items: center; font-weight: 600; }

/* Selector de negocio */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px;
  border-radius: var(--r-md); border: 1px solid var(--line); background: transparent;
  font-weight: 600; font-size: 15.5px; cursor: pointer; text-align: left; color: var(--ink);
}
.chip svg { width: 18px; height: 18px; color: var(--accent-text); }
.chip:hover { border-color: var(--accent-text); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: var(--glow); }
.chip[aria-pressed="true"] svg { color: var(--on-accent); }
.caso { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; margin-top: 36px; }
.caso-copy { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.caso-pain { font-size: 24px; font-weight: 700; font-stretch: 92%; line-height: 1.35; letter-spacing: -0.01em; }
.caso-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 6px; }
.caso-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.caso-item b { font-size: 16px; }
.caso-item span { font-size: 14.5px; color: var(--ink-muted); line-height: 1.5; }
.caso-chat { flex: 1 1 340px; display: flex; justify-content: flex-start; }
.caso-chat .chat-body { min-height: 330px; }
.more-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.more-cta p { color: var(--ink-muted); font-size: 16px; max-width: 560px; }
.more-cta b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }

/* Demo */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px; align-items: start; }
.demo-steps { list-style: none; display: flex; flex-direction: column; margin: 18px 0 24px; }
.demo-steps li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.demo-steps li:last-child { border-bottom: 1px solid var(--line); }
.demo-steps b { font-variant-numeric: tabular-nums; color: var(--accent-text); min-width: 24px; }
.demo-box { max-width: none; }
.demo-msgs { height: 340px; overflow-y: auto; }
.demo-qr { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.demo-qr button {
  min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid var(--accent-text); background: transparent; color: var(--accent-text);
  font-weight: 600; font-size: 14px;
}
.demo-qr button:hover { background: var(--surface-sunken); }
.demo-input { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.demo-input input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface-sunken); color: var(--ink); font: 400 15px var(--font);
}
.demo-input input::placeholder { color: var(--ink-muted); }
.demo-send {
  width: 44px; height: 44px; flex: none; border-radius: var(--r-md); border: 0; cursor: pointer;
  background: var(--accent); color: var(--on-accent); display: grid; place-items: center;
}
.demo-reset { margin-top: 12px; }

/* Precios */
.promo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 30px; margin-bottom: 8px; }
.plan-top .eyebrow { white-space: nowrap; letter-spacing: 0.12em; }
.plan-name { font-size: 26px; font-weight: 800; font-stretch: 92%; letter-spacing: -0.02em; }
.plan-pts { font-size: 14px; color: var(--ink-muted); }
.plan-conv { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; margin-top: 6px; }
.plan-prices { margin: 16px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.plan-setup-orig { font-size: 14px; color: var(--ink-muted); text-decoration: line-through; }
.plan-setup { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.plan-setup small { font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.plan-mo { font-size: 15px; color: var(--ink-muted); }
.plan-mo b { color: var(--ink); font-size: 17px; font-variant-numeric: tabular-nums; }
.plan-feats { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; flex: 1; }
.plan-feats li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.45; }
.plan-feats svg { width: 18px; height: 18px; flex: none; color: var(--accent-text); margin-top: 1px; }
.price-notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 28px 0 40px; }
.price-note { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.price-note b { font-size: 16px; }
.price-note span { font-size: 14.5px; color: var(--ink-muted); line-height: 1.5; }
.price-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.price-cta p { color: var(--ink-muted); }

/* Casos reales */
.pilots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pilot { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.pilot p { color: var(--ink-muted); font-size: 16px; line-height: 1.6; }

/* Cierre */
.cta-final { padding: 128px 0; border-top: 1px solid #1D4A52; }
.cta-final .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }

/* Revelado suave (solo con JS) */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .rv.on { opacity: 1; transform: none; }

/* ---------- Páginas legales (tema Día) ---------- */
.legal-hero { padding: 64px 0 36px; border-bottom: 1px solid var(--line); }
.legal-hero .wrap { max-width: 920px; }
.kicker { display: inline-flex; margin-bottom: 18px; }
.kicker span {
  font-size: 13px; font-weight: 700; font-stretch: 112%; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-text);
}
.legal-hero h1 {
  font-size: clamp(34px, 5vw, 56px); font-weight: 800; font-stretch: 92%;
  letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 18px; max-width: 820px;
}
.legal-meta { font-size: 15px; color: var(--ink-muted); line-height: 1.7; }
.legal-meta strong { color: var(--ink); }
.doc { padding: 56px 0 112px; }
.doc-wrap { max-width: 920px; margin: 0 auto; padding: 0 var(--gutter); }
.doc-wrap > * { max-width: 760px; }
.doc h2 {
  font-size: 26px; font-weight: 800; font-stretch: 92%; letter-spacing: -0.015em; line-height: 1.2;
  color: var(--ink); border-top: 1px solid var(--line); padding-top: 32px; margin: 52px 0 18px;
}
.doc h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.doc h3 { font-size: 18px; font-weight: 700; color: var(--accent-text); margin: 30px 0 12px; }
.doc p { font-size: 16px; color: var(--ink-muted); line-height: 1.7; margin-bottom: 16px; }
.doc p strong, .doc li strong, .doc td strong { color: var(--ink); }
.doc a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc a:hover { text-decoration-thickness: 2px; }
.doc ul, .doc ol { margin: 0 0 18px 22px; }
.doc li { font-size: 16px; color: var(--ink-muted); line-height: 1.65; margin-bottom: 9px; padding-left: 4px; }
.doc li::marker { color: var(--accent-text); }
.doc code { font-size: .9em; background: var(--surface-sunken); padding: 1px 6px; border-radius: 6px; color: var(--ink); word-break: break-word; }
.table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-raised); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 420px; }
.doc th {
  text-align: left; padding: 14px 18px; font-size: 12px; font-weight: 700; font-stretch: 112%;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  background: var(--surface-sunken); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.doc td { text-align: left; padding: 13px 18px; color: var(--ink-muted); border-bottom: 1px solid var(--line); vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc blockquote {
  background: var(--surface-sunken); border-radius: var(--r-md);
  padding: 20px 24px; margin: 24px 0; font-size: 16px; color: var(--ink); line-height: 1.65;
}
.doc-foot { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-muted); }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .plans, .price-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .nav-links, .nav-login, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .sec { padding: 72px 0; }
  .hero { padding: 40px 0 64px; }
  .hero-visual { min-height: 0; display: flex; flex-direction: column; gap: 16px; }
  .hv-before, .hv-chat { position: static; transform: none; width: 100%; max-width: 380px; }
  .g3, .stats, .trust-grid, .pilots, .demo-grid { grid-template-columns: 1fr; }
  .stat-value { font-size: 60px; }
  .cta-final { padding: 88px 0; }
  .legal-hero { padding: 44px 0 28px; }
  .doc { padding: 40px 0 80px; }
}
@media (max-width: 600px) {
  .plans, .price-notes, .steps, .caso-items, .fgrid { grid-template-columns: 1fr; }
  .lede { font-size: 17px; }
  .caso-pain { font-size: 21px; }
  .hero-ctas .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
