/* ==========================================================================
   AZURA PERÚ · Landing 2026
   Sistema de diseño propio (sin Bootstrap). Tema claro / oscuro por [data-theme].
   Fuentes: Space Grotesk (títulos) · Inter (texto) · JetBrains Mono (código)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --mint: #2ee6b6;
  --cyan: #12b8cf;
  --blue: #3b82f6;
  --violet: #8b7bff;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --wrap: 1200px;
  --header-h: 72px;
}

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050d0f;
  --bg-2: #081418;
  --bg-3: #0c1c21;
  --card: rgba(255, 255, 255, 0.045);
  --card-solid: #0b191d;
  --card-hi: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #eef9fb;
  --ink-2: #b2c7cc;
  --ink-3: #7b9298;
  --brand: #22d3e6;
  --brand-ink: #3fe0f0;
  --on-brand: #031317;
  --grad: linear-gradient(115deg, #2ee6b6 0%, #1ccbe0 48%, #3b9cff 100%);
  --grad-text: linear-gradient(100deg, #5ff0c8 0%, #28d6ea 50%, #6ab4ff 100%);
  --glow: rgba(34, 211, 230, 0.35);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --shadow-sm: 0 10px 30px -14px rgba(0, 0, 0, 0.6);
  --nav-bg: rgba(5, 13, 15, 0.7);
  --aurora-a: rgba(34, 211, 230, 0.32);
  --aurora-b: rgba(46, 230, 182, 0.24);
  --aurora-c: rgba(94, 110, 255, 0.22);
  --net: 120, 225, 235;
  --grid-line: rgba(255, 255, 255, 0.05);
  --logo-dark: none;
  --logo-light: block;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5fafb;
  --bg-2: #eaf3f5;
  --bg-3: #e0edf0;
  --card: rgba(255, 255, 255, 0.78);
  --card-solid: #ffffff;
  --card-hi: #ffffff;
  --line: rgba(8, 47, 56, 0.1);
  --line-2: rgba(8, 47, 56, 0.2);
  --ink: #08242b;
  --ink-2: #3c5a62;
  --ink-3: #688189;
  --brand: #0a93a8;
  --brand-ink: #087a8d;
  --on-brand: #ffffff;
  --grad: linear-gradient(115deg, #10c99a 0%, #0aa5bd 50%, #2f7fe8 100%);
  --grad-text: linear-gradient(100deg, #0aa882 0%, #0a8fa6 50%, #2f6fd8 100%);
  --glow: rgba(10, 147, 168, 0.28);
  --shadow: 0 30px 70px -30px rgba(8, 60, 74, 0.35);
  --shadow-sm: 0 10px 28px -14px rgba(8, 60, 74, 0.28);
  --nav-bg: rgba(245, 250, 251, 0.78);
  --aurora-a: rgba(18, 184, 207, 0.28);
  --aurora-b: rgba(46, 230, 182, 0.26);
  --aurora-c: rgba(94, 130, 255, 0.2);
  --net: 10, 120, 140;
  --grid-line: rgba(8, 47, 56, 0.06);
  --logo-dark: block;
  --logo-light: none;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 700;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 300;
  background: var(--brand); color: var(--on-brand);
  padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Barra de progreso de lectura */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200;
  background: transparent; pointer-events: none;
}
.progress i {
  display: block; height: 100%; width: 100%;
  background: var(--grad);
  transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 14px var(--glow);
}

/* ---------- Botones ---------- */
.btn {
  --pad-y: 14px; --pad-x: 26px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; line-height: 1;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
  will-change: transform;
  isolation: isolate;
}
.btn i { font-size: 1.1em; transition: transform 0.35s var(--ease); }
.btn:hover i.bi-arrow-right,
.btn:hover i.bi-arrow-up-right { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }
.btn-primary {
  color: var(--on-brand);
  background: var(--grad);
  background-size: 160% 100%;
  background-position: 0 0;
  box-shadow: 0 10px 30px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 16px 44px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-ghost {
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--brand); background: var(--card-hi); }
.btn-sm { --pad-y: 10px; --pad-x: 18px; font-size: 0.9rem; }
.btn-lg { --pad-y: 17px; --pad-x: 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Los elementos de una grilla no deben ensanchar la columna (evita desborde horizontal en móvil) */
.hero-grid > *, .story > *, .dev > *, .community > *, .c-pane > *, .pricing > *, .bento > *, .f-grid > *, .numbers > * { min-width: 0; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 150;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s, height 0.35s var(--ease);
}
.header.is-stuck {
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 1px 0 var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.logo img { height: 30px; width: auto; }
.logo .on-dark { display: var(--logo-light); }
.logo .on-light { display: var(--logo-dark); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a.nav-link {
  position: relative; padding: 9px 14px; border-radius: 999px;
  font-size: 0.93rem; font-weight: 500; color: var(--ink-2);
  transition: color 0.25s, background 0.25s;
}
.nav a.nav-link:hover { color: var(--ink); background: var(--card); }
.nav a.nav-link.is-active { color: var(--ink); background: var(--card-hi); box-shadow: inset 0 0 0 1px var(--line); }
.header-tools { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line-2);
  color: var(--ink); overflow: hidden;
  transition: transform 0.35s var(--ease-spring), border-color 0.3s, background 0.3s;
}
.theme-toggle:hover { transform: rotate(18deg) scale(1.06); border-color: var(--brand); }
.theme-toggle i { position: absolute; font-size: 1.1rem; transition: transform 0.5s var(--ease), opacity 0.4s; }
.theme-toggle .i-sun { transform: translateY(0) rotate(0); opacity: 0; }
.theme-toggle .i-moon { transform: translateY(0) rotate(0); opacity: 1; }
:root[data-theme="light"] .theme-toggle .i-sun { opacity: 1; }
:root[data-theme="light"] .theme-toggle .i-moon { opacity: 0; transform: translateY(14px) rotate(-60deg); }
:root[data-theme="dark"] .theme-toggle .i-sun { transform: translateY(-14px) rotate(60deg); }

.menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 50%;
  place-items: center; background: var(--card); border: 1px solid var(--line-2); font-size: 1.35rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 64px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora { position: absolute; inset: -20%; filter: blur(70px); opacity: 0.95; }
.aurora i {
  position: absolute; border-radius: 50%;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { width: 52vw; height: 52vw; left: -8%; top: -12%; background: radial-gradient(circle, var(--aurora-a), transparent 68%); }
.aurora i:nth-child(2) { width: 46vw; height: 46vw; right: -6%; top: 6%; background: radial-gradient(circle, var(--aurora-c), transparent 68%); animation-duration: 28s; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 50vw; height: 50vw; left: 28%; bottom: -26%; background: radial-gradient(circle, var(--aurora-b), transparent 68%); animation-duration: 32s; animation-delay: -12s; }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
  100% { transform: translate3d(-4vw, 8vh, 0) scale(0.94); }
}
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
#net { position: absolute; inset: 0; width: 100%; height: 100%; }
.spotlight {
  position: absolute; inset: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), var(--glow), transparent 62%);
  opacity: 0.55; transition: opacity 0.4s;
  mix-blend-mode: screen;
}
:root[data-theme="light"] .spotlight { mix-blend-mode: multiply; opacity: 0.35; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 8px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line-2);
  font-size: 0.85rem; font-weight: 500; color: var(--ink-2);
  backdrop-filter: blur(10px);
}
.eyebrow b {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--grad); color: var(--on-brand);
  font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 0 rgba(46, 230, 182, 0.7);
  animation: ping 2s infinite;
  display: inline-block;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(46, 230, 182, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(46, 230, 182, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 230, 182, 0); }
}
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  margin: 22px 0 20px;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.rotator {
  display: inline-block; position: relative;
  height: 1.12em; vertical-align: bottom; overflow: hidden;
  min-width: 3ch; transition: width 0.6s var(--ease);
}
.rotator-inner { display: block; transition: transform 0.7s var(--ease); }
.rotator-inner span { display: block; width: max-content; height: 1.12em; line-height: 1.12; white-space: nowrap; }
.hero .lead {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--ink-2); max-width: 56ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 44px;
  margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line);
}
.hero-stats strong {
  display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.03em; line-height: 1.1;
}
.hero-stats span { font-size: 0.85rem; color: var(--ink-3); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3);
}
.scroll-cue i {
  width: 22px; height: 36px; border: 1.5px solid var(--line-2); border-radius: 12px; position: relative;
}
.scroll-cue i::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
  background: var(--brand); border-radius: 2px; animation: wheel 1.8s infinite;
}
@keyframes wheel {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ---------- Consola de API ---------- */
.console-stage { position: relative; perspective: 1400px; }
.term {
  position: relative;
  background: #07131a;
  color: #d6e7ec;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.3), 0 0 80px -20px var(--glow);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out, box-shadow 0.4s;
  font-family: var(--font-mono);
}
.term::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 65%, rgba(46, 230, 182, 0.7) 80%, rgba(34, 211, 230, 0.8) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-ang 6s linear infinite;
}
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-ang { to { --ang: 360deg; } }

.term-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.term-title { flex: 1; text-align: center; font-size: 0.74rem; color: #7f98a1; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; color: #7fe9c6;
  padding: 3px 9px; border-radius: 999px; background: rgba(46, 230, 182, 0.1); border: 1px solid rgba(46, 230, 182, 0.25);
}
.term-tabs {
  display: flex; gap: 6px; padding: 12px 14px 0; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.term-tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 10px 10px 0 0;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; color: #7f98a1;
  transition: color 0.25s, background 0.25s;
}
.tab:hover { color: #d6e7ec; }
.tab.is-active { color: #fff; background: rgba(255, 255, 255, 0.07); }
.tab.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--grad);
}
.term-body { padding: 18px 20px 6px; font-size: 0.8rem; line-height: 1.75; min-height: 354px; }
.term-sec {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 8px; font-family: var(--font-body); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #6c868f;
}
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); letter-spacing: 0; text-transform: none; }
.lang-switch button {
  padding: 3px 10px; border-radius: 6px; font-size: 0.72rem; font-family: var(--font-mono); color: #8aa3ac;
  transition: background 0.2s, color 0.2s;
}
.lang-switch button.is-active { background: rgba(255, 255, 255, 0.14); color: #fff; }
.code { margin: 0 0 14px; white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono); font-size: 0.74rem; line-height: 1.7; min-height: 8.6em; }
.resp-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 2px 0 8px; font-family: var(--font-body); font-size: 0.72rem;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); color: #8aa3ac; font-family: var(--font-mono); transition: all 0.3s;
}
.status-pill.ok { background: rgba(46, 230, 182, 0.12); color: #6cf0c5; }
.status-pill .spin {
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: #7fe9c6;
  animation: rot 0.7s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }
.lat { color: #6c868f; font-family: var(--font-mono); }
.json { margin: 0; min-height: 11.4em; white-space: pre; overflow-x: auto; font-size: 0.78rem; scrollbar-width: thin; }
.json .ln { display: block; animation: ln-in 0.35s var(--ease) both; }
@keyframes ln-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.t-key { color: #7cc7ff; }
.t-str { color: #8ff0c9; }
.t-num { color: #ffcb7b; }
.t-bool { color: #ff9bd0; }
.t-pun { color: #6c868f; }
.t-cmd { color: #c4a8ff; }
.t-flag { color: #ffcb7b; }
.t-url { color: #8ff0c9; }
.t-com { color: #587079; }
.caret { display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: text-bottom; background: #7fe9c6; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.term-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, 0.07); background: rgba(0, 0, 0, 0.18);
  font-family: var(--font-body);
}
.term-note { font-size: 0.72rem; color: #6c868f; display: flex; align-items: center; gap: 6px; }
.term-actions { display: flex; gap: 8px; }
.tbtn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px;
  font-size: 0.8rem; font-weight: 600; color: #d6e7ec; background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1); transition: background 0.25s, transform 0.25s var(--ease), border-color 0.25s;
}
.tbtn:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.22); }
.tbtn.run { background: var(--grad); color: #031317; border-color: transparent; }
.tbtn.run:hover { filter: brightness(1.08); transform: translateY(-1px); }
.tbtn:active { transform: scale(0.96); }

.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 16px;
  background: var(--card-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
  font-size: 0.8rem; font-weight: 600; z-index: 3;
  animation: floaty 7s ease-in-out infinite;
}
.chip i { font-size: 1.1rem; color: var(--brand-ink); }
.chip small { display: block; font-weight: 500; color: var(--ink-3); font-size: 0.7rem; line-height: 1.2; }
.chip-1 { right: 10%; top: -64px; }
.chip-2 { left: 6%; bottom: -66px; animation-delay: -3.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; overflow: hidden; padding: 26px 0;
  border-block: 1px solid var(--line); background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; font-size: 0.92rem; white-space: nowrap;
}
.marquee-track i { color: var(--brand-ink); font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section.alt { background: var(--bg-2); }
.sec-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand-ink); background: color-mix(in srgb, var(--brand) 12%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
}
.sec-head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -0.03em; }
.sec-head p { margin-top: 18px; color: var(--ink-2); font-size: 1.08rem; }

/* ---------- Bento de módulos ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  padding: 28px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--brand) 22%, transparent), transparent 62%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(260px circle at var(--mx) var(--my), var(--brand), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.card:hover::before, .card:hover::after { opacity: 1; }
.ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 20px;
  color: var(--on-brand); background: var(--grad); box-shadow: 0 10px 24px -10px var(--glow);
  transition: transform 0.5s var(--ease-spring);
}
.card:hover .ico { transform: rotate(-8deg) scale(1.1); }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 0.97rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span {
  padding: 4px 11px; border-radius: 999px; font-size: 0.76rem; font-weight: 500; font-family: var(--font-mono);
  color: var(--ink-2); background: var(--bg-3); border: 1px solid var(--line);
}
.b-1 { grid-column: span 7; }
.b-2 { grid-column: span 5; }
.b-3 { grid-column: span 4; }
.b-4 { grid-column: span 4; }
.b-5 { grid-column: span 4; }
.b-6 { grid-column: span 12; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.b-1 h3, .b-6 h3 { font-size: 1.6rem; }

.mini-id {
  margin-top: 22px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center;
  padding: 16px; border-radius: var(--r-md); background: var(--bg-3); border: 1px dashed var(--line-2);
}
.mini-id .avatar {
  width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; font-size: 2rem; color: var(--ink-3);
  background: linear-gradient(160deg, var(--bg-2), var(--bg-3)); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.mini-id .avatar::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--grad); box-shadow: 0 0 14px var(--mint);
  animation: scan 2.6s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { top: 6%; } 50% { top: 92%; } }
.skeleton { height: 9px; border-radius: 6px; background: linear-gradient(90deg, var(--line), var(--line-2), var(--line)); background-size: 200% 100%; animation: shimmer 2.2s linear infinite; }
.skeleton + .skeleton { margin-top: 9px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.plate {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px; border-radius: 10px;
  font-family: var(--font-mono); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.12em; color: #101820;
  background: linear-gradient(180deg, #fff, #e6edf0); border: 3px solid #101820; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.4);
}
.plate small { font-size: 0.55rem; letter-spacing: 0.2em; font-family: var(--font-body); font-weight: 700; color: #c22; writing-mode: vertical-rl; transform: rotate(180deg); }
.pulse-bars { display: flex; align-items: flex-end; gap: 5px; height: 38px; margin-top: 20px; }
.pulse-bars i { flex: 1; border-radius: 4px 4px 0 0; background: var(--grad); animation: eq 1.4s ease-in-out infinite; transform-origin: bottom; }
.pulse-bars i:nth-child(2n) { animation-duration: 1.1s; animation-delay: -0.4s; }
.pulse-bars i:nth-child(3n) { animation-duration: 1.7s; animation-delay: -0.8s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
.ring-badge {
  margin-top: 20px; width: 96px; height: 96px; position: relative; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--brand-ink);
}
.ring-badge svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring-badge circle { fill: none; stroke-width: 5; stroke-linecap: round; }
.ring-badge .bg { stroke: var(--line-2); }
.ring-badge .fg { stroke: url(#rg); stroke-dasharray: 188; stroke-dashoffset: 188; transition: stroke-dashoffset 1.8s var(--ease); }
.in .ring-badge .fg, .ring-badge.in .fg { stroke-dashoffset: 24; }
.face-scan { position: relative; aspect-ratio: 1 / 0.82; border-radius: var(--r-lg); background: var(--bg-3); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.face-scan > i { font-size: clamp(4rem, 9vw, 6.5rem); color: var(--ink-3); opacity: 0.6; }
.face-scan .corner { position: absolute; width: 26px; height: 26px; border: 2px solid var(--brand); }
.corner.tl { left: 16%; top: 14%; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.corner.tr { right: 16%; top: 14%; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.corner.bl { left: 16%; bottom: 14%; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.corner.br { right: 16%; bottom: 14%; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.face-scan::after { content: ""; position: absolute; left: 16%; right: 16%; height: 2px; background: var(--grad); box-shadow: 0 0 18px var(--mint); animation: scan 3.2s ease-in-out infinite; }
.face-match { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--card-solid); border: 1px solid var(--line-2); color: var(--brand-ink); }

/* ---------- Scrollytelling (experiencia) ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: start; }
.story-visual { position: sticky; top: calc(var(--header-h) + 32px); height: min(580px, calc(100svh - var(--header-h) - 64px)); min-height: 460px; }
.stage {
  position: relative; height: 100%; border-radius: var(--r-xl); overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 62%),
    var(--card-solid);
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.stage::before {
  content: ""; position: absolute; inset: 0; opacity: 0.55;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%); mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
}
.stage-top { position: absolute; left: 22px; right: 22px; top: 18px; z-index: 3; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.stage-step { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 56px 20px 44px; opacity: 0; transform: translateY(18px) scale(0.97); transition: opacity 0.55s var(--ease), transform 0.7s var(--ease); pointer-events: none; }
.scene.is-active { opacity: 1; transform: none; pointer-events: auto; }
.stage-index { position: absolute; left: 22px; bottom: 18px; display: flex; gap: 8px; z-index: 4; }
.stage-index button { width: 26px; height: 6px; padding: 0; border-radius: 3px; background: var(--line-2); transition: width 0.4s var(--ease), background 0.4s; }
.stage-index button:hover { background: var(--ink-3); }
.stage-index button.is-active { width: 54px; background: var(--grad); }

/* tarjeta de cada escena */
.sc { width: min(100%, 440px); border-radius: 20px; overflow: hidden; background: color-mix(in srgb, var(--card-solid) 92%, transparent); border: 1px solid var(--line-2); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55); backdrop-filter: blur(10px); }
.sc-bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--card); font-size: 0.82rem; }
.sc-bar .dots { display: flex; gap: 6px; }
.sc-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff6b6b; }
.sc-bar .dots i:nth-child(2) { background: #ffc857; } .sc-bar .dots i:nth-child(3) { background: #2ee6b6; }
.sc-bar b { font-weight: 600; }
.sc-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-style: normal; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #14b88a; padding: 3px 10px; border-radius: 99px; background: rgba(46, 230, 182, 0.12); }
:root[data-theme="light"] .sc-live { color: #0a7f55; }
.sc-live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blinkdot 1.6s ease-in-out infinite; }
@keyframes blinkdot { 50% { opacity: 0.25; } }
.sc-body { padding: 18px 18px 16px; display: grid; gap: 14px; }
.sc-note { margin: 0; font-size: 0.72rem; color: var(--ink-3); text-align: center; }

/* 1 · seguridad */
.sec-flow { display: flex; align-items: center; gap: 0; }
.sf-node { flex: 0 0 auto; display: grid; justify-items: center; gap: 6px; padding: 12px 16px; border-radius: 14px; background: var(--card-hi); border: 1px solid var(--line-2); color: var(--brand); font-size: 1.5rem; }
.sf-node small { font-size: 0.7rem; color: var(--ink-2); font-weight: 600; }
.sf-api { color: var(--on-brand); background: var(--grad); border-color: transparent; }
.sf-api small { color: var(--on-brand); }
.sf-pipe { position: relative; flex: 1; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.sf-pipe > i { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-size: 0.85rem; color: var(--on-brand); background: var(--grad); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 18%, transparent); }
.pkt { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: pkt 2.2s linear infinite; opacity: 0; }
.pkt.p2 { animation-delay: 1.1s; }
@keyframes pkt { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
.sec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sec-list li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 0.88rem; font-weight: 500; opacity: 0.4; }
.sec-list li > i { color: var(--ink-3); transform: scale(0.7); transition: color 0.3s; }
.sec-list li em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-3); padding: 2px 9px; border-radius: 99px; background: var(--card-hi); }
.scene.is-active .sec-list li { animation: sec-in 0.6s var(--ease) calc(var(--i) * 0.55s + 0.3s) forwards; }
.scene.is-active .sec-list li > i { animation: sec-tick 0.5s var(--ease-spring) calc(var(--i) * 0.55s + 0.55s) forwards; }
@keyframes sec-in { to { opacity: 1; border-color: color-mix(in srgb, var(--mint) 40%, var(--line)); } }
@keyframes sec-tick { to { color: #14b88a; transform: scale(1); } }

/* 2 · velocidad */
.lat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.lat-big { font-family: var(--font-display); font-weight: 700; font-size: 3.2rem; line-height: 1; letter-spacing: -0.04em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lat-big small { font-size: 1rem; margin-left: 4px; letter-spacing: 0; }
.lat-meta { display: grid; justify-items: end; gap: 4px; font-size: 0.74rem; color: var(--ink-3); }
.lat-ok { display: inline-flex; align-items: center; gap: 7px; color: #14b88a; font-weight: 700; }
.lat-ok i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(46, 230, 182, 0.2); }
.lat-chart { width: 100%; height: 120px; overflow: visible; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.lat-grid { stroke: var(--line); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.lat-thr { stroke: #ffc857; stroke-width: 1; stroke-dasharray: 4 4; fill: none; opacity: 0.7; vector-effect: non-scaling-stroke; }
.lat-area { fill: url(#latA); }
.lat-line { fill: none; stroke: url(#latL); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lat-dot { fill: var(--mint); filter: drop-shadow(0 0 6px var(--mint)); }
.lat-axis { display: flex; justify-content: space-between; margin-top: -6px; font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-3); }
.lat-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lat-stats > div { padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 2px; }
.lat-stats b { font-family: var(--font-display); font-size: 1.05rem; }
.lat-stats small { font-size: 0.68rem; color: var(--ink-3); }

/* 3 · integración */
.hub { position: relative; width: min(100%, 280px); aspect-ratio: 1; margin: 0 auto; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-lines line { stroke: var(--line-2); stroke-width: 0.8; stroke-dasharray: 2 2; transition: stroke 0.4s, stroke-width 0.4s; }
.hub-lines line.on { stroke: var(--brand); stroke-width: 1.4; stroke-dasharray: none; filter: drop-shadow(0 0 2px var(--brand)); }
.hub-core { position: absolute; left: 50%; top: 50%; width: 27%; aspect-ratio: 1; translate: -50% -50%; border-radius: 26%; display: grid; place-content: center; justify-items: center; gap: 2px; color: var(--on-brand); background: var(--grad); box-shadow: 0 0 50px -8px var(--glow); animation: corebeat 3s ease-in-out infinite; }
.hub-core i { font-size: 1.6rem; line-height: 1; } .hub-core small { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; }
@keyframes corebeat { 50% { transform: scale(1.06); } }
.hub-sat {
  position: absolute; left: calc(50% + var(--x) * 1%); top: calc(50% + var(--y) * 1%); translate: -50% -50%; width: 17%; aspect-ratio: 1; border-radius: 28%;
  display: grid; place-items: center; font-size: 1.15rem; color: var(--brand-ink); background: var(--card-solid); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease-spring), background 0.3s, color 0.3s, border-color 0.3s;
}
.hub-sat:hover { transform: scale(1.1); }
.hub-sat.on { transform: scale(1.18); color: var(--on-brand); background: var(--grad); border-color: transparent; box-shadow: 0 10px 24px -8px var(--glow); }
.hub-cap { display: grid; gap: 2px; text-align: center; min-height: 2.9em; }
.hub-cap b { font-size: 1rem; } .hub-cap span { font-size: 0.8rem; color: var(--ink-2); }
.hub-cap.is-swap { animation: capin 0.45s var(--ease); }
@keyframes capin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lang-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.lang-row span { padding: 3px 10px; border-radius: 99px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); }

/* 4 · escala */
.vol-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.vol-big b { display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; letter-spacing: -0.04em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vol-big small { font-size: 0.74rem; color: var(--ink-3); }
.vol-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-size: 0.74rem; font-weight: 700; color: #14b88a; background: rgba(46, 230, 182, 0.12); }
:root[data-theme="light"] .vol-chip { color: #0a7f55; }
.vol-chart { width: 100%; height: auto; overflow: visible; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.vol-grid { stroke: var(--line); stroke-width: 1; fill: none; }
.vol-area { fill: url(#volA); }
.vol-path { fill: none; stroke: url(#volL); stroke-width: 3.5; stroke-linecap: round; }
.vol-guide { stroke: var(--brand); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.6; }
.vol-dot { fill: var(--mint); stroke: var(--card-solid); stroke-width: 3; filter: drop-shadow(0 0 8px var(--mint)); }
#volRange { width: 100%; height: 22px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
#volRange::-webkit-slider-runnable-track { height: 6px; border-radius: 4px; background: linear-gradient(90deg, var(--mint) 0, var(--blue) var(--v, 0%), var(--line-2) var(--v, 0%)); }
#volRange::-moz-range-track { height: 6px; border-radius: 4px; background: var(--line-2); }
#volRange::-moz-range-progress { height: 6px; border-radius: 4px; background: linear-gradient(90deg, var(--mint), var(--blue)); }
#volRange::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
#volRange::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); }
#volRange:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 6px; }
.vol-marks { display: flex; justify-content: space-between; margin-top: -6px; font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-3); }
.vol-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.vol-checks span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font-size: 0.74rem; font-weight: 600; background: var(--card); border: 1px solid var(--line); }
.vol-checks i { color: #14b88a; }

/* pasos (columna derecha) */
.story-steps { position: relative; display: flex; flex-direction: column; padding-left: 58px; }
.story-steps::before { content: ""; position: absolute; left: 17px; top: var(--rt, 35svh); height: var(--rh, 140svh); width: 2px; border-radius: 2px; background: var(--line-2); }
.story-steps::after { content: ""; position: absolute; left: 17px; top: var(--rt, 35svh); width: 2px; height: calc(var(--rh, 140svh) * var(--prog, 0)); border-radius: 2px; background: var(--grad); box-shadow: 0 0 12px var(--glow); }
.step-copy { position: relative; min-height: 70svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 28px 0; opacity: 0.35; transition: opacity 0.5s var(--ease); }
.step-copy.is-active { opacity: 1; }
.step-copy::before {
  content: ""; position: absolute; left: -49px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  background: var(--bg-2); border: 2px solid var(--line-2); z-index: 1; transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.step-copy.is-done::before { background: var(--brand); border-color: var(--brand); }
.step-copy.is-active::before { background: var(--grad); border-color: transparent; box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 20%, transparent); }
.step-no { position: absolute; right: 0; top: 14%; font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 8vw, 7rem); line-height: 1; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); pointer-events: none; }
.step-copy h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.03em; margin: 16px 0 14px; position: relative; }
.step-copy p { color: var(--ink-2); font-size: 1.06rem; max-width: 50ch; position: relative; }
.step-copy .kicker { margin: 0; position: relative; }
.step-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; position: relative; }
.step-points li { display: flex; align-items: center; gap: 12px; font-size: 0.98rem; font-weight: 500; color: var(--ink); }
.step-points li i { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.95rem; color: var(--on-brand); background: var(--grad); }
.step-scene { display: none; width: 100%; }

/* ---------- Flujo (cómo funciona) ---------- */


/* ---------- Dev (JSON) ---------- */
.dev { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.dev-list { margin-top: 28px; display: grid; gap: 12px; }
.dev-item {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-md);
  background: var(--card); border: 1px solid var(--line); transition: transform 0.4s var(--ease), border-color 0.3s;
}
.dev-item:hover { transform: translateX(6px); border-color: var(--brand); }
.dev-item .ico { width: 44px; height: 44px; margin: 0; font-size: 1.2rem; border-radius: 13px; flex: 0 0 auto; }
.dev-item h4 { font-size: 1.02rem; margin-bottom: 2px; }
.dev-item p { font-size: 0.9rem; color: var(--ink-2); }
.dev h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.03em; margin: 14px 0 16px; }
.dev .lead { color: var(--ink-2); font-size: 1.05rem; }
.dev .btn { margin-top: 30px; }

/* ---------- Números ---------- */
.numbers {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(36px, 6vw, 64px);
  background: var(--card-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center;
}
.numbers::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%);
}
.numbers > div { position: relative; z-index: 1; }
.numbers strong { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.04em; line-height: 1.05; }
.numbers span { color: var(--ink-2); font-size: 1rem; }
.numbers > div + div::before { content: ""; position: absolute; left: -12px; top: 12%; bottom: 12%; width: 1px; background: var(--line); }

/* ---------- Precios ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 34px 30px; }
.plan .name { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan h3 { font-size: 1.4rem; }
.plan .price { margin: 22px 0 4px; display: flex; align-items: baseline; gap: 6px; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; }
.plan .price small { font-size: 1.3rem; color: var(--ink-3); font-weight: 600; }
.plan .price b { font-size: clamp(3rem, 5vw, 3.8rem); line-height: 1; }
.per { font-size: 0.85rem; color: var(--ink-3); font-family: var(--font-mono); }
.plan .desc { margin: 18px 0 22px; font-size: 0.94rem; color: var(--ink-2); }
.plan ul { display: grid; gap: 11px; margin-bottom: 30px; flex: 1; align-content: start; grid-auto-rows: min-content; }
.plan li { display: flex; gap: 11px; font-size: 0.94rem; color: var(--ink-2); line-height: 1.5; }
.plan li i { color: var(--brand-ink); flex: 0 0 auto; margin-top: 2px; }
.plan li strong { color: var(--ink); }
.plan.featured {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 14%, var(--card-solid)), var(--card-solid) 60%);
  border-color: transparent; transform: translateY(-14px); box-shadow: var(--shadow), 0 0 80px -30px var(--glow);
}
.plan.featured:hover { transform: translateY(-20px); }
.plan.featured::after {
  opacity: 1; background: conic-gradient(from var(--ang, 0deg), var(--mint), var(--cyan), var(--blue), var(--mint)); animation: spin-ang 8s linear infinite;
}
.plan-badge { padding: 5px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--grad); color: var(--on-brand); }
.pay-note { margin-top: 36px; text-align: center; color: var(--ink-3); font-size: 0.92rem; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; align-items: center; }
.pay-note span { display: inline-flex; gap: 8px; align-items: center; }
.pay-note i { color: var(--brand-ink); }

/* ---------- Comunidad ---------- */
.community { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 32px; align-items: stretch; }
.c-tabs { display: grid; gap: 10px; align-content: start; }
.c-tab {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--r-md); text-align: left;
  background: var(--card); border: 1px solid var(--line); transition: all 0.35s var(--ease);
}
.c-tab:hover { border-color: var(--line-2); transform: translateX(4px); }
.c-tab .ico { width: 46px; height: 46px; margin: 0; border-radius: 14px; font-size: 1.25rem; background: var(--bg-3); color: var(--brand-ink); box-shadow: none; flex: 0 0 auto; }
.c-tab h4 { font-size: 1.02rem; }
.c-tab p { font-size: 0.83rem; color: var(--ink-3); }
.c-tab.is-active { background: var(--card-hi); border-color: var(--brand); box-shadow: 0 14px 34px -18px var(--glow); }
.c-tab.is-active .ico { background: var(--grad); color: var(--on-brand); }
.c-panel { position: relative; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); overflow: hidden; min-height: 400px; }
.c-pane { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 28px; align-items: center; animation: pane-in 0.55s var(--ease) both; }
.c-pane.is-active { display: grid; }
@keyframes pane-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.c-pane h3 { font-size: 1.6rem; margin-bottom: 10px; }
.c-pane > div > p { color: var(--ink-2); }
.checks { display: grid; gap: 10px; margin: 20px 0 26px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 0.97rem; }
.checks li i { color: var(--mint); margin-top: 3px; }
.btn-tg { background: linear-gradient(120deg, #2aabee, #1d8fd1); color: #fff; box-shadow: 0 10px 28px -10px rgba(42, 171, 238, 0.6); }
.btn-wa { background: linear-gradient(120deg, #2fd66b, #1faa52); color: #04200f; box-shadow: 0 10px 28px -10px rgba(47, 214, 107, 0.55); }
.btn-tg:hover, .btn-wa:hover { transform: translateY(-2px); }

.phone {
  position: relative; width: 100%; max-width: 270px; margin-inline: auto; aspect-ratio: 9 / 17; border-radius: 34px; padding: 10px;
  background: #0a1215; border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.phone-in { height: 100%; border-radius: 26px; overflow: hidden; background: linear-gradient(180deg, #0d1c22, #07131a); display: flex; flex-direction: column; }
.phone-top { padding: 14px 14px 10px; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.05); font-size: 0.78rem; color: #d6e7ec; font-weight: 600; }
.phone-top .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #031317; font-size: 0.9rem; }
.phone-top small { display: block; font-weight: 400; color: #7f98a1; font-size: 0.66rem; }
.msgs { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 9px; justify-content: flex-end; overflow: hidden; }
.msg { max-width: 86%; padding: 8px 11px; border-radius: 14px 14px 14px 4px; font-size: 0.72rem; line-height: 1.45; background: rgba(255, 255, 255, 0.08); color: #d6e7ec; animation: msg-in 0.5s var(--ease-spring) both; }
.msg.me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: linear-gradient(120deg, #1aa6bd, #14879e); color: #fff; }
.msg b { color: #7fe9c6; font-weight: 600; }
@keyframes msg-in { from { opacity: 0; transform: translateY(12px) scale(0.92); } to { opacity: 1; transform: none; } }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #7f98a1; animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }
.big-ico { display: grid; place-items: center; }
.big-ico .ico { width: clamp(90px, 14vw, 128px); height: clamp(90px, 14vw, 128px); border-radius: 34px; font-size: clamp(2.6rem, 5vw, 4rem); margin: 0; animation: floaty 6s ease-in-out infinite; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: border-color 0.3s, background 0.3s, box-shadow 0.4s; }
.faq-item.is-open { border-color: var(--brand); background: var(--card-hi); box-shadow: 0 16px 40px -22px var(--glow); }
.faq-q { width: 100%; display: flex; align-items: center; gap: 16px; padding: 20px 22px; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.faq-q .pm { margin-left: auto; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); transition: transform 0.45s var(--ease), background 0.3s, color 0.3s; }
.faq-item.is-open .pm { transform: rotate(135deg); background: var(--grad); color: var(--on-brand); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 22px 22px 22px; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px); border-radius: var(--r-xl);
  background: #05191f; color: #eef9fb; border: 1px solid rgba(255, 255, 255, 0.12);
}
:root[data-theme="light"] .cta { background: linear-gradient(135deg, #07303a, #064a57); }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 70% at 15% 0%, rgba(46, 230, 182, 0.3), transparent 70%),
    radial-gradient(50% 70% at 90% 100%, rgba(59, 130, 246, 0.32), transparent 70%);
}
.cta-rings { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; pointer-events: none; }
.cta-rings i { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.12); animation: wave 7s ease-out infinite; width: 420px; height: 420px; }
.cta-rings i:nth-child(2) { animation-delay: 2.3s; }
.cta-rings i:nth-child(3) { animation-delay: 4.6s; }
.cta h2 { font-size: clamp(1.9rem, 4.4vw, 3.3rem); letter-spacing: -0.03em; max-width: 20ch; margin: 18px auto 18px; }
.cta p { color: #b8d3d9; max-width: 58ch; margin-inline: auto; }
.cta .kicker { color: #7fe9c6; background: rgba(46, 230, 182, 0.12); border-color: rgba(46, 230, 182, 0.3); }
.cta-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta .btn-ghost { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.guarantee { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; color: #9fc3cb; }
.guarantee i { color: var(--mint); font-size: 1.15rem; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 72px 0 28px; }
.f-grid { display: grid; grid-template-columns: 1.6fr 0.8fr 0.9fr 1.2fr; gap: 40px; }
.f-about p { margin: 18px 0 22px; color: var(--ink-2); font-size: 0.95rem; max-width: 40ch; }
.f-about .logo img { height: 34px; }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line-2); transition: all 0.35s var(--ease); font-size: 1.1rem; }
.social a:hover { background: var(--grad); color: var(--on-brand); border-color: transparent; transform: translateY(-4px); }
.footer h4 { font-size: 0.95rem; margin-bottom: 18px; letter-spacing: 0; }
.footer li + li { margin-top: 10px; }
.footer li a, .footer .f-contact p { color: var(--ink-2); font-size: 0.93rem; transition: color 0.25s, padding 0.25s; }
.footer li a:hover { color: var(--brand-ink); padding-left: 4px; }
.f-contact p + p { margin-top: 10px; }
.f-contact strong { color: var(--ink); font-weight: 600; }
.f-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--ink-3); font-size: 0.86rem; }

/* ---------- Botones flotantes ---------- */
.fabs { position: fixed; right: 20px; bottom: 20px; z-index: 140; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab {
  position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; color: #fff;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.5); transition: transform 0.4s var(--ease-spring);
}
.fab:hover { transform: scale(1.1) rotate(-6deg); }
.fab-wa { background: linear-gradient(135deg, #34e07a, #1faa52); }
.fab-tg { background: linear-gradient(135deg, #2aabee, #1d8fd1); }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; z-index: -1; animation: fab-ping 2.8s ease-out infinite; }
.fab-tg::before { animation-delay: 1.4s; }
@keyframes fab-ping { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.7); opacity: 0; } }
.fab-bubble {
  position: absolute; right: 68px; top: 50%; transform: translateY(-50%) translateX(10px); opacity: 0; pointer-events: none;
  background: var(--card-solid); color: var(--ink); border: 1px solid var(--line-2); border-radius: 14px 4px 14px 14px;
  padding: 9px 14px; font-size: 0.82rem; font-weight: 500; white-space: nowrap; box-shadow: var(--shadow-sm);
  transition: opacity 0.4s, transform 0.5s var(--ease);
}
.fab:hover .fab-bubble, .fab.show-bubble .fab-bubble { opacity: 1; transform: translateY(-50%); }
.to-top {
  position: fixed; left: 20px; bottom: 20px; z-index: 140; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem;
  background: var(--card-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: all 0.4s var(--ease);
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--brand); color: var(--brand-ink); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
[data-reveal="up"] { transform: translateY(34px); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"] { transform: scale(0.94); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
main, .footer { overflow-x: clip; }

/* ---------- Menú móvil ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 180; padding: calc(var(--header-h) + 16px) 24px 32px;
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity 0.35s, transform 0.5s var(--ease), visibility 0.35s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.drawer a.d-link { padding: 16px 6px; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer .btn { margin-top: 20px; }
body.menu-open { overflow: hidden; }
.header { z-index: 190; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .header-tools .btn { display: none; }
}
@media (max-width: 991px) {
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(30px); }
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 36px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .scroll-cue { display: none; }
  .chip { display: none; }
  .story { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story-visual { display: none; }
  .story-steps { padding-left: 40px; }
  .story-steps::before, .story-steps::after { left: 9px; }
  .step-copy { min-height: 0; padding: 36px 0 44px; opacity: 1; }
  .step-copy::before { left: -39px; top: 46px; margin-top: 0; width: 16px; height: 16px; }
  .step-no { top: 24px; font-size: 4rem; }
  .step-scene { display: block; margin-top: 26px; }
  .step-scene .scene { position: relative; inset: auto; display: block; padding: 0; opacity: 1; transform: none; pointer-events: auto; }
  .step-scene .scene:not(.is-active) .sec-list li { opacity: 1; }
  .step-scene .scene:not(.is-active) .sec-list li > i { color: #14b88a; transform: none; }
  .step-scene .sc { width: 100%; }
  .dev { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .community { grid-template-columns: minmax(0, 1fr); }
  .c-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .plan.featured { transform: none; order: -1; }
  .plan.featured:hover { transform: translateY(-5px); }
  .b-1, .b-2 { grid-column: span 12; }
  .b-3, .b-4 { grid-column: span 6; }
  .b-5 { grid-column: span 12; }
  .b-6 { grid-template-columns: minmax(0, 1fr); }
  .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-about { grid-column: span 2; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .wrap { padding-inline: 18px; }
  .logo img { height: 26px; }
  .hero-stats { grid-template-columns: repeat(3, auto); gap: 10px 22px; }
  .chip { display: none; }
  .term-body { padding: 14px 14px 4px; min-height: 340px; }
  .term-title { display: none; }
  .term-badge { margin-left: auto; }
  .term-foot { padding: 10px 12px; }
  .term-note { display: none; }
  .term-actions { width: 100%; }
  .term-actions .tbtn { flex: 1; justify-content: center; }
  .b-3, .b-4, .b-5 { grid-column: span 12; }
  .card { padding: 24px; }
  .numbers { grid-template-columns: minmax(0, 1fr); }
  .numbers > div + div::before { left: 20%; right: 20%; top: -12px; bottom: auto; width: auto; height: 1px; }
  .c-tabs { grid-template-columns: minmax(0, 1fr); }
  .c-pane.is-active { grid-template-columns: minmax(0, 1fr); }
  .phone { max-width: 230px; }
  .f-grid { grid-template-columns: minmax(0, 1fr); }
  .f-about { grid-column: auto; }
  .fabs { right: 14px; bottom: 14px; }
  .fab { width: 46px; height: 46px; font-size: 1.25rem; }
  .hide-sm { display: none; }
  .fabs { gap: 10px; }
  .fab-bubble { display: none; }
  .to-top { left: 14px; bottom: 14px; }
  .sc-body { padding: 14px 12px 12px; }
  .lat-big { font-size: 2.6rem; } .vol-big b { font-size: 2.2rem; }
  .sf-node { padding: 10px 10px; }
  .step-points li { font-size: 0.94rem; }
  .btn-lg { --pad-x: 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* Transición de tema (círculo que se expande desde el botón) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

/* ==========================================================================
   Fotos de fondo del hero (baja opacidad) + Reporte de consulta interactivo
   ========================================================================== */
:root, :root[data-theme="dark"] { --photo-o: 0.2; --photo-filter: grayscale(0.6) brightness(0.85) contrast(1.05); }
:root[data-theme="light"] { --photo-o: 0.15; --photo-filter: grayscale(0.55) contrast(1.05); }

.hero-photos {
  position: absolute; inset: -6% 0 0 0; overflow: hidden; will-change: transform;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 100%);
}
.hero-photos img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; filter: var(--photo-filter);
  transition: opacity 2.4s ease;
  animation: kenburns 28s ease-in-out infinite alternate;
}
.hero-photos img.is-on { opacity: var(--photo-o); }
@keyframes kenburns { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-1.5%, -1%, 0); } }
.hero-photos::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 30% 40%, transparent 0%, var(--bg) 100%);
  opacity: 0.55;
}


/* ==========================================================================
   Escena del hero: persona consultando en su laptop (datos protegidos)
   ========================================================================== */
.desk-stage { position: relative; width: 100%; max-width: 680px; margin-inline: auto; min-width: 0; }
.desk {
  --k-skin: #efc3a0; --k-skin-d: #dcab86; --k-hair: #1a2530; --k-pants: #2a3b4e; --k-shoe: #e9f1f3;
  --k-chair: #3b5360; --k-chair-d: #2a3d47; --k-desk: #20373f; --k-desk-d: #182c33; --k-desk-line: rgba(255, 255, 255, 0.1);
  --k-mug: #f2f6f7; --k-lapbase: #c7d5da; --k-pot: #b5654a; --k-leaf: #25c79b; --k-leaf2: #14997f; --k-shadow: rgba(0, 0, 0, 0.35);
  --s-bg: #0c1a1f; --s-ink: #e8f6f8; --s-ink2: #7d9aa1; --s-line: rgba(255, 255, 255, 0.1); --s-card: rgba(255, 255, 255, 0.06);
  --rd1: #cfe9ee; --rd2: #8fb3bb;
  position: relative; container-type: inline-size; width: 100%; aspect-ratio: 640 / 420;
  --px: 0; --py: 0;
}
:root[data-theme="light"] .desk {
  --k-hair: #22303b; --k-pants: #35506a; --k-chair: #8fa8b2; --k-chair-d: #6d8893; --k-desk: #cfe1e6; --k-desk-d: #bdd3da;
  --k-desk-line: rgba(8, 47, 56, 0.14); --k-lapbase: #aebfc6; --k-shadow: rgba(8, 47, 56, 0.16);
  --s-bg: #f6fbfc; --s-ink: #0a2a31; --s-ink2: #5d7880; --s-line: rgba(8, 47, 56, 0.12); --s-card: rgba(8, 47, 56, 0.05);
  --rd1: #12333b; --rd2: #2b5560;
}
.desk-glow {
  position: absolute; left: 6%; top: 6%; width: 88%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 26%, transparent) 0%, transparent 65%);
  translate: calc(var(--px) * -10px) calc(var(--py) * -8px); animation: glow-pulse 6s ease-in-out infinite;
}
@keyframes glow-pulse { 50% { opacity: 0.65; scale: 1.05; } }
.desk-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.k-shadow { fill: var(--k-shadow); }
.k-skin { fill: var(--k-skin); } .k-skin-d { fill: var(--k-skin-d); }
.k-hair { fill: var(--k-hair); }
.k-hood { fill: url(#dkHood); stroke: none; }
.k-hood-d { fill: none; stroke: url(#dkHoodD); stroke-width: 20; stroke-linecap: round; }
.arm-near .k-hood { fill: none; stroke: url(#dkHood); stroke-width: 21; stroke-linecap: round; }
.k-hood-line { fill: none; stroke: rgba(0, 0, 0, 0.22); stroke-width: 3; stroke-linecap: round; }
.k-pants { fill: none; stroke: var(--k-pants); stroke-linecap: round; }
.k-thigh { stroke-width: 26; } .k-shin { stroke-width: 22; }
.k-shoe { fill: var(--k-shoe); }
.k-chair { fill: var(--k-chair); } .k-chair-d { fill: var(--k-chair-d); }
.k-chair-line { stroke: var(--k-chair-d); stroke-width: 5; stroke-linecap: round; }
.k-desk { fill: var(--k-desk); stroke: var(--k-desk-line); stroke-width: 1; }
.k-desk-d { fill: var(--k-desk-d); stroke: var(--k-desk-line); }
.k-drawer { stroke: var(--k-desk-line); stroke-width: 2; }
.k-handle { fill: var(--brand); opacity: 0.8; }
.k-mug { fill: var(--k-mug); } .k-mug-h { fill: none; stroke: var(--k-mug); stroke-width: 3; }
.k-lapbase { fill: var(--k-lapbase); } .k-lapnotch { fill: rgba(0, 0, 0, 0.22); }
.k-pot { fill: var(--k-pot); } .k-leaf { fill: var(--k-leaf); } .k-leaf2 { fill: var(--k-leaf2); }
.k-mouth { fill: none; stroke: #b4704f; stroke-width: 2; stroke-linecap: round; }
.k-glass { fill: rgba(255, 255, 255, 0.18); stroke: #12202a; stroke-width: 2; }
.k-glass-line { stroke: #12202a; stroke-width: 2; stroke-linecap: round; }
.eye { fill: #12202a; transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }

.head { transform-origin: 148px 242px; animation: nod 4.5s ease-in-out infinite; }
@keyframes nod { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(2.2deg); } }
.fore { transform-origin: 182px 330px; }
.f1 { animation: tap 1.1s ease-in-out infinite; }
.f2 { animation: tap 1.1s ease-in-out -0.55s infinite; }
.desk.is-typing .f1 { animation-duration: 0.3s; }
.desk.is-typing .f2 { animation-duration: 0.3s; animation-delay: -0.15s; }
@keyframes tap { 0%, 100% { transform: rotate(0deg) translateY(0); } 50% { transform: rotate(2.6deg) translateY(2px); } }
.plant .leaves { transform-origin: 62px 412px; animation: sway 5s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2.5deg); } }
.steam { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; opacity: 0; animation: steam 2.8s ease-in-out infinite; }
.steam.s2 { animation-delay: 1.2s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: 0.7; } 100% { opacity: 0; transform: translateY(-8px); } }

/* ---- Laptop ---- */
.lap {
  position: absolute; left: 42.19%; top: 10%; width: 53.125%; height: 54.76%;
  padding: 0.9cqw; border-radius: 1.8cqw 1.8cqw 0.6cqw 0.6cqw; background: #111c21;
  box-shadow: 0 2.4cqw 5cqw -1.4cqw rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.lap-screen { height: 100%; overflow: hidden; border-radius: 1cqw; background: var(--s-bg); color: var(--s-ink); font-family: var(--font-body); display: flex; flex-direction: column; position: relative; }
.lap-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, 0.07) 0%, transparent 38%); }
.ls-bar { display: flex; align-items: center; gap: 0.7cqw; padding: 0 1.3cqw; height: 3cqw; flex: 0 0 auto; border-bottom: 1px solid var(--s-line); background: var(--s-card); }
.ls-bar > i { width: 1cqw; height: 1cqw; border-radius: 50%; background: #ff6b6b; }
.ls-bar > i:nth-child(2) { background: #ffc857; } .ls-bar > i:nth-child(3) { background: #2ee6b6; }
.ls-bar span { margin-left: 1.2cqw; padding: 0 1.4cqw; border-radius: 99px; background: var(--s-card); font-size: max(7px, 1.5cqw); color: var(--s-ink2); line-height: 2.1cqw; }
.ls-bar span i { font-size: 0.9em; color: #2ee6b6; }
.ls-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 1.1cqw; padding: 1.3cqw 1.6cqw 1.1cqw; }
.ls-tabs { display: flex; gap: 0.7cqw; }
.ls-tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.6cqw; padding: 0.7cqw 0.4cqw;
  border-radius: 0.9cqw; font-size: max(7.5px, 1.78cqw); font-weight: 600; color: var(--s-ink2); border: 1px solid var(--s-line); background: transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.ls-tab:hover { color: var(--s-ink); border-color: var(--brand); }
.ls-tab.is-active { background: var(--grad); color: #031317; border-color: transparent; }
.ls-search { display: flex; align-items: center; gap: 1cqw; padding: 0 0.6cqw 0 1.4cqw; height: 4.6cqw; border-radius: 1.1cqw; border: 1px solid var(--s-line); background: var(--s-card); }
.ls-search > i { color: var(--s-ink2); font-size: max(8px, 1.7cqw); }
.ls-q { font-family: var(--font-mono); font-size: max(9px, 2.4cqw); letter-spacing: 0.12em; white-space: nowrap; }
.ls-caret { width: 0.28cqw; height: 2.4cqw; background: var(--brand); animation: caret 0.9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ls-go { margin-left: auto; font-style: normal; font-size: max(7.5px, 1.75cqw); font-weight: 700; padding: 0.8cqw 1.5cqw; border-radius: 0.8cqw; background: var(--grad); color: #031317; transition: transform 0.2s var(--ease-spring), filter 0.2s; }
.ls-go.is-press { transform: scale(0.9); filter: brightness(1.2); }

.ls-result { flex: 1; min-height: 0; display: flex; gap: 1.6cqw; padding: 1.3cqw; border-radius: 1.2cqw; border: 1px solid var(--s-line); background: var(--s-card); opacity: 0.5; transition: opacity 0.4s; }
.ls-result.is-load, .ls-result.is-done { opacity: 1; }
.ls-ava { position: relative; flex: 0 0 8.6cqw; display: grid; place-items: center; border-radius: 1cqw; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); font-size: 4.6cqw; }
.ls-lock { position: absolute; right: -0.8cqw; bottom: -0.8cqw; width: 3cqw; height: 3cqw; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #031317; font-size: 1.6cqw; text-decoration: none; transform: scale(0); transition: transform 0.45s var(--ease-spring); }
.ls-result.is-done .ls-lock { transform: scale(1); }
.ls-fields { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.9cqw 1.6cqw; align-content: center; }
.ls-fields .f { min-width: 0; display: grid; gap: 0.5cqw; }
.ls-fields small { font-size: max(6.5px, 1.5cqw); letter-spacing: 0.08em; text-transform: uppercase; color: var(--s-ink2); font-weight: 600; white-space: nowrap; }
.rd {
  display: block; height: max(7px, 2.2cqw); width: var(--w, 70%); border-radius: 0.5cqw;
  background: repeating-linear-gradient(135deg, var(--rd1) 0 0.5cqw, var(--rd2) 0.5cqw 1cqw);
  transform-origin: left center; transform: scaleX(0); transition: transform 0.55s var(--ease);
}
.rd.on { transform: scaleX(1); }
.ls-result.is-load .rd:not(.on) { transform: scaleX(1); opacity: 0.35; background: linear-gradient(90deg, var(--s-line), var(--s-card), var(--s-line)); background-size: 200% 100%; animation: shimmer 1s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.okc { display: inline-block; justify-self: start; font-size: max(7px, 1.6cqw); font-weight: 700; letter-spacing: 0.06em; padding: 0.3cqw 1.2cqw; border-radius: 99px; background: rgba(46, 230, 182, 0.18); color: #14b88a; opacity: 0; transform: translateY(0.6cqw); transition: opacity 0.4s, transform 0.4s; }
:root[data-theme="light"] .okc { color: #0a7f55; }
.okc.on { opacity: 1; transform: none; }
.ls-foot { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; font-size: max(6.5px, 1.6cqw); color: var(--s-ink2); }
.ls-status { display: inline-flex; align-items: center; gap: 0.7cqw; white-space: nowrap; }
.ls-status i { color: var(--brand); }
.ls-status.is-ok { color: #14b88a; } .ls-status.is-ok i { color: #14b88a; }
.ls-lat { font-family: var(--font-mono); padding: 0.2cqw 1cqw; border-radius: 99px; background: var(--s-card); }

/* ---- Chips y hoja PDF flotantes ---- */
.dchip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 1cqw; white-space: nowrap;
  padding: 1.1cqw 2.2cqw; border-radius: 999px; font-size: max(10px, 1.95cqw); font-weight: 600; color: var(--ink);
  background: var(--card-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
  translate: calc(var(--px) * var(--dx, 1px)) calc(var(--py) * var(--dy, 1px));
}
.dchip i { color: var(--brand); }
.dchip.c1 { left: 1%; top: 0; animation: float 5.4s ease-in-out infinite; --dx: 10px; --dy: 8px; }
.dchip.c2 { left: 58%; top: 0; font-family: var(--font-mono); font-size: max(9px, 1.8cqw); animation: float 6.2s ease-in-out -1.5s infinite; --dx: -8px; --dy: -6px; }
.dchip.c3 { left: 33%; top: 82%; opacity: 0; transform: translateY(14px) scale(0.9); transition: opacity 0.5s, transform 0.6s var(--ease-spring); }
.dchip.c3.on { opacity: 1; transform: none; }
.dchip.c3 i { color: #ff6b6b; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.4cqw); } }
.dsheet {
  position: absolute; z-index: 2; left: 78%; top: 58%; width: 15%; padding: 1.6cqw 1.6cqw 2.6cqw; border-radius: 1cqw; display: grid; gap: 1.1cqw;
  background: #fff; color: #0b2330; box-shadow: 0 2cqw 4cqw -1cqw rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translate(-4cqw, -6cqw) rotate(-4deg) scale(0.6); transition: opacity 0.5s, transform 0.7s var(--ease-spring);
  translate: calc(var(--px) * 6px) calc(var(--py) * 5px);
}
.dsheet.on { opacity: 1; transform: rotate(6deg); }
.dsheet b { font-size: max(7px, 1.5cqw); display: flex; align-items: center; gap: 0.6cqw; color: #0b2330; }
.dsheet b i { color: #e5484d; }
.dsheet .rd { height: max(5px, 1.2cqw); --rd1: #1c3a45; --rd2: #3c6070; }
.dsheet u { position: absolute; right: 1.2cqw; bottom: 0.9cqw; color: #14b88a; font-size: 2cqw; text-decoration: none; }
.desk-note { margin: 12px 0 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.78rem; color: var(--ink-3); text-align: center; }
.desk-note i { color: var(--brand); }

@media (max-width: 640px) {
  .dchip.c1 { left: 0; top: -9%; } .dchip.c2 { display: none; }
  .desk-stage { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .head, .f1, .f2, .plant .leaves, .steam, .dchip, .eye, .desk-glow { animation: none !important; }
}

@media (max-width: 440px) {
  .ls-tab { font-size: 1.8cqw; } .ls-tab i { display: none; }
  .ls-q { font-size: 2.4cqw; } .ls-go { font-size: 1.75cqw; } .ls-search > i { font-size: 1.8cqw; }
  .ls-fields small { font-size: 1.4cqw; } .okc { font-size: 1.5cqw; } .ls-foot { font-size: 1.5cqw; }
  .ls-bar span { font-size: 1.5cqw; } .rd { height: 2.2cqw; }
  .dsheet b { font-size: 1.6cqw; } .dsheet .rd { height: 1.2cqw; }
}

/* ==========================================================================
   Explorador de módulos (lista + inspector con vista previa)
   ========================================================================== */
.mx { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: stretch; }
.mx-list, .mx-inspector {
  position: relative; height: 640px; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: var(--shadow-sm);
}
.mx-tools { padding: 18px 18px 8px; display: grid; gap: 12px; flex: 0 0 auto; }
.mx-search {
  display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line-2); transition: border-color 0.25s, box-shadow 0.25s;
}
.mx-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.mx-search > i { color: var(--ink-3); }
.mx-search input { flex: 1; min-width: 0; padding: 12px 0; background: transparent; border: 0; outline: 0; color: var(--ink); font-size: 0.94rem; }
.mx-search input::placeholder { color: var(--ink-3); }
.mx-search input::-webkit-search-cancel-button { display: none; }
.mx-clear { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--ink-3); background: var(--card-hi); font-size: 0.7rem; }
.mx-clear:hover { color: var(--ink); }
.mx-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.mx-chips::-webkit-scrollbar { display: none; }
.mx-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; scroll-snap-align: start;
  font-size: 0.82rem; font-weight: 600; color: var(--ink-2); background: transparent; border: 1px solid var(--line-2);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-spring);
}
.mx-chip b { font-family: var(--font-mono); font-weight: 600; font-size: 0.7rem; padding: 1px 7px; border-radius: 99px; background: var(--card-hi); color: var(--ink-3); }
.mx-chip:hover { color: var(--ink); border-color: var(--brand); transform: translateY(-1px); }
.mx-chip.is-active { background: var(--grad); color: var(--on-brand); border-color: transparent; box-shadow: 0 8px 20px -10px var(--glow); }
.mx-chip.is-active b { background: rgba(3, 19, 23, 0.18); color: var(--on-brand); }

.mx-scroll {
  position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 4px 10px 6px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 26px), transparent); mask-image: linear-gradient(#000 calc(100% - 26px), transparent);
}
.mx-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; padding-bottom: 18px; }
.mx-items li[hidden] { display: none; }
.mx-item {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden; width: 100%; display: flex; align-items: center; gap: 14px; padding: 11px 58px 11px 14px;
  border-radius: 16px; text-align: left; color: var(--ink); border: 1px solid transparent; background: transparent;
  transition: background 0.3s, border-color 0.3s, transform 0.35s var(--ease);
}
.mx-item::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--brand) 20%, transparent), transparent 70%);
}
.mx-item:hover::before { opacity: 1; }
.mx-item:hover { transform: translateX(3px); }
.mx-item.is-active { background: color-mix(in srgb, var(--brand) 11%, transparent); border-color: color-mix(in srgb, var(--brand) 42%, transparent); transform: none; }
.mx-item.is-active::after { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.mx-i { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 1.15rem; color: var(--brand); background: var(--bg-3); border: 1px solid var(--line); transition: background 0.3s, color 0.3s, transform 0.4s var(--ease-spring); }
.mx-item:hover .mx-i { transform: rotate(-6deg) scale(1.06); }
.mx-item.is-active .mx-i { background: var(--grad); color: var(--on-brand); border-color: transparent; box-shadow: 0 8px 18px -8px var(--glow); }
.mx-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mx-t strong { font-size: 0.95rem; font-weight: 600; line-height: 1.25; }
.mx-t small { font-size: 0.74rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-go { color: var(--ink-3); font-size: 0.8rem; opacity: 0; transform: translateX(-4px); transition: opacity 0.3s, transform 0.3s; }
.mx-item:hover .mx-go, .mx-item.is-active .mx-go { opacity: 1; transform: none; color: var(--brand); }
.mx-pop { animation: mx-pop 0.5s var(--ease) both; animation-delay: calc(var(--n, 0) * 28ms); }
@keyframes mx-pop { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
.mx-empty { display: grid; justify-items: center; gap: 8px; padding: 40px 16px; text-align: center; color: var(--ink-3); }
.mx-empty > i { font-size: 1.6rem; }
.mx-empty a { color: var(--brand-ink); font-weight: 600; text-decoration: underline; }
.mx-count { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: 0 0 auto; padding: 10px 14px 12px 20px; font-size: 0.78rem; color: var(--ink-3); border-top: 1px solid var(--line); font-family: var(--font-mono); }

/* Inspector */
.mx-inspector {
  --rd1: #cfe9ee; --rd2: #8fb3bb;
  padding: 30px 30px 26px; gap: 0; justify-content: space-between;
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 9%, var(--card)), var(--card) 55%);
}
:root[data-theme="light"] .mx-inspector { --rd1: #12333b; --rd2: #2b5560; }
.mx-auto { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--line); }
.mx-auto i { display: block; height: 100%; width: 0; background: var(--grad); }
.mx-auto i.run { animation: mx-prog 5s linear forwards; }
.mx-inspector:hover .mx-auto i, .mx.is-off .mx-auto i { animation-play-state: paused; }
@keyframes mx-prog { to { width: 100%; } }
.mx-body { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.mx-body { transition: opacity 0.14s, transform 0.14s; }
.mx-body.is-out { opacity: 0; transform: translateX(-22px); }
.mx-body.is-swap { animation: mx-swap 0.5s var(--ease); }
@keyframes mx-swap { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.mx-head { display: flex; align-items: center; gap: 16px; }
.mx-ico { flex: 0 0 auto; width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; font-size: 1.8rem; color: var(--on-brand); background: var(--grad); box-shadow: 0 14px 30px -12px var(--glow); }
.mx-ttl { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mx-cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-ink); }
.mx-ttl h3 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); letter-spacing: -0.02em; line-height: 1.15; }
.mx-num { align-self: flex-start; font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-3); padding: 4px 10px; border-radius: 99px; background: var(--card-hi); border: 1px solid var(--line); white-space: nowrap; }
.mx-desc { color: var(--ink-2); font-size: 1rem; min-height: 3em; }
.mx-req { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-2); }
.mx-req b { padding: 3px 9px; border-radius: 8px; background: rgba(46, 230, 182, 0.16); color: #14b88a; font-size: 0.72rem; }
:root[data-theme="light"] .mx-req b { color: #0a7f55; }
.mx-req code { padding: 3px 9px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line); color: var(--ink); }
.mx-req span { margin-left: auto; padding: 3px 10px; border-radius: 99px; border: 1px dashed var(--line-2); font-family: var(--font-body); font-size: 0.76rem; color: var(--ink-3); }
.mx-resp { border-radius: 18px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 62%, transparent); overflow: hidden; }
.mx-resp-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 0.8rem; color: var(--ink-3); }
.mx-resp-bar #mxState i { margin-right: 4px; }
.mx-resp-bar #mxState.is-load i { display: inline-block; animation: spin 0.9s linear infinite; }
.mx-resp-bar #mxState.is-ok { color: #14b88a; font-weight: 600; }
:root[data-theme="light"] .mx-resp-bar #mxState.is-ok { color: #0a7f55; }
.mx-ms { font-family: var(--font-mono); font-size: 0.74rem; padding: 2px 10px; border-radius: 99px; background: var(--card-hi); }
@keyframes spin { to { transform: rotate(360deg); } }
.mx-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; padding: 18px 18px 16px; }
.mx-row { min-width: 0; display: grid; gap: 7px; align-content: start; min-height: 44px; }
.mx-row small { font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.mx-rd {
  display: block; height: 14px; width: var(--w, 60%); border-radius: 5px;
  background: repeating-linear-gradient(135deg, var(--rd1) 0 5px, var(--rd2) 5px 10px);
  transform-origin: left center; transform: scaleX(0); transition: transform 0.6s var(--ease);
}
.mx-rd.on { transform: scaleX(1); }
.mx-rd.sk { transform: scaleX(1); opacity: 0.35; background: linear-gradient(90deg, var(--line), var(--card-hi), var(--line)); background-size: 200% 100%; animation: shimmer 1s linear infinite; }
.mx-ok { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 99px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em; background: rgba(46, 230, 182, 0.16); color: #14b88a; animation: pop 0.5s var(--ease-spring); }
:root[data-theme="light"] .mx-ok { color: #0a7f55; }
.mx-priv { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 0.74rem; color: var(--ink-3); }
.mx-priv i { color: var(--brand); }
.mx-tags { margin-top: 0; }
.mx-cta { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 18px; }

@media (max-width: 991px) {
  .mx { grid-template-columns: minmax(0, 1fr); }
  .mx-list { height: 520px; }
  .mx-inspector { height: auto; gap: 18px; }
}
@media (max-width: 560px) {
  .mx-inspector { padding: 22px 18px 20px; }
  .mx-rows { grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px; }
  .mx-head { gap: 12px; } .mx-ico { width: 52px; height: 52px; font-size: 1.5rem; border-radius: 16px; }
  .mx-num { display: none; } .mx-req span { margin-left: 0; }
  .mx-cta .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .mx-body.is-swap, .mx-pop, .mx-ok { animation: none; }
}

.mx-empty[hidden], .mx-clear[hidden] { display: none !important; }

/* ---- Aviso de uso laboral ---- */
.work-pill {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; padding: 8px 18px; border-radius: 999px;
  font-size: 0.86rem; font-weight: 700; letter-spacing: 0.01em; color: #ffc857; background: rgba(255, 200, 87, 0.12); border: 1px solid rgba(255, 200, 87, 0.4);
}
:root[data-theme="light"] .work-pill { color: #8a5a00; background: rgba(255, 176, 32, 0.16); border-color: rgba(190, 120, 0, 0.4); }
.work-notice {
  display: flex; gap: 16px; align-items: flex-start; max-width: 920px; margin: -28px auto 34px; padding: 18px 22px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line-2); border-left: 4px solid #ffc857;
}
:root[data-theme="light"] .work-notice { border-left-color: #d99a00; }
.work-notice > i { font-size: 1.5rem; color: #ffc857; margin-top: 2px; }
:root[data-theme="light"] .work-notice > i { color: #c88a00; }
.work-notice p { margin: 0; font-size: 0.94rem; color: var(--ink-2); }
.work-notice strong { color: var(--ink); }
.mx-work { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 2px 10px; border-radius: 99px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; color: #ffc857; background: rgba(255, 200, 87, 0.12); border: 1px solid rgba(255, 200, 87, 0.34); }
:root[data-theme="light"] .mx-work { color: #8a5a00; border-color: rgba(190, 120, 0, 0.4); background: rgba(255, 176, 32, 0.14); }
.f-note { display: flex; align-items: center; gap: 10px; margin: 28px 0 0; padding: 14px 18px; border-radius: var(--r-md); font-size: 0.84rem; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); }
.f-note i { color: #ffc857; font-size: 1.05rem; }
:root[data-theme="light"] .f-note i { color: #c88a00; }

/* ---- Botón + (asociar) en cada módulo ---- */
.mx-items li { position: relative; }
.mx-add {
  position: absolute; right: 14px; top: 50%; translate: 0 -50%; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.95rem; color: var(--ink-2); background: var(--card-hi); border: 1px solid var(--line-2);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.35s var(--ease-spring);
}
.mx-add:hover { color: var(--on-brand); background: var(--grad); border-color: transparent; transform: scale(1.12) rotate(90deg); }
.mx-add.is-on { color: var(--on-brand); background: var(--grad); border-color: transparent; }
.mx-add.is-on:hover { transform: scale(1.12); }
.mx-pk { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; color: var(--brand-ink); background: color-mix(in srgb, var(--brand) 12%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent); }
.mx-pk b { font-family: var(--font-mono); }
.mx-pk:hover { background: color-mix(in srgb, var(--brand) 22%, transparent); }
#mxAssoc.is-on { background: linear-gradient(115deg, #14b88a, #0e93a7); }

/* ---- Paquete de validaciones ---- */
.pack {
  margin-top: 22px; padding: 34px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%); box-shadow: var(--shadow-sm);
}
.pack-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.pack-ttl .kicker { margin-bottom: 14px; }
.pack-ttl h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); letter-spacing: -0.02em; }
.pack-ttl p { margin-top: 12px; color: var(--ink-2); font-size: 0.98rem; }
.pack-ttl p b { color: var(--brand-ink); }
.pack-presets { display: grid; gap: 10px; }
.pack-preset {
  display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-radius: 16px; text-align: left; font-size: 0.95rem; font-weight: 600; color: var(--ink);
  background: var(--card-hi); border: 1px solid var(--line-2); transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.35s var(--ease);
}
.pack-preset i { font-size: 1.25rem; color: var(--brand); transition: color 0.3s; }
.pack-preset:hover { transform: translateX(4px); border-color: var(--brand); }
.pack-preset.is-active { background: var(--grad); color: var(--on-brand); border-color: transparent; box-shadow: 0 12px 28px -14px var(--glow); }
.pack-preset.is-active i { color: var(--on-brand); }

.pack-flow {
  position: relative; margin-top: 26px; padding: 24px; min-height: 124px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0;
  border-radius: var(--r-lg); background: color-mix(in srgb, var(--bg) 55%, transparent); border: 1px dashed var(--line-2);
}
.pf-empty { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center; color: var(--ink-3); font-size: 0.92rem; }
.pf-empty i { font-size: 1.5rem; color: var(--brand); }
.pf-empty b { color: var(--brand-ink); }
.pf-node {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; border-radius: 14px;
  font-size: 0.88rem; font-weight: 600; color: var(--ink); background: var(--card-solid); border: 1px solid var(--line-2);
  animation: pf-glow 4.2s ease-in-out calc(var(--i, 0) * 0.5s + 0.8s) infinite;
}
.pf-node.is-new { animation: pf-in 0.55s var(--ease-spring) both, pf-glow 4.2s ease-in-out calc(var(--i, 0) * 0.5s + 0.8s) infinite; }
.pf-node .ic { font-size: 1.1rem; color: var(--brand); }
.pf-src { padding-right: 16px; border-style: dashed; }
.pf-out { padding-right: 16px; color: var(--on-brand); background: var(--grad); border-color: transparent; }
.pf-out .ic { color: var(--on-brand); }
.pf-node .x { width: 22px; height: 22px; margin-left: 2px; border-radius: 50%; display: grid; place-items: center; font-size: 0.6rem; color: var(--ink-3); background: var(--card-hi); transition: background 0.25s, color 0.25s, transform 0.3s var(--ease-spring); }
.pf-node .x:hover { color: #fff; background: #ff6b6b; transform: rotate(90deg); }
@keyframes pf-in { from { opacity: 0; transform: translateY(14px) scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes pf-glow { 0%, 22%, 100% { box-shadow: 0 0 0 0 transparent; } 10% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 28%, transparent), 0 10px 26px -10px var(--glow); } }
.pf-link { flex: 0 0 38px; height: 2px; position: relative; overflow: hidden; background: var(--line-2); border-radius: 2px; }
.pf-link::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: var(--grad); animation: pf-run 1.8s linear calc(var(--i, 0) * 0.5s) infinite; }
@keyframes pf-run { to { left: 100%; } }
@keyframes pf-runv { to { top: 100%; } }

.pack-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.pack-sum { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.pack-sum strong { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pack-sum span { font-weight: 600; }
.pack-sum small { flex-basis: 100%; color: var(--ink-3); font-size: 0.82rem; }
.pack-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pack-actions [hidden] { display: none !important; }
#packReq.is-disabled { opacity: 0.45; filter: saturate(0.5); }
.pack-note { margin: 18px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; color: var(--ink-3); }
.pack-note > i { color: #ffc857; }
:root[data-theme="light"] .pack-note > i { color: #c88a00; }
#packToast { color: var(--brand-ink); font-weight: 600; }

@media (max-width: 991px) {
  .pack-head { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .work-notice { margin-top: -34px; }
}
@media (max-width: 560px) {
  .pack { padding: 22px 16px; }
  .pack-flow { flex-direction: column; align-items: stretch; padding: 16px; gap: 0; }
  .pf-node { width: 100%; justify-content: flex-start; }
  .pf-node .x { margin-left: auto; }
  .pf-link { flex: 0 0 20px; width: 2px; height: 20px; align-self: center; }
  .pf-link::after { left: 0; top: -40%; width: 100%; height: 40%; animation-name: pf-runv; }
  .pack-actions .btn, .pack-foot { width: 100%; }
  .pack-actions .btn { justify-content: center; }
  .work-notice { padding: 14px 16px; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-node, .pf-node.is-new, .pf-link::after { animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .pkt, .hub-core, .sc-live i { animation: none !important; }
  .scene.is-active .sec-list li { animation: none; opacity: 1; }
  .scene.is-active .sec-list li > i { animation: none; color: #14b88a; transform: none; }
}
.sc-bar b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sc-live { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 560px) { .sc-bar .dots { display: none; } .sc-bar { padding: 11px 14px; } }
.step-copy .sc-note { font-size: 0.72rem; color: var(--ink-3); max-width: none; }
@media (max-width: 380px) { .sc-live { font-size: 0.6rem; padding: 3px 8px; } .sc-bar { gap: 8px; } }

/* ---------- Flujo de trabajo: foto de fondo con baja opacidad ---------- */
.section.has-photo { isolation: isolate; overflow: hidden; --flow-o: 0.2; }
:root[data-theme="light"] .section.has-photo { --flow-o: 0.15; }
.flow-photo { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.flow-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 32%; opacity: var(--flow-o); filter: blur(1.2px) saturate(0.9);
  transform: scale(1.05); animation: flow-drift 32s ease-in-out infinite alternate;
}
:root[data-theme="light"] .flow-photo img { filter: blur(1.2px) saturate(0.8) contrast(1.05); }
.flow-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, transparent 24%, transparent 68%, var(--bg) 100%),
    radial-gradient(ellipse 75% 85% at 50% 50%, transparent 30%, var(--bg) 100%);
}
@keyframes flow-drift { from { transform: scale(1.05) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.2%, -1%, 0); } }
@media (prefers-reduced-motion: reduce) { .flow-photo img { animation: none; } }

/* ==========================================================================
   Flujo de trabajo (pasos interactivos con vista previa)
   ========================================================================== */
.fl { display: grid; gap: 36px; }
.fl-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fl-rail { position: absolute; left: 12.5%; right: 12.5%; top: 30px; height: 3px; border-radius: 3px; background: var(--line-2); z-index: 0; }
.fl-rail i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); box-shadow: 0 0 14px var(--glow); transition: width 0.8s var(--ease); }
.fl-step { position: relative; z-index: 1; width: 100%; display: grid; justify-items: center; gap: 12px; padding: 0 6px 12px; text-align: center; color: var(--ink-2); }
.fl-n {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-size: 1.45rem; color: var(--ink-3);
  background: var(--card-solid); border: 2px solid var(--line-2); transition: background 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.5s var(--ease-spring);
}
.fl-step:hover .fl-n { border-color: var(--brand); color: var(--brand); transform: translateY(-3px); }
.fl-step.is-done .fl-n { border-color: var(--brand); color: var(--brand); }
.fl-step.is-active .fl-n { color: var(--on-brand); background: var(--grad); border-color: transparent; transform: scale(1.1); box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand) 16%, transparent), 0 14px 30px -8px var(--glow); }
.fl-t { display: grid; gap: 2px; }
.fl-t small { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.fl-t b { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); line-height: 1.2; }
.fl-step:not(.is-active) .fl-t b { color: var(--ink-2); }
.fl-tick { position: absolute; left: 14%; right: 14%; bottom: 0; height: 3px; border-radius: 3px; background: transparent; overflow: hidden; }
.fl-tick::after { content: ""; display: block; height: 100%; width: 0; background: var(--grad); }
.fl-tick.run::after { animation: fl-prog 6.5s linear forwards; }
.fl.is-off .fl-tick::after, .fl:hover .fl-tick::after { animation-play-state: paused; }
@keyframes fl-prog { to { width: 100%; } }

.fl-panel {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 44px; align-items: center; padding: clamp(24px, 4vw, 44px);
  border-radius: var(--r-xl); background: color-mix(in srgb, var(--card-solid) 78%, transparent); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); box-shadow: var(--shadow);
}
.fl-copies, .fl-views { display: grid; }
.fl-copy, .fl-card { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), transform 0.6s var(--ease), visibility 0s 0.45s; }
.fl-copy { transform: translateX(-16px); align-self: center; }
.fl-card { transform: translateX(22px) scale(0.98); display: grid; place-items: center; }
.fl-copy.is-active, .fl-card.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.fl-copy .kicker { margin-bottom: 16px; }
.fl-copy h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -0.03em; margin-bottom: 14px; }
.fl-copy p { color: var(--ink-2); font-size: 1.04rem; max-width: 50ch; }
.fl-copy .step-points { margin: 22px 0 26px; }
.fl-card .sc { width: min(100%, 460px); }

/* 1 · panel */
.pn-key small, .pn-log small { font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.pn-key > div { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-2); }
.pn-key > div > i { color: var(--brand); }
.pn-key code { flex: 1; min-width: 0; font-size: 0.86rem; letter-spacing: 0.05em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-new { font-size: 0.68rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; color: var(--on-brand); background: var(--grad); }
.fl-card.is-active .pn-new { animation: pop 0.7s var(--ease-spring) 0.5s both; }
.pn-meters { display: grid; gap: 12px; }
.pn-meters span { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; }
.pn-meters span b { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; color: var(--ink-3); }
.pn-bar { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; }
.pn-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); }
.fl-card.is-active .pn-bar i { animation: grow 1.1s var(--ease) 0.4s forwards; }
@keyframes grow { to { width: var(--w); } }
.pn-log { display: grid; gap: 6px; }
.pn-log > div { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 0.82rem; opacity: 0; transform: translateY(8px); }
.pn-log > div i { color: #14b88a; } .pn-log > div span { flex: 1; font-weight: 500; }
.pn-log em { font-style: normal; font-family: var(--font-mono); font-size: 0.7rem; color: #14b88a; } .pn-log time { font-size: 0.7rem; color: var(--ink-3); }
.fl-card.is-active .pn-log > div { animation: rise 0.5s var(--ease) calc(0.9s + var(--i) * 0.3s) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* 2 · primera consulta */
.rq-line { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.78rem; min-width: 0; }
.rq-line b { padding: 3px 9px; border-radius: 8px; background: rgba(46, 230, 182, 0.16); color: #14b88a; font-size: 0.7rem; }
.rq-line code { padding: 4px 10px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rq-box { display: grid; gap: 1px; border-radius: 12px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.rq-box > div { display: grid; grid-template-columns: 104px 1fr; gap: 10px; padding: 9px 12px; background: var(--card-solid); font-family: var(--font-mono); font-size: 0.72rem; }
.rq-box .k { color: var(--ink-3); } .rq-box .v { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-send { justify-self: start; display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 12px; font-weight: 700; font-size: 0.86rem; color: var(--on-brand); background: var(--grad); box-shadow: 0 10px 22px -10px var(--glow); transition: transform 0.3s var(--ease-spring), filter 0.3s; }
.rq-send:hover { transform: translateY(-2px); filter: brightness(1.08); }
.fl-card.is-active .rq-send { animation: sendpress 0.5s var(--ease-spring) 1.1s; }
@keyframes sendpress { 40% { transform: scale(0.9); } 100% { transform: scale(1); } }
.rq-resp { border-radius: 12px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 60%, transparent); overflow: hidden; opacity: 0; transform: translateY(10px); }
.fl-card.is-active .rq-resp { animation: rise 0.55s var(--ease) 1.5s forwards; }
.rq-resp-bar { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 0.78rem; }
.rq-resp-bar span { color: #14b88a; font-weight: 700; } .rq-resp-bar em { font-style: normal; font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-3); padding: 2px 9px; border-radius: 99px; background: var(--card-hi); }
.rq-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }
.rq-rows small { display: block; font-size: 0.64rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 6px; }
.rq-rows i { display: block; height: 12px; width: var(--w); border-radius: 4px; background: repeating-linear-gradient(135deg, var(--rd1, #cfe9ee) 0 5px, var(--rd2, #8fb3bb) 5px 10px); transform-origin: left; transform: scaleX(0); }
:root[data-theme="light"] .fl-card { --rd1: #12333b; --rd2: #2b5560; }
.fl-card.is-active .rq-rows i { animation: scx 0.6s var(--ease) 2s forwards; } .fl-card.is-active .rq-rows div:nth-child(2) i { animation-delay: 2.25s; }
@keyframes scx { to { transform: scaleX(1); } }

/* 3 · recorrido */
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 18px; top: 18px; bottom: 18px; width: 2px; background: var(--line-2); }
.tl li { position: relative; display: flex; align-items: center; gap: 14px; padding: 8px 0; opacity: 0.35; }
.tl li > i { position: relative; z-index: 1; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; color: var(--ink-3); background: var(--card-solid); border: 2px solid var(--line-2); }
.tl b { display: block; font-size: 0.9rem; } .tl small { font-size: 0.75rem; color: var(--ink-3); }
.fl-card.is-active .tl li { animation: tlin 0.5s var(--ease) calc(0.3s + var(--i) * 0.5s) forwards; }
.fl-card.is-active .tl li > i { animation: tldot 0.5s var(--ease-spring) calc(0.3s + var(--i) * 0.5s) forwards; }
@keyframes tlin { to { opacity: 1; } }
@keyframes tldot { to { color: var(--on-brand); background: var(--grad); border-color: transparent; box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 18%, transparent); } }
.work-pill.sm { margin-top: 0; justify-self: start; padding: 6px 14px; font-size: 0.78rem; }

/* 4 · escala */
.cb { display: grid; gap: 10px; }
.cb > div { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 12px; }
.cb span { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.cb span i { color: var(--brand); }
.cb-bar { height: 12px; border-radius: 7px; background: var(--line); overflow: hidden; }
.cb-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); }
.fl-card.is-active .cb-bar i { animation: grow 1s var(--ease) calc(0.3s + var(--i) * 0.12s) forwards; }
.cb > div { --i: 0; }
.cb-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-tags span { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; font-size: 0.75rem; font-weight: 600; background: var(--card); border: 1px solid var(--line); }
.cb-tags i { color: var(--brand); }

@media (max-width: 991px) {
  .fl-panel { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .fl-card { transform: translateY(14px); }
}
@media (max-width: 640px) {
  .fl-steps { gap: 6px; }
  .fl-rail { top: 24px; }
  .fl-n { width: 50px; height: 50px; font-size: 1.2rem; }
  .fl-t { display: none; }
  .fl-step { padding-bottom: 10px; }
  .fl-panel { padding: 20px 14px; }
  .rq-box > div { grid-template-columns: 84px 1fr; }
  .cb > div { grid-template-columns: 96px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .fl-copy, .fl-card { transition: none; }
  .fl-card.is-active .pn-log > div, .fl-card.is-active .rq-resp, .fl-card.is-active .tl li { animation: none; opacity: 1; transform: none; }
  .fl-card.is-active .pn-bar i, .fl-card.is-active .cb-bar i { animation: none; width: var(--w); }
  .fl-card.is-active .rq-rows i { animation: none; transform: none; }
  .fl-card.is-active .tl li > i { animation: none; color: var(--on-brand); background: var(--grad); border-color: transparent; }
}

/* ---- Developers: datos enmascarados ---- */
.t-mask { color: #ffc857; background: rgba(255, 200, 87, 0.12); border-radius: 3px; letter-spacing: 0.06em; }
.mask-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #ffc857; background: rgba(255, 200, 87, 0.1); border: 1px solid rgba(255, 200, 87, 0.32); white-space: nowrap; }
.mask-inline { font-family: var(--font-mono); color: #ffc857; padding: 0 5px; border-radius: 4px; background: rgba(255, 200, 87, 0.12); }
:root[data-theme="light"] .mask-inline { color: #8a5a00; background: rgba(255, 176, 32, 0.18); }
.dev-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.dev .dev-actions .btn { margin-top: 0; }
@media (max-width: 560px) { .mask-badge { margin-left: 0; } .dev-actions .btn { flex: 1 1 100%; } }

/* ---------- Precios: profesionalización ---------- */
.trust-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 34px;
  padding: 14px; border-radius: var(--r-lg, 22px); border: 1px solid var(--line); background: var(--card);
}
.trust-strip > div { display: flex; gap: 14px; align-items: center; padding: 8px 12px; min-width: 0; }
.trust-strip > div + div { border-left: 1px solid var(--line); }
.trust-strip .ico {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad); color: var(--on-brand); font-size: 1.15rem;
}
.trust-strip b { display: block; font-size: 0.95rem; color: var(--ink); }
.trust-strip small { display: block; font-size: 0.8rem; color: var(--ink-3); line-height: 1.45; margin-top: 2px; }
.pricing { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.plan { padding: 30px 24px; }
.plan .tagline { margin: 6px 0 0; font-size: 0.82rem; color: var(--ink-3); }
.plan .price { margin-top: 18px; }
.plan .price b { font-size: clamp(2.6rem, 3.6vw, 3.3rem); }
.plan .per { font-size: 0.78rem; }
.cpc { height: 5px; border-radius: 99px; margin: 12px 0 14px; background: color-mix(in srgb, var(--ink) 9%, transparent); overflow: hidden; }
.cpc i { display: block; height: 100%; width: var(--w, 100%); border-radius: inherit; background: var(--grad); }
.no-exp {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; color: var(--brand-ink);
  background: color-mix(in srgb, var(--brand) 12%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
}
.plan .desc { margin: 16px 0 18px; font-size: 0.9rem; }
.plan li { font-size: 0.9rem; }
.plan-badge.alt { background: transparent; color: var(--brand-ink); border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); }
.plan-top { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.price-legend { margin: 22px 0 0; text-align: center; font-size: 0.82rem; color: var(--ink-3); }
.price-legend i { color: var(--brand-ink); margin-right: 6px; }
.work-foot { margin: 14px 0 0; text-align: center; font-size: 0.84rem; color: var(--ink-3); }
.work-foot i { color: var(--brand-ink); margin-right: 6px; }
@media (max-width: 1180px) and (min-width: 992px) {
  .plan { padding: 26px 18px; }
  .plan .name { flex-wrap: wrap; }
}
@media (max-width: 991px) {
  .pricing { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .trust-strip { grid-template-columns: minmax(0, 1fr); }
  .trust-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
.plan .name { flex-wrap: nowrap; min-height: 34px; }
.plan h3 { font-size: 1.28rem; white-space: nowrap; }
.plan-badge { white-space: nowrap; font-size: 0.62rem; padding: 4px 9px; letter-spacing: 0.05em; }
@media (max-width: 1180px) and (min-width: 992px) {
  .plan .name { flex-wrap: wrap; row-gap: 6px; min-height: 66px; }
  .plan h3 { font-size: 1.2rem; }
}

/* ---------- Comunidad: teléfonos fieles a Telegram y WhatsApp ---------- */
.phone {
  max-width: 322px; aspect-ratio: 9 / 18.4; padding: 8px; border-radius: 42px; container-type: inline-size;
  background: linear-gradient(160deg, #1b2227, #06090b); border: 1px solid var(--line-2);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, 0.05);
}
.ph-screen {
  height: 100%; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; position: relative;
  font-size: 3.5cqw; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.3;
}
.ph-status { display: flex; justify-content: space-between; align-items: center; height: 3.3em; padding: 0.4em 2em 0; font-size: 1.1em; font-weight: 600; color: #fff; position: relative; z-index: 3; }
.ph-island { position: absolute; left: 50%; top: 0.7em; width: 7.6em; height: 2.1em; margin-left: -3.8em; border-radius: 99px; background: #000; }
.ph-sicons { display: inline-flex; gap: 0.35em; font-size: 1.05em; }
.app-av { flex: 0 0 auto; width: 3.7em; height: 3.7em; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.5em; background: linear-gradient(160deg, #4ddcaa, #1b9fd0); }
.app-who { flex: 1; min-width: 0; display: grid; gap: 0.1em; }
.app-who b { font-size: 1.35em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-who small { font-size: 1.08em; }
.ph-screen .msgs { flex: 1; padding: 0.7em 0.8em 0.9em; gap: 0.35em; justify-content: flex-end; overflow: hidden; }
.ph-home { height: 1.8em; display: grid; place-items: center; }
.ph-home::after { content: ""; width: 9em; height: 0.38em; border-radius: 9em; background: rgba(255, 255, 255, 0.55); }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.ring circle { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke: #fff; stroke-dasharray: 32 94; transform-origin: 50% 50%; }
.is-dl .ring { opacity: 1; animation: ring-rot 0.9s linear infinite; }
@keyframes ring-rot { to { transform: rotate(360deg); } }

/* --- Telegram (tema oscuro) --- */
.ph-tg .ph-screen { background: #0e1621; color: #f5f5f5; }
.ph-tg .ph-status { background: #17212b; }
.tg-head { display: flex; align-items: center; gap: 0.9em; padding: 0.3em 1em 0.8em; background: #17212b; color: #6c7883; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); position: relative; z-index: 2; }
.tg-head i { font-size: 1.7em; }
.tg-head .app-who b { color: #f5f5f5; }
.tg-head .app-who small { color: #6c7883; transition: color 0.2s; }
.tg-head .app-who small.is-typing { color: #6ab3f3; }
.tg-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; background: radial-gradient(120% 70% at 20% 0%, rgba(42, 85, 120, 0.22), transparent 60%), radial-gradient(90% 60% at 100% 100%, rgba(30, 70, 100, 0.2), transparent 60%), #0e1621; }
.tg-day, .wa-day { align-self: center; margin: 0.2em 0 0.5em; padding: 0.2em 0.9em; border-radius: 99px; font-size: 1.05em; font-weight: 500; }
.tg-day { background: rgba(23, 33, 43, 0.85); color: #fff; }
.tgm {
  align-self: flex-start; max-width: 82%; padding: 0.5em 0.75em 0.4em; border-radius: 1.2em 1.2em 1.2em 0.35em; background: #182533; color: #f5f5f5;
  font-size: 1.25em; line-height: 1.32; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-end; column-gap: 0.7em;
  animation: msg-in 0.4s var(--ease-spring) both;
}
.tgm.me { align-self: flex-end; background: #2b5278; border-radius: 1.2em 1.2em 0.35em 1.2em; }
.tgm .tx { flex: 0 1 auto; min-width: 0; }
.tgm b { color: #6ab3f3; font-weight: 600; }
.tgm .meta { flex: 0 0 auto; font-size: 0.78em; color: #6d7f8f; display: inline-flex; gap: 0.2em; align-items: center; margin-top: 0.15em; white-space: nowrap; }
.tgm.me .meta { color: #8cb4dc; }
.tgm .meta i { color: #6ab2f2; font-size: 1.15em; }
.tgm.me .meta i { color: #a8d4ff; }
.tgm-file { min-width: 74%; }
.tg-file { flex: 1 0 100%; display: flex; align-items: center; gap: 0.8em; padding: 0.15em 0 0.1em; }
.tg-fi { position: relative; flex: 0 0 auto; width: 3.5em; height: 3.5em; border-radius: 50%; display: grid; place-items: center; background: #3a8fd9; color: #fff; font-size: 1em; }
.tg-fi > i { font-size: 1.7em; position: absolute; transition: opacity 0.25s, transform 0.25s; }
.tg-fi .i-doc { opacity: 0; transform: scale(0.6); }
.is-dl .tg-fi .i-dl { opacity: 0; transform: scale(0.6); }
.is-done .tg-fi .i-dl { opacity: 0; }
.is-done .tg-fi .i-doc { opacity: 1; transform: none; }
.is-done .ring { opacity: 0; animation: none; }
.tg-fn { min-width: 0; display: grid; gap: 0.1em; }
.tg-fn b { color: #f5f5f5; font-weight: 600; font-size: 1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-fn small { color: #7f91a4; font-size: 0.82em; }
.tg-input { display: flex; align-items: center; gap: 1em; padding: 0.7em 1.1em 0.4em; background: #17212b; color: #6c7883; }
.tg-input i { font-size: 1.8em; }
.tg-input span { flex: 1; font-size: 1.35em; color: #6c7883; }
.ph-tg .ph-home { background: #17212b; }

/* --- WhatsApp (tema oscuro) --- */
.ph-wa .ph-screen { background: #0b141a; color: #e9edef; }
.ph-wa .ph-status { background: #1f2c34; }
.wa-head { display: flex; align-items: center; gap: 0.8em; padding: 0.3em 1em 0.8em 0.8em; background: #1f2c34; color: #e9edef; position: relative; z-index: 2; }
.wa-head > i { font-size: 1.55em; }
.wa-head .wa-back { font-size: 1.8em; margin-right: -0.1em; }
.wa-head .app-av { width: 3.5em; height: 3.5em; font-size: 1.45em; background: linear-gradient(160deg, #3be08a, #139a65); }
.wa-head .app-who b { font-weight: 500; }
.wa-head .app-who small { color: #8696a0; }
.wa-head .app-who small.is-typing { color: #00a884; }
.wa-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; background-color: #0b141a;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1.4px), radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1.4px);
  background-size: 14px 14px, 14px 14px; background-position: 0 0, 7px 7px; }
.wa-day { background: #182229; color: #8696a0; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.95em; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3); }
.wam {
  position: relative; align-self: flex-start; max-width: 84%; padding: 0.4em 0.6em 0.3em 0.65em; border-radius: 0.75em; background: #202c33; color: #e9edef;
  font-size: 1.22em; line-height: 1.32; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-end; column-gap: 0.7em;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.3); animation: msg-in 0.4s var(--ease-spring) both;
}
.wam.me { align-self: flex-end; background: #005c4b; }
.wam.tail { border-top-left-radius: 0; margin-top: 0.3em; }
.wam.me.tail { border-top-left-radius: 0.75em; border-top-right-radius: 0; }
.wam.tail::before { content: ""; position: absolute; top: 0; left: -0.45em; width: 0.8em; height: 0.85em; background: #202c33; clip-path: polygon(100% 0, 0 0, 100% 100%); }
.wam.me.tail::before { left: auto; right: -0.45em; background: #005c4b; clip-path: polygon(0 0, 100% 0, 0 100%); }
.wam .tx { flex: 0 1 auto; min-width: 0; }
.wam b { font-weight: 600; }
.wam .meta { flex: 0 0 auto; font-size: 0.72em; color: rgba(233, 237, 239, 0.6); display: inline-flex; gap: 0.2em; align-items: center; margin-top: 0.2em; white-space: nowrap; }
.wam .meta i { color: #53bdeb; font-size: 1.35em; }
.wam-file { padding: 0.25em 0.25em 0.3em; width: 84%; }
.wa-doc { flex: 1 0 100%; border-radius: 0.55em; overflow: hidden; background: rgba(11, 20, 26, 0.38); }
.wa-thumb { height: 8.6em; background: #f3f4f5; padding: 0.8em 0.9em; display: grid; gap: 0.38em; align-content: start; position: relative; overflow: hidden; }
.wa-thumb::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(0, 0, 0, 0.08)); }
.wa-thumb .t { height: 0.9em; width: 62%; border-radius: 3px; background: linear-gradient(90deg, #1fc99a, #1b9fd0); }
.wa-thumb .l { height: 0.45em; border-radius: 3px; background: #cfd5d9; }
.wa-thumb .l.s { width: 70%; } .wa-thumb .l.m { width: 88%; }
.wa-thumb .g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35em; margin-top: 0.3em; }
.wa-thumb .g i { height: 2.3em; border-radius: 3px; background: #e2e7ea; border-top: 3px solid #1fc99a; }
.wa-frow { display: flex; align-items: center; gap: 0.7em; padding: 0.65em 0.7em; }
.wa-pdf { font-size: 2.3em; color: #ff6b5e; line-height: 1; }
.wa-fn { flex: 1; min-width: 0; display: grid; gap: 0.15em; }
.wa-fn b { font-weight: 500; font-size: 0.98em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-fn small { font-size: 0.78em; color: #8696a0; }
.wa-dl { position: relative; flex: 0 0 auto; width: 2.7em; height: 2.7em; border-radius: 50%; display: grid; place-items: center; border: 0.12em solid #8696a0; color: #8696a0; transition: opacity 0.3s, transform 0.3s; }
.wa-dl i { font-size: 1.4em; }
.wa-dl .ring circle { stroke: #00a884; }
.is-done .wa-dl { opacity: 0; transform: scale(0.5); width: 0; border-width: 0; margin-left: -0.7em; }
.wam-file .meta { margin: 0.15em 0.35em 0 0; }
.wa-input { display: flex; align-items: center; gap: 0.6em; padding: 0.55em 0.6em 0.3em; background: #0b141a; }
.wa-pill { flex: 1; display: flex; align-items: center; gap: 0.8em; padding: 0 1em; height: 3.2em; border-radius: 99px; background: #202c33; color: #8696a0; }
.wa-pill i { font-size: 1.55em; }
.wa-pill em { flex: 1; font-style: normal; font-size: 1.25em; }
.wa-mic { width: 3.2em; height: 3.2em; border-radius: 50%; display: grid; place-items: center; background: #00a884; color: #0b141a; font-size: 1.1em; }
.wa-mic i { font-size: 1.5em; }
.ph-wa .ph-home { background: #0b141a; }
@media (max-width: 560px) { .phone { max-width: 270px; } }
@media (prefers-reduced-motion: reduce) { .is-dl .ring { animation: none; } }
@media (min-width: 992px) { .c-pane:has(.phone) { grid-template-columns: minmax(0, 1fr) 286px; } }

/* ---------- CTA: acceso premium (más intuitivo) ---------- */
.cta.cta-2 {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(28px, 5vw, 64px); align-items: center;
  text-align: left; padding: clamp(32px, 5.5vw, 68px) clamp(22px, 5vw, 64px);
}
.cta-2 h2 { margin: 18px 0 16px; max-width: 18ch; font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
.cta-2 p { margin-inline: 0; }
.cta-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.cta-chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; font-size: 0.84rem; color: #d9eef2;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
}
.cta-chips i { color: #7fe9c6; }
.cta-2 .cta-actions { justify-content: flex-start; margin-top: 28px; }
.cta-card {
  position: relative; padding: 26px 24px 20px; border-radius: 24px; color: #eef9fb;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.cc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.cc-head b { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.01em; }
.cc-head span { font-size: 0.78rem; color: #7fe9c6; }
.cc-steps { position: relative; display: grid; gap: 10px; counter-reset: none; }
.cc-steps::before { content: ""; position: absolute; left: 30px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(#2ee6b6, rgba(46, 230, 182, 0.1)); opacity: 0.45; }
.cc-steps li {
  position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px 14px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid transparent; animation: cc-hi 9s ease-in-out infinite; animation-delay: calc(var(--k) * 3s);
}
.cc-steps .n {
  position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem;
  background: #0b2a33; border: 2px solid rgba(46, 230, 182, 0.55); color: #7fe9c6;
}
.cc-steps h4 { font-size: 0.98rem; margin: 0 0 2px; color: #fff; }
.cc-steps p { font-size: 0.82rem; color: #a9c8cf; margin: 0; line-height: 1.45; }
.cc-steps li > i { font-size: 1.25rem; color: #7fe9c6; opacity: 0.8; }
@keyframes cc-hi {
  0%, 34%, 100% { background: rgba(255, 255, 255, 0.04); border-color: transparent; transform: none; }
  4%, 30% { background: rgba(46, 230, 182, 0.1); border-color: rgba(46, 230, 182, 0.4); transform: translateX(4px); }
}
.cc-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 0.88rem; font-weight: 600; color: #7fe9c6; }
.cc-link:hover { color: #fff; }
@media (max-width: 991px) {
  .cta.cta-2 { grid-template-columns: minmax(0, 1fr); }
  .cta-2 h2 { max-width: 22ch; }
}
@media (max-width: 480px) { .cta-2 .cta-actions .btn { width: 100%; justify-content: center; } .cc-steps li > i { display: none; } .cc-steps li { grid-template-columns: 34px minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .cc-steps li { animation: none; } }

/* =====================================================================
   MODO CLARO — capa de profesionalización (solo tema claro)
   Más profundidad: fondos con textura y matices, tarjetas con borde y
   sombra definidos, mejores contrastes en etiquetas y textos.
   ===================================================================== */
:root[data-theme="light"] {
  --bg: #f4f9fb;
  --bg-2: #e9f2f5;
  --bg-3: #dcebef;
  --card: #ffffff;
  --card-hi: #ffffff;
  --line: rgba(8, 60, 74, 0.13);
  --line-2: rgba(8, 60, 74, 0.26);
  --ink-3: #5b747c;
  --shadow-card: 0 1px 2px rgba(8, 60, 74, 0.07), 0 16px 32px -20px rgba(8, 60, 74, 0.3);
  --shadow-card-hover: 0 2px 4px rgba(8, 60, 74, 0.08), 0 26px 44px -22px rgba(8, 60, 74, 0.36);
}
:root[data-theme="light"] body { background: #f4f9fb; }

/* Fondos de sección: matices de color + textura sutil */
:root[data-theme="light"] .section:not(.alt):not(.has-photo) {
  background:
    radial-gradient(55% 45% at 92% 0%, rgba(16, 201, 154, 0.12), transparent 70%),
    radial-gradient(50% 45% at 4% 100%, rgba(47, 127, 232, 0.1), transparent 70%),
    radial-gradient(rgba(8, 70, 86, 0.1) 1px, transparent 1.5px) 0 0 / 22px 22px,
    linear-gradient(180deg, #f7fbfc, #f0f7f9);
}
:root[data-theme="light"] .section.alt {
  background:
    radial-gradient(50% 55% at 100% 0%, rgba(10, 165, 189, 0.16), transparent 70%),
    radial-gradient(50% 55% at 0% 100%, rgba(16, 201, 154, 0.13), transparent 70%),
    linear-gradient(rgba(8, 70, 86, 0.06) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(8, 70, 86, 0.06) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(180deg, #e6f1f4, #dfedf1);
}
:root[data-theme="light"] .section { border-top: 1px solid rgba(8, 60, 74, 0.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9); }
:root[data-theme="light"] .marquee { background: linear-gradient(180deg, #ffffff, #eef6f8); border-color: rgba(8, 60, 74, 0.12); }
:root[data-theme="light"] .marquee-track span { border-color: rgba(8, 60, 74, 0.14); box-shadow: 0 2px 6px -3px rgba(8, 60, 74, 0.25); }
:root[data-theme="light"] .footer { background: linear-gradient(180deg, #e7f1f4, #dbe9ee); border-top-color: rgba(8, 60, 74, 0.16); }

/* Tarjetas y paneles: borde y sombra definidos */
:root[data-theme="light"] :is(.card, .dev-item, .faq-item, .c-tab, .c-panel, .trust-strip, .numbers, .plan, .mx-list, .mx-detail, .mx-pack, .fl-card, .fl-step .fl-dot):not(.featured) {
  border-color: rgba(8, 60, 74, 0.15);
  box-shadow: var(--shadow-card);
}
:root[data-theme="light"] :is(.card, .dev-item, .c-tab, .plan):not(.featured):hover { box-shadow: var(--shadow-card-hover); border-color: rgba(10, 147, 168, 0.4); }
:root[data-theme="light"] .faq-item.is-open:not(.featured), :root[data-theme="light"] .c-tab.is-active:not(.featured) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10, 147, 168, 0.12), var(--shadow-card); }
:root[data-theme="light"] .numbers { background: linear-gradient(180deg, #ffffff, #f1f8fa); }
:root[data-theme="light"] .plan.featured { background: linear-gradient(180deg, #e6f6f6, #ffffff 62%); }

/* Etiquetas, iconos y textos con más presencia */
:root[data-theme="light"] .kicker { background: rgba(10, 147, 168, 0.12); border-color: rgba(10, 147, 168, 0.38); color: #066577; font-weight: 700; }
:root[data-theme="light"] .ico { box-shadow: 0 10px 22px -10px rgba(10, 147, 168, 0.55); }
:root[data-theme="light"] .c-tab:not(.is-active) .ico { background: #dcebef; }
:root[data-theme="light"] .sec-head p { color: #2f4d55; }
:root[data-theme="light"] .step-copy { opacity: 0.55; }
:root[data-theme="light"] .step-copy.is-active { opacity: 1; }
:root[data-theme="light"] .pay-note, :root[data-theme="light"] .price-legend, :root[data-theme="light"] .work-foot { color: #4a666e; }
:root[data-theme="light"] .btn-ghost { background: #ffffff; border-color: rgba(8, 60, 74, 0.28); box-shadow: 0 2px 6px -3px rgba(8, 60, 74, 0.3); }
:root[data-theme="light"] .btn-ghost:hover { border-color: var(--brand); }
@media (max-width: 991px) { :root[data-theme="light"] .step-copy { opacity: 1; } }
:root[data-theme="light"] .cta .btn-ghost { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); box-shadow: none; color: #fff; }
:root[data-theme="light"] .cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }
:root[data-theme="light"] .cta .kicker { color: #7fe9c6; background: rgba(46, 230, 182, 0.12); border-color: rgba(46, 230, 182, 0.3); }

/* ---------- Módulos: fotos de fondo que cambian (crossfade) ---------- */
.section.has-slides { isolation: isolate; overflow: hidden; --slide-o: 0.2; --slide-t: 28s; }
:root[data-theme="light"] .section.has-slides { --slide-o: 0.17; }
.mx-photos { position: absolute; inset: 0 0 auto 0; height: min(100%, 1180px); z-index: -1; pointer-events: none; overflow: hidden; }
.mx-photos img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: 0;
  filter: blur(1.4px) saturate(0.85); transform: scale(1.06);
  animation: mx-slide var(--slide-t) ease-in-out infinite; animation-delay: calc(var(--i) * var(--slide-t) / 4);
}
:root[data-theme="light"] .mx-photos img { filter: blur(1.4px) saturate(0.75) contrast(1.05); }
.mx-photos::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 55%, var(--bg) 100%),
    radial-gradient(ellipse 80% 90% at 50% 45%, transparent 35%, var(--bg) 100%);
}
@keyframes mx-slide {
  0% { opacity: 0; transform: scale(1.06) translate3d(0, 0, 0); }
  5%, 22% { opacity: var(--slide-o); }
  30% { opacity: 0; transform: scale(1.15) translate3d(-1.2%, -1%, 0); }
  100% { opacity: 0; transform: scale(1.15) translate3d(-1.2%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .mx-photos img { animation: none; }
  .mx-photos img:first-child { opacity: var(--slide-o); }
}

/* ---------- Módulos: solo los principales + acceso al resto ---------- */
.mx-lhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 10px; flex: 0 0 auto; }
.mx-lhead b { display: block; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.01em; }
.mx-lhead span { font-size: 0.8rem; color: var(--ink-3); }
.mx-lhead .mx-n { flex: 0 0 auto; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 99px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--on-brand); background: var(--grad); }
.mx-scroll { display: flex; flex-direction: column; -webkit-mask-image: none; mask-image: none; padding-bottom: 12px; }
.mx-items { gap: 6px; padding-bottom: 10px; }
.mx-item { padding-block: 15px; }
.mx-more {
  position: relative; display: flex; align-items: center; gap: 14px; margin-top: auto; padding: 14px 16px 14px 14px; border-radius: 16px;
  color: var(--ink); border: 1.5px dashed color-mix(in srgb, var(--brand) 55%, transparent); background: color-mix(in srgb, var(--brand) 7%, transparent);
  transition: background 0.3s, transform 0.35s var(--ease), border-color 0.3s;
}
.mx-more:hover { background: color-mix(in srgb, var(--brand) 14%, transparent); border-color: var(--brand); transform: translateY(-2px); }
.mx-more .mx-i { background: var(--grad); color: var(--on-brand); border-color: transparent; }
.mx-more .mx-go { opacity: 1; transform: none; color: var(--brand); font-size: 1rem; }
.mx-more:hover .mx-go { transform: translateX(3px); }
:root[data-theme="light"] .mx-more { background: #eef8fa; }
@media (max-width: 991px) {
  .mx-list { height: auto; }
  .mx-scroll { overflow: visible; flex: 0 0 auto; }
  .mx-more { margin-top: 8px; }
}
.mx-more .mx-t small { white-space: normal; }
