/* =========================================================
   Kodde — estilos de la web
   Basado en el manual de marca (tokens.css). Tema "noche" por defecto.
   ========================================================= */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/sora-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
}

/* ---------- Tokens de marca ---------- */
:root {
  /* Noche */
  --ground: #0C1424;
  --surface: #131E33;
  --surface-2: #1B2840;
  --line: #2A3854;
  --ink: #EEF2F8;
  --ink-muted: #93A0B8;
  --ai: #2A4170;
  --ai-deep: #1B2A4A;
  --kodde: #6E8CFF;
  --kodde-fill: #2E5BFF;
  --on-brand: #FFFFFF;
  --aqua: #48D1C4;
  --aqua-text: #48D1C4;
  --danger: #FF6B78;
  --success: #5BD69A;
  --shadow-pop: 0 8px 24px rgba(0, 0, 0, .45);

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-pill: 999px;
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-text: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 72px;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--kodde); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--kodde); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--kodde-fill); color: var(--on-brand); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--kodde-fill); color: var(--on-brand); padding: 8px 16px; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Tipografía (manual) */
.t-display { font-family: var(--font-display); font-size: clamp(40px, 6vw, 64px); line-height: 1.02; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.t-h1 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.t-h2 { font-family: var(--font-display); font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.t-h3 { font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 600; margin: 0; }

/* ---------- Botones ---------- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--line);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 15px; line-height: 1;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, box-shadow .3s;
  isolation: isolate; overflow: hidden;
}
.btn:hover { text-decoration: none; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--primary { --bg: var(--kodde-fill); --fg: var(--on-brand); --bd: var(--kodde-fill); box-shadow: 0 0 0 0 rgba(46, 91, 255, 0); }
.btn--primary:hover { box-shadow: 0 10px 40px -8px rgba(46, 91, 255, .7); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { --bg: rgba(255,255,255,.02); --bd: var(--line); }
.btn--ghost:hover { --bd: var(--kodde); --bg: rgba(110,140,255,.08); }
.btn--light { --bg: var(--on-brand); --fg: var(--ai-deep); --bd: var(--on-brand); }
.btn--light:hover { box-shadow: 0 12px 40px -10px rgba(255,255,255,.5); }
.btn:active { transform: scale(.97); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(12, 20, 36, .72); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { color: var(--ink-muted); font-size: 14px; padding: 8px 12px; border-radius: var(--radius-pill); transition: color .2s, background-color .2s; }
.nav__links a:hover, .nav__links a.is-current { color: var(--ink); background: rgba(255,255,255,.05); text-decoration: none; }
.nav__cta { display: flex; align-items: center; gap: 8px; }
.nav__mobile-only { display: none; }
.nav__burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.75px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 24px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 96px;
  background:
    radial-gradient(1100px 600px at 80% 20%, rgba(46, 91, 255, .22), transparent 60%),
    radial-gradient(900px 700px at 10% 90%, rgba(42, 65, 112, .65), transparent 60%),
    linear-gradient(180deg, var(--ai-deep) 0%, var(--ground) 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero::after { /* rejilla sutil */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px;
  padding: 6px 14px 6px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-pill);
  background: rgba(255,255,255,.04); color: var(--ink); font-size: 14px; backdrop-filter: blur(6px);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--kodde); box-shadow: 0 0 0 0 rgba(110,140,255,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(110,140,255,0); } 100% { box-shadow: 0 0 0 0 rgba(110,140,255,0); } }

.hero__title { font-size: clamp(42px, 6.6vw, 80px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 24px; color: var(--on-brand); }
.rotator { display: block; position: relative; min-height: 2.04em; }
.rotator > span {
  display: inline-block;
  background: linear-gradient(90deg, var(--on-brand) 0%, var(--kodde) 55%, var(--aqua) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%;
  animation: shimmer 6s linear infinite;
}
.rotator > span.out { animation: wordOut .45s var(--ease) forwards, shimmer 6s linear infinite; }
.rotator > span.in { animation: wordIn .55s var(--ease) forwards, shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes wordOut { to { opacity: 0; transform: translateY(-40%); filter: blur(8px); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(40%); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

.hero__lead { font-size: 18px; line-height: 30px; color: #C9D2E3; max-width: 56ch; margin: 0 0 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--ink-muted); font-size: 14px; }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust .i { width: 16px; height: 16px; color: var(--kodde); }

.brackets g { stroke: var(--kodde); }
.brackets path { stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 1.6s var(--ease) forwards; }
.brackets path:nth-child(2) { animation-delay: .2s; }
.brackets path:nth-child(3) { animation-delay: .4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.brackets--hero { position: absolute; right: -6%; bottom: 6%; width: 46vw; max-width: 720px; opacity: .1; z-index: -1; pointer-events: none; }

.scroll-hint { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255,255,255,.25); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: scrollHint 1.8s var(--ease) infinite; }
@keyframes scrollHint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Consola */
.hero__visual { perspective: 1200px; }
.console {
  position: relative;
  background: linear-gradient(180deg, rgba(19, 30, 51, .92), rgba(12, 20, 36, .92));
  border: 1px solid rgba(110, 140, 255, .25);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 120px -30px rgba(46, 91, 255, .45), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  transition: transform .4s var(--ease);
  overflow: hidden;
}
.console::before { /* borde animado */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, var(--kodde) 85%, 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 6s linear infinite;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --angle: 360deg; } }
.console__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.console__title { font-family: var(--font-mono); }
.console__status { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.node { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 12px var(--aqua); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.console__tabs { display: flex; gap: 4px; padding: 12px 14px 0; }
.console__tabs button { border: 1px solid transparent; background: transparent; color: var(--ink-muted); padding: 6px 14px; border-radius: var(--radius-pill); font-size: 13px; transition: all .2s; }
.console__tabs button:hover { color: var(--ink); }
.console__tabs button.is-active { color: var(--ink); background: rgba(110,140,255,.12); border-color: rgba(110,140,255,.35); }
.console__body { padding: 18px; min-height: 330px; font-size: 14px; line-height: 22px; }
.msg { border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 12px; opacity: 0; transform: translateY(8px); animation: msgIn .45s var(--ease) forwards; }
@keyframes msgIn { to { opacity: 1; transform: none; } }
.msg small { display: block; font-size: 12px; color: var(--ink-muted); margin-bottom: 4px; }
.msg--in { background: var(--surface-2); border: 1px solid var(--line); }
.msg--out { background: rgba(46, 91, 255, .12); border: 1px solid rgba(110, 140, 255, .3); }
.log { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); margin: 0 0 12px; padding-left: 4px; opacity: 0; animation: msgIn .35s var(--ease) forwards; }
.log b { color: var(--kodde); font-weight: 400; }
.log .ok { color: var(--aqua); }
.caret { display: inline-block; width: 7px; height: 15px; background: var(--kodde); vertical-align: -2px; margin-left: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.console__foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); }
.console__foot strong { color: var(--ink); font-weight: 400; font-size: 15px; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { font-size: 18px; font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.marquee__track i { width: 18px; height: 18px; flex: none; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='16 14 38 44'%3E%3Cpath d='M20 34 C 30 33, 38 27, 42.5 19 M20 34 C 32 35, 42 43, 50 52.5' fill='none' stroke='%236E8CFF' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E"); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: 120px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--surface) 0%, var(--ground) 100%); border-top: 1px solid var(--line); }
.section__head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section__head--left { text-align: left; margin: 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--kodde); font-size: 14px; font-weight: 600; }
.kicker::before { content: ""; width: 24px; height: 1.5px; background: currentColor; }
.section__lead { color: var(--ink-muted); font-size: 18px; line-height: 30px; margin: 16px auto 0; max-width: 62ch; }
.section__head--left .section__lead { margin-left: 0; }

/* Tarjetas con foco de luz */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(110, 140, 255, .14), transparent 60%);
}
.spot:hover::before { opacity: 1; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform .35s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(110, 140, 255, .5); }
.card p { margin: 0; color: var(--ink-muted); }
.card__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: rgba(110,140,255,.1); color: var(--kodde); border: 1px solid rgba(110,140,255,.25); }
.card__icon .i { width: 24px; height: 24px; }
.card__list { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 8px; font-size: 14px; }
.card__list li { display: flex; gap: 10px; align-items: baseline; }
.card__list li::before { content: ""; width: 10px; height: 1.5px; background: var(--kodde); flex: none; transform: translateY(-4px); }
.card__link { margin-top: auto; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.card__link::after { content: ""; height: 1.5px; width: 0; background: currentColor; transition: width .3s var(--ease); }
.card:hover .card__link::after { width: 20px; }
.card__link:hover { text-decoration: none; }
.card--feature { background: linear-gradient(160deg, var(--ai) 0%, var(--surface) 70%); border-color: rgba(110,140,255,.4); }
.badge { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--kodde-fill); color: var(--on-brand); }

/* Servicios principales */
.services--main { grid-template-columns: 1fr 1fr; gap: 20px; }
.card--big { padding: 40px; gap: 18px; }
.card--big > p { font-size: 17px; line-height: 28px; max-width: 52ch; }
.card__list--cols { grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 15px; color: var(--ink); }
.card__foot { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.card__meta { font-size: 14px; color: var(--ink-muted); }
.services--extra { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.card--row { flex-direction: row; align-items: flex-start; gap: 18px; padding: 24px; }
.card--row p { margin-top: 6px; font-size: 15px; line-height: 24px; }

/* Comparativa */
.compare { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; }
.compare__row { display: grid; grid-template-columns: .8fr 1.1fr 1.1fr; align-items: center; border-bottom: 1px solid var(--line); transition: background-color .25s; }
.compare__row:last-child { border-bottom: 0; }
.compare__row:not(.compare__row--head):hover { background: rgba(110,140,255,.05); }
.compare__row > span { padding: 20px 24px; display: flex; align-items: center; gap: 12px; color: var(--ink-muted); }
.compare__row > span[role="rowheader"] { color: var(--ink); font-weight: 600; }
.compare__row--head > span { font-weight: 600; color: var(--ink); font-size: 15px; padding-top: 24px; padding-bottom: 24px; }
.compare__us { background: linear-gradient(90deg, rgba(46,91,255,.12), rgba(46,91,255,.04)); color: var(--ink) !important; align-self: stretch; }
.compare__row--head .compare__us { background: var(--kodde-fill); color: var(--on-brand) !important; }
.compare i { width: 20px; height: 20px; flex: none; border-radius: 50%; position: relative; }
.compare i.x { border: 1.5px solid var(--line); }
.compare i.x::before, .compare i.x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.5px; margin: -.75px 0 0 -4.5px; background: var(--ink-muted); transform: rotate(45deg); }
.compare i.x::after { transform: rotate(-45deg); }
.compare i.ok { background: var(--kodde-fill); }
.compare i.ok::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid var(--on-brand); border-width: 0 1.75px 1.75px 0; transform: rotate(45deg); }

/* ---------- Antes / después ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.split__copy .section__lead { margin-left: 0; margin-bottom: 32px; }
.switch { display: inline-flex; align-items: center; gap: 16px; cursor: pointer; margin-bottom: 32px; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { width: 64px; height: 36px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--line); position: relative; transition: background-color .3s; }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink-muted); transition: transform .4s var(--ease), background-color .3s; }
.switch input:checked + .switch__track { background: var(--kodde-fill); border-color: var(--kodde-fill); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(28px); background: var(--on-brand); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--kodde); outline-offset: 3px; }
.switch__label { font-weight: 600; font-size: 18px; }
.switch__label .on { display: none; color: var(--kodde); }
.switch input:checked ~ .switch__label .on { display: inline; }
.switch input:checked ~ .switch__label .off { display: none; }

.tasks { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 24px; }
.tasks__head { display: flex; justify-content: space-between; color: var(--ink-muted); font-size: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tasks__total b { color: var(--ink); font-weight: 400; transition: color .3s; }
.tasks[data-state="after"] .tasks__total b { color: var(--aqua-text); }
.tasks ul { list-style: none; margin: 0; padding: 8px 0 0; }
.tasks li { display: grid; grid-template-columns: 1fr 1.1fr 92px; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.tasks li:last-child { border-bottom: 0; }
.tasks__bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.tasks__bar i { display: block; height: 100%; width: var(--b); border-radius: inherit; background: var(--ink-muted); transition: width .9s var(--ease), background .6s; }
.tasks[data-state="after"] .tasks__bar i { width: var(--a); background: var(--kodde); }
.tasks li:nth-child(2) .tasks__bar i { transition-delay: .06s; }
.tasks li:nth-child(3) .tasks__bar i { transition-delay: .12s; }
.tasks li:nth-child(4) .tasks__bar i { transition-delay: .18s; }
.tasks li:nth-child(5) .tasks__bar i { transition-delay: .24s; }
.tasks__time { text-align: right; font-size: 14px; color: var(--ink); }
.tasks__note { margin: 16px 0 0; font-size: 13px; color: var(--ink-muted); }

/* ---------- Calculadora ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.calc__inputs { padding: 40px; display: grid; gap: 32px; }
.range__top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 14px; }
.range__top label { font-size: 15px; color: var(--ink); }
.range__top output { font-size: 18px; color: var(--kodde); min-width: 60px; text-align: right; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--kodde-fill) var(--p), var(--surface-2) var(--p)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--surface-2); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--kodde-fill); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--on-brand); border: 5px solid var(--kodde-fill); box-shadow: 0 0 0 6px rgba(46,91,255,.18); transition: transform .2s, box-shadow .2s; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--on-brand); border: 5px solid var(--kodde-fill); box-shadow: 0 0 0 6px rgba(46,91,255,.18); }
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(46,91,255,.22); }

.calc__result {
  position: relative; overflow: hidden; padding: 40px;
  background: radial-gradient(500px 300px at 100% 0%, rgba(46,91,255,.45), transparent 70%), var(--ai);
  color: var(--on-brand); display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.brackets--calc { position: absolute; right: -40px; bottom: -20px; width: 300px; opacity: .14; }
.brackets--calc g { stroke: var(--on-brand); }
.calc__label { margin: 0; font-size: 16px; color: #C9D2E3; }
.calc__money { font-size: clamp(44px, 6vw, 72px); line-height: 1.05; margin: 8px 0 24px; letter-spacing: -0.03em; }
.calc__stats { display: flex; gap: 40px; margin-bottom: 32px; }
.calc__stats span { display: block; font-size: 28px; line-height: 1.2; }
.calc__stats small { color: #C9D2E3; font-size: 14px; }
.calc__note { font-size: 12px; color: #A9B6CE; margin: 16px 0 0; }

/* ---------- Proceso ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; padding-top: 40px; }
.timeline__rail { position: absolute; top: 8px; left: 0; right: 0; height: 2px; background: var(--line); border-radius: 2px; }
.timeline__fill { position: absolute; inset: 0 auto 0 0; width: var(--progress, 0%); background: linear-gradient(90deg, var(--kodde-fill), var(--kodde)); border-radius: inherit; }
.timeline__node { position: absolute; top: 50%; left: var(--progress, 0%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 6px rgba(72,209,196,.18), 0 0 20px var(--aqua); }
.step { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .4s, transform .4s var(--ease); }
.step.is-lit { border-color: rgba(110,140,255,.55); }
.step__num { display: inline-block; font-size: 14px; color: var(--kodde); margin-bottom: 16px; }
.step p { margin: 10px 0 0; color: var(--ink-muted); }

/* ---------- Contacto ---------- */
.section--contact { background: radial-gradient(800px 500px at 0% 30%, rgba(42,65,112,.5), transparent 70%), var(--ground); }
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.contact__aside .section__lead { margin-left: 0; }
.direct { margin-top: 40px; display: grid; gap: 12px; }
.direct__title { margin: 0 0 4px; font-weight: 600; }
.direct__item { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); transition: border-color .3s, transform .3s var(--ease); }
.direct__item:hover { text-decoration: none; border-color: var(--kodde); transform: translateX(4px); }
.direct__item strong { display: block; font-weight: 600; }
.direct__item small { color: var(--ink-muted); font-size: 14px; }
.direct__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--kodde-fill); color: var(--on-brand); flex: none; }

.wizard { position: relative; padding: 40px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-pop); min-height: 520px; overflow: hidden; }
.wizard__progress { height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; margin-bottom: 12px; }
.wizard__progress span { display: block; height: 100%; width: 33.33%; background: linear-gradient(90deg, var(--kodde-fill), var(--kodde)); transition: width .5s var(--ease); }
.wizard__count { margin: 0 0 24px; font-size: 13px; color: var(--ink-muted); }
.wizard__step { border: 0; padding: 0; margin: 0; min-width: 0; display: none; }
.wizard__step.is-active { display: block; animation: stepIn .5s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.wizard__step legend { padding: 0; margin-bottom: 8px; }
.wizard__hint { margin: 0 0 20px; color: var(--ink-muted); font-size: 14px; }
.wizard__label { margin: 24px 0 12px; font-weight: 600; }
.wizard__step legend + .wizard__label { margin-top: 16px; }
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: 15px; transition: all .2s var(--ease); background: rgba(255,255,255,.02); }
.chip span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink-muted); transition: all .2s; flex: none; }
.chip:hover span { border-color: var(--kodde); }
.chip input:checked + span { border-color: var(--kodde-fill); background: rgba(46,91,255,.16); color: var(--ink); }
.chip input:checked + span::before { border-color: var(--kodde); background: var(--kodde) radial-gradient(circle, var(--on-brand) 2px, transparent 2.5px); }
.chip input:focus-visible + span { outline: 2px solid var(--kodde); outline-offset: 2px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; padding: 22px 16px 8px; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--ground); color: var(--ink); font: inherit; font-size: 16px; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--kodde); box-shadow: 0 0 0 4px rgba(110,140,255,.15); }
.field label { position: absolute; left: 17px; top: 15px; color: var(--ink-muted); font-size: 16px; pointer-events: none; transition: all .2s var(--ease); transform-origin: left top; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 6px; font-size: 12px; color: var(--kodde); }
.field.has-error input { border-color: var(--danger); }
.field__error { display: none; margin: 6px 0 0; font-size: 13px; color: var(--danger); }
.field__error.is-visible { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: 14px; color: var(--ink-muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--kodde-fill); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 16px 0 0; font-size: 14px; min-height: 22px; }
.form__status.is-error { color: var(--danger); }
#submitBtn.is-loading { pointer-events: none; opacity: .8; }
#submitBtn.is-loading::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

.wizard__done { text-align: center; padding: 40px 0; animation: stepIn .5s var(--ease); }
.wizard__done p { color: var(--ink-muted); max-width: 40ch; margin: 12px auto 28px; }
.done__mark { width: 96px; height: 96px; margin: 0 auto 24px; }
.done__mark rect { fill: var(--ink); transform-origin: 13px 56px; animation: grow .5s var(--ease) both; }
.done__mark path { fill: none; stroke: var(--kodde); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s var(--ease) .35s forwards; }
.done__mark circle { fill: var(--aqua); transform-origin: 48.5px 11.5px; animation: pop .45s var(--ease) .9s both; }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes pop { from { transform: scale(0); } 70% { transform: scale(1.3); } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq__list { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); transition: border-color .3s; }
.faq details[open] { border-color: rgba(110,140,255,.45); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 1.75px solid var(--kodde); border-bottom: 1.75px solid var(--kodde); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0; padding: 0 22px 22px; color: var(--ink-muted); }

/* ---------- CTA final ---------- */
.final { position: relative; overflow: hidden; padding: 140px 0; text-align: center; background: radial-gradient(700px 400px at 50% 0%, rgba(46,91,255,.4), transparent 70%), var(--ai); isolation: isolate; }
.final .t-display { color: var(--on-brand); margin-bottom: 20px; }
.final .hero__lead { margin: 0 auto 36px; }
.final .hero__ctas { justify-content: center; }
.final .btn--ghost { --bd: rgba(255,255,255,.3); color: var(--on-brand); }
.brackets--final { position: absolute; left: 50%; top: 50%; width: 1100px; transform: translate(-50%, -50%); opacity: .08; z-index: -1; }
.brackets--final g { stroke: var(--on-brand); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--ground); }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand img { height: 40px; width: auto; }
.footer__brand p { color: var(--ink-muted); margin: 16px 0 0; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col p { margin: 0 0 6px; font-weight: 600; }
.footer__col a { color: var(--ink-muted); font-size: 15px; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 14px; }

/* ---------- Flotantes ---------- */
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--kodde-fill); color: var(--on-brand);
  box-shadow: 0 12px 32px -6px rgba(46,91,255,.7);
  transform: scale(0); transition: transform .45s var(--ease);
}
.fab.is-visible { transform: scale(1); }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--kodde); animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.fab .i { width: 26px; height: 26px; }
.fab:hover { text-decoration: none; }
.fab__tip {
  position: absolute; right: 72px; white-space: nowrap; padding: 10px 14px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 14px; box-shadow: var(--shadow-pop);
  opacity: 0; transform: translateX(8px); transition: all .3s var(--ease); pointer-events: none;
}
.fab:hover .fab__tip, .fab.show-tip .fab__tip { opacity: 1; transform: none; }

.mbar { display: none; }

.cursor-glow { position: fixed; left: 0; top: 0; width: 480px; height: 480px; margin: -240px 0 0 -240px; border-radius: 50%; pointer-events: none; z-index: 1; background: radial-gradient(circle, rgba(110,140,255,.07), transparent 65%); transform: translate3d(-999px, -999px, 0); mix-blend-mode: screen; }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services--main { grid-template-columns: 1fr; }
  .services--extra { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 560px; }
  .split, .contact, .faq { grid-template-columns: 1fr; gap: 40px; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline__rail { display: none; }
  .timeline { padding-top: 0; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .hide-sm { display: none; }
}
@media (max-width: 860px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 12px 16px 24px; background: rgba(12,20,36,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { font-size: 18px; padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav__mobile-only { display: block; }
  .calc { grid-template-columns: 1fr; }
  .section { padding: 88px 0; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .container { padding: 0 16px; }
  .nav__cta .btn--primary { display: none; }
  .nav__logo img { height: 34px; }
  .hero { padding-top: calc(var(--nav-h) + 32px); padding-bottom: 72px; }
  .hero__lead { font-size: 16px; line-height: 26px; }
  .hero__ctas .btn { width: 100%; white-space: normal; text-align: center; }
  .console__body { min-height: 300px; font-size: 13px; }
  .services, .timeline, .fields, .footer__inner { grid-template-columns: 1fr; }
  .card--big { padding: 28px 22px; }
  .card__list--cols { grid-template-columns: 1fr; }
  .compare__row { grid-template-columns: 1fr 1fr; }
  .compare__row > span[role="rowheader"] { grid-column: 1 / -1; padding-bottom: 0; }
  .compare__row--head > span:first-child { display: none; }
  .compare__row > span { padding: 14px 16px; font-size: 14px; line-height: 21px; align-items: flex-start; }
  .tasks { padding: 18px; }
  .tasks li { grid-template-columns: 1fr 72px; gap: 8px 12px; }
  .tasks__bar { grid-column: 1 / -1; grid-row: 2; }
  .calc__inputs, .calc__result, .wizard { padding: 24px; }
  .calc__stats { gap: 24px; }
  .wizard__nav .btn { flex: 1; }
  .scroll-hint { display: none; }
  .fab { display: none; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(12,20,36,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .mbar.is-visible { transform: none; }
  .footer { padding-bottom: 96px; }
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
