/* JimjoAI — sistema de diseño compartido */
:root {
  --bg: #f3f0e8;
  --bg-2: #ebe6da;
  --card: #fffdf8;
  --ink: #0d1015;
  --ink-2: #2a2e36;
  --muted: #5b606b;
  --line: #d9d3c4;
  --night: #0b0d12;
  --night-2: #151922;
  --night-line: rgba(255, 255, 255, .1);
  --night-muted: #a3a9b6;
  --signal: #ff5a1f;
  --signal-ink: #b83508;
  --signal-strong: #e0460f;
  --volt: #c8f135;
  --sky: #7cc4ff;
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1200px;
  --shadow: 0 30px 80px -30px rgba(13, 16, 21, .35);
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { color: var(--ink); background: var(--volt); }
:focus-visible { outline: 3px solid var(--signal-ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
p { margin: 0; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; color: var(--bg); background: var(--ink); font-weight: 700;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: clamp(56px, 7vw, 88px) 0; }
.section-dark { color: #f3f1ea; background: var(--night); }
.section-dark .muted, .section-dark .lead { color: var(--night-muted); }
.section-alt { background: var(--bg-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  color: var(--signal-ink); font: 600 .74rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--signal); animation: blink 2.4s steps(1) infinite; }
.section-dark .eyebrow { color: var(--volt); }
.section-dark .eyebrow::before { background: var(--volt); }
.title-xl { font-size: clamp(2.6rem, 6.6vw, 5.6rem); line-height: .96; letter-spacing: -.05em; }
.title-lg { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
.title-md { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.lead { max-width: 640px; margin-top: 22px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.muted { color: var(--muted); }
.mark { position: relative; white-space: nowrap; }
.mark::after {
  content: ""; position: absolute; z-index: -1; left: -.06em; right: -.06em; bottom: .06em; height: .34em;
  background: var(--volt); transform: scaleX(0); transform-origin: left; transition: transform .9s .35s var(--ease);
}
.is-visible .mark::after, .mark.is-visible::after { transform: scaleX(1); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: 56px; }
.section-head > div { max-width: 720px; }

/* Botones */
.button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 22px; overflow: hidden;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: .98rem; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.button svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.button:hover svg { transform: translateX(4px); }
.button:active { transform: scale(.97); }
.button-primary { color: #fff; background: var(--ink); box-shadow: 0 12px 30px -12px rgba(13,16,21,.6); }
.button-primary:hover { background: var(--signal-ink); box-shadow: 0 16px 36px -12px rgba(255,90,31,.6); }
.button-signal { color: var(--ink); background: var(--signal); }
.button-signal:hover { color: #fff; background: var(--ink); }
.button-volt { color: var(--ink); background: var(--volt); }
.button-volt:hover { background: #fff; }
.button-ghost { border-color: currentColor; background: transparent; }
.button-ghost:hover { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.section-dark .button-ghost:hover, .cta-band .button-ghost:hover { color: var(--ink); background: #fff; border-color: #fff; }
.button-sm { min-height: 42px; padding: 10px 18px; font-size: .9rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--signal-ink); }
.section-dark .link-arrow:hover { color: var(--volt); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(243, 240, 232, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.brand-mark { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--volt); background: var(--ink); }
.brand-mark svg { width: 20px; height: 20px; }
.brand-mark::after { content: ""; position: absolute; right: -3px; top: -3px; width: 10px; height: 10px; border: 2px solid var(--bg); border-radius: 50%; background: var(--signal); animation: pulse 2.4s ease-out infinite; }
.brand b { color: var(--signal-strong); font-weight: 800; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-links a { position: relative; display: block; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; transition: background .2s; }
.nav-links a:hover { background: rgba(13,16,21,.06); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--signal); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 6px; padding: 8px 12px;
  border: 1.5px solid var(--line); border-radius: 999px; font: 600 .78rem/1 var(--font-mono); letter-spacing: .06em; text-decoration: none;
  transition: border-color .2s, background .2s;
}
.lang-switch:hover { border-color: var(--ink); background: var(--card); }
.lang-switch svg { width: 15px; height: 15px; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 1.5px solid var(--line); border-radius: 50%; background: var(--card); }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(13,16,21,.13) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 8px 14px 8px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: .85rem; font-weight: 600;
}
.status-pill i { width: 9px; height: 9px; border-radius: 50%; background: #1fb866; box-shadow: 0 0 0 4px rgba(31,184,102,.18); animation: pulse 2s ease-out infinite; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.9rem); line-height: .94; letter-spacing: -.055em; }
.rotator { position: relative; display: grid; color: var(--signal-strong); }
.rotator > span { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(.5em); filter: blur(6px); transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s; }
.rotator > span.is-active { opacity: 1; transform: none; filter: none; }
.rotator > span.is-leaving { opacity: 0; transform: translateY(-.5em); filter: blur(6px); }
.hero .lead { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.proof-item strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; letter-spacing: -.05em; }
.proof-item strong em { font-style: normal; color: var(--signal-strong); }
.proof-item > span { display: block; max-width: 210px; margin-top: 6px; color: var(--muted); font-size: .86rem; line-height: 1.4; }

/* Tablero animado del hero */
.board {
  position: relative; padding: 18px; border-radius: 26px; color: #eef0f4; background: var(--night);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.04) inset; transform: rotate(1.2deg);
  transition: transform .6s var(--ease);
}
.board:hover { transform: rotate(0deg) translateY(-4px); }
.board-bar { display: flex; align-items: center; gap: 8px; padding: 2px 4px 14px; font: 500 .72rem var(--font-mono); color: var(--night-muted); }
.board-bar .dots { display: flex; gap: 6px; margin-right: 8px; }
.board-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #333946; }
.board-bar .dots i:first-child { background: var(--signal); }
.board-bar .sync { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--volt); }
.board-bar .sync svg { width: 13px; height: 13px; animation: spin 2.4s linear infinite; }
.board-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.kpi { padding: 12px; border: 1px solid var(--night-line); border-radius: 14px; background: var(--night-2); }
.kpi small { display: block; color: var(--night-muted); font: 500 .64rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.kpi b { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; letter-spacing: -.03em; }
.kpi b.up { color: var(--volt); }
.board-rows { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.board-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 11px 12px;
  border: 1px solid var(--night-line); border-radius: 12px; background: rgba(255,255,255,.025);
  transition: background .4s, border-color .4s;
}
.board-row.is-updated { border-color: rgba(200,241,53,.55); background: rgba(200,241,53,.07); }
.board-row .who { display: block; font-size: .84rem; font-weight: 600; }
.board-row .meta { display: block; color: var(--night-muted); font: 500 .68rem var(--font-mono); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font: 600 .68rem var(--font-mono); white-space: nowrap; transition: background .4s, color .4s; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip[data-s="0"] { color: #ffb38f; background: rgba(255,90,31,.14); }
.chip[data-s="1"] { color: #ffd36e; background: rgba(255,200,60,.12); }
.chip[data-s="2"] { color: var(--sky); background: rgba(124,196,255,.13); }
.chip[data-s="3"] { color: var(--volt); background: rgba(200,241,53,.13); }
.board-toast {
  position: absolute; left: -28px; bottom: 34px; display: flex; align-items: center; gap: 12px; max-width: 290px; padding: 12px 14px;
  border-radius: 16px; color: var(--ink); background: var(--card); box-shadow: 0 24px 50px -16px rgba(0,0,0,.45);
  transform: translateY(14px) scale(.96); opacity: 0; transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.board-toast.is-shown { opacity: 1; transform: none; }
.board-toast .ico { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--signal); }
.board-toast .ico svg { width: 17px; height: 17px; }
.board-toast .txt b { display: block; font-size: .8rem; }
.board-toast .txt span { display: block; color: var(--muted); font-size: .74rem; line-height: 1.35; }

/* Cinta de herramientas */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--card); }
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 14px; padding: 20px 28px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.marquee-item::after { content: "✦"; color: var(--signal); font-size: .8rem; margin-left: 28px; }
.marquee-label { padding: 20px 28px; color: var(--muted); font: 600 .72rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }

/* Tarjetas */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.section-dark .card { border-color: var(--night-line); background: var(--night-2); }
.section-dark .card:hover { border-color: rgba(200,241,53,.4); }
.card-num { color: var(--signal-ink); font: 600 .78rem var(--font-mono); }
.section-dark .card-num { color: var(--volt); }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; color: var(--volt); background: var(--ink); transition: transform .4s var(--ease), background .3s; }
.card-icon svg { width: 24px; height: 24px; }
.card:hover .card-icon { transform: rotate(-8deg) scale(1.06); background: var(--signal); color: #fff; }
.section-dark .card-icon { color: var(--ink); background: var(--volt); }
.card h3 { margin-top: 28px; font-size: clamp(1.35rem, 2vw, 1.6rem); }
.card p { margin-top: 12px; color: var(--muted); }
.section-dark .card p { color: var(--night-muted); }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 24px; }
.tag { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font: 500 .7rem var(--font-mono); }
.section-dark .tag { border-color: var(--night-line); color: #d6d9e0; }
.card .link-arrow { margin-top: 24px; align-self: flex-start; }
.card-featured { color: #f3f1ea; background: var(--ink); border-color: var(--ink); }
.card-featured p { color: var(--night-muted); }
.card-featured .card-icon { color: var(--ink); background: var(--volt); }
.card-featured .tag { border-color: var(--night-line); color: #d6d9e0; }

/* Diagnóstico rápido */
.quiz { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: stretch; }
.quiz-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; padding: 0; border: 0; }
.quiz-option { position: relative; }
.quiz-option input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-option label {
  display: flex; align-items: flex-start; gap: 12px; height: 100%; padding: 18px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); font-weight: 600; line-height: 1.35;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.quiz-option label:hover { border-color: var(--ink); }
.quiz-option .box { flex: 0 0 22px; height: 22px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 6px; transition: background .2s; }
.quiz-option .box svg { width: 14px; height: 14px; opacity: 0; transform: scale(.4); transition: .25s var(--ease); color: var(--ink); }
.quiz-option input:checked + label { border-color: var(--ink); background: var(--volt); transform: translateY(-2px); }
.quiz-option input:checked + label .box { background: #fff; }
.quiz-option input:checked + label .box svg { opacity: 1; transform: none; }
.quiz-option input:focus-visible + label { outline: 3px solid var(--signal-ink); outline-offset: 3px; }
.quiz-result { display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius); color: #f3f1ea; background: var(--ink); }
.meter { height: 10px; margin: 18px 0 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.12); }
.meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--volt), var(--signal)); transition: width .6s var(--ease); }
.quiz-result .label { color: var(--night-muted); font: 500 .74rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.quiz-result h3 { margin-top: 10px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.quiz-result p { margin-top: 12px; color: var(--night-muted); }
.quiz-result .button { margin-top: auto; align-self: flex-start; }
.quiz-result .spacer { flex: 1; min-height: 24px; }

/* Casos */
.case-card { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.case-stat { font-family: var(--font-display); font-size: clamp(4.5rem, 10vw, 8rem); font-weight: 800; line-height: .82; letter-spacing: -.07em; color: var(--signal-strong); }
.section-dark .case-stat { color: var(--volt); }
.case-stat small { display: block; margin-top: 12px; color: var(--muted); font: 500 .72rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.section-dark .case-stat small { color: var(--night-muted); }
.case-meta { display: inline-block; margin-bottom: 12px; color: var(--muted); font: 600 .72rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.section-dark .case-meta { color: var(--night-muted); }
.case-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.before-after > div { padding: 16px; border-radius: 14px; background: var(--bg); }
.section-dark .before-after > div { background: rgba(255,255,255,.05); }
.before-after b { display: block; margin-bottom: 6px; font: 600 .7rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.before-after .before b { color: var(--signal-ink); }
.section-dark .before-after .before b { color: #ff9a73; }
.before-after .after b { color: #3a7300; }
.section-dark .before-after .after b { color: var(--volt); }
.before-after p { margin: 0; font-size: .92rem; }
.check-list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--volt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1015' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Proceso */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 0; top: 23px; height: 2px; width: var(--progress, 0%); background: var(--signal); transition: width 1.6s var(--ease); }
.section-dark .steps::before { background: var(--night-line); }
.section-dark .steps::after { background: var(--volt); }
.step { position: relative; z-index: 1; counter-increment: s; }
.step::before {
  content: counter(s, decimal-leading-zero); display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--bg); font: 700 .85rem var(--font-mono);
}
.section-dark .step::before { border-color: var(--volt); color: var(--volt); background: var(--night); }
.step h3 { font-size: 1.4rem; }
.step p { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.section-dark .step p { color: var(--night-muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 24px 56px 24px 0; cursor: pointer; font-family: var(--font-display); font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 600; letter-spacing: -.02em; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border: 1.5px solid var(--ink); border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1015' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .3s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--volt); }
.faq details p { max-width: 760px; padding: 0 56px 26px 0; color: var(--muted); }

/* CTA */
.cta-band { position: relative; overflow: hidden; padding: clamp(44px, 6vw, 80px); border-radius: 32px; color: #f3f1ea; background: var(--night); }
.cta-band::before { content: ""; position: absolute; right: -120px; top: -160px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(255,90,31,.55), transparent 65%); filter: blur(10px); animation: float 9s ease-in-out infinite; }
.cta-band::after { content: ""; position: absolute; left: 20%; bottom: -220px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(200,241,53,.28), transparent 65%); animation: float 11s ease-in-out infinite reverse; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { max-width: 820px; font-size: clamp(2.2rem, 5vw, 4.4rem); }
.cta-band p { max-width: 560px; margin-top: 18px; color: var(--night-muted); font-size: 1.1rem; }
.cta-band .hero-actions { margin-top: 32px; }

/* Encabezado de página interna */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); }
.page-hero h1 { max-width: 980px; font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: .96; letter-spacing: -.05em; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; color: var(--muted); font: 500 .78rem var(--font-mono); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--signal-ink); }

/* Formulario */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form-card { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .86rem; font-weight: 700; }
.field .opt { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(200,241,53,.55); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--signal); }
.field-error { min-height: 0; color: var(--signal-ink); font-size: .8rem; font-weight: 600; }
.chips-field { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.chips-field legend { margin-bottom: 10px; }
.chips-field input { position: absolute; opacity: 0; pointer-events: none; }
.chips-field label { padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: .86rem; font-weight: 600; cursor: pointer; transition: .2s; }
.chips-field label:hover { border-color: var(--ink); }
.chips-field input:checked + label { border-color: var(--ink); background: var(--volt); }
.chips-field input:focus-visible + label { outline: 3px solid var(--signal-ink); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-note { color: var(--muted); font-size: .8rem; }
.form-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-size: .92rem; font-weight: 600; }
.form-status.is-ok { display: block; color: #1d4d00; background: #e6f8c4; }
.form-status.is-error { display: block; color: #7a1f00; background: #ffe2d6; }
.form-status.is-info { display: block; color: #4a3b00; background: #fff3c4; }
.button[aria-busy="true"] { pointer-events: none; opacity: .7; }
.contact-points { display: grid; gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; }
.contact-points li { display: flex; gap: 14px; align-items: flex-start; }
.contact-points .ico { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--volt); background: var(--ink); }
.contact-points .ico svg { width: 19px; height: 19px; }
.contact-points b { display: block; }
.contact-points span { color: var(--muted); font-size: .92rem; }

/* Texto largo (privacidad) */
.prose { max-width: 760px; }
.prose h2 { margin: 48px 0 14px; font-size: 1.6rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; }

/* Footer */
.site-footer { padding: clamp(56px, 7vw, 88px) 0 32px; color: #e9e7e0; background: var(--night); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--night-line); }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { color: var(--ink); background: var(--volt); }
.site-footer .brand-mark::after { border-color: var(--night); }
.footer-tag { max-width: 320px; margin-top: 16px; color: var(--night-muted); font-size: .92rem; }
.footer-col h2 { margin-bottom: 14px; color: var(--night-muted); font: 600 .72rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-col a { color: #e9e7e0; text-decoration: none; }
.footer-col a:hover { color: var(--volt); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; color: var(--night-muted); font-size: .82rem; }
.footer-big { margin-top: 40px; font-family: var(--font-display); font-size: clamp(3.4rem, 15vw, 13rem); font-weight: 800; line-height: .8; letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.16); user-select: none; white-space: nowrap; overflow: hidden; }
.footer-big b { color: var(--signal); -webkit-text-stroke: 0; }

/* Barra fija móvil */
.mobile-cta { display: none; }

/* Animación de entrada */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Progreso de lectura */
.scroll-progress { position: fixed; left: 0; top: 0; z-index: 60; height: 3px; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--signal); pointer-events: none; }

@keyframes blink { 50% { opacity: .25; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,31,.5); } 70% { box-shadow: 0 0 0 9px rgba(255,90,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,31,0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes float { 50% { transform: translate(-30px, 30px) scale(1.08); } }

@media (max-width: 1020px) {
  .hero-grid, .quiz, .contact-layout { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2rem, 11vw, 4.9rem); }
  .board { max-width: 560px; transform: none; }
  .board-toast { left: 12px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .grid-2 .case-card { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before, .steps::after { display: none; }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: 76px 0 0 0; z-index: 49; flex-direction: column; align-items: stretch; gap: 18px;
    padding: 24px; background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease); }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { padding: 16px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
  .nav-links a[aria-current="page"] { color: var(--signal-ink); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .lang-switch { align-self: flex-start; margin: 0; }
  .nav-menu .button { width: 100%; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 680px) {
  .container { width: calc(100% - 32px); }
  .grid-2, .grid-3, .grid-4, .quiz-options, .form-grid, .before-after { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .case-card { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; white-space: normal; text-align: center; line-height: 1.2; }
  .hero-grid > * { min-width: 0; }
  .hero-proof { gap: 20px; }
  .board-kpis { grid-template-columns: repeat(3, 1fr); }
  .kpi { padding: 10px 8px; }
  .kpi b { font-size: 1.2rem; }
  .board-row .meta { display: none; }
  .board-toast { position: relative; left: auto; bottom: auto; margin-top: 12px; max-width: none; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-band { border-radius: 24px; }
  .faq summary { padding-right: 48px; }
  .faq details p { padding-right: 0; }
  .mobile-cta {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex;
    transform: translateY(140%); transition: transform .4s var(--ease);
  }
  .mobile-cta.is-shown, .mobile-cta:focus-within { transform: none; }
  .mobile-cta .button { width: 100%; box-shadow: 0 18px 40px -10px rgba(13,16,21,.55); }
  .site-footer { padding-bottom: 96px; }
}

@media (max-width: 420px) {
  .rotator > span { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
  .board-toast { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .board { transform: none; }
}

/* Páginas internas */
.page-index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.page-index .tag { padding: 8px 12px; background: var(--card); text-decoration: none; transition: border-color .2s, background .2s; }
.page-index .tag:hover { border-color: var(--ink); background: var(--volt); }
.service { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
main [id] { scroll-margin-top: 88px; }
.service:first-child { padding-top: 0; border-top: 0; }
.service-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.service-top { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.service-body { margin-top: 16px; color: var(--ink-2); }
.service .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0; }
.service-example { margin-top: 24px; padding: 18px; border-radius: var(--radius-sm); background: var(--bg); }
.service-example b { display: block; margin-bottom: 6px; color: var(--signal-ink); font: 600 .7rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.card .service-example p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.tool-card h3 { margin-top: 0; font-size: 1.25rem; }
.tool-card p { font-size: .94rem; }
.cost-grid { gap: clamp(24px, 5vw, 64px); align-items: start; }
.cost-grid .lead { margin-top: 0; }
.proof-link { text-decoration: none; }
.proof-link:hover strong { color: var(--signal-ink); }
.confidential { margin-top: 18px; }
.case-head { margin-bottom: clamp(32px, 5vw, 56px); }
.case-head .lead { margin-top: 18px; }
.case-blocks .case-meta, .ba-card .case-meta { margin: 0; }
.case-result strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.35rem; line-height: 1.15; letter-spacing: -.02em; }
.section-dark .case-result strong { color: #fff; }
.ba-card { margin-top: 18px; }
.ba-card:hover { transform: none; box-shadow: none; }
.section-dark .ba-card:hover { border-color: var(--night-line); }
.steps-detailed .check-list { gap: 6px; margin-top: 14px; font-size: .9rem; }
.contact-points li[hidden] { display: none; }
.chips-field { position: relative; }
.field.chips-field input { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }
.contact-direct { margin-top: 24px; }
.form-grid .field { align-content: start; }
.contact-hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.form-card .title-md + .form-intro { margin: 8px 0 24px; color: var(--muted); font-size: .9rem; }
.privacy { padding-top: 0; }
@media (max-width: 860px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* Con movimiento reducido el aviso del tablero no tapa las filas */
@media (prefers-reduced-motion: reduce) and (min-width: 681px) {
  .board-toast { display: none; }
}

/* Autoevaluación por tipo de negocio */
.quiz { align-items: start; }
.quiz-main { display: grid; gap: 26px; min-width: 0; }
.quiz-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.quiz-step-label { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 0; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; }
.quiz-step-label span { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--volt); background: var(--ink); font: 600 .78rem var(--font-mono); }
.quiz-industries { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-industries input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-industries label { padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-size: .92rem; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease); }
.quiz-industries label:hover { border-color: var(--ink); transform: translateY(-1px); }
.quiz-industries input:checked + label { border-color: var(--ink); color: #fff; background: var(--ink); }
.quiz-industries input:focus-visible + label { outline: 3px solid var(--signal-ink); outline-offset: 3px; }
html:not(.js) .quiz-step-industry { display: none; }
.quiz-option.is-entering { animation: optIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
.quiz-result { position: sticky; top: 96px; min-height: 380px; }
.quiz-recs { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.quiz-recs[hidden] { display: none; }
.quiz-recs ul { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.quiz-recs li { position: relative; padding-left: 24px; color: #f3f1ea; font-size: .95rem; line-height: 1.4; animation: optIn .4s var(--ease) both; }
.quiz-recs li::before { content: "→"; position: absolute; left: 0; color: var(--volt); }
@keyframes optIn { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 1020px) { .quiz-result { position: static; min-height: 0; } }
@media (max-width: 680px) { .quiz-industries label { padding: 9px 13px; font-size: .86rem; } }
@media (max-width: 680px) {
  .quiz-industries { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 10px; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent); }
  .quiz-industries::-webkit-scrollbar { display: none; }
  .quiz-industries label { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; }
  .quiz-options { gap: 8px; }
  .quiz-option label { padding: 13px 14px; font-size: .93rem; }
}
