/* Layout: estudio boutique. Columna de 1200px, titulares serif grandes frente a cuerpo sans limpio; los "imágenes" son piezas de producto (panel, chat, factura, agenda) dibujadas a mano en HTML. */
:root {
  --bg: #F8F8F6;
  --surface: #FFFFFF;
  --surface-2: #F1F2EF;
  --ink: #0D1B24;
  --ink-2: #3A4750;
  --muted: #6B7780;
  --line: rgba(13, 27, 36, .09);
  --line-strong: rgba(13, 27, 36, .16);
  --accent: #0E6E62;
  --accent-hover: #0B5C52;
  --accent-soft: #E4EFEC;
  --accent-ink: #FFFFFF;
  --ok: #1E7F55; --ok-soft: #E2F2EA;
  --run: #2C64C4; --run-soft: #E6EDFA;
  --warn: #A86A12; --warn-soft: #F7EEDC;
  --idle: #7D878E; --idle-soft: #EEF0F0;
  --band: #0D1B24; --band-ink: #EEF1EF; --band-muted: #9AA6AA; --band-line: rgba(255,255,255,.10);
  --shadow-sm: 0 1px 2px rgba(13,27,36,.04), 0 2px 8px rgba(13,27,36,.04);
  --shadow: 0 1px 2px rgba(13,27,36,.04), 0 18px 40px -22px rgba(13,27,36,.22);

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* letra pequeña: la misma sans, con cifras tabulares */

  --fs-xs: .75rem; --fs-sm: .875rem; --fs-0: 1.0625rem; --fs-1: 1.1875rem;
  --fs-h3: 1.375rem;
  --fs-h2: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);
  --fs-h1: clamp(2.75rem, 1.8rem + 4.4vw, 5.25rem);

  --r-sm: 8px; --r: 14px; --r-lg: 20px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 10vw, 140px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1015; --surface: #15181E; --surface-2: #1B1F26; --ink: #ECEEEA; --ink-2: #B9C0BE; --muted: #8C9496;
    --line: rgba(255,255,255,.07); --line-strong: rgba(255,255,255,.13);
    --accent: #6FB3A5; --accent-hover: #86C2B5; --accent-soft: rgba(111,179,165,.12); --accent-ink: #0E1015;
    --ok: #64C392; --ok-soft: rgba(100,195,146,.12); --run: #86AEF2; --run-soft: rgba(134,174,242,.12);
    --warn: #E2B467; --warn-soft: rgba(226,180,103,.12); --idle: #8C9496; --idle-soft: rgba(255,255,255,.05);
    --band: #15181E; --band-ink: #ECEEEA; --band-muted: #8C9496; --band-line: rgba(255,255,255,.08);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 20px 44px -24px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1015; --surface: #15181E; --surface-2: #1B1F26; --ink: #ECEEEA; --ink-2: #B9C0BE; --muted: #8C9496;
  --line: rgba(255,255,255,.07); --line-strong: rgba(255,255,255,.13);
  --accent: #6FB3A5; --accent-hover: #86C2B5; --accent-soft: rgba(111,179,165,.12); --accent-ink: #0E1015;
  --ok: #64C392; --ok-soft: rgba(100,195,146,.12); --run: #86AEF2; --run-soft: rgba(134,174,242,.12);
  --warn: #E2B467; --warn-soft: rgba(226,180,103,.12); --idle: #8C9496; --idle-soft: rgba(255,255,255,.05);
  --band: #15181E; --band-ink: #ECEEEA; --band-muted: #8C9496; --band-line: rgba(255,255,255,.08);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 20px 44px -24px rgba(0,0,0,.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { font-variant-numeric: tabular-nums; margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: var(--fs-0); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "ss01"; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: 1.02; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h3 { font-family: var(--sans); font-weight: 600; font-size: var(--fs-h3); letter-spacing: -.02em; line-height: 1.25; margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.muted { color: var(--muted); }

/* Etiqueta de sección: número + nombre, como en un índice */
.label { display: inline-flex; align-items: center; gap: 12px; font-size: var(--fs-sm); color: var(--muted); font-weight: 500; letter-spacing: .01em; }
.label b { font-family: var(--mono); font-weight: 600; font-size: .82rem; color: var(--accent); }
.label::after { content: ""; width: 36px; height: 1px; background: var(--line-strong); }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(44px, 6vw, 72px); }
.head .label { grid-column: 1 / -1; }
.head p { color: var(--ink-2); font-size: var(--fs-1); line-height: 1.55; max-width: 46ch; }
@media (max-width: 860px) { .head { grid-template-columns: minmax(0,1fr); } }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 500 1rem/1 var(--sans); padding: 15px 22px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; white-space: nowrap; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.link { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--accent); }

/* Cabecera */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.12rem; letter-spacing: -.03em; color: var(--ink); }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand small { font-family: var(--mono); font-size: .68rem; font-weight: 600; font-weight: 500; color: var(--accent); border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: .94rem; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn-primary { color: var(--bg); padding: 11px 18px; font-size: .92rem; }
.nav-links a.btn-primary:hover { color: var(--accent-ink); }
.menu-btn { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 999px; width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }
@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 22px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a.btn-primary { margin-top: 18px; border-bottom: 0; padding: 15px 22px; }
}

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 28px; min-width: 0; }
.hero h1 .hand { position: relative; white-space: nowrap; font-style: italic; color: var(--accent); }
.hero h1 .hand svg { position: absolute; left: -2%; bottom: -.08em; width: 104%; height: .32em; overflow: visible; }
.hero h1 .hand path { stroke: var(--accent); stroke-width: 3; fill: none; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 0; animation: draw 1.2s .4s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
.hero .lead { font-size: var(--fs-1); color: var(--ink-2); line-height: 1.6; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.assurances { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: var(--muted); }
.assurances li { display: inline-flex; align-items: center; gap: 8px; }
.assurances svg { width: 15px; height: 15px; color: var(--accent); }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Panel de ejecución (hero) */
.app { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; min-width: 0; font-size: .875rem; }
.app-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.dots { display: flex; gap: 6px; flex: none; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.app-title { font-weight: 500; color: var(--ink-2); font-size: .82rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.app-env { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: .78rem; font-weight: 500; color: var(--ok); flex: none; }
.app-env::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.app-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-bottom: 1px solid var(--line); }
.app-stats div { padding: 14px 16px; display: grid; gap: 2px; }
.app-stats div + div { border-left: 1px solid var(--line); }
.app-stats span { font-size: .78rem; color: var(--muted); }
.app-stats strong { font-family: var(--mono); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--ink); }
.runs { display: grid; }
.run { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); transition: background-color .4s ease; }
.run.fresh { background: var(--accent-soft); }
.run .src { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.run .src svg { width: 17px; height: 17px; }
.run .src.wa { color: #1F9D57; } .run .src.mail { color: #C2452D; } .run .src.crm { color: var(--run); } .run .src.cal { color: var(--accent); }
.run-main { min-width: 0; display: grid; gap: 1px; }
.run-main b { font-weight: 500; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.run-main small { font-family: var(--mono); font-size: .8rem; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .76rem; padding: 4px 10px; border-radius: 999px; white-space: nowrap; font-weight: 500; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-ok { color: var(--ok); background: var(--ok-soft); }
.b-run { color: var(--run); background: var(--run-soft); }
.b-run::before { animation: pulse 1s infinite; }
.b-warn { color: var(--warn); background: var(--warn-soft); }
.b-idle { color: var(--idle); background: var(--idle-soft); }
.trace { padding: 14px 16px 16px; display: grid; gap: 10px; background: var(--surface-2); }
.trace-head { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; color: var(--muted); }
.trace-head b { color: var(--ink-2); font-weight: 500; }
.trace ol { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 6px; }
.trace li { display: grid; gap: 6px; font-size: .76rem; color: var(--muted); line-height: 1.3; }
.trace li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line-strong); transition: background-color .3s ease; }
.trace li.done::before { background: var(--accent); }
.trace li.active::before { background: linear-gradient(90deg, var(--accent) 50%, var(--line-strong) 50%); background-size: 200% 100%; animation: fill .7s linear infinite; }
@keyframes fill { from { background-position: 100% 0; } to { background-position: 0 0; } }
.trace li.done { color: var(--ink-2); }
.app-note { margin-top: 12px; font-size: .78rem; color: var(--muted); text-align: right; }
@media (max-width: 520px) { .trace ol { grid-template-columns: repeat(5, minmax(0,1fr)); } .trace li span { display: none; } .app-stats div { padding: 12px; } .app-stats strong { font-size: 1rem; white-space: nowrap; } }

/* Herramientas */
.tools { padding-block: 36px 44px; border-block: 1px solid var(--line); }
.tools-inner { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 24px 48px; align-items: center; }
.tools p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.tools p b { display: block; color: var(--ink); font-weight: 500; font-size: 1rem; margin-bottom: 4px; }
.marquee { 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); min-width: 0; }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track .dup { display: contents; }
@keyframes slide { to { transform: translateX(-50%); } }
.tool { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px 9px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .9rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.tool i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-family: var(--mono); font-size: .66rem; font-weight: 600; font-weight: 500; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); }
@media (max-width: 760px) { .tools-inner { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { flex-wrap: wrap; width: auto; } .marquee-track .dup { display: none; } .marquee { -webkit-mask-image: none; mask-image: none; } }

/* Problema */
.problem-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 20px; align-items: start; }
.tasks { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.tasks-head { display: grid; grid-template-columns: minmax(0,1fr) 128px; gap: 16px; padding: 14px 20px; font-size: .74rem; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tasks-head span:last-child { text-align: center; }
.task { display: grid; grid-template-columns: minmax(0,1fr) 128px; gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); transition: background-color .2s ease; }
.task:last-child { border-bottom: 0; }
.task.on { background: var(--accent-soft); }
.task-check { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 14px; align-items: start; background: none; border: 0; padding: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; line-height: 1.45; }
.task-check .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; margin-top: 2px; transition: all .2s ease; background: var(--surface); }
.task-check .box svg { width: 13px; height: 13px; color: var(--accent-ink); opacity: 0; transform: scale(.6); transition: all .2s ease; }
.task-check:hover .box { border-color: var(--accent); }
.task.on .task-check .box { background: var(--accent); border-color: var(--accent); }
.task.on .task-check .box svg { opacity: 1; transform: none; }
.stepper { display: inline-grid; grid-template-columns: 30px minmax(0,1fr) 30px; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); opacity: .45; transition: opacity .2s ease; }
.task.on .stepper { opacity: 1; }
.stepper button { width: 30px; height: 30px; border: 0; background: none; color: var(--ink-2); font: 500 1rem/1 var(--sans); cursor: pointer; border-radius: 50%; }
.stepper button:hover { color: var(--accent); }
.stepper output { text-align: center; font-family: var(--mono); font-size: .86rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.meter { position: sticky; top: 96px; background: var(--band); color: var(--band-ink); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 32px); display: grid; gap: 18px; }
.meter .label { color: var(--band-muted); }
.meter .label::after { background: var(--band-line); }
.meter-num { font-family: var(--serif); font-size: clamp(3.4rem, 2.4rem + 3vw, 4.6rem); line-height: .95; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.meter-num small { font-size: .38em; font-family: var(--sans); color: var(--band-muted); letter-spacing: 0; margin-left: 6px; }
.meter-bar { height: 6px; border-radius: 6px; background: var(--band-line); overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 6px; transition: width .4s ease; }
.meter p { color: var(--band-muted); font-size: .95rem; line-height: 1.55; }
.meter p strong { color: var(--band-ink); font-weight: 500; }
.meter .btn-accent { justify-self: start; }
.meter small { color: var(--band-muted); font-size: .76rem; }
@media (max-width: 900px) { .problem-grid { grid-template-columns: minmax(0,1fr); } .meter { position: static; } }
@media (max-width: 520px) { .tasks-head, .task { grid-template-columns: minmax(0,1fr); } .tasks-head span:last-child { display: none; } .stepper { justify-self: start; margin-left: 36px; width: 128px; } }

/* Antes / después */
.compare { display: grid; grid-template-columns: minmax(0,1fr) 56px minmax(0,1fr); align-items: stretch; }
.compare-arrow { display: grid; place-items: center; color: var(--muted); }
.compare-arrow span { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; background: var(--bg); }
.compare-arrow svg { width: 18px; height: 18px; }
.side { border-radius: var(--r-lg); padding: clamp(24px, 3vw, 34px); display: grid; gap: 18px; align-content: start; min-width: 0; }
.side.before { background: var(--surface-2); border: 1px dashed var(--line-strong); }
.side.after { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.side-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.side-top h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; letter-spacing: -.01em; }
.side.before h3 { color: var(--ink-2); }
.side.after h3 em { color: var(--accent); }
.steps { counter-reset: s; display: grid; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); line-height: 1.5; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: .8rem; font-weight: 600; color: var(--muted); padding-top: 3px; }
.side.after .steps li::before { color: var(--accent); }
.side.before .steps li { text-decoration: none; }
.steps b { color: var(--ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.compare-note { margin-top: 22px; color: var(--muted); font-size: .95rem; max-width: 70ch; }
@media (max-width: 860px) { .compare { grid-template-columns: minmax(0,1fr); gap: 12px; } .compare-arrow { transform: rotate(90deg); } }

/* Bento: qué automatizamos */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 16px; }
.cardx { grid-column: span 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 16px; align-content: start; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .25s ease; min-width: 0; position: relative; }
.cardx.wide { grid-column: span 3; }
.cardx.full { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; column-gap: 32px; }
.cardx.full .viz { grid-column: 2; grid-row: 1 / span 3; }
.cardx:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.cardx-top { display: flex; align-items: center; gap: 12px; }
.cardx-top .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; transition: transform .35s ease; flex: none; }
.cardx:hover .ico { transform: rotate(-6deg) scale(1.06); }
.cardx-top .ico svg { width: 20px; height: 20px; }
.cardx p.sum { color: var(--ink-2); font-size: .98rem; }
.viz { border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); padding: 14px; font-size: .8rem; min-height: 150px; display: grid; align-content: center; gap: 8px; overflow: hidden; }
.more { border-top: 1px solid var(--line); padding-top: 4px; }
.more summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0 2px; font-size: .9rem; font-weight: 500; color: var(--ink); }
.more summary::-webkit-details-marker { display: none; }
.more summary .pm { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .25s ease, background-color .2s ease; }
.more summary .pm svg { width: 12px; height: 12px; }
.more[open] summary .pm { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.more ul { display: grid; gap: 7px; padding: 10px 0 4px; }
.more li { position: relative; padding-left: 16px; color: var(--ink-2); font-size: .94rem; line-height: 1.5; }
.more li::before { content: ""; position: absolute; left: 0; top: .66em; width: 6px; height: 1.5px; background: var(--accent); }
/* mini piezas */
.chat { display: grid; gap: 7px; }
.bubble { max-width: 82%; padding: 8px 11px; border-radius: 12px; line-height: 1.4; font-size: .8rem; }
.bubble.in { background: var(--surface); border: 1px solid var(--line); justify-self: start; border-bottom-left-radius: 4px; color: var(--ink); }
.bubble.out { background: var(--accent); color: var(--accent-ink); justify-self: end; border-bottom-right-radius: 4px; }
.bubble time { display: block; font-family: var(--mono); font-size: .68rem; opacity: .7; margin-top: 2px; text-align: right; }
.cardx:hover .bubble.out:last-child { animation: pop .5s ease; }
@keyframes pop { 0% { transform: scale(.96); } 60% { transform: scale(1.02); } 100% { transform: none; } }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 7px; position: relative; }
.doc .l { height: 6px; border-radius: 4px; background: var(--line-strong); }
.doc .l.s { width: 60%; } .doc .l.m { width: 82%; } .doc .l.t { width: 40%; height: 9px; background: var(--ink-2); opacity: .5; }
.doc .stamp { position: absolute; right: 10px; bottom: 10px; font-family: var(--mono); font-size: .7rem; font-weight: 500; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 3px 6px; transform: rotate(-4deg); transition: transform .3s ease; background: var(--surface); }
.cardx:hover .doc .stamp { transform: rotate(0) scale(1.05); }
.inv { display: grid; gap: 6px; }
.inv div { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.inv span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-2); }
.inv b { font-family: var(--mono); font-weight: 600; font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.sheet { display: grid; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); font-family: var(--mono); font-size: .76rem; }
.sheet div { display: grid; grid-template-columns: 1.2fr 1fr .8fr; }
.sheet div span { padding: 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-2); }
.sheet div:first-child span { background: var(--surface-2); color: var(--muted); }
.sheet div.new span { background: var(--accent-soft); color: var(--ink); }
.notes { display: grid; gap: 6px; }
.note { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; transition: transform .3s ease; }
.cardx:hover .note:nth-child(2) { transform: translateX(4px); } .cardx:hover .note:nth-child(3) { transform: translateX(8px); }
.note i { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-style: normal; }
.note i svg { width: 13px; height: 13px; }
.note span { color: var(--ink-2); line-height: 1.35; } .note b { color: var(--ink); font-weight: 500; }
.nodes { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.nodes span { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-weight: 500; color: var(--ink); font-size: .76rem; }
.nodes i { flex: 1; height: 1.5px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px); background-size: 22px 100%; animation: flow 1.2s linear infinite; min-width: 10px; }
@keyframes flow { to { background-position: 22px 0; } }
.nodes span.hub { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.rule { margin-top: 18px; display: flex; gap: 14px; align-items: center; color: var(--ink-2); font-size: 1rem; padding: 18px 22px; border-radius: var(--r); border: 1px dashed var(--line-strong); }
.rule svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0,1fr)); } .cardx, .cardx.wide { grid-column: span 1; } .cardx.full { grid-template-columns: minmax(0,1fr); } .cardx.full .viz { grid-column: auto; grid-row: auto; } }
@media (max-width: 640px) { .bento { grid-template-columns: minmax(0,1fr); } }

/* Nota del equipo */
.note-sec { padding-block: clamp(64px, 8vw, 112px); }
.letter { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 88px); align-items: start; }
.letter > .label::after { display: none; }
.letter blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.22; letter-spacing: -.01em; color: var(--ink); text-wrap: pretty; }
.letter blockquote em { color: var(--accent); }
.letter .sign { margin-top: 28px; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .95rem; }
.letter .sign svg { width: 120px; height: 36px; color: var(--accent); }
.letter .sign path { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 800px) { .letter { grid-template-columns: minmax(0,1fr); } }

/* Sectores */
.sectors { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.tablist { display: grid; gap: 2px; }
.tab { text-align: left; font: 500 1rem/1.3 var(--sans); color: var(--muted); background: none; border: 0; padding: 14px 16px; cursor: pointer; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; transition: color .2s ease, background-color .2s ease; }
.tab::after { content: "→"; opacity: 0; transform: translateX(-6px); transition: all .2s ease; color: var(--accent); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); }
.tab[aria-selected="true"]::after { opacity: 1; transform: none; }
.tabpanel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 26px; min-width: 0; }
.tabpanel h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); letter-spacing: -.01em; }
.tp-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
.tp-block { display: grid; gap: 10px; align-content: start; }
.tp-block h4 { margin: 0; font-size: .78rem; font-weight: 500; color: var(--muted); }
.tp-block ul { display: grid; gap: 8px; }
.tp-block li { position: relative; padding-left: 16px; color: var(--ink-2); line-height: 1.5; }
.tp-block li::before { content: ""; position: absolute; left: 0; top: .66em; width: 6px; height: 1.5px; background: var(--muted); }
.tp-block.good li::before { background: var(--accent); }
.tp-example { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 14px; padding: 16px 18px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); }
.tp-example b { font-family: var(--mono); font-weight: 600; font-size: .82rem; color: var(--accent); padding-top: 3px; }
.sectors-foot { margin-top: 26px; color: var(--ink-2); max-width: 70ch; }
@media (max-width: 860px) {
  .sectors { grid-template-columns: minmax(0,1fr); }
  .tablist { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: thin; }
  .tab { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; flex: none; }
  .tab::after { display: none; }
  .tab[aria-selected="true"] { border-color: var(--ink); }
  .tp-grid { grid-template-columns: minmax(0,1fr); }
}

/* Resultados + calculadora */
.results { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.benefits { display: grid; }
.benefit { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.benefit:last-child { border-bottom: 1px solid var(--line); }
.benefit .n { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--accent); line-height: 1; padding-top: 2px; }
.benefit h3 { font-size: 1.12rem; margin-bottom: 4px; }
.benefit p { color: var(--ink-2); font-size: .97rem; }
.calc { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.calc-top { padding: 22px 26px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.calc-top h3 { font-family: var(--serif); font-weight: 400; font-size: 1.85rem; letter-spacing: -.01em; line-height: 1.1; }
.calc-top p { color: var(--muted); font-size: .9rem; }
.fields { display: grid; gap: 20px; padding: 22px 26px; }
.field { display: grid; gap: 10px; }
.field label { font-size: .9rem; color: var(--ink-2); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.field label output { font-family: var(--mono); font-size: .9rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--p), var(--line-strong) var(--p)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--p), var(--line-strong) var(--p)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); margin-top: -8px; box-shadow: var(--shadow-sm); transition: transform .15s ease; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc-out { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); background: var(--band); color: var(--band-ink); }
.calc-out div { padding: 20px 26px; display: grid; gap: 2px; }
.calc-out div + div { border-left: 1px solid var(--band-line); }
.calc-out strong { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 1.8rem + 1.4vw, 2.9rem); line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--band-ink); }
.calc-out span { font-size: .8rem; color: var(--band-muted); }
.calc small { display: block; padding: 14px 26px 18px; color: var(--muted); font-size: .78rem; line-height: 1.5; background: var(--surface); }
@media (max-width: 960px) { .results { grid-template-columns: minmax(0,1fr); } .calc { position: static; } }

/* Proceso */
.process { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.pstep { padding: 26px 22px 6px 0; display: grid; gap: 12px; align-content: start; position: relative; }
.pstep + .pstep { padding-left: 22px; border-left: 1px solid var(--line); }
.pstep::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--accent); }
.pstep + .pstep::before { left: 22px; }
.pstep:first-child::before { background: var(--accent); }
.pnum { font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--accent); }
.pstep h3 { font-size: 1.08rem; }
.pstep p { color: var(--ink-2); font-size: .94rem; line-height: 1.55; }
.get { font-size: .86rem; color: var(--ink-2); padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); line-height: 1.5; }
.get b { display: block; font-size: .72rem; font-weight: 500; color: var(--accent); margin-bottom: 3px; }
.free { display: inline-block; font-size: .7rem; font-weight: 500; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; justify-self: start; }
@media (max-width: 1060px) { .process { grid-template-columns: minmax(0,1fr); border-top: 0; border-left: 1px solid var(--line-strong); margin-left: 4px; } .pstep, .pstep + .pstep { padding: 0 0 30px 28px; border-left: 0; } .pstep::before, .pstep + .pstep::before { top: 6px; left: -5px; } .pstep .get { max-width: 520px; } }

/* Confianza */
.trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.promises { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 28px; }
.promise { padding: 20px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.promise h3 { font-size: 1.05rem; display: flex; gap: 10px; align-items: center; }
.promise h3 svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.promise p { color: var(--ink-2); font-size: .95rem; }
.case { background: var(--band); color: var(--band-ink); border-radius: var(--r-lg); overflow: hidden; display: grid; min-width: 0; }
.case-body { padding: clamp(24px, 3vw, 34px); display: grid; gap: 16px; }
.case .label { color: var(--band-muted); }
.case .label::after { background: var(--band-line); }
.case h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem); letter-spacing: -.01em; color: var(--band-ink); line-height: 1.1; }
.case p { color: var(--band-muted); }
.case ul { display: grid; gap: 9px; }
.case li { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 10px; color: var(--band-ink); font-size: .96rem; }
.case li svg { width: 15px; height: 15px; color: var(--accent); margin-top: 5px; }
.case-week { border-top: 1px solid var(--band-line); padding: 18px clamp(24px, 3vw, 34px); display: grid; gap: 10px; }
.case-week > span { font-size: .74rem; color: var(--band-muted); }
.week { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 6px; }
.week div { display: grid; gap: 4px; align-content: start; }
.week b { font-size: .66rem; font-weight: 500; color: var(--band-muted); }
.week i { display: block; height: 18px; border-radius: 4px; background: rgba(255,255,255,.07); }
.week i.bk { background: var(--accent); opacity: .85; }
.week i.nw { background: transparent; border: 1.5px dashed var(--accent); }
.case-foot { padding: 14px clamp(24px, 3vw, 34px) 20px; font-size: .82rem; color: var(--band-muted); border-top: 1px solid var(--band-line); }
.case-foot a { color: var(--band-ink); font-weight: 500; }
@media (max-width: 960px) { .trust { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 560px) { .promises { grid-template-columns: minmax(0,1fr); } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .head { display: grid; grid-template-columns: minmax(0,1fr); margin: 0; position: sticky; top: 96px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-weight: 500; font-size: 1.08rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: transform .25s ease, background-color .2s ease, color .2s ease; }
.faq summary .pm svg { width: 13px; height: 13px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.faq .answer { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 64ch; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: minmax(0,1fr); } .faq-grid .head { position: static; } }

/* Contacto */
.contact { background: var(--band); color: var(--band-ink); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact h2 { color: var(--band-ink); }
.contact h2 em { color: var(--accent); }
.contact .label { color: var(--band-muted); }
.contact .label::after { background: var(--band-line); }
.contact-copy { display: grid; gap: 24px; }
.contact-copy > p { color: var(--band-muted); font-size: var(--fs-1); line-height: 1.6; max-width: 48ch; }
.contact-list { display: grid; gap: 12px; }
.contact-list li { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 12px; color: var(--band-ink); }
.contact-list svg { width: 16px; height: 16px; color: var(--accent); margin-top: 5px; }
.alt-contact { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; padding-top: 8px; border-top: 1px solid var(--band-line); }
.alt-contact .mail { font-family: var(--mono); font-size: 1rem; font-weight: 500; letter-spacing: .005em; color: var(--band-muted); user-select: all; }
.btn-wa { background: transparent; color: var(--band-ink); border-color: var(--band-line); }
.btn-wa:hover { border-color: var(--accent); }
.form { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: clamp(22px, 3.5vw, 36px); display: grid; gap: 16px; min-width: 0; border: 1px solid var(--line); }
.form h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; letter-spacing: -.01em; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form .field { gap: 6px; }
.form .field label { font-weight: 500; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; transition: border-color .2s ease, box-shadow .2s ease; }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form .invalid { border-color: var(--warn) !important; }
.check { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 10px; font-size: .85rem; color: var(--muted); align-items: start; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.check a { color: var(--ink-2); }
.form .btn { width: 100%; padding: 16px 22px; }
.form-status { font-size: .95rem; padding: 14px 16px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); }
.form-status.error { background: var(--warn-soft); }
.form-small { font-size: .8rem; color: var(--muted); text-align: center; }
@media (max-width: 900px) { .contact .wrap { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 520px) { .row2 { grid-template-columns: minmax(0,1fr); } }

/* Pie */
.site-footer { padding-block: 44px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }

/* CTA fija en móvil */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s ease; }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { width: 100%; }
}

/* Páginas legales */
.legal { max-width: 760px; padding-block: 48px 96px; display: grid; gap: 18px; }
.legal h1 { font-size: var(--fs-h2); }
.legal h2 { font-family: var(--sans); font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; margin-top: 18px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.legal .ph { background: var(--warn-soft); color: var(--warn); padding: 0 4px; border-radius: 4px; }
