/* =========================================================
   LOOGIC — Design system
   Worlds: risk (default) · insurance · finance
   Tokens change per world via html[data-world]
   ========================================================= */

:root {
  --font: "Poppins", "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Home world (default) — deck style: black + Loogic lime */
  --bg: #080907;
  --bg-2: #0e100d;
  --surface: #121510;
  --surface-2: #171a15;
  --ink: #f4f6f1;
  --ink-2: #b8bfb2;
  --muted: #8f978a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --accent: #b2ff6b;
  --accent-soft: rgba(178, 255, 107, 0.12);
  --accent-text: #b2ff6b;
  --accent-2: #7ea6ff;
  --warn: #ffb36b;
  --err: #ff8a80;
  --btn-bg: #b2ff6b;
  --btn-ink: #0b1404;
  --glass: rgba(14, 16, 13, 0.72);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 40px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 80px -24px rgba(0, 0, 0, 0.8);
  --glow: radial-gradient(640px circle at var(--gx, 70%) var(--gy, 30%), rgba(178, 255, 107, 0.12), transparent 60%);
  color-scheme: dark;

  --radius: 24px;
  --radius-sm: 14px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-world: 0.6s;

  /* Liquid glass (buttons only) */
  --rim-top: rgba(255, 255, 255, 0.5);
  --rim-bottom: rgba(255, 255, 255, 0.14);
  --rim-border: rgba(255, 255, 255, 0.16);
  --glass-shadow: rgba(0, 0, 0, 0.8);
  --sheen-a: 0.22;
  --sheen-b: 0.06;
  --glass-fill: 80%;
}

html[data-world="personas"] {
  /* Personas — mismo sistema que Empresas (papel + bloques de color), inspirado en Amiguro */
  --bg: #f0f1ec;
  --bg-2: #e6eadf;
  --surface: #ffffff;
  --surface-2: #f6f8f2;
  --ink: #12391f;
  --ink-2: #47594b;
  --muted: #627266;
  --line: rgba(18, 57, 31, 0.1);
  --line-2: rgba(18, 57, 31, 0.18);
  --accent: #3a9a2c;
  --accent-soft: rgba(190, 255, 110, 0.38);
  --accent-text: #2a6f1f;
  --accent-2: #c2ff7a;
  --warn: #c2410c;
  --err: #c62828;
  --btn-bg: #12391f;
  --btn-ink: #c8ff85;
  --glass: rgba(255, 255, 255, 0.86);
  --shadow: 0 1px 2px rgba(18, 57, 31, 0.05), 0 14px 34px -16px rgba(18, 57, 31, 0.22);
  --shadow-lg: 0 2px 4px rgba(18, 57, 31, 0.05), 0 26px 54px -24px rgba(18, 57, 31, 0.34);
  --glow: radial-gradient(600px circle at var(--gx, 70%) var(--gy, 30%), rgba(194, 255, 122, 0.22), transparent 60%);
  --radius: 30px;
  --rim-top: rgba(255, 255, 255, 0.6);
  --rim-bottom: rgba(255, 255, 255, 0.2);
  --rim-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: rgba(18, 57, 31, 0.35);
  --sheen-a: 0.14;
  --sheen-b: 0.04;
  --glass-fill: 100%;
}

html[data-world="finance"] {
  /* Empresas — estilo amigable (papel + bloques de color), inspirado en Amiguro */
  --bg: #f0f1ec;
  --bg-2: #e6eadf;
  --surface: #ffffff;
  --surface-2: #f6f8f2;
  --ink: #12391f;
  --ink-2: #47594b;
  --muted: #627266;
  --line: rgba(18, 57, 31, 0.1);
  --line-2: rgba(18, 57, 31, 0.18);
  --accent: #3a9a2c;
  --accent-soft: rgba(190, 255, 110, 0.38);
  --accent-text: #2a6f1f;
  --accent-2: #c2ff7a;
  --warn: #c2410c;
  --err: #c62828;
  --btn-bg: #12391f;
  --btn-ink: #c8ff85;
  --glass: rgba(255, 255, 255, 0.86);
  --shadow: 0 1px 2px rgba(18, 57, 31, 0.05), 0 14px 34px -16px rgba(18, 57, 31, 0.22);
  --shadow-lg: 0 2px 4px rgba(18, 57, 31, 0.05), 0 26px 54px -24px rgba(18, 57, 31, 0.34);
  --glow: radial-gradient(600px circle at var(--gx, 70%) var(--gy, 30%), rgba(194, 255, 122, 0.22), transparent 60%);
  --radius: 30px;
  --rim-top: rgba(255, 255, 255, 0.6);
  --rim-bottom: rgba(255, 255, 255, 0.2);
  --rim-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: rgba(18, 57, 31, 0.35);
  --sheen-a: 0.14;
  --sheen-b: 0.04;
  --glass-fill: 100%;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color var(--t-world) var(--ease-io), color var(--t-world) var(--ease-io);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}
html[data-world="personas"] :focus-visible { outline-color: #2d6a17; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--btn-bg); color: var(--btn-ink);
  padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 500;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 1800px) { :root { --container: 1440px; } }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow b { color: var(--ink); font-weight: 500; }
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.h-display {
  font-size: clamp(2.7rem, 5.9vw, 6.4rem);
  letter-spacing: -0.05em;
  line-height: 0.94;
  font-weight: 600;
}
.h-section { font-size: clamp(2.2rem, 5.2vw, 4.4rem); letter-spacing: -0.045em; line-height: 0.98; }
.h-card { font-size: clamp(1.4rem, 2.2vw, 1.85rem); letter-spacing: -0.03em; line-height: 1.1; }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.3rem); color: var(--ink-2); max-width: 38ch; line-height: 1.5; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.soft { color: var(--muted); }
.accent-text { color: var(--accent); }
html[data-world="personas"] .accent-text { color: var(--accent-text); }
.mono { font-family: var(--mono); }
.grad-text {
  background: linear-gradient(100deg, var(--ink) 20%, var(--accent) 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-world="personas"] .grad-text { background-image: linear-gradient(100deg, var(--ink) 22%, #3f9a1c 100%); }

/* ---------- Buttons — Liquid Glass ----------
   Optical depth: translucent body over a blurred backdrop, bright top rim,
   bounce light along the bottom edge, and a specular highlight that tracks
   the cursor. Applies to buttons only — menus, cards and modules keep their
   flat treatment. */
.btn, .icon-btn {
  --mx: 0px; --my: 0px; --hx: 50%; --hy: 0%; --press: 1;
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid var(--rim-border);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  box-shadow:
    0 12px 28px -14px var(--glass-shadow),
    inset 0 1px 0.5px var(--rim-top),
    inset 0 -1.5px 1px var(--rim-bottom),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
  transform: translate(var(--mx), var(--my)) scale(var(--press));
  transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.45s var(--ease);
}
/* glass body: top-lit sheen + corner refraction */
.btn::after, .icon-btn::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, var(--sheen-a)) 0%, rgba(255, 255, 255, var(--sheen-b)) 40%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(130% 90% at 12% -10%, rgba(255, 255, 255, 0.18), transparent 46%);
}
/* specular highlight that follows the pointer */
.btn::before, .icon-btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity 0.35s var(--ease);
  background: radial-gradient(90px circle at var(--hx) var(--hy), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12) 35%, transparent 65%);
}
.btn:hover::before, .btn:focus-visible::before,
.icon-btn:hover::before, .icon-btn:focus-visible::before { opacity: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none;
  cursor: pointer; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: color-mix(in srgb, var(--btn-bg) var(--glass-fill), transparent);
  color: var(--btn-ink);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    0 14px 34px -14px color-mix(in srgb, var(--btn-bg) 65%, transparent),
    inset 0 1px 0.5px rgba(255, 255, 255, 0.6),
    inset 0 -1.5px 1px rgba(255, 255, 255, 0.22),
    inset 0 0 22px rgba(255, 255, 255, 0.08);
}
.btn-primary:hover {
  box-shadow:
    0 20px 44px -14px color-mix(in srgb, var(--btn-bg) 75%, transparent),
    inset 0 1px 0.5px rgba(255, 255, 255, 0.75),
    inset 0 -1.5px 1px rgba(255, 255, 255, 0.3),
    inset 0 0 26px rgba(255, 255, 255, 0.12);
}
.btn-ghost { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); border-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
/* pressed: the glass sinks and the rim light collapses */
.btn:active, .icon-btn:active, .btn-primary:hover:active {
  --press: 0.97;
  transition-duration: 0.12s;
  box-shadow:
    0 4px 12px -8px var(--glass-shadow),
    inset 0 2px 7px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 var(--rim-top);
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none;
  color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 2px;
  transition: border-color 0.2s, gap 0.3s var(--ease);
}
.link-arrow:hover { border-color: var(--ink); gap: 10px; }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 60%, transparent);
  opacity: 0; transition: opacity 0.3s, background var(--t-world);
}
.topbar.is-scrolled::before { opacity: 1; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  padding: 6px 8px 6px 4px; border-radius: 12px;
}
.logo-img { height: 34px; width: auto; display: block; }
.for-light, .for-world-personas, .for-world-finance { display: none !important; }
html[data-world="personas"] .for-light { display: block !important; }
html[data-world="personas"] .for-world-personas, html[data-world="finance"] .for-world-finance { display: inline-flex !important; }
html[data-world="personas"] .for-dark { display: none !important; }
html:has(dialog[open]) { overflow: hidden; }
.logo-word { font-weight: 700; letter-spacing: 0.16em; font-size: 15px; }
.logo-sub { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; margin-top: 1px; font-weight: 400; }
.topbar-right { display: flex; align-items: center; gap: 6px; }
.topbar-link {
  text-decoration: none; font-size: 14px; color: var(--ink-2); padding: 10px 14px; border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.topbar-link:hover { color: var(--ink); background: var(--line); }

/* ---------- World switcher (signature element) ---------- */
.switcher {
  position: fixed; z-index: 70; left: 50%; top: 14px; transform: translateX(-50%);
  display: flex; gap: 2px; padding: 5px;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: background var(--t-world), border-color var(--t-world), box-shadow var(--t-world);
}
.switcher-pill {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0;
  transform: translateX(var(--pill-x, 5px)); width: var(--pill-w, 0);
  border-radius: 999px; background: var(--btn-bg);
  transition: transform 0.55s var(--ease), width 0.55s var(--ease), background var(--t-world);
}
.switcher a {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 18px; height: 40px; border-radius: 999px;
  text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  color: var(--ink-2); transition: color 0.35s var(--ease);
}
.switcher a:hover { color: var(--ink); }
.switcher a[aria-current="page"] { color: var(--btn-ink); }
.switcher .sw-ico { width: 16px; height: 16px; }
.switcher .sw-k { font-family: var(--mono); font-size: 10px; opacity: 0.55; letter-spacing: 0.04em; }

@media (max-width: 860px) {
  .switcher {
    top: auto; bottom: max(14px, env(safe-area-inset-bottom));
    width: min(calc(100% - 28px), 420px);
    padding: 5px;
  }
  .switcher a { flex: 1; justify-content: center; height: 48px; padding: 0 8px; font-size: 14px; flex-direction: column; gap: 1px; }
  .switcher .sw-k { display: none; }
  .switcher .sw-ico { width: 18px; height: 18px; }
  .switcher a span.sw-l { font-size: 11.5px; letter-spacing: 0.01em; }
  .topbar-link.hide-m { display: none; }
  body { padding-bottom: 84px; }
}

/* ---------- Worlds + transitions ---------- */
.world { animation: worldIn 0.7s var(--ease) both; }
.world.is-leaving { animation: worldOut 0.28s var(--ease-io) both; }
@keyframes worldIn { from { opacity: 0; transform: translateY(18px) scale(0.995); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes worldOut { to { opacity: 0; transform: translateY(-10px) scale(0.995); filter: blur(4px); } }

.section { padding-block: clamp(5rem, 12vw, 10rem); position: relative; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); max-width: 860px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(22px, 3vw, 34px);
  transition: background var(--t-world), border-color 0.3s, box-shadow 0.4s var(--ease), transform 0.5s var(--ease);
  overflow: hidden; isolation: isolate;
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 55%);
}
.card:hover::after { opacity: 1; }
[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.card:hover { box-shadow: var(--shadow-lg); border-color: var(--line-2); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--ink);
  white-space: nowrap;
}
.chip svg { width: 15px; height: 15px; color: var(--accent); }
html[data-world="personas"] .chip svg { color: var(--accent-text); }
.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--ink);
}
.ico { width: 22px; height: 22px; flex: none; }
.ico-box {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
html[data-world="personas"] .ico-box { color: var(--accent-text); }
.ico-box svg { width: 24px; height: 24px; }

/* =========================================================
   HERO (shared)
   ========================================================= */
.hero {
  position: relative; min-height: min(100svh, 980px);
  display: grid; align-items: center;
  padding-top: clamp(110px, 14vh, 150px); padding-bottom: clamp(40px, 8vh, 80px);
  overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: var(--glow); pointer-events: none; transition: opacity 0.6s; }
.hero-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 26px; position: relative; z-index: 2; }
.hero-copy .lead { max-width: 30ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px 28px; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 640px; }
.hero-meta div { display: grid; gap: 2px; }
.hero-meta strong { font-size: 22px; letter-spacing: -0.03em; font-weight: 600; }
.hero-meta span { font-size: 13px; color: var(--muted); }

@media (max-width: 960px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   NETWORK SCENE (reusable engine target)
   ========================================================= */
.scene { position: relative; width: 100%; aspect-ratio: 1 / 1; user-select: none; }
.scene-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.scene-lines line { stroke: var(--line-2); stroke-width: 1; transition: stroke 0.4s, stroke-width 0.4s, opacity 0.4s; }
.scene-lines line.flow { stroke: color-mix(in srgb, var(--accent) 40%, transparent); stroke-dasharray: 2 5; }
.scene-lines line.is-hot { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: none; }
.scene-lines line.is-off { opacity: 0.25; }
.scene-lines line.is-no { stroke: var(--warn); opacity: 0.5; stroke-dasharray: 3 4; }
.scene-lines circle { fill: var(--accent); }
.scene-lines circle.is-off { opacity: 0 !important; }

.node {
  position: absolute; left: 0; top: 0; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  will-change: transform;
  transition: border-color 0.3s, box-shadow 0.3s, background var(--t-world), opacity 0.4s;
}
.node .n-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
html[data-world="personas"] .node .n-ico { color: var(--accent-text); }
.node .n-ico svg { width: 16px; height: 16px; }
.node small { display: block; font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.04em; font-weight: 400; }
.node.is-hot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.node.is-no { opacity: 0.45; }
.node.is-no .n-ico { background: rgba(255, 140, 80, 0.14); color: var(--warn); }

.core {
  position: absolute; left: 0; top: 0; z-index: 3;
  width: clamp(104px, 22%, 150px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% 30%, #1c2614, #070806 72%);
  border: 1px solid rgba(178, 255, 107, 0.35);
  color: #b2ff6b; box-shadow: 0 30px 70px -20px rgba(178, 255, 107, 0.35), inset 0 1px 0 rgba(255,255,255,0.08);
  align-content: center; gap: 4px;
  will-change: transform;
}
.core::before, .core::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  animation: ring 3.6s var(--ease-io) infinite;
}
.core::after { animation-delay: 1.8s; }
@keyframes ring { from { transform: scale(0.85); opacity: 0.9; } to { transform: scale(1.5); opacity: 0; } }
.core strong { font-size: 13px; letter-spacing: 0.18em; font-weight: 700; display: block; }
.core span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; opacity: 0.8; text-transform: uppercase; }
.core img { width: 50%; height: auto; margin: 0 auto; }

@media (max-width: 560px) {
  .node { font-size: 12.5px; padding: 5px 10px 5px 5px; gap: 6px; }
  .node .n-ico { width: 24px; height: 24px; }
  .node .n-ico svg { width: 13px; height: 13px; }
  .node small { display: none; }
}

/* =========================================================
   RISK — Convergence (sticky storytelling)
   ========================================================= */
.converge { position: relative; height: 320vh; }
.converge-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; align-items: center; }
.converge-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; width: 100%; }
.converge-copy { position: relative; min-height: 340px; }
.converge-phase { position: absolute; inset: 0 0 auto 0; display: grid; gap: 22px; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.converge-phase.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
.converge-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: center; }
.converge-stage svg.cv-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cv-lines line { stroke: var(--accent); stroke-width: 1; }
.cv-chip { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.cv-core {
  position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%) scale(var(--core-s, 0.4)); opacity: var(--core-o, 0);
  display: grid; place-items: center; text-align: center; color: #b2ff6b;
  background: radial-gradient(circle at 50% 30%, #1c2614, #070806 72%);
  border: 1px solid rgba(178, 255, 107, 0.35);
  box-shadow: 0 40px 80px -24px rgba(178, 255, 107, 0.4);
}
.cv-core img { width: 48%; height: auto; margin: 0 auto 6px; }
.cv-core strong { letter-spacing: 0.2em; font-size: clamp(12px, 1.3vw, 15px); }
.cv-core span { font-family: var(--mono); font-size: 10px; opacity: 0.7; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-top: 2px; }
.pipeline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.pipeline li { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--muted); transition: color 0.4s; }
.pipeline li b { display: inline-grid; place-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 500; transition: all 0.5s var(--ease); }
.pipeline li.is-on { color: var(--ink); }
.pipeline li.is-on b { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }
.pipeline li + li::before { content: "→"; opacity: 0.4; }
.converge-progress { position: absolute; left: var(--gutter); bottom: 32px; display: flex; gap: 6px; }
.converge-progress i { width: 26px; height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; position: relative; }
.converge-progress i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; }

@media (max-width: 960px) {
  .converge { height: 300vh; }
  .converge-grid { grid-template-columns: 1fr; gap: 8px; }
  .converge-copy { min-height: 250px; }
  .converge-stage { max-width: 440px; width: 88%; }
  .converge-sticky { align-items: start; padding-top: 88px; }
}

/* =========================================================
   Capabilities (Protect / Decide / Connect)
   ========================================================= */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cap { display: grid; gap: 18px; align-content: start; min-height: 420px; text-decoration: none; color: inherit; }
.cap-verb { font-size: clamp(2.6rem, 4.6vw, 4rem); letter-spacing: -0.05em; font-weight: 600; line-height: 1; }
.cap p { color: var(--ink-2); max-width: 30ch; }
.cap-visual { margin-top: auto; height: 130px; position: relative; }
.cap-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; font-size: 14px; font-weight: 500; }
.cap-foot svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.cap:hover .cap-foot svg { transform: translateX(4px); }
@media (max-width: 900px) { .caps { grid-template-columns: 1fr; } .cap { min-height: 0; } }

/* small inline visuals */
.viz-shield { width: 120px; height: 120px; }
.viz-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.viz-bars i { flex: 1; border-radius: 8px 8px 3px 3px; background: var(--accent-soft); height: var(--h); transition: height 0.9s var(--ease), background 0.4s; }
.viz-bars i.hi { background: var(--accent); }
.cap:hover .viz-bars i { height: calc(var(--h) * 0.6 + 30%); }
.cap:hover .viz-bars i.hi { height: 100%; }

/* =========================================================
   Risk Engine (terminal) — always dark
   ========================================================= */
.terminal {
  --t-bg: #0a0b0f; --t-surface: #12141a; --t-line: rgba(255,255,255,0.08); --t-ink: #eef1f6; --t-muted: #8e96a4; --t-acc: #b2ff6b; --t-ok: #5cf2a8; --t-warn: #ffb36b;
  background: var(--t-bg); color: var(--t-ink); border-radius: 28px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 50px 120px -40px rgba(11, 11, 13, 0.55);
}
html[data-world="finance"] .terminal { --t-bg: #0f2f19; --t-surface: #17402a; --t-line: rgba(255,255,255,0.1); --t-muted: #9fb8a2; --t-acc: #c2ff7a; border-color: transparent; box-shadow: var(--shadow-lg); }
.term-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--t-line); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--t-muted); text-transform: uppercase; }
.term-bar .live { display: inline-flex; align-items: center; gap: 8px; color: var(--t-ink); }
.term-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--t-ok); box-shadow: 0 0 10px var(--t-ok); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.term-body { display: grid; grid-template-columns: 250px 1fr 300px; min-height: 480px; }
.term-col { padding: 22px; border-right: 1px solid var(--t-line); }
.term-col:last-child { border-right: 0; }
.term-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t-muted); margin-bottom: 14px; }
.profile-list { display: grid; gap: 8px; }
.profile-btn {
  text-align: left; width: 100%; padding: 12px 14px; border-radius: 14px; cursor: pointer;
  background: transparent; border: 1px solid var(--t-line); color: var(--t-ink);
  display: grid; gap: 2px; transition: border-color 0.2s, background 0.2s;
}
.profile-btn:hover { border-color: rgba(255,255,255,0.22); }
.profile-btn[aria-pressed="true"] { border-color: var(--t-acc); background: color-mix(in srgb, var(--t-acc) 10%, transparent); }
.profile-btn strong { font-size: 14px; font-weight: 500; }
.profile-btn span { font-size: 12px; color: var(--t-muted); }
.term-run { margin-top: 16px; width: 100%; background: color-mix(in srgb, var(--t-ink) 82%, transparent); color: var(--t-bg); border-color: rgba(255, 255, 255, 0.5); }
.term-run:hover { background: color-mix(in srgb, #fff 94%, transparent); }
.term-run[disabled] { opacity: 0.6; cursor: progress; }
.checks { display: grid; gap: 4px; }
.check { display: grid; grid-template-columns: 22px 130px 1fr 92px; align-items: center; gap: 12px; padding: 11px 6px; border-bottom: 1px dashed var(--t-line); font-size: 14px; color: var(--t-muted); transition: color 0.3s; }
.check .c-state { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--t-line); display: grid; place-items: center; }
.check .c-state svg { width: 11px; height: 11px; opacity: 0; }
.check.is-run { color: var(--t-ink); }
.check.is-run .c-state { border-color: var(--t-acc); border-top-color: transparent; animation: spin 0.7s linear infinite; }
.check.is-done { color: var(--t-ink); }
.check.is-done .c-state { background: var(--t-ok); border-color: var(--t-ok); color: #04150c; }
.check.is-done .c-state svg { opacity: 1; }
.check.is-done.warn .c-state { background: var(--t-warn); border-color: var(--t-warn); }
@keyframes spin { to { transform: rotate(360deg); } }
.c-bar { height: 4px; border-radius: 4px; background: var(--t-line); overflow: hidden; }
.c-bar i { display: block; height: 100%; width: var(--w, 0%); background: linear-gradient(90deg, var(--t-acc), var(--t-ok)); border-radius: 4px; transition: width 0.8s var(--ease); }
.check.warn .c-bar i { background: linear-gradient(90deg, var(--t-acc), var(--t-warn)); }
.c-val { font-family: var(--mono); font-size: 12px; text-align: right; color: var(--t-muted); }
.check.is-done .c-val { color: var(--t-ink); }
.term-log { font-family: var(--mono); font-size: 11.5px; line-height: 1.75; color: var(--t-muted); height: 200px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; mask-image: linear-gradient(to bottom, transparent, #000 40%); }
.term-log p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: logIn 0.3s var(--ease); }
.term-log p b { color: var(--t-ok); font-weight: 400; }
.term-log p i { color: var(--t-acc); font-style: normal; }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } }
.decision { margin-top: 18px; border-radius: 18px; padding: 18px; border: 1px solid var(--t-line); background: var(--t-surface); min-height: 170px; display: grid; align-content: start; gap: 8px; transition: border-color 0.4s, box-shadow 0.4s; }
.decision .d-k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--t-muted); text-transform: uppercase; }
.decision .d-v { font-size: 24px; letter-spacing: -0.03em; font-weight: 600; line-height: 1.1; }
.decision .d-s { font-size: 13px; color: var(--t-muted); }
.decision.is-ready { border-color: var(--t-ok); box-shadow: 0 0 0 4px rgba(92, 242, 168, 0.12); }
.decision.is-ready.warn { border-color: var(--t-warn); box-shadow: 0 0 0 4px rgba(255, 179, 107, 0.12); }
.term-note { font-size: 12px; color: var(--muted); margin-top: 14px; font-family: var(--mono); }
@media (max-width: 1100px) {
  .term-body { grid-template-columns: 1fr 1fr; }
  .term-col.term-profiles { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--t-line); }
  .profile-list { grid-template-columns: repeat(3, 1fr); }
  .term-run { width: auto; }
}
@media (max-width: 720px) {
  .term-body { grid-template-columns: 1fr; }
  .term-col { border-right: 0; border-bottom: 1px solid var(--t-line); }
  .profile-list { grid-template-columns: 1fr; }
  .term-run { width: 100%; }
  .check { grid-template-columns: 22px 1fr 76px; }
  .check .c-bar { grid-column: 2 / -1; grid-row: 2; }
  .term-log { height: 130px; }
}

/* =========================================================
   Risk Map
   ========================================================= */
.riskmap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.rm-visual { position: sticky; top: 110px; aspect-ratio: 1; max-width: 520px; width: 100%; }
.rm-visual svg { width: 100%; height: 100%; overflow: visible; }
.rm-ring { fill: none; stroke: var(--line-2); stroke-dasharray: 2 6; }
.rm-spoke { stroke: var(--line-2); transition: stroke 0.4s, stroke-width 0.4s; }
.rm-spoke.is-on { stroke: var(--accent); stroke-width: 2; }
.rm-dot { fill: var(--surface); stroke: var(--line-2); transition: fill 0.4s, stroke 0.4s, r 0.4s; cursor: pointer; }
.rm-dot.is-on { fill: var(--accent); stroke: var(--accent); }
.rm-halo { fill: var(--accent-soft); opacity: 0; transition: opacity 0.4s; }
.rm-halo.is-on { opacity: 1; animation: halo 2.4s var(--ease-io) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 50% { transform: scale(1.3); } }
.rm-label { font-size: 13px; fill: var(--ink-2); font-family: var(--font); font-weight: 500; }
.rm-center { fill: var(--btn-bg); }
.rm-center-t { fill: var(--btn-ink); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; }
.rm-list { display: grid; gap: 10px; }
.rm-item { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: border-color 0.3s, box-shadow 0.4s; overflow: hidden; }
.rm-item.is-open { border-color: var(--line-2); box-shadow: var(--shadow); }
.rm-trigger { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: none; border: 0; cursor: pointer; text-align: left; }
.rm-trigger .rm-n { font-family: var(--mono); font-size: 12px; color: var(--muted); width: 22px; }
.rm-trigger .rm-t { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 500; letter-spacing: -0.02em; flex: 1; }
.rm-trigger .rm-plus { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform 0.4s var(--ease), background 0.3s; }
.rm-trigger .rm-plus svg { width: 14px; height: 14px; }
.rm-item.is-open .rm-plus { transform: rotate(45deg); background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }
.rm-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.rm-item.is-open .rm-panel { grid-template-rows: 1fr; }
.rm-panel > div { overflow: hidden; }
.rm-panel-in { padding: 0 20px 22px 56px; display: grid; gap: 16px; }
.rm-panel-in > p { color: var(--ink-2); }
.dama { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dama li { border-radius: 14px; background: var(--bg); padding: 12px; display: grid; gap: 4px; position: relative; }
.dama li b { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.dama li span { font-size: 13px; color: var(--ink-2); line-height: 1.35; }
@media (max-width: 960px) {
  .riskmap { grid-template-columns: 1fr; }
  .rm-visual { position: relative; top: 0; max-width: 360px; margin-inline: auto; }
  .rm-panel-in { padding-left: 20px; }
  .dama { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Data / AI
   ========================================================= */
.ai-flow { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 16px; align-items: stretch; }
.ai-col { display: grid; gap: 14px; align-content: start; }
.ai-col h3 { font-size: 13px; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.ai-col h3 b { color: var(--ink); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-family: var(--font); letter-spacing: -0.04em; text-transform: none; font-weight: 600; }
.ai-list { display: grid; gap: 8px; }
.ai-list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; }
.ai-list li svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.nn { width: 100%; height: 100%; min-height: 300px; }
.nn line { stroke: var(--line-2); stroke-width: 1; }
.nn line.pulse { stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 6 200; animation: nnPulse 2.8s linear infinite; animation-delay: var(--d, 0s); }
@keyframes nnPulse { from { stroke-dashoffset: 206; } to { stroke-dashoffset: 0; } }
.nn circle { fill: var(--surface); stroke: var(--ink); stroke-width: 1.2; }
.nn circle.lit { fill: var(--accent); stroke: var(--accent); animation: nnLit 2.8s var(--ease-io) infinite; animation-delay: var(--d, 0s); }
@keyframes nnLit { 50% { opacity: 0.35; } }
@media (max-width: 960px) { .ai-flow { grid-template-columns: 1fr; } .nn { min-height: 220px; } }

/* =========================================================
   Metrics
   ========================================================= */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric { display: grid; gap: 10px; align-content: space-between; min-height: 230px; }
.metric-v { font-size: clamp(3.2rem, 6vw, 5.4rem); letter-spacing: -0.06em; font-weight: 600; line-height: 0.9; font-variant-numeric: tabular-nums; }
.metric-l { color: var(--ink-2); font-size: 15px; max-width: 24ch; }
.metric-src { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.metric.is-placeholder { background: transparent; border-style: dashed; }
.metric.is-placeholder .metric-v { color: var(--muted); }
@media (max-width: 1000px) { .metrics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .metrics { grid-template-columns: 1fr; } .metric { min-height: 170px; } }

/* =========================================================
   About
   ========================================================= */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 6vw, 96px); align-items: end; }
.about-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.about-list li { display: flex; gap: 14px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 17px; letter-spacing: -0.01em; }
.about-list li span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* =========================================================
   Cross-world tiles
   ========================================================= */
.worlds-cta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.wtile {
  position: relative; display: grid; align-content: space-between; gap: 60px; min-height: 360px;
  padding: clamp(26px, 3.5vw, 44px); border-radius: 32px; text-decoration: none; overflow: hidden; isolation: isolate;
  transition: transform 0.6s var(--ease), box-shadow 0.5s;
}
.wtile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.wtile h3 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); letter-spacing: -0.05em; }
.wtile p { max-width: 30ch; opacity: 0.8; margin-top: 12px; }
.wtile .wt-go { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.wtile .wt-go svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.wtile:hover .wt-go svg { transform: translateX(5px); }
.wtile.is-ins { background: linear-gradient(150deg, #f1f6ff, #d9e6ff 60%, #b7cdff); color: #0f1b3d; }
.wtile.is-fin { background: radial-gradient(circle at 85% 0%, #22381a, #0a0c09 62%); color: #f3f5f8; border: 1px solid rgba(178, 255, 107, 0.22); }
.wtile.is-risk { background: linear-gradient(150deg, #efeefe, #dcd8ff 70%); color: #0b0b0d; }
.wtile .wt-art { position: absolute; right: -40px; bottom: -40px; width: 280px; height: 280px; z-index: -1; opacity: 0.9; transition: transform 0.8s var(--ease); }
.wtile:hover .wt-art { transform: scale(1.06) rotate(-4deg); }
@media (max-width: 800px) { .worlds-cta { grid-template-columns: 1fr; } .wtile { min-height: 280px; } }

/* =========================================================
   INSURANCE
   ========================================================= */
.orbit { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; justify-self: center; }
.orbit-ring { position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed rgba(15, 27, 61, 0.16); }
.orbit-ring.r2 { inset: 20%; border-style: solid; border-color: rgba(37, 99, 235, 0.18); background: radial-gradient(circle, rgba(127, 178, 255, 0.12), transparent 70%); }
.orbit-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 54%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: linear-gradient(180deg, #eaf1ff, #d6e4ff); box-shadow: 0 40px 80px -30px rgba(37, 99, 235, 0.45), 0 0 0 10px rgba(255, 255, 255, 0.5);
  display: grid; place-items: center; text-align: center;
  transition: box-shadow 0.4s;
}
.orbit-center .oc-fig { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.3s, transform 0.4s var(--ease); }
.orbit-center .oc-info { position: absolute; inset: 12%; display: grid; place-content: center; gap: 6px; opacity: 0; transform: scale(0.96); transition: opacity 0.3s, transform 0.4s var(--ease); pointer-events: none; }
.orbit-center .oc-info strong { font-size: clamp(1rem, 2vw, 1.3rem); letter-spacing: -0.02em; }
.orbit-center .oc-info span { font-size: clamp(11.5px, 1.3vw, 13px); color: var(--ink-2); line-height: 1.35; }
.orbit.has-focus .oc-fig { opacity: 0; transform: scale(0.9); }
.orbit.has-focus .oc-info { opacity: 1; transform: none; }
.orbit.has-focus .orbit-center { background: #fff; }
.orbit.has-focus .orbit-center { box-shadow: 0 40px 80px -30px rgba(37, 99, 235, 0.6), 0 0 0 10px rgba(37, 99, 235, 0.12); }
.orbit-item {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 8px; background: none; border: 0; padding: 0; cursor: pointer;
  animation: bob 6s var(--ease-io) infinite; animation-delay: var(--d, 0s);
}
@keyframes bob { 50% { transform: translate(-50%, calc(-50% - 8px)); } }
.orbit-item .oi-b {
  width: clamp(58px, 11vw, 78px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: 0 16px 34px -14px rgba(15, 27, 61, 0.3); border: 1px solid rgba(15, 27, 61, 0.06);
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, box-shadow 0.4s;
  color: var(--accent-text);
}
.orbit-item .oi-b svg { width: 42%; height: 42%; }
.orbit-item .oi-l { font-size: 13px; font-weight: 500; background: rgba(255, 255, 255, 0.85); padding: 3px 10px; border-radius: 999px; }
.orbit-item:hover .oi-b, .orbit-item:focus-visible .oi-b, .orbit-item.is-on .oi-b { transform: scale(1.14); background: var(--accent); color: #fff; box-shadow: 0 20px 40px -12px rgba(37, 99, 235, 0.6); }
.orbit-item:focus-visible { outline: none; }
.orbit-item:focus-visible .oi-b { outline: 2px solid var(--ink); outline-offset: 4px; }
.orbit-toggle { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); display: flex; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 3; }
.orbit-toggle button { border: 0; background: none; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; cursor: pointer; color: var(--ink-2); transition: background 0.3s, color 0.3s; }
.orbit-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Selector */
.selector-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.sel-card {
  display: grid; justify-items: start; gap: 18px; padding: 20px; min-height: 170px; border-radius: 22px; cursor: pointer; text-align: left;
  background: var(--surface); border: 1.5px solid var(--line); transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s, background 0.3s;
}
.sel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sel-card .sc-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); transition: background 0.3s, color 0.3s, transform 0.5s var(--ease); }
.sel-card .sc-ico svg { width: 26px; height: 26px; }
.sel-card strong { font-size: 18px; letter-spacing: -0.02em; font-weight: 600; margin-top: auto; }
.sel-card[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.sel-card[aria-pressed="true"] .sc-ico { background: var(--accent); color: #fff; transform: rotate(-8deg) scale(1.05); }
.sel-card[aria-pressed="true"] strong::after { content: " ✓"; }
.sel-panel { margin-top: 16px; }
.sel-panel-in { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 12px; animation: worldIn 0.6s var(--ease) both; }
.sel-step { border-radius: 22px; background: var(--surface); border: 1px solid var(--line); padding: 24px; display: grid; gap: 12px; align-content: start; }
.sel-step .ss-k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; }
.sel-step .ss-k b { color: var(--accent-text); font-weight: 500; }
.sel-step h3 { font-size: 22px; letter-spacing: -0.03em; line-height: 1.2; }
.sel-step ul { display: grid; gap: 8px; }
.sel-step ul li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.sel-step ul li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.sel-step.is-cta { background: var(--ink); color: #fff; border-color: var(--ink); }
.sel-step.is-cta .ss-k { color: rgba(255,255,255,0.6); }
.sel-step.is-cta .ss-k b { color: #a9c8ff; }
.sel-step.is-cta .chip { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); color: #fff; }
.sel-step.is-cta .chip svg { color: #a9c8ff; }
.sel-step .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sel-step .btn-primary { margin-top: 8px; justify-self: start; }
.sel-note { font-size: 12.5px; color: rgba(255,255,255,0.6); }
.sel-empty { margin-top: 16px; border: 1.5px dashed var(--line-2); border-radius: 22px; padding: 26px; text-align: center; color: var(--muted); }
@media (max-width: 1100px) { .selector-grid { grid-template-columns: repeat(3, 1fr); } .sel-panel-in { grid-template-columns: 1fr 1fr; } .sel-step.is-cta { grid-column: 1 / -1; } }
@media (max-width: 600px) {
  .selector-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sel-card { min-height: 128px; padding: 16px; gap: 12px; }
  .sel-card .sc-ico { width: 44px; height: 44px; }
  .sel-card strong { font-size: 16px; }
  .sel-panel-in { grid-template-columns: 1fr; }
}

/* Steps (how it works) */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step3 { display: grid; gap: 14px; align-content: start; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.step3 .s-n { font-size: 64px; font-weight: 600; letter-spacing: -0.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.step3 h3 { font-size: 22px; letter-spacing: -0.03em; }
.step3 p { color: var(--ink-2); }
@media (max-width: 860px) { .steps3 { grid-template-columns: 1fr; } }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.cat { display: grid; gap: 10px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); align-content: start; min-height: 150px; transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s; }
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.cat svg { width: 24px; height: 24px; color: var(--accent-text); }
.cat strong { font-size: 16.5px; letter-spacing: -0.02em; font-weight: 600; margin-top: auto; }
.cat span { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 1100px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .cats { grid-template-columns: 1fr 1fr; } .cat { min-height: 132px; padding: 16px; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); padding: 0 22px; transition: box-shadow 0.3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 300; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--ink-2); max-width: 62ch; }

/* =========================================================
   FINANCE
   ========================================================= */
.scene.is-wide { aspect-ratio: 5 / 4; }
.fin-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 40%, #000, transparent 70%);
}

/* Credit flow demo */
.flow-demo { border-radius: 28px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.fd-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.fd-profiles { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-profile { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 6px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 14px; color: var(--ink-2); transition: all 0.3s; }
.fd-profile .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 600; font-size: 13px; color: var(--ink); border: 1px solid var(--line); }
.fd-profile[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.fd-profile[aria-pressed="true"] .av { background: var(--accent); color: #04150c; border-color: var(--accent); }
.fd-track { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); padding: 34px 22px 28px; gap: 4px; }
.fd-track::before { content: ""; position: absolute; left: var(--a, 70px); width: calc(var(--b, 0px) - var(--a, 70px)); top: 57px; height: 2px; background: var(--line-2); }
.fd-fill { position: absolute; left: 0; top: 57px; height: 2px; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); box-shadow: 0 0 12px var(--accent); transition: width 0.6s var(--ease); }
.fd-stage { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; background: none; border: 0; cursor: default; padding: 0; color: var(--muted); }
.fd-dot { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--muted); transition: all 0.4s var(--ease); position: relative; z-index: 1; }
.fd-dot svg { width: 20px; height: 20px; }
.fd-stage span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.3s; }
.fd-stage.is-run .fd-dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); animation: pulseDot 1s var(--ease-io) infinite; }
.fd-stage.is-done .fd-dot { background: var(--accent); color: #04150c; border-color: var(--accent); }
.fd-stage.is-done span, .fd-stage.is-run span { color: var(--ink); }
.fd-stage.is-alert .fd-dot { border-color: var(--warn); color: var(--warn); box-shadow: 0 0 0 6px rgba(255, 179, 107, 0.12); }
@keyframes pulseDot { 50% { box-shadow: 0 0 0 12px transparent; } }
.fd-body { display: grid; grid-template-columns: 320px 1fr; border-top: 1px solid var(--line); min-height: 380px; }
.fd-data { padding: 22px; border-right: 1px solid var(--line); display: grid; gap: 0; align-content: start; }
.fd-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.fd-row dt { color: var(--muted); }
.fd-row dd { margin: 0; font-family: var(--mono); font-size: 13px; text-align: right; color: var(--muted); transition: color 0.3s; }
.fd-row dd.is-set { color: var(--ink); animation: logIn 0.4s var(--ease); }
.fd-out { padding: 22px; display: grid; gap: 16px; align-content: start; }
.fd-msg { display: flex; align-items: center; gap: 12px; font-size: 15px; min-height: 44px; padding: 10px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.fd-msg svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.fd-msg.is-warn { border-color: rgba(255, 179, 107, 0.4); }
.fd-msg.is-warn svg { color: var(--warn); }
.fd-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fd-opt { position: relative; display: grid; gap: 10px; padding: 18px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; text-align: left; transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s; animation: optIn 0.6s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes optIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.fd-opt:hover { transform: translateY(-3px); border-color: var(--accent); }
.fd-opt .o-best { position: absolute; top: 12px; right: 12px; }
.fd-opt .o-name { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.fd-opt .o-kind { font-size: 12.5px; color: var(--muted); }
.fd-opt dl { display: grid; gap: 6px; margin: 4px 0 0; }
.fd-opt dl div { display: flex; justify-content: space-between; font-size: 13px; }
.fd-opt dt { color: var(--muted); }
.fd-opt dd { margin: 0; font-family: var(--mono); }
.fd-match { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.fd-match i { display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: 4px; }
.fd-opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.fd-approved { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; background: linear-gradient(100deg, rgba(110,255,180,0.14), rgba(126,166,255,0.08)); border: 1px solid rgba(110,255,180,0.4); animation: optIn 0.6s var(--ease) both; }
.fd-approved .stamp { font-family: var(--mono); font-weight: 600; letter-spacing: 0.14em; font-size: 13px; padding: 8px 14px; border: 1.5px solid var(--accent); border-radius: 10px; color: var(--accent); transform: rotate(-3deg); }
.fd-placeholder { color: var(--muted); font-size: 14px; padding: 30px 0; text-align: center; }
.fd-note { font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding: 14px 22px; border-top: 1px solid var(--line); }
@media (max-width: 980px) {
  .fd-body { grid-template-columns: 1fr; }
  .fd-data { border-right: 0; border-bottom: 1px solid var(--line); }
  .fd-options { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .fd-track { grid-template-columns: 1fr; gap: 0; padding: 20px 22px; }
  .fd-track::before, .fd-fill { display: none; }
  .fd-stage { grid-template-columns: 40px 1fr; justify-items: start; align-items: center; text-align: left; padding: 6px 0; gap: 14px; }
  .fd-dot { width: 40px; height: 40px; border-radius: 12px; }
  .fd-stage:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 46px; height: 12px; width: 2px; background: var(--line-2); }
  .fd-stage.is-done:not(:last-child)::after { background: var(--accent); }
  .fd-top .btn { width: 100%; }
}

/* Versus */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.versus .card h3 { font-size: 15px; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.versus li { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.versus li svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.versus .is-them li svg { color: var(--muted); }
.versus .is-them { background: transparent; }
.versus .is-us { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.versus .is-us li { color: var(--ink); }
.versus .is-us li svg { color: var(--accent); }
@media (max-width: 800px) { .versus { grid-template-columns: 1fr; } }

/* Feature grid */
.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.feat .card { display: grid; gap: 14px; align-content: start; padding: 24px; min-height: 210px; }
.feat h3 { font-size: 18px; letter-spacing: -0.02em; line-height: 1.25; }
.feat p { font-size: 14.5px; color: var(--ink-2); }
.feat .card.span-2 { grid-column: span 2; }
@media (max-width: 1100px) { .feat { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feat { grid-template-columns: 1fr; } .feat .card.span-2 { grid-column: auto; } .feat .card { min-height: 0; } }

/* Brain */
.brain-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.brain { position: relative; aspect-ratio: 1; max-width: 540px; width: 100%; justify-self: center; }
.brain canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.brain-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.brain-label strong { display: block; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.04em; }
.brain-label span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.slogan { display: grid; gap: 0; font-size: clamp(2.4rem, 5.6vw, 4.8rem); letter-spacing: -0.05em; font-weight: 600; line-height: 1; }
.slogan span:nth-child(2) { color: var(--ink-2); }
.slogan span:nth-child(3) { color: var(--accent); }
.brain-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.brain-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); padding: 12px 0; border-top: 1px solid var(--line); }
.brain-feats li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.brain-feats li b { color: var(--ink); font-weight: 500; display: block; }
@media (max-width: 960px) { .brain-wrap { grid-template-columns: 1fr; } .brain { max-width: 380px; } }
@media (max-width: 520px) { .brain-feats { grid-template-columns: 1fr; } }

/* Centralizer */
.central { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.central .scene { aspect-ratio: 6 / 5; }
.central-statement { font-size: clamp(2rem, 4.4vw, 3.6rem); letter-spacing: -0.045em; line-height: 1; font-weight: 600; }
.central-statement s { text-decoration-thickness: 3px; text-decoration-color: var(--warn); color: var(--muted); }
.central-log { font-family: var(--mono); font-size: 12.5px; color: var(--muted); min-height: 22px; }
.central-log b { color: var(--accent); font-weight: 500; }
.node.entity { cursor: pointer; }
.node.entity:hover, .node.entity:focus-visible { border-color: var(--line-2); }
.node.entity .n-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); background: var(--ink); color: var(--bg); font-size: 12px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.3s var(--ease); font-weight: 400; }
.node.entity:hover .n-tip, .node.entity:focus-visible .n-tip { opacity: 1; transform: translate(-50%, 0); }
.node .n-badge { width: 18px; height: 18px; border-radius: 50%; display: none; place-items: center; margin-left: 2px; }
.node .n-badge svg { width: 11px; height: 11px; }
.node.is-hot .n-badge { display: grid; background: var(--accent); color: #04150c; }
.node.is-no .n-badge { display: grid; background: var(--warn); color: #1a0d02; }
@media (max-width: 960px) { .central { grid-template-columns: 1fr; } .central .scene { aspect-ratio: 4 / 5; max-width: 520px; margin-inline: auto; } }

/* 5 step flow */
.flow5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.flow5 li { padding: 26px 20px 10px 0; display: grid; gap: 12px; align-content: start; position: relative; }
.flow5 li::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--accent); transition: width 1.2s var(--ease); transition-delay: var(--d, 0s); }
.flow5.is-in li::before { width: 100%; }
.flow5 .f-n { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.flow5 h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; }
.flow5 p { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 960px) { .flow5 { grid-template-columns: 1fr; } .flow5 li { padding: 20px 0; border-bottom: 1px solid var(--line); } }

/* =========================================================
   Final CTA + footer
   ========================================================= */
.final-cta { text-align: center; display: grid; justify-items: center; gap: 26px; padding-block: clamp(6rem, 14vw, 11rem); }
.final-cta .h-display { max-width: 14ch; }

.footer { border-top: 1px solid var(--line); padding: 72px 0 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 32px; }
.footer h4 { font-size: 12px; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.footer ul { display: grid; gap: 10px; }
.footer a { text-decoration: none; color: var(--ink-2); transition: color 0.2s; }
.footer a:hover { color: var(--ink); }
.footer-brand p { color: var(--muted); max-width: 30ch; margin-top: 16px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-legal nav { display: flex; gap: 20px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* =========================================================
   Conversational form (Hablemos)
   ========================================================= */
.talk {
  border: 0; padding: 0; margin: auto; width: min(560px, calc(100% - 32px)); max-height: min(760px, calc(100svh - 40px));
  border-radius: 28px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 120px -20px rgba(0,0,0,0.45);
  overflow: hidden;
}
.talk[open] { display: flex; flex-direction: column; animation: talkIn 0.5s var(--ease); }
.talk::backdrop { background: rgba(8, 8, 12, 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn 0.4s; }
@keyframes talkIn { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
@keyframes fadeIn { from { opacity: 0; } }
.talk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.talk-head .who { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.talk-head .who small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.talk-head .who .logo-mark { width: 34px; height: 34px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 7%, transparent); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.icon-btn svg { width: 18px; height: 18px; }
.talk-progress { height: 2px; background: var(--line); }
.talk-progress i { display: block; height: 100%; width: var(--p, 10%); background: var(--accent); transition: width 0.5s var(--ease); }
.talk-thread { flex: 1; overflow-y: auto; padding: 22px 18px 8px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.bubble { max-width: 86%; padding: 12px 16px; border-radius: 20px; font-size: 15.5px; line-height: 1.45; animation: bubbleIn 0.45s var(--ease) both; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.bubble.bot { background: var(--bg); border-bottom-left-radius: 6px; align-self: flex-start; }
.bubble.bot strong { display: block; font-size: 17px; letter-spacing: -0.02em; }
.bubble.me { background: var(--btn-bg); color: var(--btn-ink); border-bottom-right-radius: 6px; align-self: flex-end; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 50% { transform: translateY(-4px); opacity: 0.4; } }
.talk-input { padding: 12px 18px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.talk-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.talk-opt { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; text-align: left; font-size: 14.5px; font-weight: 500; transition: border-color 0.2s, background 0.2s, transform 0.3s var(--ease); animation: bubbleIn 0.4s var(--ease) both; animation-delay: var(--d, 0s); }
.talk-opt:hover { border-color: var(--ink); transform: translateY(-2px); }
.talk-opt svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
html[data-world="personas"] .talk-opt svg { color: var(--accent-text); }
.talk-fields { display: grid; gap: 10px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field .err { font-size: 12.5px; color: var(--err); min-height: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--btn-bg); flex: none; }
.talk-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.talk-back { background: none; border: 0; color: var(--muted); font-size: 14px; cursor: pointer; padding: 10px 4px; }
.talk-back:hover { color: var(--ink); }
.talk-done { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 12px 0 6px; }
.talk-done .ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-bg); color: var(--btn-ink); animation: pop 0.6s var(--ease); }
.talk-done .ok svg { width: 30px; height: 30px; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.1); } }
@media (max-width: 600px) {
  .talk { width: 100%; max-width: 100%; max-height: 92svh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .talk[open] { animation: sheetIn 0.5s var(--ease); }
  @keyframes sheetIn { from { transform: translateY(100%); } }
  .talk-options { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* =========================================================
   Brand additions: hub tiles, logos, subnav, happy character
   ========================================================= */
.wt-logo { height: 34px; width: auto; margin-bottom: 26px; }
.wt-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.wt-list li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(15, 27, 61, 0.08); }
.wtile.is-fin .wt-list li { background: rgba(178, 255, 107, 0.08); border-color: rgba(178, 255, 107, 0.22); }
.final-logo { height: 44px; width: auto; }
.talk-mark { width: 38px; height: 38px; border-radius: 12px; background: #0b0d0a; display: grid; place-items: center; flex: none; }
.talk-mark img { width: 26px; height: auto; }
html[data-world="personas"] .talk-mark { background: var(--bg-2); }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: 13.5px; color: var(--ink-2); transition: border-color 0.2s, color 0.2s, background 0.2s; }
.subnav a:hover { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.subnav a svg { width: 15px; height: 15px; color: var(--accent); }
.rm-intro { padding-bottom: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--line); background: radial-gradient(800px 400px at 20% 0%, rgba(178, 255, 107, 0.08), transparent 70%); }
.rm-intro .section-head { margin-bottom: 0; }

.happy .hp-body { animation: hpBreath 4.2s var(--ease-io) infinite; transform-origin: 120px 240px; }
.happy .hp-head { animation: hpHead 4.2s var(--ease-io) infinite; transform-origin: 120px 158px; }
.happy .hp-arm { animation: hpWave 1.7s var(--ease-io) infinite; transform-origin: 164px 198px; }
.happy .hp-heart { opacity: 0; animation: hpFloat 3.6s ease-in infinite; transform-box: fill-box; transform-origin: center; }
.happy .hp-company, .happy .hp-tie { opacity: 0; transition: opacity 0.45s var(--ease); }
.happy.is-company .hp-company, .happy.is-company .hp-tie { opacity: 1; }
@keyframes hpBreath { 50% { transform: translateY(-3px); } }
@keyframes hpHead { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3.5deg); } }
@keyframes hpWave { 0%, 100% { transform: rotate(8deg); } 50% { transform: rotate(-18deg); } }
@keyframes hpFloat { 0% { opacity: 0; transform: translateY(10px) scale(0.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-56px) scale(1.05); } }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .converge { height: auto; }
  .converge-sticky { position: relative; height: auto; padding-block: 6rem; }
  .converge-phase { position: relative; }
  .converge-phase.is-hidden { opacity: 1; transform: none; }
  .converge-copy { display: grid; gap: 40px; min-height: 0; }
}

/* =========================================================
   PERSONAS (B2C) — hero, simulador, storytelling
   ========================================================= */
.p-hero {
  position: relative; min-height: min(100svh, 940px);
  display: grid; align-items: center;
  padding-top: clamp(104px, 13vh, 140px); padding-bottom: clamp(40px, 7vh, 72px);
  overflow: hidden;
}
/* Fondo del hero: GIF/video de la persona recibiendo su carro */
.p-hero-media { position: absolute; inset: 0; z-index: 0; }
.p-hero-media img, .p-hero-media video { width: 100%; height: 100%; object-fit: cover; }
.p-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(240, 241, 236, 0.9) 32%, rgba(240, 241, 236, 0.25) 64%, rgba(240, 241, 236, 0.05) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 20%);
}
.p-hero-ph {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 72% 40%, rgba(178, 255, 107, 0.55), transparent 70%),
    radial-gradient(40% 50% at 92% 90%, rgba(108, 196, 58, 0.35), transparent 70%),
    linear-gradient(160deg, #f4f6ef, #dcefcf);
}
.p-ph-car {
  position: absolute; left: 50%; top: 50%; width: min(46vw, 620px); height: auto; aspect-ratio: 1;
  color: rgba(31, 77, 26, 0.16); stroke-width: 0.6;
  animation: phFloat 6s var(--ease-io) infinite alternate;
}
@keyframes phFloat { from { transform: translate(-10%, -52%); } to { transform: translate(-6%, -48%); } }

.p-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr minmax(360px, 480px); gap: clamp(24px, 5vw, 72px); align-items: center; }
.p-hero .lead { max-width: 34ch; }
.p-trust { display: grid; gap: 10px; }
.p-trust li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.p-trust svg { width: 22px; height: 22px; padding: 5px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); flex: none; }

/* ---------- Simulador ---------- */
.sim {
  position: relative; width: 100%; justify-self: end;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: clamp(20px, 2.4vw, 28px);
}
.sim-step { display: grid; gap: 18px; }
.sim-step:focus { outline: none; }
.sim-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sim-head h2 { font-size: 22px; letter-spacing: -0.03em; line-height: 1.15; }
.sim-head .tag { flex: none; }

.sim-seg { border: 0; margin: 0; padding: 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--bg-2); border-radius: 16px; }
.sim-seg label, .sim-chips label { position: relative; }
.sim-seg input, .sim-chips input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sim-seg span {
  display: flex; align-items: center; justify-content: center; gap: 7px; height: 44px; border-radius: 12px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.sim-seg span svg { width: 17px; height: 17px; }
.sim-seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 29, 14, 0.06), 0 6px 16px -8px rgba(15, 29, 14, 0.25); }
.sim-seg input:checked + span svg { color: var(--accent-text); }
.sim-seg input:focus-visible + span, .sim-chips input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }

.sim-field { display: grid; gap: 8px; }
.sim-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sim-row label, .sim-label { font-size: 14px; color: var(--ink-2); }
.sim-row output { font-weight: 600; font-size: 16px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-align: right; }
.sim-field small { font-size: 12px; }

.sim input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; }
.sim input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-text) var(--fill, 50%), var(--line-2) var(--fill, 50%));
}
.sim input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent-text); box-shadow: 0 2px 8px rgba(15, 29, 14, 0.25);
  transition: transform 0.2s var(--ease);
}
.sim input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.sim input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--line-2); }
.sim input[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--accent-text); }
.sim input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--accent-text); box-shadow: 0 2px 8px rgba(15, 29, 14, 0.25); }
.sim input[type="range"]:focus-visible { outline: none; }
.sim input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--accent-soft), 0 2px 8px rgba(15, 29, 14, 0.25); }

.sim-chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sim-chips span {
  display: grid; place-items: center; height: 40px; border-radius: 12px; border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.sim-chips label:hover span { border-color: var(--accent-text); }
.sim-chips input:checked + span { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }

.sim-out {
  display: grid; gap: 4px; padding: 18px 20px; border-radius: 20px;
  background: radial-gradient(120% 140% at 100% 0%, #24461b, #0f1d0e 62%);
  color: #eef7e6;
}
.sim-out-k { font-size: 13px; color: rgba(238, 247, 230, 0.7); }
.sim-out-v { font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; color: #b2ff6b; font-variant-numeric: tabular-nums; }
.sim-out-d { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.sim-out-d dt { font-size: 12px; color: rgba(238, 247, 230, 0.6); }
.sim-out-d dd { margin: 2px 0 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.sim-cta { width: 100%; min-height: 54px; font-size: 16px; }
.sim-note { font-size: 12px; color: var(--muted); line-height: 1.45; }

.sim-back svg { transform: rotate(180deg); }
.sim-head .sim-back { flex: none; }
.sim-summary { font-size: 14px; color: var(--ink-2); background: var(--bg-2); border-radius: 14px; padding: 12px 14px; line-height: 1.5; }
.sim-summary b { color: var(--ink); font-weight: 600; }
.sim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sim-input { display: grid; gap: 6px; }
.sim-input label { font-size: 13px; color: var(--ink-2); }
.sim-input input, .sim-input select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sim-input input:focus, .sim-input select:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-soft); }
.sim-input [aria-invalid="true"] { border-color: var(--err); }
.sim-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; cursor: pointer; }
.sim-consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--btn-bg); }
.sim-err { color: var(--err); font-size: 13.5px; }
.sim-err:empty { display: none; }
.sim-done { text-align: center; justify-items: center; padding: 28px 8px; }
.sim-done-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.sim-done-ico svg { width: 30px; height: 30px; }
.sim-done h2 { font-size: 30px; letter-spacing: -0.04em; }
.sim-done p { color: var(--ink-2); max-width: 34ch; }

/* ---------- Storytelling ---------- */
.p-story { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.p-story li {
  position: relative; display: grid; gap: 14px; align-content: start;
  padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.p-story li:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.p-story .ps-n { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.p-story h3 { font-size: 21px; letter-spacing: -0.03em; }
.p-story p { color: var(--ink-2); font-size: 15px; }
.p-story li:last-child { background: var(--btn-bg); border-color: var(--btn-bg); color: #fff; }
.p-story li:last-child p, .p-story li:last-child .ps-n { color: rgba(255, 255, 255, 0.72); }
.p-story li:last-child .ico-box { background: rgba(178, 255, 107, 0.16); color: #b2ff6b; }

.p-band { background: var(--bg-2); }
.p-band .faq details, .p-band .step3 { background: var(--surface); }
.p-list { display: grid; gap: 14px; }
.p-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.p-list svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--accent-text); }
.p-list b { color: var(--ink); font-weight: 600; }

@media (max-width: 1080px) {
  .p-story { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .p-hero { min-height: auto; }
  .p-hero-grid { grid-template-columns: 1fr; }
  .sim { justify-self: stretch; max-width: 560px; }
  .p-hero-media::after { background: linear-gradient(180deg, rgba(240, 241, 236, 0.55) 0%, var(--bg) 70%); }
}
@media (max-width: 560px) {
  .p-story { grid-template-columns: 1fr; }
  .sim-grid { grid-template-columns: 1fr; }
  .sim-chips { grid-template-columns: repeat(3, 1fr); }
  .sim-seg span { flex-direction: column; gap: 2px; height: 56px; font-size: 12.5px; }
}

/* =========================================================
   EMPRESAS — bandas claras para equilibrar el mundo oscuro
   ========================================================= */
.band-light {
  --bg: #f5f8f1;
  --bg-2: #ebf2e3;
  --surface: #ffffff;
  --surface-2: #f7faf3;
  --ink: #0f1d0e;
  --ink-2: #3d4a3a;
  --muted: #5c6858;
  --line: rgba(15, 29, 14, 0.09);
  --line-2: rgba(15, 29, 14, 0.16);
  --accent: #3d8a1c;
  --accent-soft: rgba(108, 196, 58, 0.16);
  --shadow: 0 1px 2px rgba(15, 29, 14, 0.04), 0 12px 40px -12px rgba(15, 29, 14, 0.16);
  --shadow-lg: 0 2px 4px rgba(15, 29, 14, 0.04), 0 30px 80px -24px rgba(15, 29, 14, 0.24);
  background: var(--bg);
  color: var(--ink);
}
.band-light.band-tint { background: var(--bg-2); }

/* =========================================================
   SITIO — bloques de color (ritmo tipo Amiguro / ClickUp)
   papel → verde Loogic → menta → lima, tarjetas blancas redondeadas
   ========================================================= */
.on-ink,
html[data-world="finance"] .topbar:not(.is-scrolled),
html:is([data-world="finance"], [data-world="personas"]) .footer {
  --bg: #12391f;
  --bg-2: #0e2f19;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-2: rgba(255, 255, 255, 0.11);
  --ink: #f3f8ec;
  --ink-2: #cfe0cb;
  --muted: #a3bca4;
  --line: rgba(255, 255, 255, 0.13);
  --line-2: rgba(255, 255, 255, 0.24);
  --accent: #c2ff7a;
  --accent-soft: rgba(194, 255, 122, 0.16);
  --accent-text: #c2ff7a;
  --btn-bg: #c2ff7a;
  --btn-ink: #12391f;
  --glass: rgba(18, 57, 31, 0.55);
  --shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 26px 54px -24px rgba(0, 0, 0, 0.55);
}
.on-mint {
  --bg: #b9ecd6;
  --bg-2: #a6e3c9;
  --surface: #ffffff;
  --line: rgba(18, 57, 31, 0.12);
  --line-2: rgba(18, 57, 31, 0.22);
  --muted: #3f5a47;
  --ink-2: #2f4a37;
  --accent: #23772a;
  --accent-soft: rgba(255, 255, 255, 0.55);
}
.on-lime {
  --bg: #c8ff85;
  --bg-2: #b8f56d;
  --surface: #ffffff;
  --line: rgba(18, 57, 31, 0.14);
  --line-2: rgba(18, 57, 31, 0.26);
  --muted: #3c5a30;
  --ink-2: #2c4a24;
  --accent: #12391f;
  --accent-soft: rgba(255, 255, 255, 0.55);
}
.on-ink, .on-mint, .on-lime { background: var(--bg); color: var(--ink); position: relative; overflow: hidden; isolation: isolate; }
html:is([data-world="finance"], [data-world="personas"]) .footer { background: var(--bg); color: var(--ink); border-top: 0; }

/* Formas suaves de color en las secciones oscuras */
.blob { position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; filter: blur(10px); }
.blob-a { width: min(70vw, 780px); aspect-ratio: 1; top: -30%; left: -16%; background: radial-gradient(circle, rgba(194, 255, 122, 0.2), transparent 66%); }
.blob-b { width: min(62vw, 700px); aspect-ratio: 1; bottom: -32%; right: -14%; background: radial-gradient(circle, rgba(141, 230, 200, 0.22), transparent 66%); }
html[data-world="finance"] .hero .fin-grid-bg { opacity: 0.5; }

/* Logo: blanco sobre el hero verde, verde cuando la barra se pega sobre papel */
html[data-world="finance"] .topbar.is-scrolled .for-dark { display: none !important; }
html[data-world="finance"] .topbar.is-scrolled .for-light { display: block !important; }
html:is([data-world="finance"], [data-world="personas"]) .topbar::before { background: color-mix(in srgb, #f0f1ec 92%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 0 rgba(18, 57, 31, 0.08); }

/* Botones planos y amables (píldora sólida que sube al pasar el mouse) */
html:is([data-world="finance"], [data-world="personas"]) .btn-primary { font-weight: 600; }
html:is([data-world="finance"], [data-world="personas"]) .btn:hover { transform: translate(var(--mx), calc(var(--my) - 3px)); }

/* Tarjetas: blancas, más redondeadas, sin borde duro */
html:is([data-world="finance"], [data-world="personas"]) .card,
html:is([data-world="finance"], [data-world="personas"]) .flow-demo,
html:is([data-world="finance"], [data-world="personas"]) .rm-item,
html:is([data-world="finance"], [data-world="personas"]) .ai-list li { border-color: transparent; box-shadow: var(--shadow); }
html:is([data-world="finance"], [data-world="personas"]) .on-ink .card,
html:is([data-world="finance"], [data-world="personas"]) .on-ink .ai-list li { border-color: var(--line); box-shadow: none; background: linear-gradient(165deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)); }
html:is([data-world="finance"], [data-world="personas"]) .card:hover { transform: translateY(-6px); }
html:is([data-world="finance"], [data-world="personas"]) .flow-demo { border-radius: 32px; }

/* Estados "listo" con lima de marca y texto verde */
html:is([data-world="finance"], [data-world="personas"]) .fd-profile[aria-pressed="true"] .av,
html:is([data-world="finance"], [data-world="personas"]) .fd-stage.is-done .fd-dot,
html:is([data-world="finance"], [data-world="personas"]) .node.is-hot .n-badge { background: var(--accent-2); border-color: var(--accent-2); color: #12391f; }
html:is([data-world="finance"], [data-world="personas"]) .on-ink .node.is-hot .n-badge { background: var(--accent); }
html:is([data-world="finance"], [data-world="personas"]) .core { background: radial-gradient(circle at 50% 30%, #2a6a3a, #12391f 72%); border-color: rgba(194, 255, 122, 0.45); }

/* Cierre: bloque lima redondeado */
.final-cta.on-lime { border-radius: clamp(28px, 4vw, 48px); margin-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem); padding-inline: clamp(24px, 5vw, 64px); max-width: calc(var(--container) - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); }
.on-lime .btn-primary { --btn-bg: #12391f; --btn-ink: #c8ff85; }
.on-lime .grad-text { background-image: linear-gradient(100deg, #12391f 30%, #3a7a20 100%); }
.on-mint .grad-text { background-image: linear-gradient(100deg, #12391f 30%, #23772a 100%); }
/* Footer verde: siempre el logo blanco */
html[data-world="personas"] .footer .for-light { display: none !important; }
html[data-world="personas"] .footer .for-dark { display: block !important; }

/* =========================================================
   MENÚ SUPERIOR (estilo Amiguro) + selector de mundo en la barra
   ========================================================= */
.topbar { justify-content: flex-start; }
/* El logo nunca se encoge ni se deforma: el menú cede espacio antes */
.topbar .logo { flex: none; }
.topbar .logo-img { flex: none; max-width: none; width: auto; height: 34px; }
.topbar-right { flex: none; }
.mainnav { min-width: 0; }
.topbar-right { margin-left: auto; }
.mainnav { align-items: center; gap: 2px; margin-left: clamp(12px, 2.4vw, 36px); }
.mainnav > a, .nav-a {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap;
  background: none; border: 0; cursor: pointer; transition: background 0.18s;
}
.mainnav > a:hover, .nav-a:hover, .navdrop.is-open .nav-a { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.nav-a .chev { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.navdrop.is-open .chev { transform: rotate(180deg); }
.nav-pay { background: var(--accent-soft) !important; font-weight: 600 !important; }
.nav-pay svg { width: 16px; height: 16px; }
.mainnav .nav-pay { margin-left: 6px; }

.navdrop { position: relative; display: flex; align-items: center; }
.navdrop::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 16px; }
.dropmenu {
  position: absolute; top: calc(100% + 12px); left: 50%; width: 330px; z-index: 5;
  transform: translateX(-50%) translateY(-6px); opacity: 0; visibility: hidden;
  display: grid; gap: 2px; padding: 10px; border-radius: 24px;
  background: #fff; color: #12391f; box-shadow: 0 30px 60px -24px rgba(18, 57, 31, 0.4), 0 0 0 1px rgba(18, 57, 31, 0.06);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.navdrop:hover .dropmenu, .navdrop.is-open .dropmenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropitem { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; text-decoration: none; transition: background 0.18s; }
.dropitem:hover { background: #f0f1ec; }
.dropitem .di { flex: none; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: 17px; }
.dropitem b { display: block; font-size: 15px; font-weight: 600; }
.dropitem em { display: block; font-style: normal; font-size: 12.5px; color: #627266; }
.dropall { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; padding: 12px 14px; border-radius: 16px; background: #c8ff85; font-weight: 600; font-size: 14px; text-decoration: none; }
.dropall svg { width: 16px; height: 16px; }

/* Selector Personas | Empresas dentro de la barra (escritorio) */
@media (min-width: 861px) {
  .switcher {
    position: relative; left: auto; top: auto; transform: none; z-index: 1;
    padding: 4px; margin-right: 6px; box-shadow: none;
    background: color-mix(in srgb, var(--ink) 7%, transparent); border-color: var(--line);
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .switcher-pill { top: 4px; bottom: 4px; }
  .switcher a { height: 34px; padding: 0 14px; font-size: 13.5px; gap: 6px; }
  .switcher .sw-ico { width: 15px; height: 15px; }
}
@media (max-width: 860px) {
  .switcher { position: fixed; left: 50%; transform: translateX(-50%); }
}

/* Hamburguesa + hoja móvil */
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: #c8ff85; place-items: center; align-content: center; gap: 4px; padding: 0; }
.burger i { display: block; width: 18px; height: 2px; border-radius: 2px; background: #12391f; margin-inline: auto; transition: transform 0.25s var(--ease), opacity 0.2s; }
.has-sheet .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.has-sheet .burger i:nth-child(2) { opacity: 0; }
.has-sheet .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.sheet { position: fixed; inset: 72px 12px auto 12px; z-index: 65; padding: 10px; border-radius: 26px; background: #fff; box-shadow: 0 30px 70px -24px rgba(18, 57, 31, 0.45); }
.sheet-in { flex-direction: column; gap: 2px; }
.sheet-in a { display: flex; align-items: center; gap: 10px; padding: 15px 16px; border-radius: 16px; font-size: 16px; font-weight: 500; color: #12391f; text-decoration: none; }
.sheet-in a:hover { background: #f0f1ec; }
.sheet-in .nav-pay { background: #e9ffd0 !important; }
.sheet-in svg { width: 18px; height: 18px; }
@media (max-width: 1280px) {
  html[data-world] .mainnav { display: none !important; }
  .burger { display: grid; }
}
@media (max-width: 560px) {
  html[data-world] .topbar .btn-sm { display: none !important; }
}

/* =========================================================
   TÍTULOS MÁS VIVOS — marcador lima
   ========================================================= */
.hl-lime {
  color: inherit; padding: 0 0.06em;
  background: linear-gradient(transparent 56%, #c2ff7a 56%, #c2ff7a 94%, transparent 94%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.p-title { color: #148a37; }
.p-title .hl-lime { color: #0f3d1c; }
.on-ink .hl-lime { background: none; color: var(--accent); padding: 0; }

/* =========================================================
   PERSONAS — financieras aliadas + pagos en línea
   ========================================================= */
.allies-wrap { margin-top: clamp(48px, 6vw, 84px); }
.allies-title { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.03em; margin-bottom: 18px; }
.allies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ally { display: grid; gap: 12px; align-content: start; padding: 26px; border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(165deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)); transition: transform 0.35s var(--ease), border-color 0.35s; }
.ally:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.ally-lg { font-size: 28px; font-weight: 700; letter-spacing: -0.04em; color: var(--accent); }
.ally p { color: var(--ink-2); font-size: 14.5px; }
.ally-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 6px; font-size: 14px; }

.payhead { display: grid; gap: 16px; padding: clamp(28px, 5vw, 60px); border-radius: clamp(28px, 4vw, 40px); margin-bottom: 18px; }
.payhead .h-section { max-width: 18ch; }
.payhead .lead { max-width: 56ch; }
.pay-eyebrow { justify-self: start; padding: 7px 14px; border-radius: 999px; background: #c2ff7a; color: #12391f; font-size: 13px; font-weight: 600; }
.paygrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.paycard {
  display: grid; gap: 16px; justify-items: center; align-content: center; min-height: 160px; padding: 24px;
  border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.paycard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pay-lg { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -0.04em; }
.pay-go { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); font-size: 13.5px; font-weight: 600; transition: gap 0.25s var(--ease); }
.paycard:hover .pay-go { gap: 11px; }
.pay-go svg { width: 14px; height: 14px; }
.pay-help { margin-top: 18px; font-size: 14.5px; color: var(--ink-2); }
.pay-help a { color: var(--accent-text); font-weight: 600; }
@media (max-width: 860px) { .allies, .paygrid { grid-template-columns: 1fr; } }
html[data-world="personas"] .sheet .for-world-personas,
html[data-world="finance"] .sheet .for-world-finance { display: flex !important; }

/* =========================================================
   EMPRESAS — Risk Engine (hero): tarjeta de decisión animada
   ========================================================= */
.rk { position: relative; width: 100%; max-width: 500px; justify-self: center; padding-top: 22px; }
.rk-ghost { position: absolute; left: 50%; top: 22px; width: 100%; height: calc(100% - 70px); border-radius: 30px; background: #fff; transform-origin: top center; }
.rk-ghost.g1 { transform: translateX(-50%) translateY(-12px) scale(0.94); opacity: 0.35; }
.rk-ghost.g2 { transform: translateX(-50%) translateY(-22px) scale(0.88); opacity: 0.15; }
.rk-card {
  position: relative; display: grid; gap: 16px; padding: 22px; border-radius: 30px;
  background: #fff; color: #12391f; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s var(--ease), opacity 0.45s var(--ease);
}
.rk-card.is-enter { transform: translateY(-18px) scale(0.96); opacity: 0; transition: none; }
.rk-card.is-out { transform: translateX(60px) rotate(4deg); opacity: 0; }
.rk-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #627266; }
.rk-live { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; background: #f0f1ec; color: #12391f; }
.rk-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f5b544; animation: rkPulse 1s ease-in-out infinite; }
.rk-live.is-done::before { background: #3a9a2c; animation: none; }
@keyframes rkPulse { 50% { opacity: 0.3; } }

.rk-who { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 20px; background: #f0f1ec; }
.rk-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #c8ff85; font-weight: 700; font-size: 15px; }
.rk-id b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.2; }
.rk-id small { display: block; font-size: 12.5px; color: #627266; }
.rk-amt { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.rk-checks { display: grid; gap: 4px; }
.rk-checks li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 8px 4px; font-size: 14px; color: #47594b; border-bottom: 1px dashed rgba(18, 57, 31, 0.12); transition: color 0.3s; }
.rk-checks li:last-child { border-bottom: 0; }
.rk-checks em { font-style: normal; font-size: 12.5px; font-weight: 600; color: #12391f; opacity: 0; transform: translateX(-6px); transition: opacity 0.3s, transform 0.3s var(--ease); }
.rk-checks li[class^="is-"]:not(.is-run) em { opacity: 1; transform: none; }
.rk-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed rgba(18, 57, 31, 0.25); transition: background 0.3s, border-color 0.3s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.rk-ic svg { width: 13px; height: 13px; }
.rk-ic b { font-size: 14px; font-weight: 700; line-height: 1; }
.rk-checks .is-run .rk-ic { border: 2.5px solid rgba(18, 57, 31, 0.12); border-top-color: #3a9a2c; animation: rkSpin 0.7s linear infinite; }
@keyframes rkSpin { to { transform: rotate(360deg); } }
.rk-checks .is-run { color: #12391f; }
.rk-checks .is-ok .rk-ic { background: #12391f; border-color: #12391f; color: #c8ff85; transform: scale(1.08); }
.rk-checks .is-warn .rk-ic { background: #ffd98a; border-color: #ffd98a; color: #6b4200; }
.rk-checks .is-no .rk-ic { background: #ffd2cd; border-color: #ffd2cd; color: #a3221a; }
.rk-checks .is-warn em { color: #8a5a00; }
.rk-checks .is-no em { color: #a3221a; }

.rk-bottom { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center; padding-top: 4px; }
.rk-gauge { position: relative; }
.rk-gauge svg { width: 100%; height: auto; overflow: visible; }
.rk-track, .rk-val { fill: none; stroke-width: 11; stroke-linecap: round; }
.rk-track { stroke: #e6eadf; }
.rk-val { stroke: #3a9a2c; transition: stroke-dashoffset 0.9s var(--ease), stroke 0.4s; }
.rk-val[data-d="warn"] { stroke: #f0a92e; }
.rk-val[data-d="no"] { stroke: #e2554a; }
.rk-score { position: absolute; left: 0; right: 0; bottom: -2px; text-align: center; line-height: 1; }
.rk-score b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.rk-score small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #627266; }
.rk-dec { display: grid; gap: 6px; justify-items: start; }
.rk-stamp {
  padding: 10px 18px; border-radius: 14px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em;
  border: 2px solid currentColor; opacity: 0; transform: scale(1.6) rotate(-10deg);
  transition: opacity 0.2s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rk-stamp.is-on { opacity: 1; transform: scale(1) rotate(-3deg); }
.rk-stamp.is-ok { background: #c8ff85; color: #12391f; }
.rk-stamp.is-warn { background: #fff1d1; color: #8a5a00; }
.rk-stamp.is-no { background: #ffe4e1; color: #a3221a; }
.rk-why { font-size: 12.5px; color: #47594b; min-height: 1.2em; }

.rk-tally { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rk-tally span { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.14); font-size: 12.5px; color: #cfe0cb; }
.rk-tally b { color: #c2ff7a; font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .rk { max-width: 520px; margin-top: 12px; } }
@media (max-width: 420px) { .rk-bottom { grid-template-columns: 110px 1fr; gap: 12px; } .rk-stamp { font-size: 16px; padding: 8px 12px; } .rk-card { padding: 16px; } }

/* Footer — Powered by */
.powered { font-size: 12.5px; color: var(--muted); }
.powered a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-2); transition: border-color 0.2s; }
.powered a:hover { border-color: var(--accent); }

/* =========================================================
   PERSONAS — hero con foto/GIF de fondo (scrim verde estilo Amiguro)
   ========================================================= */
.p-hero.on-photo { background: #12391f; color: #f3f8ec; }
.p-hero.on-photo .p-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  /* espejo: el cliente queda al centro, entre el título y el simulador */
  transform: scaleX(-1);
}
.p-hero.on-photo .p-hero-media::after {
  background:
    linear-gradient(90deg, rgba(14, 47, 25, 0.82) 0%, rgba(14, 47, 25, 0.45) 34%, rgba(14, 47, 25, 0.12) 52%, rgba(14, 47, 25, 0.35) 72%, rgba(14, 47, 25, 0.6) 100%),
    linear-gradient(180deg, rgba(14, 47, 25, 0.5) 0%, transparent 22%, transparent 70%, rgba(14, 47, 25, 0.75) 100%);
}
.p-hero.on-photo .p-title { color: #ffffff; text-shadow: 0 4px 30px rgba(0, 30, 10, 0.45); }
.p-hero.on-photo .p-title .hl-lime { background: none; padding: 0; color: #c2ff7a; }
.p-hero.on-photo .sim { color: #12391f; background: #ffffff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6); }
.p-hero.on-photo .p-trust li { color: #e6f2df; text-shadow: 0 2px 14px rgba(0, 30, 10, 0.5); }
.p-hero.on-photo .p-trust svg { background: #c2ff7a; color: #12391f; }

/* Barra superior sobre la foto: texto claro hasta que se pega */
html[data-world="personas"] .topbar:not(.is-scrolled) {
  --ink: #f3f8ec; --ink-2: #cfe0cb; --line: rgba(255, 255, 255, 0.16); --line-2: rgba(255, 255, 255, 0.26);
  --accent-soft: rgba(194, 255, 122, 0.22); --btn-bg: #c2ff7a; --btn-ink: #12391f;
}
html[data-world="personas"] .topbar:not(.is-scrolled) .for-light { display: none !important; }
html[data-world="personas"] .topbar:not(.is-scrolled) .for-dark { display: block !important; }

@media (max-width: 960px) {
  /* móvil: la foto ocupa la parte de arriba y se funde en verde hacia el simulador */
  .p-hero.on-photo .p-hero-media { bottom: auto; height: min(620px, 78svh); }
  .p-hero.on-photo .p-hero-img { object-position: 38% 30%; }
  .p-hero.on-photo .p-hero-media::after {
    background: linear-gradient(180deg, rgba(14, 47, 25, 0.55) 0%, rgba(14, 47, 25, 0.2) 28%, rgba(14, 47, 25, 0.55) 62%, #12391f 100%);
  }
}


/* =========================================================
   PERSONAS — carrusel de financieras aliadas (en el hero)
   ========================================================= */
.p-hero { grid-template-rows: 1fr auto; grid-template-columns: minmax(0, 1fr); }
.p-allies { position: relative; z-index: 2; align-self: end; width: 100%; min-width: 0; overflow: hidden; padding-top: clamp(28px, 4vw, 48px); text-align: center; }
.p-allies p { font-size: clamp(0.98rem, 1.3vw, 1.12rem); font-weight: 500; color: #e6f2df; margin-bottom: clamp(16px, 2vw, 22px); padding-inline: var(--gutter); }
.p-allies p b { color: #c2ff7a; font-weight: 600; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-track { display: flex; width: max-content; animation: mqSlide 28s linear infinite; }
.marquee:hover .mq-track, .marquee:focus-within .mq-track { animation-play-state: paused; }
.mq-set { display: flex; align-items: center; gap: clamp(48px, 6vw, 96px); padding-right: clamp(48px, 6vw, 96px); }
.mq-item { display: block; flex: none; opacity: 0.9; transition: opacity 0.2s, transform 0.3s var(--ease); }
.mq-item:hover { opacity: 1; transform: translateY(-2px); }
.mq-item img { height: clamp(30px, 3vw, 42px); width: auto; max-width: none; }
@keyframes mqSlide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; width: 100%; justify-content: center; }
  .mq-set[aria-hidden="true"], .mq-set .mq-item[aria-hidden="true"] { display: none; }
}

/* Logos en Paga tu crédito y en el menú */
.pay-lg img { height: 46px; width: auto; max-width: 100%; }
.dropitem { justify-content: space-between; }
.di-logo img { height: 30px; width: auto; max-width: 170px; }
.dropitem em { display: inline-flex !important; align-items: center; gap: 5px; }
.dropitem em svg { width: 13px; height: 13px; }

/* =========================================================
   PERSONAS — hero compacto: simulador + carrusel visibles sin scroll
   ========================================================= */
.p-hero { min-height: 100svh; padding-top: clamp(84px, 10vh, 104px); padding-bottom: clamp(14px, 2vh, 22px); }
.p-allies { padding-top: clamp(14px, 2.2vh, 26px); }
.p-allies p { margin-bottom: 10px; font-size: 0.98rem; }
.mq-item img { height: clamp(26px, 2.6vw, 34px); }

.sim { padding: clamp(16px, 1.8vw, 22px); border-radius: 26px; }
.sim-step { gap: 12px; }
.sim-head h2 { font-size: 20px; }
.sim-seg span { height: 40px; }
.sim-field { gap: 4px; }
.sim input[type="range"] { height: 24px; }
.sim-chips span { height: 36px; }
.sim-field small { display: none; }
.sim-label::after { content: " (meses)"; color: var(--muted); }
.sim-out { padding: 14px 18px; border-radius: 18px; }
.sim-out-v { font-size: clamp(1.8rem, 2.8vw, 2.3rem); }
.sim-out-d { margin-top: 6px; padding-top: 8px; }
.sim-cta { min-height: 50px; }
.sim-note { font-size: 11.5px; line-height: 1.4; }
@media (max-width: 960px) { .p-hero { min-height: auto; } }
.p-hero .p-title { font-size: clamp(2.6rem, 4.4vw, 4.4rem); }
/* Laptops bajos (≤ 800 px de alto): un poco más compacto para que el carrusel quede a la vista */
@media (min-width: 961px) and (max-height: 820px) {
  .p-hero { padding-top: 76px; }
  .sim { padding: 14px 18px; }
  .sim-step { gap: 9px; }
  .sim-head h2 { font-size: 18px; }
  .sim-seg span { height: 34px; font-size: 13px; }
  .sim input[type="range"] { height: 20px; }
  .sim-chips span { height: 32px; }
  .sim-out { padding: 10px 16px; }
  .sim-out-v { font-size: 1.85rem; }
  .sim-cta { min-height: 44px; }
  .sim-note { font-size: 11px; }
  .p-allies { padding-top: 10px; }
  .p-allies p { margin-bottom: 8px; font-size: 0.92rem; }
}
/* Logos del carrusel un poco más grandes */
.mq-item img { height: clamp(34px, 3.1vw, 46px); }
.mq-set { gap: clamp(56px, 6.5vw, 110px); padding-right: clamp(56px, 6.5vw, 110px); }
@media (min-width: 961px) and (max-height: 820px) { .mq-item img { height: 36px; } }
/* Texto de aliadas centrado entre el simulador y los logos (mismo espacio arriba y abajo) */
.p-hero { grid-template-rows: auto auto; align-content: center; }
.p-allies { --gap-allies: clamp(22px, 3.4vh, 36px); padding-top: var(--gap-allies); }
.p-allies p { margin-bottom: var(--gap-allies); }
@media (min-width: 961px) and (max-height: 820px) {
  .p-allies { --gap-allies: 16px; padding-top: var(--gap-allies); }
  .p-allies p { margin-bottom: var(--gap-allies); }
}
/* Carrusel anclado abajo del hero; el texto queda centrado en el espacio entre simulador y logos */
.p-hero { grid-template-rows: auto 1fr; align-content: stretch; padding-bottom: clamp(18px, 3vh, 34px); }
.p-allies { display: flex; flex-direction: column; padding-top: 0; align-self: stretch; }
.p-allies p { margin-block: auto; padding-block: var(--gap-allies); }
.p-allies .marquee { flex: none; }
@media (max-width: 960px) { .p-hero { grid-template-rows: auto auto; } }

/* =========================================================
   PERSONAS — ajuste final del hero: simulador más grande en
   pantallas con altura suficiente (> 820 px), todo simétrico
   ========================================================= */
@media (min-width: 961px) and (min-height: 960px) {
  .p-hero-grid { grid-template-columns: 1fr minmax(400px, 530px); }
  .sim { padding: 26px 28px; border-radius: 30px; }
  .sim-step { gap: 15px; }
  .sim-head h2 { font-size: 23px; }
  .sim-seg span { height: 46px; font-size: 14.5px; }
  .sim-field { gap: 6px; }
  .sim-row label, .sim-label { font-size: 15px; }
  .sim-row output { font-size: 17px; }
  .sim input[type="range"] { height: 28px; }
  .sim-chips span { height: 42px; font-size: 15px; }
  .sim-out { padding: 18px 22px; border-radius: 20px; }
  .sim-out-v { font-size: clamp(2.2rem, 2.9vw, 2.7rem); }
  .sim-cta { min-height: 56px; font-size: 16.5px; }
  .sim-note { font-size: 12px; }
}

/* Tamaño intermedio (821–959 px de alto): más ancho y un poco más grande, sin empujar el carrusel */
@media (min-width: 961px) and (min-height: 821px) and (max-height: 959px) {
  .p-hero-grid { grid-template-columns: 1fr minmax(400px, 520px); }
  .sim { padding: 22px 24px; border-radius: 28px; }
  .sim-step { gap: 12px; }
  .sim-head h2 { font-size: 22px; }
  .sim-seg span { height: 42px; font-size: 14.5px; }
  .sim-row label, .sim-label { font-size: 14.5px; }
  .sim-row output { font-size: 16.5px; }
  .sim-chips span { height: 38px; font-size: 14.5px; }
  .sim-out-v { font-size: clamp(2.1rem, 2.8vw, 2.5rem); }
  .sim-cta { min-height: 52px; }
}
/* Laptops bajos: aire entre la barra y el simulador */
@media (min-width: 961px) and (max-height: 820px) {
  .p-hero { padding-top: 88px; }
  .sim-step { gap: 8px; }
  .sim-head .tag { display: none; }
}
/* Logo y menú alineados con el contenido (mismo margen que el título y el simulador) */
.topbar { padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); }
.topbar .logo { margin-left: -4px; }
.mainnav.for-world-finance > a { padding-inline: 10px; }

/* =========================================================
   EMPRESAS — Nosotros: La familia detrás de la solución
   Lyntik (carrusel hacia la derecha) + Amautas (hacia la izquierda)
   ========================================================= */
.hl-under { background: linear-gradient(transparent 86%, #c2ff7a 86%); padding: 0 0.04em; }
.fam-light { font-weight: 400; color: var(--ink-2); }
.fam-sec .section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.fam-rows { display: grid; gap: 18px; }
.fam-row {
  display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 32px); align-items: center;
  padding: 14px clamp(14px, 2vw, 22px) 14px 14px; border-radius: 28px; background: #12391f; overflow: hidden;
}
.fam-brand { width: 100%; height: auto; border-radius: 18px; }
.fam-mq .mq-set { gap: clamp(44px, 5vw, 80px); padding-right: clamp(44px, 5vw, 80px); }
.fam-mq .mq-item { opacity: 0.88; }
.fam-mq .mq-item img { width: auto; max-width: none; }
.fam-mq .mq-track { animation-duration: 34s; }
.mq-right .mq-track { animation-direction: reverse; }
.fam-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; margin-top: clamp(28px, 4vw, 44px); text-align: center; }
.fam-cta p { color: var(--ink-2); font-size: 16px; }
.fam-cta b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .fam-row { grid-template-columns: 1fr; padding: 14px; gap: 18px; }
  .fam-brand { max-width: 320px; justify-self: center; }
  .fam-mq { padding-bottom: 8px; }
}
.fam-sec .section-head { max-width: 1040px; }

/* =========================================================
   Nosotros — carruseles estilo ticker de Wall Street:
   panel negro, rejilla de puntos LED y brillo suave en los logos
   ========================================================= */
.fam-row {
  position: relative; isolation: isolate;
  background:
    radial-gradient(120% 140% at 50% 50%, #0d0d0d 0%, #050505 60%, #000 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 50px -28px rgba(0, 0, 0, 0.7);
}
/* rejilla de puntos de fondo (tablero apagado) */
.fam-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0.9px, transparent 1.3px);
  background-size: 4px 4px;
  -webkit-mask-image: radial-gradient(130% 120% at 50% 50%, #000 40%, transparent 100%);
          mask-image: radial-gradient(130% 120% at 50% 50%, #000 40%, transparent 100%);
}
.fam-mq { position: relative; padding-block: 14px; }
/* los logos "se encienden" punto por punto: máscara de puntos encima */
.fam-mq::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, transparent 1.05px, rgba(0, 0, 0, 0.62) 1.5px);
  background-size: 4px 4px;
}
.fam-mq .mq-item { opacity: 0.95; }
.fam-mq .mq-item img { filter: grayscale(1) brightness(1.15) drop-shadow(0 0 6px rgba(255, 255, 255, 0.35)); }
.fam-brand { position: relative; z-index: 1; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }

/* =========================================================
   PERSONAS — Cómo funciona en flujo (pasos con flechas)
   ========================================================= */
.p-flow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.p-flow li { position: relative; display: grid; gap: 8px; align-content: start; }
.pf-dot {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #12391f; box-shadow: var(--shadow); margin-bottom: 10px;
  transition: transform 0.4s var(--ease);
}
.pf-dot svg { width: 26px; height: 26px; }
.p-flow li:hover .pf-dot { transform: translateY(-4px); }
/* flecha punteada animada entre pasos */
.p-flow li:not(:last-child)::after {
  content: ""; position: absolute; top: 31px; left: 80px; right: calc(-1 * clamp(16px, 2.4vw, 32px) + 12px); height: 2px;
  background: linear-gradient(90deg, #3a9a2c 50%, transparent 50%) 0 0 / 12px 2px repeat-x;
  animation: flowDash 1.2s linear infinite;
}
.p-flow li:not(:last-child)::before {
  content: ""; position: absolute; top: 26px; right: calc(-1 * clamp(16px, 2.4vw, 32px) + 6px); width: 10px; height: 10px;
  border-top: 2px solid #3a9a2c; border-right: 2px solid #3a9a2c; transform: rotate(45deg);
}
@keyframes flowDash { to { background-position: 12px 0; } }
.pf-n { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.p-flow h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: -0.03em; }
.p-flow p { color: var(--ink-2); font-size: 15px; max-width: 26ch; }
.p-flow .is-goal .pf-dot { background: #c2ff7a; box-shadow: 0 0 0 8px rgba(194, 255, 122, 0.35), var(--shadow); animation: goalPulse 2.4s ease-in-out infinite; }
@keyframes goalPulse { 50% { box-shadow: 0 0 0 14px rgba(194, 255, 122, 0.12), var(--shadow); } }
@media (max-width: 860px) {
  .p-flow { grid-template-columns: 1fr; gap: 26px; }
  .p-flow li { grid-template-columns: 64px 1fr; column-gap: 18px; }
  .p-flow li > :not(.pf-dot) { grid-column: 2; }
  .pf-dot { grid-row: 1 / span 3; margin-bottom: 0; }
  .p-flow li:not(:last-child)::after { top: 72px; left: 31px; right: auto; width: 2px; height: calc(100% - 52px); background: linear-gradient(180deg, #3a9a2c 50%, transparent 50%) 0 0 / 2px 12px repeat-y; animation-name: flowDashV; }
  .p-flow li:not(:last-child)::before { top: auto; bottom: -18px; right: auto; left: 27px; transform: rotate(135deg); }
  @keyframes flowDashV { to { background-position: 0 12px; } }
}
@media (prefers-reduced-motion: reduce) { .p-flow li::after, .p-flow .is-goal .pf-dot { animation: none !important; } }

/* =========================================================
   PERSONAS — Lo que necesitas en modo lista
   ========================================================= */
.p-req-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.p-req { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.p-req li { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.pr-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: #12391f; }
.pr-ic svg { width: 21px; height: 21px; }
.p-req b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.p-req span { display: block; color: var(--ink-2); font-size: 15px; margin-top: 2px; }
@media (max-width: 860px) { .p-req-wrap { grid-template-columns: 1fr; } }

/* =========================================================
   PERSONAS — cierre compacto y animado
   ========================================================= */
.p-cta-wrap { padding-block: clamp(3rem, 7vw, 5.5rem); }
.p-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  padding: clamp(26px, 3.4vw, 40px) clamp(24px, 4vw, 52px) clamp(46px, 5vw, 58px);
  border-radius: 30px; color: #f3f8ec;
  background: linear-gradient(115deg, #12391f 0%, #1d5a2e 45%, #12391f 100%); background-size: 220% 100%;
  animation: ctaShift 9s ease-in-out infinite alternate;
  box-shadow: 0 30px 60px -30px rgba(18, 57, 31, 0.6);
}
@keyframes ctaShift { to { background-position: 100% 0; } }
.p-cta::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(194, 255, 122, 0.28), transparent 65%); }
.p-cta-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -0.045em; line-height: 1.05; color: #fff; }
.p-cta-copy p { color: #cfe0cb; margin-top: 6px; }
.p-cta .btn-primary { --btn-bg: #c2ff7a; --btn-ink: #12391f; }
.p-road { position: absolute; left: 0; right: 0; bottom: 18px; height: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.35) 50%, transparent 50%) 0 0 / 18px 2px repeat-x; animation: roadMove 0.9s linear infinite; }
@keyframes roadMove { to { background-position: -18px 0; } }
.p-car { position: absolute; bottom: -2px; left: -40px; width: 34px; height: 34px; color: #c2ff7a; animation: carDrive 7s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.p-car svg { width: 100%; height: 100%; }
@keyframes carDrive { 0% { left: -40px; } 70%, 100% { left: calc(100% + 40px); } }
@media (prefers-reduced-motion: reduce) { .p-cta, .p-road, .p-car { animation: none; } .p-car { left: 24px; } }

/* =========================================================
   PERSONAS — Cómo funciona como carretera:
   calle gris, línea amarilla central y un carro que recorre
   los pasos y los va encendiendo (ciclo de 10 s)
   ========================================================= */
.rf { position: relative; --rf-top: 92px; --rf-h: 64px; }
.rf-road {
  position: absolute; left: 0; right: 0; top: var(--rf-top); height: var(--rf-h); z-index: 0;
  border-radius: 18px; background: linear-gradient(180deg, #5a5e5b, #464a47 50%, #3c403d);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.85), inset 0 -3px 0 rgba(255, 255, 255, 0.85), 0 14px 30px -18px rgba(0, 0, 0, 0.45);
}
/* línea amarilla discontinua de la mitad */
.rf-road::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, #f5c518 0 28px, transparent 28px 52px);
}
/* textura de asfalto muy suave */
.rf-road::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 0.6px, transparent 0.9px); background-size: 5px 5px;
}
.rf-car {
  position: absolute; z-index: 2; top: calc(50% + 3px); left: -6%; width: 44px; height: 30px;
  transform: translateX(-50%); color: #c2ff7a;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
  animation: rfDrive 10s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.rf-car svg { width: 100%; height: 100%; stroke-width: 2.2; }
@keyframes rfDrive {
  0% { left: -6%; opacity: 0; }
  4% { opacity: 1; }
  10%, 20% { left: 12.5%; }
  32%, 42% { left: 37.5%; }
  54%, 64% { left: 62.5%; }
  76%, 94% { left: 87.5%; opacity: 1; }
  100% { left: 106%; opacity: 0; }
}

/* pasos: señal arriba de la calle, texto abajo */
.p-flow.is-road li::before, .p-flow.is-road li::after { content: none; }
.p-flow.is-road li { justify-items: center; text-align: center; }
.p-flow.is-road .pf-dot { margin-bottom: calc(var(--rf-top) - 64px + var(--rf-h) + 22px); }
.p-flow.is-road .pf-dot::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 3px; height: calc(var(--rf-top) - 64px); margin-left: -1.5px;
  background: #b9c2b8; border-radius: 2px;
}
.p-flow.is-road p { max-width: 24ch; }
.p-flow.is-road li:nth-child(1) .pf-dot { animation: rfOn1 10s infinite; }
.p-flow.is-road li:nth-child(2) .pf-dot { animation: rfOn2 10s infinite; }
.p-flow.is-road li:nth-child(3) .pf-dot { animation: rfOn3 10s infinite; }
.p-flow.is-road li:nth-child(4) .pf-dot { animation: rfOn4 10s infinite; }
@keyframes rfOn1 { 0%, 9% { background: #fff; transform: none; } 10%, 97% { background: #c2ff7a; transform: scale(1.08); } 100% { background: #fff; } }
@keyframes rfOn2 { 0%, 31% { background: #fff; transform: none; } 32%, 97% { background: #c2ff7a; transform: scale(1.08); } 100% { background: #fff; } }
@keyframes rfOn3 { 0%, 53% { background: #fff; transform: none; } 54%, 97% { background: #c2ff7a; transform: scale(1.08); } 100% { background: #fff; } }
@keyframes rfOn4 { 0%, 75% { background: #fff; box-shadow: var(--shadow); transform: none; } 76%, 97% { background: #c2ff7a; box-shadow: 0 0 0 10px rgba(194, 255, 122, 0.35), var(--shadow); transform: scale(1.12); } 100% { background: #fff; } }

/* celular: la calle va en vertical a la izquierda y el carro baja */
@media (max-width: 860px) {
  .rf { --rf-w: 52px; padding-left: calc(var(--rf-w) + 22px); }
  .rf-road { top: 0; bottom: 0; left: 0; right: auto; width: var(--rf-w); height: auto; box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.85), inset -3px 0 0 rgba(255, 255, 255, 0.85); }
  .rf-road::before { left: 50%; right: auto; top: 14px; bottom: 14px; width: 4px; height: auto; margin: 0 0 0 -2px; background: repeating-linear-gradient(180deg, #f5c518 0 24px, transparent 24px 44px); }
  .rf-car { left: calc(50% + 12px) !important; top: -6%; width: 34px; height: 24px; transform: translate(-50%, 0) rotate(90deg); animation-name: rfDriveV; }
  @keyframes rfDriveV {
    0% { top: -6%; opacity: 0; } 4% { opacity: 1; }
    10%, 20% { top: 8%; } 32%, 42% { top: 33%; } 54%, 64% { top: 58%; } 76%, 94% { top: 84%; opacity: 1; }
    100% { top: 104%; opacity: 0; }
  }
  .p-flow.is-road li { justify-items: start; text-align: left; grid-template-columns: 56px 1fr; }
  .p-flow.is-road .pf-dot { width: 56px; height: 56px; margin-bottom: 0; }
  .p-flow.is-road .pf-dot::after { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rf-car { animation: none; left: 87.5%; }
  .p-flow.is-road .pf-dot { animation: none !important; }
}
/* Lo que necesitas: números en círculo lima en lugar de íconos */
.pr-ic { width: 44px; height: 44px; border-radius: 50%; background: #12391f; color: #c2ff7a; font-weight: 700; font-size: 18px; line-height: 1; }
.p-req .pr-ic { display: grid; place-items: center; margin-top: 0; color: #c2ff7a; font-size: 18px; font-weight: 700; }
.rf-car { width: 58px; height: 38px; top: calc(50% - 1px); }

/* Carro visto desde arriba: luces, frenado en cada paso y leve vaivén */
.rf-car { width: 70px; height: 33px; top: calc(50% + 1px); color: inherit; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.35)); }
.rf-car svg { width: 100%; height: 100%; overflow: visible; animation: rfSway 0.5s ease-in-out infinite alternate; }
@keyframes rfSway { from { transform: translateY(-0.6px) rotate(-0.4deg); } to { transform: translateY(0.6px) rotate(0.4deg); } }
.rf-beams { animation: rfBeams 2.2s ease-in-out infinite; }
@keyframes rfBeams { 0%, 100% { opacity: 0.85; } 50% { opacity: 0.55; } }
/* frena (luces rojas encendidas) justo cuando se detiene en cada paso */
.rf-brake { opacity: 0.35; animation: rfBrake 10s infinite; }
@keyframes rfBrake {
  0%, 8% { opacity: 0.35; } 10%, 19% { opacity: 1; } 21%, 30% { opacity: 0.35; }
  32%, 41% { opacity: 1; } 43%, 52% { opacity: 0.35; } 54%, 63% { opacity: 1; }
  65%, 74% { opacity: 0.35; } 76%, 93% { opacity: 1; } 95%, 100% { opacity: 0.35; }
}
@media (max-width: 860px) { .rf-car { width: 54px; height: 26px; top: -6%; } }
@media (prefers-reduced-motion: reduce) { .rf-car svg, .rf-beams, .rf-brake { animation: none; } }
/* Carro centrado sobre la línea amarilla */
.rf-car { top: 50%; transform: translate(-50%, -50%); }
@media (max-width: 860px) { .rf-car { left: 50% !important; transform: translate(-50%, -50%) rotate(90deg); } }

/* Carro manejado por JS: avanza sin parar y se acelera con el scroll */
.rf.is-js .rf-car { animation: none; left: calc(-6% + var(--p, 0) * 112%); opacity: 1; }
.rf.is-js .pf-dot { animation: none !important; transition: background 0.35s, transform 0.35s var(--ease), box-shadow 0.35s; }
.rf.is-js li.is-on .pf-dot { background: #c2ff7a; transform: scale(1.08); }
.rf.is-js li.is-goal.is-on .pf-dot { box-shadow: 0 0 0 10px rgba(194, 255, 122, 0.35), var(--shadow); transform: scale(1.12); }
.rf.is-js .rf-brake { animation: none; opacity: 0.45; }
.rf.is-js.is-fast .rf-beams { opacity: 1; }
.rf.is-js.is-fast .rf-car { filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.35)) drop-shadow(-14px 0 6px rgba(255, 90, 78, 0.35)); }
@media (max-width: 860px) {
  .rf.is-js .rf-car { left: 50% !important; top: calc(-6% + var(--p, 0) * 112%); }
}

/* Ritmo vertical: si la sección anterior tiene el mismo fondo, no se suma espacio arriba
   (el espacio entre ambas = el padding inferior de la anterior, igual que en las demás) */
.section.flush-top, .p-cta-wrap.flush-top { padding-top: 0; }
.flow5 li { padding-bottom: 0; }
.flow5 { margin: 0; }
.p-cta-wrap { padding-bottom: clamp(5rem, 12vw, 10rem); }
/* La meta (Estrenas) solo se ilumina cuando el carro llega, igual que los demás pasos */
.rf.is-js li.is-goal:not(.is-on) .pf-dot { background: #fff; box-shadow: var(--shadow); transform: none; }
