/* Adoptia portal, v3.
   Concept: a calm, neutral workbench where each service is a colored "instrument".
   Hero = a launcher ("¿Qué querés hacer hoy?") with one live card per service.
   Below, one chapter per service: its five steps drive a small product preview built in HTML. */

:root {
  --bg: #f3f4f6;
  --bg-2: #e9ebef;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --fg: #0b0e14;
  --fg-2: #434b5a;
  --fg-3: #5f6877;
  --line: #d9dde4;
  --line-2: #c4c9d2;
  --sk: rgba(11, 14, 20, .12);
  --focus: #1d4fd0;
  --c1: #ff7a1a; --c1-ink: #a3410a; --c1-soft: #fff0e4;
  --c2: #2f6bff; --c2-ink: #1d4fd0; --c2-soft: #e6eeff;
  --c3: #f0397a; --c3-ink: #b0164f; --c3-soft: #ffe6ef;
  --c4: #f5c400; --c4-ink: #735700; --c4-soft: #fff6cc;
  --c5: #22c993; --c5-ink: #087553; --c5-soft: #e2f6ee;
  --btn-bg: #0b0e14; --btn-fg: #ffffff;
  --shadow-sm: 0 1px 2px rgba(11, 14, 20, .06);
  --shadow: 0 1px 2px rgba(11, 14, 20, .05), 0 10px 30px -14px rgba(11, 14, 20, .25);
  --shadow-lg: 0 2px 4px rgba(11, 14, 20, .04), 0 30px 60px -28px rgba(11, 14, 20, .35);
  --grid-dot: rgba(11, 14, 20, .09);

  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --step--1: .8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.5rem, 1.15rem + 1.4vw, 2.1rem);
  --step-3: clamp(1.85rem, 1.3rem + 2.4vw, 3rem);
  --step-4: clamp(2.15rem, 1.25rem + 3.6vw, 4.1rem);
  --maxw: 1240px;
  --r: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0c10; --bg-2: #0f1218; --surface: #13171e; --surface-2: #181d26;
    --fg: #eef1f6; --fg-2: #a9b1bf; --fg-3: #8f98a7; --line: #222934; --line-2: #2e3643;
    --sk: rgba(238, 241, 246, .13); --focus: #8fb0ff;
    --c1-ink: #ff9a52; --c1-soft: #2a1709;
    --c2-ink: #8aaeff; --c2-soft: #0f1a33;
    --c3-ink: #ff7aaa; --c3-soft: #2b0d19;
    --c4-ink: #f7d23d; --c4-soft: #282006;
    --c5-ink: #45d9a0; --c5-soft: #082219;
    --btn-bg: #eef1f6; --btn-fg: #0a0c10;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -18px rgba(0, 0, 0, .8);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 80px -30px rgba(0, 0, 0, .9);
    --grid-dot: rgba(238, 241, 246, .07);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0c10; --bg-2: #0f1218; --surface: #13171e; --surface-2: #181d26;
  --fg: #eef1f6; --fg-2: #a9b1bf; --fg-3: #8f98a7; --line: #222934; --line-2: #2e3643;
  --sk: rgba(238, 241, 246, .13); --focus: #8fb0ff;
  --c1-ink: #ff9a52; --c1-soft: #2a1709;
  --c2-ink: #8aaeff; --c2-soft: #0f1a33;
  --c3-ink: #ff7aaa; --c3-soft: #2b0d19;
  --c4-ink: #f7d23d; --c4-soft: #282006;
  --c5-ink: #45d9a0; --c5-soft: #082219;
  --btn-bg: #eef1f6; --btn-fg: #0a0c10;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -18px rgba(0, 0, 0, .8);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 80px -30px rgba(0, 0, 0, .9);
  --grid-dot: rgba(238, 241, 246, .07);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; margin: 0; font-optical-sizing: auto; }
p { margin: 0; text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--btn-bg); color: var(--btn-fg); padding: 12px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.s1 { --seg: var(--c1); --ink: var(--c1-ink); --soft: var(--c1-soft); }
.s2 { --seg: var(--c2); --ink: var(--c2-ink); --soft: var(--c2-soft); }
.s3 { --seg: var(--c3); --ink: var(--c3-ink); --soft: var(--c3-soft); }
.s4 { --seg: var(--c4); --ink: var(--c4-ink); --soft: var(--c4-soft); }
.s5 { --seg: var(--c5); --ink: var(--c5-ink); --soft: var(--c5-soft); }
[hidden] { display: none !important; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); font-weight: 500; }
.pip { width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--c1) 0 20%, var(--c2) 0 40%, var(--c3) 0 60%, var(--c4) 0 80%, var(--c5) 0); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  padding-top: env(safe-area-inset-top, 0px);
}
.top-in { display: flex; align-items: center; gap: 8px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; text-decoration: none; min-height: 44px; margin-right: auto; }
.brand svg { width: 28px; height: 28px; flex: none; transition: transform .6s var(--ease); }
.brand:hover svg { transform: rotate(90deg); }
.nav { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .975rem; color: var(--fg-2); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--fg); background: var(--bg-2); }
.nav a[class^="s"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--seg); transform: scale(.7); opacity: .55; transition: transform .25s var(--ease), opacity .25s; }
.nav a.is-here { color: var(--fg); background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.nav a.is-here::before { transform: scale(1.15); opacity: 1; }
.nav .n-full { display: none; }
@media (max-width: 359px) { .nav a { padding: 0 8px; font-size: .9rem; } .brand { font-size: 1.05rem; gap: 8px; } .brand svg { width: 24px; height: 24px; } }
@media (min-width: 900px) { .nav .n-full { display: list-item; } .nav .n-short { display: none; } }
.theme { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg-2); cursor: pointer; transition: color .2s, transform .3s var(--ease); }
.theme:hover { color: var(--fg); transform: rotate(-12deg); }
.theme svg { width: 18px; height: 18px; grid-area: 1 / 1; transition: opacity .25s, transform .4s var(--ease); }
.theme .i-moon { opacity: 0; transform: scale(.5) rotate(-40deg); }
:root[data-theme="dark"] .theme .i-sun { opacity: 0; transform: scale(.5) rotate(40deg); }
:root[data-theme="dark"] .theme .i-moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .i-sun { opacity: 0; transform: scale(.5) rotate(40deg); }
  :root:not([data-theme="light"]) .theme .i-moon { opacity: 1; transform: none; }
}
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--c1) 0 20%, var(--c2) 20% 40%, var(--c3) 40% 60%, var(--c4) 60% 80%, var(--c5) 80% 100%); }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; transition: transform .25s var(--ease), background-color .2s, border-color .2s, box-shadow .25s; }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn-solid { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--shadow); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-solid:hover svg { transform: translateY(3px); }
.btn-ghost { border-color: var(--line-2); color: var(--fg); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn-ghost:hover { background: var(--surface); border-color: var(--fg-3); }
.btn-svc { justify-self: start; background: var(--seg); color: #0b0e14; box-shadow: 0 10px 24px -14px var(--seg); }
.s2 .btn-svc { color: #fff; }
.btn-svc:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px var(--seg); }
.btn-svc .arrow { transition: transform .3s var(--ease); }
.btn-svc:hover .arrow { transform: translate(2px, -2px); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--grid-dot) 1.2px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(90% 70% at 70% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(90% 70% at 70% 30%, #000 30%, transparent 75%); }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px circle at var(--hx, 72%) var(--hy, 30%), color-mix(in srgb, var(--c2) 9%, transparent), transparent 65%); transition: background .2s; }
.hero-in { display: grid; gap: 40px 56px; padding-block: 44px 72px; align-items: center; }
@media (min-width: 1040px) { .hero-in { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); padding-block: 72px 104px; } }
.hero-copy { display: grid; gap: 24px; min-width: 0; justify-items: start; }
.hero h1 { font-size: var(--step-4); letter-spacing: -.03em; line-height: 1; }
.hero h1 .join { position: relative; white-space: nowrap; display: inline-block; }
.hero h1 .join::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .12em; border-radius: 99px;
  background: linear-gradient(90deg, var(--c1) 0 20%, var(--c2) 20% 40%, var(--c3) 40% 60%, var(--c4) 60% 80%, var(--c5) 80% 100%);
  transform-origin: left; animation: draw 1.3s .35s var(--ease) both; }
@keyframes draw { from { transform: scaleX(.04); } to { transform: scaleX(1); } }
@media (max-width: 380px) { .hero h1 .join { white-space: normal; } }
.lede { font-size: var(--step-1); color: var(--fg-2); max-width: 38ch; line-height: 1.5; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-self: stretch; }
@media (max-width: 480px) { .ctas { display: grid; width: 100%; } }

/* launcher */
.launcher { min-width: 0; display: grid; gap: 14px; }
.ask { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ask > svg { width: 22px; height: 22px; color: var(--fg-3); flex: none; }
.ask h2 { font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem); letter-spacing: -.02em; display: flex; align-items: center; gap: 2px; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--fg); margin-left: 4px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.goals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; position: relative; }
@media (max-width: 620px) { .goals { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.goals > li { display: flex; }
.goal {
  --mx: 50%; --my: 50%;
  position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 10px; width: 100%;
  padding: 16px 18px 16px; border-radius: var(--r); text-decoration: none; color: var(--fg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  isolation: isolate; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .3s, border-color .3s;
  animation: rise .8s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 80ms + 120ms);
}
@keyframes rise { from { transform: translateY(16px); } }
/* glow that follows the pointer across the whole grid (Linear/Vercel-style border light) */
.goal::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .35s;
  background: radial-gradient(340px circle at var(--mx) var(--my), color-mix(in srgb, var(--seg) 16%, transparent), transparent 70%); }
.goal::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(240px circle at var(--mx) var(--my), var(--seg), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.goals.is-lit .goal::before, .goals.is-lit .goal::after { opacity: 1; }
.goal:hover, .goal:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--seg) 55%, var(--line)); }
.goal:hover::before, .goal:focus-visible::before { opacity: 1; }
.goal-k { position: absolute; top: 14px; right: 16px; font-family: var(--font-mono); font-size: .75rem; color: var(--fg-3); border: 1px solid var(--line); border-radius: 6px; min-width: 22px; height: 22px; display: grid; place-items: center; background: var(--surface-2); }
.goal h3 { font-size: 1.28rem; line-height: 1.1; padding-right: 30px; }
.goal p { font-size: .95rem; line-height: 1.5; color: var(--fg-2); }
.goal-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 2px; }
.goal-prod { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); font-weight: 500; }
.goal-prod::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--seg); }
.goal-go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--ink); flex: none; transition: transform .3s var(--ease), background-color .3s, color .3s; }
.goal-go svg { width: 16px; height: 16px; }
.goal:hover .goal-go, .goal:focus-visible .goal-go { background: var(--seg); color: #0b0e14; transform: rotate(45deg); }
.s2.goal:hover .goal-go, .s2.goal:focus-visible .goal-go { color: #fff; }

/* the live strip at the top of each launcher card */
.strip { position: relative; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 14px; border-radius: 12px; background: var(--soft); overflow: hidden; margin-right: 34px; }
.m-radar { position: relative; width: 44px; height: 44px; border-radius: 50%; flex: none; border: 1.5px solid color-mix(in srgb, var(--ink) 45%, transparent);
  background: radial-gradient(circle, transparent 38%, color-mix(in srgb, var(--ink) 25%, transparent) 39% 41%, transparent 42%); overflow: hidden; }
.m-radar i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, color-mix(in srgb, var(--seg) 70%, transparent), transparent 30%); animation: spin 3.2s linear infinite; }
.m-radar b { position: absolute; left: var(--x); top: var(--y); width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--ink); animation: ping 3.2s var(--d) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0%, 100% { transform: scale(.6); opacity: .35; } 10% { transform: scale(1.4); opacity: 1; } 40% { transform: scale(1); opacity: .9; } }
.m-rank { display: grid; gap: 7px; flex: 1; }
.m-rank i { display: block; height: 7px; border-radius: 9px; width: var(--w); background: linear-gradient(90deg, var(--seg), color-mix(in srgb, var(--seg) 35%, transparent)); transform-origin: left; animation: bar 3.2s var(--ease) infinite; }
.m-rank i:nth-child(2) { animation-delay: .15s; } .m-rank i:nth-child(3) { animation-delay: .3s; }
@keyframes bar { 0% { transform: scaleX(.15); } 30%, 85% { transform: scaleX(1); } 100% { transform: scaleX(.15); } }
.m-play { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--seg); color: #fff; box-shadow: 0 0 0 0 color-mix(in srgb, var(--seg) 50%, transparent); animation: pulse 2.4s infinite; }
.m-play svg { width: 18px; height: 18px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.m-class { flex: 1; display: grid; gap: 6px; }
.m-class .sub { height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 30%, transparent); width: 86%; }
.m-class .sub.s { width: 54%; }
.m-class .bar { height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 18%, transparent); overflow: hidden; margin-top: 4px; }
.m-class .bar i { display: block; height: 100%; background: var(--seg); transform-origin: left; animation: fill 6s linear infinite; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.m-reel { position: relative; width: 30px; height: 50px; border-radius: 6px; flex: none; background: linear-gradient(170deg, var(--seg), color-mix(in srgb, var(--seg) 40%, #000)); overflow: hidden; }
.m-reel .face { position: absolute; left: 50%; top: 9px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 13px 0 4px rgba(255,255,255,.5); }
.m-reel .cap { position: absolute; left: 4px; right: 4px; bottom: 6px; height: 4px; border-radius: 3px; background: #fff; animation: cap 1.6s steps(3) infinite; transform-origin: left; }
@keyframes cap { from { transform: scaleX(.3); } to { transform: scaleX(1.3); } }
.m-wave { flex: 1; display: flex; align-items: center; gap: 4px; height: 40px; }
.m-wave i { flex: 1; max-width: 6px; height: 100%; border-radius: 4px; background: var(--seg); transform: scaleY(.3); animation: wave 1.1s ease-in-out infinite; }
.m-wave i:nth-child(2n) { animation-delay: -.3s; } .m-wave i:nth-child(3n) { animation-delay: -.6s; } .m-wave i:nth-child(5n) { animation-delay: -.85s; }
@keyframes wave { 50% { transform: scaleY(1); } }
/* Coco Code strip: a line of code is typed in the editor and the page builds itself on the right */
.m-editor { flex: 1; min-width: 0; display: grid; gap: 5px; align-content: center; height: 46px; padding: 0 9px; border-radius: 8px; background: #0b0e14; border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); }
.ed-ln { display: flex; align-items: center; gap: 5px; min-width: 0; height: 9px; }
.ed-ln b { font-family: var(--font-mono); font-size: 8.5px; line-height: 1; font-weight: 500; color: var(--c4); flex: none; }
.ed-ln i { display: block; height: 5px; border-radius: 4px; width: var(--w); background: rgba(255, 255, 255, .6); transform-origin: left; animation: ed-type 4.8s steps(7) infinite backwards; }
.ed-ln i::after { content: ""; float: right; width: 2px; height: 9px; margin: -2px -4px 0 0; background: var(--c4); animation: blink .8s steps(1) infinite; }
.ed-ln:nth-child(2) i { animation-delay: .6s; } .ed-ln:nth-child(3) i { animation-delay: 1.2s; }
@keyframes ed-type { 0% { transform: scaleX(0); } 18%, 88% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.m-to { flex: none; width: 10px; height: 10px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg); margin-left: -4px; opacity: .7; }
.m-page { flex: none; display: grid; gap: 4px; align-content: start; width: 48px; height: 46px; padding: 5px; border-radius: 7px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); }
.m-page i { display: block; border-radius: 3px; animation: pop 4.8s var(--ease) infinite backwards; }
.m-page .pg1 { height: 12px; background: var(--seg); animation-delay: .5s; }
.m-page .pg2 { height: 5px; width: 80%; background: color-mix(in srgb, var(--ink) 40%, transparent); animation-delay: 1.1s; }
.m-page .pg3 { height: 8px; width: 55%; border-radius: 99px; background: var(--ink); animation-delay: 1.7s; }
@keyframes pop { 0% { transform: scale(0); opacity: 0; } 15%, 85% { transform: none; opacity: 1; } 100% { transform: scale(0); opacity: 0; } }

/* ---------- sections ---------- */
section { scroll-margin-top: 76px; }
.band { padding-block: 80px; }
@media (min-width: 900px) { .band { padding-block: 112px; } }
.band-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 48rem; justify-items: start; }
.sec-head h2 { font-size: var(--step-3); }
.sec-head > p:last-child { color: var(--fg-2); font-size: var(--step-1); max-width: 44ch; }
/* gentle scroll-linked entrance: transform only, so text is always readable */
@supports (animation-timeline: view()) {
  .sec-head, .chapter .ch-text, .cell, .fstep { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes lift { from { transform: translateY(28px); } to { transform: none; } }
}

/* jump bar */
.jump { position: sticky; top: calc(72px + env(safe-area-inset-top, 0px)); z-index: 5; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 24px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.jump a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 8px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--fg-2); transition: background-color .25s, color .25s; white-space: nowrap; }
.jump .jn { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-family: var(--font-mono); font-size: .72rem; background: var(--soft); color: var(--ink); flex: none; transition: background-color .25s, color .25s; }
.jump a:hover { color: var(--fg); background: var(--bg-2); }
.jump a.is-here { color: var(--fg); background: var(--soft); }
.jump a.is-here .jn { background: var(--seg); color: #0b0e14; }
.jump a.s2.is-here .jn { color: #fff; }
@media (max-width: 640px) {
  /* five services: number on top, label underneath, so all fit on a phone */
  .jump { gap: 2px; padding: 3px; }
  .jump a { flex-direction: column; gap: 2px; min-height: 50px; padding: 4px 2px; font-size: .74rem; letter-spacing: -.01em; }
  .jump .jn { width: 20px; height: 20px; font-size: .68rem; }
}
@media (max-width: 340px) { .jump a { font-size: .68rem; letter-spacing: -.02em; } }
@media (min-width: 1040px) { .jump { display: none; } }

/* chapters */
.chapter { position: relative; display: grid; gap: 28px; padding-block: 48px; border-top: 1px solid var(--line); scroll-margin-top: 140px; }
.chapter:first-of-type { border-top: 0; }
@media (min-width: 1040px) {
  .chapter { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; padding-block: 72px; align-items: start; scroll-margin-top: 80px; }
  .chapter:nth-of-type(even) .ch-text { order: 2; }
}
.ch-text { display: grid; gap: 18px; min-width: 0; align-content: start; }
.ch-k { display: flex; align-items: center; gap: 12px; }
.ch-n { font-family: var(--font-display); font-weight: 800; font-size: 1rem; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--seg); color: #0b0e14; }
.s2 .ch-n { color: #fff; }
.ch-prod { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); font-weight: 500; }
.ch-text h3 { font-size: var(--step-3); }
.ch-intro { font-size: var(--step-1); color: var(--fg-2); max-width: 46ch; }
.steps { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 6px; counter-reset: st; }
.step { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; width: 100%; padding: 14px 14px 14px 12px; border-radius: 14px; border: 1px solid transparent; background: transparent; text-align: left; cursor: pointer; color: var(--fg-2); line-height: 1.5; transition: background-color .3s, border-color .3s, color .3s; }
.step::before { content: ""; position: absolute; left: 27px; top: 46px; bottom: -8px; width: 2px; border-radius: 2px; background: var(--line); }
.steps li:last-child .step::before { display: none; }
.step-n { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: .8rem; font-weight: 500; background: var(--surface); border: 1.5px solid var(--line-2); color: var(--fg-2); transition: background-color .3s, border-color .3s, color .3s, transform .3s var(--ease); }
.step-tx b { color: var(--fg); font-weight: 600; }
.step:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--fg); }
.step:hover .step-n { border-color: var(--seg); }
.step.is-on { background: var(--surface); border-color: color-mix(in srgb, var(--seg) 45%, var(--line)); color: var(--fg); box-shadow: var(--shadow-sm); }
.step.is-on .step-n { background: var(--seg); border-color: var(--seg); color: #0b0e14; transform: scale(1.06); }
.s2 .step.is-on .step-n { color: #fff; }
.step.is-on::after { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--seg); }

/* preview window */
.ch-stage { min-width: 0; }
@media (min-width: 1040px) { .ch-stage { position: sticky; top: 108px; } }
.pv { position: relative; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; isolation: isolate; }
.pv::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 100% 0%, var(--soft), transparent 60%); }
.pv-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 80%, transparent); }
.pv-dots { display: flex; gap: 6px; }
.pv-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.pv-name { font-family: var(--font-mono); font-size: .78rem; color: var(--fg-2); margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pv-prog { display: flex; gap: 4px; flex: none; }
.pv-prog i { width: 16px; height: 4px; border-radius: 4px; background: var(--line-2); transition: background-color .3s, width .3s var(--ease); }
.pv-prog i.on { width: 26px; background: var(--seg); }
.pv-body { position: relative; height: 300px; }
@media (min-width: 560px) { .pv-body { height: 340px; } }
.scene { position: absolute; inset: 0; padding: 20px; display: grid; align-content: center; gap: 12px; opacity: 0; visibility: hidden; transform: translateY(10px) scale(.985); transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s .45s; }
.scene.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s; }
.pv.is-idle .eq i, .pv.is-idle .karaoke i, .pv.is-idle .mosaic i, .pv.is-idle .cube { animation-play-state: paused; }
.pv-cap { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .9rem; min-height: 48px; }
.pv-n { font-family: var(--font-mono); font-size: .75rem; color: var(--fg-3); white-space: nowrap; }
.pv-n b { color: var(--ink); font-weight: 500; }
.pv-t { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* scene primitives */
.lbl { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--fg-3); }
.lbl-end { justify-self: end; }
.sk { display: block; height: 8px; border-radius: 6px; width: var(--w, 70%); background: var(--sk); }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: .8rem; font-weight: 500; background: var(--soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--seg) 35%, transparent); white-space: nowrap; }
.chip.ghost { background: transparent; color: var(--fg-2); border-color: var(--line); }
.av { width: 26px; height: 26px; border-radius: 50%; flex: none; background: linear-gradient(135deg, color-mix(in srgb, var(--seg) 70%, var(--surface)), color-mix(in srgb, var(--seg) 25%, var(--surface))); }
.is-on .rise { animation: in .6s var(--ease) both; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }

/* 1 · Imán */
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank li { display: grid; grid-template-columns: 26px 92px minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .85rem; font-weight: 500; }
.rank li:first-child { border-color: color-mix(in srgb, var(--seg) 60%, var(--line)); background: var(--soft); }
.rank .meter { height: 8px; border-radius: 6px; background: var(--sk); position: relative; overflow: hidden; }
.rank .meter::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: var(--seg); transform-origin: left; }
.is-on .rank li { animation: in .5s var(--d) var(--ease) both; }
.is-on .rank .meter::after { animation: fill 1s calc(var(--d) + .2s) var(--ease) both; }
.eq { display: flex; align-items: center; gap: 4px; height: 46px; }
.eq i { flex: 1; height: 100%; border-radius: 4px; background: var(--seg); transform: scaleY(.25); animation: wave 1.2s ease-in-out infinite; }
.eq i:nth-child(2n) { animation-delay: -.25s; } .eq i:nth-child(3n) { animation-delay: -.55s; } .eq i:nth-child(4n) { animation-delay: -.8s; }
.eq.sm { height: 30px; } .eq.long { height: 40px; gap: 3px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.is-on .tile { animation: in .5s var(--ease) both; }
.is-on .tile:nth-child(2) { animation-delay: .1s; } .is-on .tile:nth-child(3) { animation-delay: .2s; } .is-on .tile:nth-child(4) { animation-delay: .3s; }
.studio { display: flex; align-items: center; justify-content: center; gap: 18px; }
.flyer { display: grid; gap: 8px; align-content: start; width: 140px; height: 180px; padding: 14px; border-radius: 12px; background: linear-gradient(160deg, var(--soft), var(--surface)); border: 1px solid color-mix(in srgb, var(--seg) 40%, var(--line)); box-shadow: var(--shadow); transform: rotate(-4deg); }
.flyer .logo { width: 30px; height: 30px; border-radius: 8px; background: var(--seg); margin-bottom: 6px; }
.flyer .cta-sk { margin-top: auto; height: 22px; width: 70%; border-radius: 99px; background: var(--seg); }
.phone { position: relative; width: 108px; height: 190px; border-radius: 18px; background: linear-gradient(170deg, var(--seg), color-mix(in srgb, var(--seg) 35%, #000)); border: 4px solid var(--fg); overflow: hidden; box-shadow: var(--shadow-lg); flex: none; }
.phone.tall { height: 210px; width: 118px; }
.phone .face { position: absolute; left: 50%; top: 34%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: 0 46px 0 18px rgba(255,255,255,.55); }
.phone .cap { position: absolute; left: 12px; right: 12px; bottom: 18px; height: 8px; border-radius: 4px; background: #fff; }
.phone .play { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.4); color: #fff; }
.phone .play svg { width: 12px; height: 12px; }
.karaoke { position: absolute; left: 10px; right: 10px; bottom: 16px; display: flex; gap: 4px; justify-content: center; }
.karaoke i { height: 9px; flex: 1; border-radius: 4px; background: rgba(255,255,255,.55); animation: kara 2.4s steps(1) infinite; }
.karaoke i:nth-child(2) { animation-delay: .8s; } .karaoke i:nth-child(3) { animation-delay: 1.6s; }
@keyframes kara { 0%, 33% { background: #fff; } 34%, 100% { background: rgba(255,255,255,.55); } }
.rec { position: absolute; top: 10px; left: 10px; width: 9px; height: 9px; border-radius: 50%; background: #ff3b3b; animation: blink 1.2s steps(1) infinite; }
.side { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.chan { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chan li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 500; font-size: .9rem; }
.chan em { font-style: normal; color: var(--fg-3); font-size: .8rem; margin-left: 4px; }
.chan .ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--soft); color: var(--ink); flex: none; }
.chan .ico svg { width: 18px; height: 18px; }
.tog { margin-left: auto; width: 38px; height: 22px; border-radius: 99px; background: var(--line-2); position: relative; flex: none; transition: background-color .3s; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.tog.on { background: var(--seg); }
.tog.on::after { transform: translateX(16px); }
.send { justify-self: end; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--seg); color: #0b0e14; animation: fly 2.4s var(--ease) infinite; }
.send svg { width: 18px; height: 18px; }
@keyframes fly { 0%, 20% { transform: none; } 50% { transform: translate(10px, -8px) rotate(-8deg); } 70%, 100% { transform: none; } }
.chat { display: grid; gap: 10px; }
.bub { display: grid; gap: 7px; padding: 12px 14px; border-radius: 16px; width: 78%; }
.bub.in { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bub.out { justify-self: end; background: var(--soft); border: 1px solid color-mix(in srgb, var(--seg) 40%, transparent); border-bottom-right-radius: 6px; }
.is-on .bub { animation: in .5s var(--ease) both; }
.is-on .bub.out { animation-delay: .5s; }
.toast { justify-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--fg); color: var(--bg); font-size: .85rem; font-weight: 600; box-shadow: var(--shadow-lg); }
.toast svg { width: 16px; height: 16px; color: var(--seg); }
.is-on .toast { animation: drop .6s 1.1s var(--ease) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(.9); } }

/* 2 · Edison */
.form { display: grid; gap: 10px; }
.field { display: grid; gap: 7px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.field:first-child { border-color: color-mix(in srgb, var(--seg) 55%, var(--line)); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.seg i { height: 10px; border-radius: 4px; background: var(--sk); }
.seg i.on { background: var(--seg); }
.slider { position: relative; height: 6px; border-radius: 6px; background: var(--sk); }
.slider i { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--seg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--seg) 25%, transparent); left: 30%; animation: slide 3.5s var(--ease) infinite alternate; }
@keyframes slide { to { left: 70%; } }
.plan { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; align-items: end; height: 150px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.plan i { height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(var(--seg), color-mix(in srgb, var(--seg) 45%, transparent)); transform-origin: bottom; }
.is-on .plan i { animation: grow-y .6s var(--d) var(--ease) both; }
@keyframes grow-y { from { transform: scaleY(0); } }
.player { position: relative; height: 196px; border-radius: 14px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--seg) 30%, #0d1220), #0b0e14); display: grid; place-items: center; overflow: hidden; color: #cfe0ff; }
.cube { width: 110px; height: 110px; animation: bob 4s ease-in-out infinite; }
.cube .c-top { fill: color-mix(in srgb, var(--seg) 45%, transparent); animation: lift-top 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
@keyframes lift-top { 50% { transform: translateY(-12px); } }
.subs { position: absolute; left: 18%; right: 18%; bottom: 14px; padding: 6px 10px; border-radius: 6px; background: rgba(0,0,0,.55); }
.subs .sk { background: rgba(255,255,255,.8); margin-inline: auto; }
.ctrl { display: flex; align-items: center; gap: 10px; color: var(--fg-2); }
.ctrl svg { width: 18px; height: 18px; flex: none; }
.track { position: relative; flex: 1; height: 6px; border-radius: 6px; background: var(--sk); }
.track .fill { position: absolute; inset: 0; border-radius: inherit; background: var(--seg); transform-origin: left; animation: fill 8s linear infinite; }
.track .fill.half { animation: none; transform: scaleX(.46); }
.track .mark { position: absolute; left: 46%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--surface); border: 3px solid var(--seg); }
.player.paused { place-items: start stretch; padding: 14px; gap: 8px; align-content: start; }
.player.paused .bub { max-width: 82%; }
.player.paused .bub.q { justify-self: end; background: rgba(255,255,255,.12); border: 0; }
.player.paused .bub.q .sk { background: rgba(255,255,255,.6); }
.player.paused .bub.a { background: var(--surface); border: 1px solid var(--line); }
.big-play { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; z-index: -0; opacity: .5; }
.big-play svg { width: 22px; height: 22px; }
.lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lessons li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.lessons .chk { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--line-2); flex: none; }
.lessons .sk { flex: 1; max-width: var(--w); }
.lessons .tag { margin-left: auto; font-family: var(--font-mono); font-size: .72rem; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.lessons .re { border-color: color-mix(in srgb, var(--seg) 55%, var(--line)); background: var(--soft); }
.lessons .re .tag { background: var(--seg); color: #fff; }
.lessons .re .chk { border-color: var(--seg); }
.lessons .skp { opacity: .6; }
.lessons .skp .sk { background: repeating-linear-gradient(90deg, var(--sk) 0 6px, transparent 6px 10px); }
.lessons .skp .tag { border: 1px dashed var(--line-2); color: var(--fg-2); }
.is-on .lessons li { animation: in .5s var(--ease) both; }
.is-on .lessons li:nth-child(2) { animation-delay: .12s; } .is-on .lessons li:nth-child(3) { animation-delay: .24s; } .is-on .lessons li:nth-child(4) { animation-delay: .36s; }

/* 3 · Reels */
.doc { position: relative; display: grid; gap: 12px; padding: 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.doc .edit { display: flex; align-items: center; gap: 2px; padding: 6px 8px; margin: -6px -8px; border-radius: 8px; background: var(--soft); }
.doc .edit .sk { background: color-mix(in srgb, var(--seg) 55%, transparent); }
.cursor { width: 2px; height: 16px; background: var(--ink); animation: blink 1s steps(1) infinite; }
.approve { justify-self: end; margin-top: 6px; display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; border-radius: 99px; background: var(--seg); color: #0b0e14; font-weight: 600; font-size: .85rem; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; background: var(--fg); }
.mosaic i { border-radius: 10px; background: linear-gradient(150deg, var(--seg), color-mix(in srgb, var(--seg) 30%, #000)); animation: shuffle 4s var(--ease) infinite; }
.mosaic i:nth-child(2) { background: linear-gradient(150deg, var(--c4), var(--c1)); animation-delay: .5s; }
.mosaic i:nth-child(3) { background: linear-gradient(150deg, var(--c2), color-mix(in srgb, var(--c2) 30%, #000)); animation-delay: 1s; }
.mosaic i:nth-child(4) { animation-delay: 1.5s; }
@keyframes shuffle { 0%, 70%, 100% { transform: none; } 80% { transform: scale(.88); } }
.pod { display: grid; gap: 12px; }
.cuts { display: flex; justify-content: center; gap: 12px; }
.cuts i { width: 54px; height: 92px; border-radius: 10px; background: linear-gradient(170deg, var(--seg), color-mix(in srgb, var(--seg) 35%, #000)); border: 3px solid var(--fg); }
.is-on .cuts i { animation: in .5s var(--ease) both; }
.is-on .cuts i:nth-child(2) { animation-delay: .15s; } .is-on .cuts i:nth-child(3) { animation-delay: .3s; }
.flyers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.flyers i { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; background: linear-gradient(160deg, var(--soft), var(--surface)); border: 1px solid var(--line); overflow: hidden; }
.flyers i::before { content: ""; position: absolute; left: 12%; top: 12%; width: 30%; aspect-ratio: 1; border-radius: 6px; background: var(--seg); }
.flyers i::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 14%; height: 12%; border-radius: 4px; background: var(--sk); }
.flyers i:nth-child(2)::before { border-radius: 50%; width: 46%; left: 27%; }
.flyers i:nth-child(3)::before { width: 76%; height: 40%; aspect-ratio: auto; }
.flyers i:nth-child(4)::before { background: var(--fg); }
.flyers .pick { border: 2px solid var(--seg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--seg) 22%, transparent); transform: translateY(-6px); }
.is-on .flyers i { animation: in .5s var(--ease) both; }
.is-on .flyers i:nth-child(2) { animation: in-pick .5s .1s var(--ease) both; } .is-on .flyers i:nth-child(3) { animation-delay: .2s; } .is-on .flyers i:nth-child(4) { animation-delay: .3s; }
@keyframes in-pick { from { opacity: 0; transform: translateY(8px); } to { transform: translateY(-6px); } }

/* 4 · Coco */
.browser { border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); overflow: hidden; }
.url { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.url .lock { width: 12px; height: 12px; border-radius: 3px; background: var(--seg); flex: none; }
.url .sk { flex: 1; max-width: var(--w); }
.page { display: grid; gap: 10px; padding: 14px; }
.hero-sk { display: block; height: 70px; border-radius: 10px; background: linear-gradient(120deg, var(--soft), color-mix(in srgb, var(--seg) 40%, var(--surface))); }
.browser.sm .hero-sk { height: 90px; }
.devs, .atts { display: flex; flex-wrap: wrap; gap: 8px; }
.bub.me { width: 86%; }
.composer { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); }
.composer .sk { flex: 1; max-width: var(--w); }
.mic { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--seg); color: #0b0e14; animation: pulse 2s infinite; }
.mic svg { width: 16px; height: 16px; }
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lane { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); min-height: 200px; }
.lane .code { display: block; height: 8px; border-radius: 4px; width: var(--w); background: color-mix(in srgb, var(--seg) 65%, transparent); transform-origin: left; }
.lane .ok { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--seg); position: relative; }
.lane .ok::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 10px; border: solid #0b0e14; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.is-on .lane .code { animation: type-in 3.2s var(--d) var(--ease) infinite; }
.is-on .lane .ok { animation: tick 3.2s var(--d) var(--ease) infinite; }
@keyframes type-in { 0% { transform: scaleX(0); } 25%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes tick { 0%, 15% { transform: scale(0); } 30%, 90% { transform: scale(1); } 100% { transform: scale(0); } }
.pub { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.publish { display: inline-flex; align-items: center; min-height: 38px; padding: 0 18px; border-radius: 99px; background: var(--seg); color: #0b0e14; font-weight: 600; font-size: .9rem; animation: press 2.6s var(--ease) infinite; }
@keyframes press { 0%, 60%, 100% { transform: none; } 70% { transform: scale(.94); } }
.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.team li { display: grid; grid-template-columns: 26px minmax(0, 1fr) 90px; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.limit { height: 6px; border-radius: 6px; background: var(--sk); overflow: hidden; }
.limit i { display: block; height: 100%; width: var(--w); background: var(--seg); border-radius: inherit; }
.log { display: grid; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-2); }

/* ---------- together ---------- */
.example-tag { display: inline-block; margin-right: 6px; padding: 2px 10px; border-radius: 6px; border: 1px dashed var(--line-2); font-family: var(--font-mono); font-size: var(--step--1); color: var(--fg-2); vertical-align: 2px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; }
@media (min-width: 1100px) { .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } }
.fstep { position: relative; display: grid; gap: 10px; align-content: start; padding: 20px 20px 22px 64px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.fstep:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--seg) 50%, var(--line)); }
.fstep .dot { position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 10px; background: var(--seg); display: grid; place-items: center; font-family: var(--font-mono); font-size: .8rem; font-weight: 500; color: #0b0e14; }
.fstep.s2 .dot { color: #fff; }
.fstep:not(:last-child)::after { content: ""; position: absolute; left: 33px; bottom: -13px; width: 2px; height: 14px; background: var(--line-2); }
@media (min-width: 1100px) {
  .fstep { padding: 72px 20px 24px; }
  .fstep .dot { left: 22px; top: 22px; }
  .fstep:not(:last-child)::after { left: auto; right: -17px; top: 37px; bottom: auto; width: 18px; height: 2px; }
}
.fstep .who { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.fstep p { color: var(--fg-2); }
.fstep strong { color: var(--fg); font-weight: 600; }
.flow-end { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 18px 20px; border-radius: var(--r); background: var(--fg); color: var(--bg); font-weight: 600; font-size: var(--step-1); line-height: 1.4; }
.flow-mark { display: flex; align-items: center; gap: 3px; flex: none; }
.flow-mark i { width: 6px; height: 26px; border-radius: 4px; background: var(--c1); }
.flow-mark i:nth-child(2) { background: var(--c2); } .flow-mark i:nth-child(3) { background: var(--c3); } .flow-mark i:nth-child(4) { background: var(--c4); } .flow-mark i:nth-child(5) { background: var(--c5); }

/* ---------- account bento ---------- */
.bento { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cell-main { grid-column: 1 / -1; } .cell-wide { grid-column: 1 / -1; } }
@media (min-width: 1040px) {
  .bento { grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; }
  .cell-main { grid-column: 1; grid-row: 1 / span 2; }
  .cell-wide { grid-column: 2 / span 2; }
}
.cell { position: relative; display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; min-width: 0; }
.cell h3 { font-size: var(--step-2); letter-spacing: -.02em; }
.cell p { color: var(--fg-2); }
.cell-ico { width: 40px; height: 40px; color: var(--fg); margin-bottom: 6px; }
.cell-main { gap: 14px; background: var(--fg); color: var(--bg); border-color: transparent; min-height: 420px; }
.cell-main .eyebrow { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.cell-main h2 { font-size: var(--step-3); }
.cell-main .cell-lede { color: color-mix(in srgb, var(--bg) 78%, transparent); font-size: var(--step-1); max-width: 32ch; }
.orbit { position: relative; width: min(100%, 260px); aspect-ratio: 1; margin: 18px auto 0; }
.ring { position: absolute; inset: 14%; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--bg) 35%, transparent); }
.sat-wrap { position: absolute; inset: 14%; animation: spin 26s linear infinite; }
.sat { position: absolute; width: 30px; height: 30px; margin: -15px; border-radius: 50%; background: var(--seg); box-shadow: 0 0 0 6px color-mix(in srgb, var(--seg) 22%, transparent); }
.sat.s1 { left: 50%; top: 0; } .sat.s2 { left: 97.55%; top: 34.55%; } .sat.s3 { left: 79.39%; top: 90.45%; } .sat.s4 { left: 20.61%; top: 90.45%; } .sat.s5 { left: 2.45%; top: 34.55%; }
.core { position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--bg); color: var(--fg); font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.05; box-shadow: 0 0 0 10px color-mix(in srgb, var(--bg) 10%, transparent); }
.keys { display: flex; gap: 6px; margin-top: 8px; }
.keys span { flex: 1; height: 8px; border-radius: 6px; background: var(--seg); transform-origin: left; }
.cell:hover .keys span { animation: in .4s var(--ease) both; }
.cell:hover .keys span:nth-child(2) { animation-delay: .06s; } .cell:hover .keys span:nth-child(3) { animation-delay: .12s; } .cell:hover .keys span:nth-child(4) { animation-delay: .18s; } .cell:hover .keys span:nth-child(5) { animation-delay: .24s; }
.price { margin-top: 6px; }
.ph { font-family: var(--font-mono); font-size: .85em; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); border: 1px dashed var(--fg-3); color: var(--fg); white-space: nowrap; }
.cell-wide { grid-template-columns: minmax(0, 1fr); align-items: center; }
.cell-wide .cell-ico { margin: 0; }
@media (min-width: 640px) { .cell-wide { grid-template-columns: 40px minmax(0, 1fr) 190px; gap: 22px; } }
.profile { display: flex; align-items: center; gap: 12px; }
.pf-card { display: grid; gap: 7px; flex: 1; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.pf-links { display: grid; gap: 5px; }
.pf-links i { width: 22px; height: 8px; border-radius: 6px; background: var(--seg); }

/* ---------- closing ---------- */
.close { padding-block: 0 88px; }
.close-in { display: grid; gap: 22px; justify-items: center; text-align: center; }
.close h2 { font-size: var(--step-3); }
.quick { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.quick a { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 16px; border-radius: 999px; text-decoration: none; font-weight: 600; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), border-color .3s, background-color .3s; }
.quick a:hover { transform: translateY(-2px); border-color: var(--seg); background: var(--soft); }
.q-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--seg); transition: transform .3s var(--ease); }
.quick a:hover .q-dot { transform: scale(1.4); }
@media (max-width: 520px) { .quick { display: grid; width: 100%; } .quick a { justify-content: flex-start; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); background: var(--bg-2); }
.foot-in { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.foot .brand { margin-right: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 4px; list-style: none; margin: 0; padding: 0; }
.foot-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; color: var(--fg-2); text-decoration: none; border-radius: 10px; }
.foot-links a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--seg); }
.foot-links a:hover { color: var(--fg); background: var(--surface); }
.to-top { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; color: var(--fg-2); text-decoration: none; border-radius: 10px; }
.to-top:hover { color: var(--fg); background: var(--surface); }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
  .progress { transform: scaleX(0); }
  .caret { opacity: 1; }
}

/* ---------- small-screen refinements ---------- */
.nav a { white-space: nowrap; }
@media (max-width: 359px) { .theme { display: none; } }
@media (max-width: 1039px) {
  /* on phones and tablets the preview sits right under the intro, before the steps */
  .chapter .ch-text { display: contents; }
  .chapter .ch-k { order: 1; } .chapter h3 { order: 2; } .chapter .ch-intro { order: 3; }
  .chapter .ch-stage { order: 4; } .chapter .steps { order: 5; } .chapter .btn-svc { order: 6; }
  .chapter { gap: 18px; }
  .chapter .ch-stage { margin-block: 8px 4px; }
}

/* Services sit on the same background as the hero, so the hero's own bottom space already separates them:
   trim the section's top padding and drop the last chapter's bottom padding to avoid a double gap. */
#servicios { padding-top: 32px; }
@media (min-width: 900px) { #servicios { padding-top: 40px; } }
#servicios .chapter:last-of-type { padding-bottom: 0; }
.hero-in { padding-bottom: 40px; }
@media (min-width: 1040px) { .hero-in { padding-bottom: 56px; } }
#servicios .chapter:first-of-type { padding-top: 16px; }

/* free-trial note under the hero buttons */
.trial { display: flex; gap: 12px; align-items: flex-start; max-width: 46ch; padding: 12px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--c2) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c2) 30%, var(--line));
  color: var(--fg-2); font-size: .95rem; line-height: 1.5; }
.trial b { color: var(--fg); font-weight: 600; }
.trial-dot { flex: none; width: 10px; height: 10px; margin-top: .45em; border-radius: 50%; background: var(--c2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c2) 22%, transparent); }

/* FAQ */
.faq-in { display: grid; gap: 8px; }
@media (min-width: 1000px) { .faq-in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; } }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding-block: 14px; font-weight: 600; font-size: 1.05rem; color: var(--fg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--fg-2); border-bottom: 2px solid var(--fg-2);
  transform: translateY(-3px) rotate(45deg); transition: transform .25s ease; }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--c2-ink, var(--fg)); }
.faq details p { padding: 0 0 20px; color: var(--fg-2); max-width: 62ch; line-height: 1.6; }

/* ==========================================================================
   Service 5 · Escucha social (preview only)
   ========================================================================== */

/* hero launcher with five cards: 2 + 2 + one wide card that closes the grid (bento) */
@media (min-width: 621px) {
  .goals > .goal-wide-li { grid-column: 1 / -1; }
  .goal-wide { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: 20px; }
  .goal-wide .strip { grid-column: 1; grid-row: 1 / -1; height: auto; min-height: 132px; margin-right: 0; flex-direction: column; justify-content: center; align-items: stretch; padding: 14px; }
  .goal-wide h3, .goal-wide p, .goal-wide .goal-foot { grid-column: 2; }
  .goal-wide .strip { gap: 18px; }
  .goal-wide .m-voices { flex: none; gap: 9px; }
  .goal-wide .m-voices .v { height: 12px; }
}
@media (min-width: 1040px) and (max-width: 1199px) {
  .goal-wide { grid-template-columns: minmax(0, 170px) minmax(0, 1fr); column-gap: 16px; }
}
.soon { margin-left: auto; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; border: 1px dashed color-mix(in srgb, var(--ink) 55%, transparent); color: var(--ink); white-space: nowrap; }
.goal-wide:hover .goal-go, .goal-wide:focus-visible .goal-go { transform: translateY(2px); }

/* strip: voices with a tone, and a small crowd that "answers" in waves */
.m-voices { display: grid; gap: 6px; flex: 1; min-width: 0; }
.m-voices .v { position: relative; display: block; height: 10px; border-radius: 6px 6px 6px 2px; background: color-mix(in srgb, var(--ink) 22%, transparent); animation: voice 4.5s var(--ease) infinite backwards; }
.m-voices .v::before { content: ""; position: absolute; left: 3px; top: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--seg); }
.m-voices .v.pos { width: 88%; } .m-voices .v.neu { width: 66%; animation-delay: .5s; } .m-voices .v.neg { width: 78%; animation-delay: 1s; }
.m-voices .v.neu::before { background: var(--fg-3); } .m-voices .v.neg::before { background: var(--c3); }
@keyframes voice { 0% { opacity: 0; transform: translateX(-8px); } 12%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.m-crowd { display: grid; grid-template-columns: repeat(5, 8px); gap: 5px; flex: none; }
.m-crowd i { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 35%, transparent); animation: crowd 3s ease-in-out infinite; }
.m-crowd i:nth-child(3n) { animation-delay: .4s; } .m-crowd i:nth-child(3n+1) { animation-delay: .8s; } .m-crowd i:nth-child(4n) { animation-delay: 1.2s; }
@keyframes crowd { 0%, 100% { transform: scale(.8); background: color-mix(in srgb, var(--ink) 35%, transparent); } 40% { transform: scale(1.15); background: var(--seg); } }
.goal-wide .m-crowd { grid-template-columns: repeat(5, 10px); gap: 7px; justify-content: start; }
.goal-wide .m-crowd i { width: 10px; height: 10px; }

/* chapter button while there is no public link */
.btn-svc.is-soon { cursor: default; background: transparent; color: var(--ink); border: 1.5px dashed color-mix(in srgb, var(--seg) 70%, var(--line)); box-shadow: none; }
.btn-svc.is-soon:hover { transform: none; box-shadow: none; }

/* closing row hint */
.q-soon { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); padding: 2px 8px; border-radius: 99px; border: 1px dashed color-mix(in srgb, var(--ink) 55%, transparent); }

/* scene 1 · the question */
.ask-q { font-size: .9rem; font-weight: 600; color: var(--fg); line-height: 1.35; }
.ask-q .cursor { display: inline-block; vertical-align: -3px; margin-left: 2px; }
.picks { display: flex; flex-wrap: wrap; gap: 6px; }
.picks .chip { min-height: 24px; padding: 0 10px; font-size: .74rem; }

/* scene 2 · what people say */
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feed li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.feed .src { font-family: var(--font-mono); font-size: .68rem; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tone { font-family: var(--font-mono); font-size: .68rem; padding: 3px 8px; border-radius: 99px; white-space: nowrap; border: 1px solid transparent; }
.tone.pos { background: var(--soft); color: var(--ink); border-color: color-mix(in srgb, var(--seg) 40%, transparent); }
.tone.neu { background: transparent; color: var(--fg-2); border-color: var(--line-2); }
.tone.neg { background: var(--c3-soft); color: var(--c3-ink); border-color: color-mix(in srgb, var(--c3) 35%, transparent); }
.is-on .feed li { animation: in .5s var(--d) var(--ease) both; }
@media (max-width: 420px) { .feed li { grid-template-columns: minmax(0, 1fr) auto; } .feed li .sk { display: none; } }

/* scene 3 · the twin */
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grp { display: grid; gap: 6px; align-content: start; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.grp b { font-size: .84rem; font-weight: 600; line-height: 1.25; color: var(--fg); }
.grp:first-child { border-color: color-mix(in srgb, var(--seg) 55%, var(--line)); background: var(--soft); }
.ppl { display: flex; }
.ppl i { width: 18px; height: 18px; border-radius: 50%; margin-right: -5px; border: 2px solid var(--surface-2); background: linear-gradient(135deg, color-mix(in srgb, var(--seg) 75%, var(--surface)), color-mix(in srgb, var(--seg) 30%, var(--surface))); }
.grp:first-child .ppl i { border-color: var(--soft); }
.ppl i:nth-child(2n) { background: linear-gradient(135deg, color-mix(in srgb, var(--fg-3) 60%, var(--surface)), color-mix(in srgb, var(--fg-3) 25%, var(--surface))); }
.is-on .grp { animation: in .5s var(--d) var(--ease) both; }

/* scene 4 · one question, different answers */
.chat.twin { gap: 8px; }
.chat.twin .bub { padding: 9px 12px; gap: 6px; }
.chat.twin .bub.me { justify-self: end; width: auto; max-width: 86%; background: var(--soft); border: 1px solid color-mix(in srgb, var(--seg) 40%, transparent); border-bottom-right-radius: 6px; }
.chat.twin .bub.ans { width: 84%; }
.chat.twin .lbl { display: flex; align-items: center; gap: 6px; }
.gdot { width: 9px; height: 9px; border-radius: 50%; background: var(--seg); flex: none; }
.gdot.g2 { background: var(--fg-3); } .gdot.g3 { background: color-mix(in srgb, var(--seg) 45%, var(--fg-3)); }
.is-on .chat.twin .bub.me { animation: in .5s var(--ease) both; }
.is-on .chat.twin .bub.ans { animation: in .5s var(--d) var(--ease) both; }

/* scene 5 · the report */
.report { display: grid; gap: 9px; padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.rp-title { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cmp { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 12px; padding: 10px 12px; margin-top: 2px; border-radius: 10px; border: 1px dashed var(--line-2); }
.cbar { height: 10px; border-radius: 6px; background: var(--sk); overflow: hidden; }
.cbar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--seg); transform-origin: left; }
.is-on .cbar i { animation: fill 1s .3s var(--ease) both; }
.rp-rec { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 99px; background: var(--seg); color: #0b0e14; font-weight: 600; font-size: .85rem; }
.rp-rec svg { width: 16px; height: 16px; }
.pv.is-idle .m-crowd i { animation-play-state: paused; }

/* Tighter space around the services header ("Los servicios"): it shares the hero background,
   so the hero's own bottom space already separates them. */
.hero-in { padding-bottom: 24px; }
@media (min-width: 1040px) { .hero-in { padding-bottom: 32px; } }
#servicios { padding-top: 16px; }
@media (min-width: 900px) { #servicios { padding-top: 24px; } }
#servicios .sec-head { margin-bottom: 8px; }
#servicios .chapter:first-of-type { padding-top: 8px; }
@media (min-width: 900px) { #servicios .chapter:first-of-type { padding-top: 32px; } }

/* ==========================================================================
   Guide assistant: hero entry, floating button, one-time hint and the chat
   ========================================================================== */
html:not(.js) [data-guide-open], html:not(.js) .guide-hint { display: none !important; }

/* hero entry, right under the main buttons */
.guide-cta { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; max-width: 46ch; min-height: 64px; padding: 12px 14px 12px 12px;
  border-radius: 16px; border: 1.5px solid transparent; cursor: pointer; text-align: left; color: var(--fg); font: inherit;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5)) border-box;
  box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.guide-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.guide-cta-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--btn-bg); color: var(--btn-fg); flex: none; }
.guide-cta-ico svg { width: 22px; height: 22px; }
.guide-cta-tx { display: grid; gap: 2px; min-width: 0; line-height: 1.35; }
.guide-cta-tx b { font-weight: 600; font-size: 1rem; }
.guide-cta-tx span { color: var(--fg-2); font-size: .92rem; }
.guide-cta-go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-2); color: var(--fg); transition: transform .3s var(--ease); }
.guide-cta-go svg { width: 16px; height: 16px; }
.guide-cta:hover .guide-cta-go { transform: translateX(3px); }

/* floating button: bottom-right on every scroll position, clear of the safe areas */
.guide-fab { position: fixed; z-index: 45; right: max(16px, calc(env(safe-area-inset-right, 0px) + 12px)); bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  display: inline-flex; align-items: center; gap: 10px; min-width: 56px; height: 56px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg); font: inherit; font-weight: 600; font-size: 1rem;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bg) 85%, transparent), var(--shadow-lg); transition: transform .3s var(--ease), opacity .25s; }
.guide-fab svg { width: 24px; height: 24px; flex: none; }
.guide-fab::after { content: ""; position: absolute; left: 34px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--c5); box-shadow: 0 0 0 2px var(--btn-bg); }
.guide-fab:hover { transform: translateY(-2px); }
.guide-fab:focus-visible { outline-offset: 4px; border-radius: 999px; }
@media (max-width: 719px) { .guide-fab { width: 56px; padding: 0; justify-content: center; } .guide-fab-tx { display: none; } .guide-fab::after { left: auto; right: 9px; } }
html.guide-on .guide-fab { opacity: 0; pointer-events: none; }
/* room at the end of the page so the floating button never sits on the last links */
.foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

.guide-hint { position: fixed; z-index: 45; right: max(16px, calc(env(safe-area-inset-right, 0px) + 12px)); bottom: calc(max(16px, calc(env(safe-area-inset-bottom, 0px) + 12px)) + 68px);
  display: flex; align-items: flex-start; width: min(290px, calc(100vw - 32px)); border-radius: 16px 16px 4px 16px;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); animation: hint-in .5s var(--ease) both; }
@keyframes hint-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.guide-hint-msg { flex: 1; min-height: 44px; padding: 12px 4px 12px 16px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; font-size: .95rem; line-height: 1.4; color: var(--fg); border-radius: 16px 0 0 16px; }
.guide-hint-msg b { font-weight: 600; }
.guide-hint-x { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; background: none; color: var(--fg-2); cursor: pointer; border-radius: 0 16px 0 0; }
.guide-hint-x svg { width: 16px; height: 16px; }
html.guide-on .guide-hint { display: none; }

/* the chat: a window anchored bottom-right on desktop, a near-full-screen sheet on phones */
.guide { position: fixed; inset: auto max(16px, calc(env(safe-area-inset-right, 0px) + 12px)) max(16px, calc(env(safe-area-inset-bottom, 0px) + 12px)) auto;
  margin: 0; padding: 0; width: min(410px, calc(100vw - 32px)); height: min(660px, calc(100vh - 32px)); height: min(660px, calc(100dvh - 32px)); max-width: none; max-height: none;
  border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface); color: var(--fg); box-shadow: var(--shadow-lg); overflow: hidden; }
.guide[open] { display: flex; animation: g-in .35s var(--ease) both; }
.guide::backdrop { background: rgba(11, 14, 20, .22); }
@keyframes g-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (max-width: 640px) {
  .guide { inset: calc(env(safe-area-inset-top, 0px) + 10px) 0 0 0; width: auto; height: auto; border-radius: 22px 22px 0 0; border-bottom: 0; }
  .guide::backdrop { background: rgba(11, 14, 20, .5); }
}
html.guide-on { overflow: hidden; }
.g-panel { display: flex; flex-direction: column; width: 100%; min-height: 0; }

.g-head { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.g-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); flex: none; }
.g-av svg { width: 24px; height: 24px; }
.g-who { flex: 1; min-width: 0; }
.g-who h2 { font-size: 1.08rem; letter-spacing: -.015em; line-height: 1.2; }
.g-who h2:focus { outline: none; }
.g-who h2:focus-visible { outline: 3px solid var(--focus); }
.g-who p { font-size: .84rem; color: var(--fg-2); line-height: 1.3; }
.g-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; background: none; color: var(--fg-2); cursor: pointer; }
.g-icon:hover { background: var(--bg-2); color: var(--fg); }
.g-icon svg { width: 20px; height: 20px; }

.g-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px 20px; }
.g-log:focus { outline: none; }
.g-log > * { flex-shrink: 0; }
.g-msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: .98rem; line-height: 1.45; overflow-wrap: anywhere; animation: in .35s var(--ease) both; }
.g-bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.g-me { align-self: flex-end; background: var(--btn-bg); color: var(--btn-fg); border-bottom-right-radius: 6px; }
.g-typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; border-radius: 18px 18px 18px 6px; background: var(--surface-2); border: 1px solid var(--line); }
.g-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-3); animation: g-dot 1s ease-in-out infinite; }
.g-typing i:nth-child(2) { animation-delay: .15s; } .g-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes g-dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.g-chips { display: flex; flex-wrap: wrap; gap: 8px; align-self: stretch; animation: in .35s var(--ease) both; }
.g-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 22px; cursor: pointer; text-align: left; font: inherit; font-size: .94rem; font-weight: 500; line-height: 1.25;
  background: var(--surface); color: var(--fg); border: 1.5px solid var(--line-2); transition: background-color .2s, border-color .2s; }
.g-chip:hover { border-color: var(--fg-3); background: var(--surface-2); }
.g-chip.has-seg::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--seg); flex: none; }
.g-chip.has-seg { border-color: color-mix(in srgb, var(--seg) 55%, var(--line-2)); }
.g-chip.has-seg:hover { background: var(--soft); border-color: var(--seg); }
.g-chip.is-quiet { color: var(--fg-2); border-style: dashed; }

.g-card { align-self: stretch; display: grid; gap: 10px; padding: 14px 16px 16px 20px; border-radius: 16px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--seg) 50%, var(--line)); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; animation: in .4s var(--ease) both; }
.g-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--seg); }
.g-card-k { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); font-weight: 500; }
.g-card h3 { font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.15; }
.g-card p { color: var(--fg-2); font-size: .94rem; line-height: 1.5; }
.g-card-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.g-go, .g-see { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: .94rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.g-go { background: var(--seg); color: #0b0e14; border: 0; }
.g-card.s2 .g-go { color: #fff; }
.g-go:hover { filter: brightness(1.06); }
.g-see { background: transparent; color: var(--fg); border: 1.5px solid var(--line-2); }
.g-see:hover { border-color: var(--fg-3); background: var(--surface-2); }
.g-card .soon { margin-left: 0; }
.g-card .g-contact { font-size: .9rem; }
/* two recommendations in one answer: shorter cards, name and buttons only */
.g-card.is-compact { gap: 8px; padding-top: 12px; padding-bottom: 14px; }
.g-card.is-compact h3 { font-size: 1.08rem; }

.g-form { display: flex; gap: 8px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); }
.g-input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface-2); color: var(--fg); font: inherit; font-size: 16px; }
.g-input::placeholder { color: var(--fg-3); opacity: 1; }
.g-input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-radius: 999px; }
.g-send { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); cursor: pointer; }
.g-send svg { width: 20px; height: 20px; }
.g-send:focus-visible { border-radius: 50%; }

@media (prefers-reduced-motion: reduce) {
  .guide-hint, .guide[open] { animation: none; }
}

/* Hero starts right under the menu: less top padding, both columns aligned to the top. */
.hero-in { padding-top: 20px; align-items: start; }
@media (min-width: 1040px) { .hero-in { padding-top: 28px; } .hero-copy { padding-top: 24px; } }

/* Phones: the floating chat button is always visible, so the hero keeps only the main call to action. */
@media (max-width: 639px) {
  .hide-phone, .hero .guide-cta { display: none; }
}
