/* ==========================================================================
   Diwilo — sistema visual "Nocturne"
   Fondo azul-gris casi neutro, Inter + Space Grotesk, acento violeta usado
   como línea y brillo, no como relleno.
   ========================================================================== */

:root {
  --bg: #05060f;
  --panel: rgba(5, 6, 15, 0.97);
  --glass: rgba(186, 214, 247, 0.03);
  --fill: rgba(186, 214, 247, 0.06);
  --fill-2: rgba(199, 211, 234, 0.06);
  --tag: rgba(199, 211, 234, 0.12);
  --edge: rgba(186, 215, 247, 0.12);

  --ink: #d1e4fa;
  --ink2: #c7d3ea;
  --ink3: #9da7ba;
  --hi: #d8ecf8;
  --sky: #b6d9fc;
  --white: #ffffff;

  --violet: #8f45f2;
  --violet-soft: rgba(168, 85, 247, 0.18);
  --violet-on: rgba(168, 85, 247, 0.14);
  --violet-line: rgba(184, 104, 248, 0.6);
  --lilac: #c99bfa;

  --f-ui: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --f-dis: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --hair: inset 0 0 0 1px var(--edge);
  --el-card: inset 0 1px 1px rgba(199, 211, 234, 0.12), inset 0 24px 48px rgba(199, 211, 234, 0.05), 0 24px 32px rgba(6, 6, 14, 0.7);
  --el-modal: inset 0 1px 1px rgba(216, 236, 248, 0.2), inset 0 24px 48px rgba(168, 216, 245, 0.06), 0 16px 32px rgba(0, 0, 0, 0.3);
  --glow: inset 0 0 0 1px var(--violet-line), 0 0 18px rgba(168, 85, 247, 0.22);

  --r-sm: 6px;
  --r-md: 16px;
  --r-pill: 999px;

  --gutter: 40px;
  --section: 120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; transition: color 160ms ease; }
a:hover { color: var(--white); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(168, 85, 247, 0.4); color: var(--white); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* ---------- Fondo de página: rejilla + haz de luz ---------- */
.page { position: relative; min-height: 100vh; }
.page-bg { position: absolute; inset: 0 0 auto 0; height: 1400px; pointer-events: none; overflow: hidden; z-index: 0; }
.page-bg__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(186, 215, 247, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(186, 215, 247, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 80%);
  will-change: transform;
}
.page-bg__beam {
  position: absolute; top: 0; left: 0; right: 0; height: 760px;
  background: conic-gradient(at 50% -5%, transparent 45%, rgba(168, 85, 247, 0.3) 48.5%, rgba(124, 145, 182, 0.5) 50%, rgba(168, 85, 247, 0.3) 51.5%, transparent 55%);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  transform-origin: 50% 0;
  animation: beam-in 1.6s var(--ease) both;
  will-change: transform, opacity;
}
@keyframes beam-in { from { opacity: 0; transform: scaleX(0.3); } to { opacity: 1; transform: none; } }
.page > *:not(.page-bg):not(.nav-wrap) { position: relative; z-index: 1; }

/* ---------- Barra de progreso de scroll ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, transparent, var(--violet) 30%, var(--lilac));
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
  pointer-events: none;
}

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: var(--section); }
.section--last { padding-bottom: var(--section); }
.center { text-align: center; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 240px), 100%), 1fr)); }
.split { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 290px), 100%), 1fr)); align-items: start; }
.stack { display: grid; gap: var(--gap, 8px); align-content: start; }
.row { display: flex; flex-wrap: wrap; gap: var(--gap, 8px); }
.row--center { justify-content: center; }

/* ---------- Tipografía ---------- */
.eyebrow { margin: 0 0 28px; font-family: var(--f-mono); font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink2); }
.eyebrow-rule { display: flex; align-items: center; gap: 20px; justify-content: center; margin-bottom: 28px; }
.eyebrow-rule--lg { margin-bottom: 48px; }
.eyebrow-rule .eyebrow { margin: 0; white-space: nowrap; }
.eyebrow-rule::before, .eyebrow-rule::after { content: ""; height: 1px; flex: 1; max-width: 200px; transition: transform 1.1s var(--ease) 0.15s; }
.eyebrow-rule::before { background: linear-gradient(90deg, transparent, rgba(176, 92, 248, 0.5)); transform-origin: 100% 50%; }
.eyebrow-rule::after { background: linear-gradient(90deg, rgba(176, 92, 248, 0.5), transparent); transform-origin: 0 50%; }

.h1 {
  margin: 0 auto 24px; max-width: 18ch;
  font-family: var(--f-dis); font-weight: 500; font-size: clamp(38px, 6vw, 68px); line-height: 1.14;
  background: linear-gradient(0deg, #98c0ef 0%, var(--hi) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-wrap: pretty;
}
.h1--sm { font-size: clamp(34px, 5vw, 56px); line-height: 1.16; max-width: 20ch; }
.h2 { margin: 0 auto 16px; max-width: 22ch; font-family: var(--f-dis); font-weight: 500; font-size: clamp(30px, 4vw, 44px); line-height: 1.16; color: var(--hi); text-wrap: pretty; }
.h3 { margin: 0 0 8px; font-family: var(--f-dis); font-weight: 500; font-size: 20px; line-height: 1.25; color: var(--hi); }
.h3--sm { font-size: 18px; }
.h3--lg { font-size: 24px; line-height: 1.17; margin-bottom: 14px; }
.lead { margin: 0 auto 32px; max-width: 640px; font-size: 18px; line-height: 1.5; color: var(--ink2); }
.sub { margin: 0 auto 48px; max-width: 640px; font-size: 16px; line-height: 1.5; color: var(--ink2); }
.body { margin: 0; font-size: 14px; line-height: 1.43; color: var(--ink2); }
.muted { color: var(--ink3); }
.mono { font-family: var(--f-mono); font-size: 12px; color: var(--ink3); margin: 0; }
.note { margin: 16px 0 0; font-size: 12px; color: var(--ink3); }
.gradient-text { background: linear-gradient(0deg, #98c0ef 0%, var(--hi) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Botones y píldoras ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-size: 14px; font-weight: 500; line-height: 1.2; padding: 11px 20px; border-radius: var(--r-pill);
  border: 0; cursor: pointer; color: var(--ink); background: transparent; box-shadow: var(--hair);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease, color 180ms ease;
}
.btn:hover { background: var(--fill); color: var(--white); }
.btn:active { transform: scale(0.98); }
.btn--primary { color: var(--white); background: var(--violet-soft); box-shadow: var(--glow); }
.btn--primary:hover { background: rgba(168, 85, 247, 0.3); box-shadow: inset 0 0 0 1px var(--violet-line), 0 0 28px rgba(168, 85, 247, 0.4); }
.btn--sm { font-size: 13px; padding: 9px 16px; }
.btn--lg { padding: 12px 22px; }
.btn--solid { border-radius: var(--r-sm); background: var(--violet); color: var(--white); box-shadow: none; font-size: 15px; padding: 13px 24px; }
.btn--solid:hover { background: #9d5bf5; }
.btn--block { width: 100%; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  cursor: pointer; border: 0; font-size: 14px; font-weight: 500; padding: 10px 18px; border-radius: var(--r-pill);
  background: transparent; color: var(--ink2); box-shadow: var(--hair);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}
.pill:hover { background: var(--fill); color: var(--white); }
.pill.is-active { background: var(--violet-on); color: var(--white); box-shadow: inset 0 0 0 1px var(--violet-line); }
.pill--sm { font-size: 13px; padding: 7px 14px; font-weight: 400; }

.list-btn {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  cursor: pointer; border: 0; padding: 14px 18px; border-radius: var(--r-pill);
  background: transparent; color: var(--ink2); box-shadow: var(--hair);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 220ms var(--ease);
}
.list-btn:hover { background: var(--fill); transform: translateX(4px); }
.list-btn i { font-size: 18px; color: var(--ink3); transition: color 180ms ease; }
.list-btn.is-active { background: var(--violet-on); box-shadow: inset 0 0 0 1px var(--violet-line); color: var(--white); }
.list-btn.is-active i { color: var(--lilac); }
.list-btn__title { display: block; font-family: var(--f-dis); font-weight: 500; font-size: 15px; }
.list-btn__meta { display: block; font-size: 12px; color: var(--ink3); }
.list-btn__aside { margin-left: auto; font-family: var(--f-mono); font-size: 11px; color: var(--ink3); }

.tag { display: inline-block; font-size: 12px; font-weight: 500; color: var(--ink); padding: 4px 8px; border-radius: var(--r-sm); background: var(--tag); }

/* ---------- Superficies ---------- */
.card { position: relative; border-radius: var(--r-md); background: var(--glass); padding: 24px; box-shadow: var(--el-card); overflow: hidden; isolation: isolate; }
.card--flat { box-shadow: var(--hair); }
.card--col { display: flex; flex-direction: column; gap: 12px; }
/* Foco de luz que sigue al cursor */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 300ms ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(168, 85, 247, 0.14), transparent 60%);
}
.card:hover::before { opacity: 1; }
.panel { border-radius: var(--r-md); background: var(--panel); padding: 32px; box-shadow: var(--el-modal); }
.panel--tight { padding: 24px; }
.inset { padding: 14px 16px; border-radius: var(--r-sm); background: var(--fill-2); box-shadow: var(--hair); font-size: 14px; color: var(--ink2); }

.icon-circle { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--fill); box-shadow: var(--hair); color: var(--lilac); font-size: 24px; }
.icon-circle--lg { width: 60px; height: 60px; }
.icon-circle--sm { width: 40px; height: 40px; font-size: 18px; color: var(--ink); }
.icon-circle img { width: 32px; height: 32px; object-fit: contain; mix-blend-mode: lighten; }

/* ---------- Navegación ---------- */
.nav-wrap {
  /* menú fijo arriba mientras se recorre la página */
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 6, 15, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 -1px 0 var(--edge);
  transition: background 240ms ease;
}
.nav-wrap.is-scrolled { background: rgba(5, 6, 15, 0.9); }
.nav { display: flex; align-items: center; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 16px var(--gutter); transition: padding 240ms ease; }
.nav-wrap.is-scrolled .nav { padding-top: 11px; padding-bottom: 11px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { width: 26px; height: 26px; object-fit: contain; }
.brand span { font-family: var(--f-dis); font-weight: 500; font-size: 17px; color: var(--hi); }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__link { font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: var(--r-pill); color: var(--ink2); }
.nav__link:hover { background: var(--fill); }
.nav__link[aria-current="page"] { background: var(--violet-on); box-shadow: inset 0 0 0 1px var(--violet-line); color: var(--white); }
.nav__cta { margin-left: 10px; padding: 9px 18px; }
.nav__toggle { display: none; width: 40px; height: 40px; place-items: center; border: 0; border-radius: var(--r-pill); background: transparent; box-shadow: var(--hair); color: var(--ink); font-size: 20px; cursor: pointer; }

/* ---------- Pie ---------- */
.footer { box-shadow: inset 0 1px 0 var(--edge); padding: 72px var(--gutter) 36px; background: var(--bg); }
.footer__grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 48px; }
.footer__title { margin: 0 0 16px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink3); }
.footer__links { display: grid; gap: 10px; font-size: 14px; }
.footer__links a { display: flex; align-items: center; gap: 8px; color: var(--ink2); }
.footer__links a:hover { color: var(--white); }
.footer__bottom { max-width: 1200px; margin: 56px auto 0; padding-top: 24px; box-shadow: inset 0 1px 0 var(--edge); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 12px; color: var(--ink3); }
.footer__bottom a { color: var(--ink3); }

/* ---------- Hero ---------- */
.hero { padding-top: 100px; text-align: center; }
.hero__demo { max-width: 520px; margin: 64px auto 0; text-align: left; }
.word { display: inline-block; }
/* background-clip:text no se hereda a hijos transformados: cada palabra lleva su degradado */
.h1[data-split] .word { background: linear-gradient(0deg, #98c0ef 0%, var(--hi) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }

/* ---------- Capacidades ---------- */
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; }
.cap { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; font-size: 14px; color: var(--ink2); }
.cap .icon-circle { transition: transform 400ms var(--ease), box-shadow 300ms ease; }
.cap:hover .icon-circle { transform: translateY(-4px); box-shadow: var(--glow); }

/* ---------- Ruta (línea de tiempo ligada al scroll) ---------- */
.route { position: relative; max-width: 760px; margin: 0 auto; padding-left: 56px; }
.route__track, .route__fill { position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; }
.route__track { background: var(--edge); }
.route__fill { background: linear-gradient(180deg, var(--violet), var(--lilac)); box-shadow: 0 0 12px rgba(168, 85, 247, 0.6); transform-origin: 50% 0; transform: scaleY(var(--route, 0)); }
.route__step { position: relative; padding: 0 0 56px; }
.route__step:last-child { padding-bottom: 0; }
.route__dot {
  position: absolute; left: -56px; top: 0; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; background: var(--bg); box-shadow: var(--hair); color: var(--ink3); font-family: var(--f-mono); font-size: 12px;
  transition: box-shadow 400ms ease, color 400ms ease, background 400ms ease;
}
.route__step.is-lit .route__dot { color: var(--white); background: #12082a; box-shadow: var(--glow); }
.route__step .h3 { transition: color 400ms ease; }
.route__step:not(.is-lit) .h3 { color: var(--ink3); }

/* ---------- Estadísticas ---------- */
.stat { text-align: center; }
.stat__value { margin: 0; font-family: var(--f-dis); font-weight: 500; font-size: 44px; line-height: 1.16; font-variant-numeric: tabular-nums; }
.stat__label { margin: 6px 0 0; font-size: 14px; color: var(--ink2); }

/* ---------- Casos ---------- */
.shot { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--glass); box-shadow: var(--hair); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity 400ms ease, transform 900ms var(--ease); }
.shot img.is-swapping { opacity: 0; transform: scale(1.03); }
.shot--blend img { mix-blend-mode: lighten; }
.checks { display: grid; gap: 10px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.43; color: var(--ink2); padding-bottom: 10px; box-shadow: inset 0 -1px 0 var(--edge); }
.check:last-child { box-shadow: none; padding-bottom: 0; }
.check i { color: var(--lilac); margin-top: 3px; }
.swap { transition: opacity 260ms ease, transform 360ms var(--ease); }
.swap.is-out { opacity: 0; transform: translateY(8px); }

/* ---------- Clientes (cinta) ---------- */
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.logo-tile { height: 88px; min-width: 220px; display: grid; place-items: center; padding: 16px 28px; border-radius: var(--r-md); background: var(--glass); box-shadow: var(--hair); font-family: var(--f-dis); font-weight: 500; font-size: 15px; color: var(--ink2); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }

/* ---------- Fundador ---------- */
.founder { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; text-align: left; max-width: 820px; margin: 0 auto; }
.founder__avatar { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; padding: 4px; background: linear-gradient(135deg, var(--violet), rgba(124, 145, 182, 0.5)); box-shadow: 0 0 32px rgba(168, 85, 247, 0.35); }
.quote { margin: 0 0 14px; font-family: var(--f-dis); font-weight: 500; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.25; color: var(--hi); text-wrap: pretty; }

/* ---------- Demos ---------- */
.demo { border-radius: var(--r-md); background: var(--panel); padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--el-modal); text-align: left; }
.demo__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.demo__label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink3); }
.status { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink3); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.status.is-on { color: var(--lilac); }
.status.is-running::before { animation: pulse 0.9s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

.flow__steps { display: grid; gap: 8px; position: relative; }
.flow__step { font-size: 14px; padding: 12px 14px; }
.flow__step .list-btn__aside { font-size: 11px; }
.flow__step { position: relative; overflow: hidden; }
.flow__step::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--lilac); transform: scaleX(0); transform-origin: 0 50%; }
.flow__step.is-running::after { animation: fill 850ms linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

.board__metrics { display: flex; flex-wrap: wrap; gap: 32px; }
.board__big { margin: 0; font-family: var(--f-dis); font-weight: 500; font-size: 34px; line-height: 1.17; }
.board__bars { display: flex; align-items: flex-end; gap: 7px; height: 140px; }
.bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; cursor: crosshair; }
.bar__fill { flex: none; height: calc((100% - 18px) * var(--h, 0) / 100); border-radius: 6px 6px 0 0; background: rgba(168, 85, 247, 0.3); box-shadow: var(--hair); transition: height 700ms var(--ease), background 160ms ease, box-shadow 160ms ease; }
.bar span { margin-top: 8px; font-family: var(--f-mono); font-size: 10px; text-align: center; color: var(--ink3); }
.bar:hover .bar__fill, .bar.is-hover .bar__fill { background: var(--lilac); box-shadow: 0 0 14px rgba(168, 85, 247, 0.5); }
.bar:hover span { color: var(--hi); }

.agent { padding: 0; gap: 0; overflow: hidden; min-height: 460px; }
.agent__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; box-shadow: inset 0 -1px 0 var(--edge); }
.agent__log { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 320px; min-height: 220px; }
.msg { max-width: 84%; padding: 11px 15px; border-radius: var(--r-md); font-size: 14px; line-height: 1.43; white-space: pre-line; animation: msg-in 380ms var(--ease) both; }
.msg--bot { align-self: flex-start; background: var(--fill-2); box-shadow: var(--hair); color: var(--ink); }
.msg--me { align-self: flex-end; background: rgba(168, 85, 247, 0.22); box-shadow: inset 0 0 0 1px rgba(184, 104, 248, 0.4); color: var(--white); }
.msg--typing { color: var(--ink3); }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.agent__foot { padding: 16px 20px 20px; box-shadow: inset 0 1px 0 var(--edge); display: grid; gap: 12px; }

.input {
  width: 100%; font-family: var(--f-ui); font-size: 14px; color: var(--white); padding: 11px 14px;
  border: 0; border-radius: var(--r-sm); background: var(--fill-2); box-shadow: var(--hair); outline: none;
  transition: box-shadow 180ms ease;
}
.input:focus { box-shadow: inset 0 0 0 1px var(--violet-line); }
.input::placeholder { color: rgba(199, 211, 234, 0.6); }
textarea.input { resize: vertical; line-height: 1.5; }
.field { display: grid; gap: 7px; }
.field label, .field .label { font-size: 13px; color: var(--ink2); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: var(--ink3); }
.consent input { margin-top: 2px; accent-color: var(--violet); }
.consent a { text-decoration: underline; color: var(--ink2); }

/* ---------- Navegador de proyectos ---------- */
.browser { border-radius: var(--r-md); background: var(--panel); overflow: hidden; box-shadow: var(--el-modal); }
.browser__bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; box-shadow: inset 0 -1px 0 var(--edge); }
.browser__bar > span:not(.browser__url) { width: 9px; height: 9px; border-radius: 50%; background: rgba(186, 215, 247, 0.2); }
.browser__url { flex: 1; margin-left: 10px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--fill-2); box-shadow: var(--hair); font-family: var(--f-mono); font-size: 11px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser .shot { border-radius: 0; box-shadow: inset 0 -1px 0 var(--edge); }
.block-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: var(--r-sm); background: var(--fill-2); box-shadow: var(--hair); font-size: 13px; color: var(--ink2); }
.block-row i { color: var(--lilac); font-size: 17px; }
.block-row span:first-of-type { flex: 1; }
.block-row .meter { height: 5px; border-radius: var(--r-pill); background: rgba(186, 214, 247, 0.24); transition: width 600ms var(--ease); }

/* ---------- Fases de metodología ---------- */
.phase { display: flex; gap: 14px; align-items: center; padding: 13px 16px; border-radius: var(--r-pill); box-shadow: var(--hair); transition: background 180ms ease, box-shadow 180ms ease; }
.phase:hover { background: var(--violet-on); box-shadow: inset 0 0 0 1px var(--violet-line); }
.phase__num { font-family: var(--f-mono); font-size: 12px; color: var(--ink3); min-width: 24px; transition: color 180ms ease; }
.phase:hover .phase__num { color: var(--lilac); }
.phase__label { flex: 1; font-size: 14px; color: var(--ink2); }
.phase__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(186, 215, 247, 0.18); transition: background 180ms ease; }
.phase:hover .phase__dot { background: var(--lilac); }

/* ---------- Ecosistema ---------- */
.tool { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r-md); background: var(--glass); box-shadow: var(--hair); cursor: default; transition: box-shadow 220ms ease, transform 300ms var(--ease); }
.tool:hover, .tool:focus-visible { box-shadow: inset 0 0 0 1px var(--violet-line); transform: translateY(-3px); }
.tool__logo { display: grid; place-items: center; height: 40px; color: var(--ink); font-size: 26px; }
/* Logos en silueta clara para que convivan con el fondo oscuro */
.tool__logo img { max-width: 90px; max-height: 28px; object-fit: contain; filter: brightness(0) invert(0.86); opacity: 0.85; transition: filter 300ms ease, opacity 300ms ease; }
.tool:hover .tool__logo img, .tool:focus-visible .tool__logo img { filter: brightness(0) invert(1); opacity: 1; }
.tool__name { margin: 0; font-family: var(--f-dis); font-weight: 500; font-size: 15px; color: var(--hi); }
.tool__role { margin: 0; font-size: 12px; color: var(--ink3); }

/* ---------- Calculadora ---------- */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--violet) var(--p, 50%), var(--edge) var(--p, 50%)); outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--hi); box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.3); transition: box-shadow 160ms ease; }
input[type="range"]::-webkit-slider-thumb:hover { box-shadow: 0 0 0 7px rgba(168, 85, 247, 0.3); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--hi); box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.3); }

/* ---------- Texto legal ---------- */
.prose { max-width: 760px; margin: 0 auto; color: var(--ink2); font-size: 16px; line-height: 1.65; }
.prose h2 { font-family: var(--f-dis); font-weight: 500; font-size: 22px; color: var(--hi); margin: 48px 0 12px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration: underline; }


/* ---------- Botones flotantes: WhatsApp + chat IA ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab__btn {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; cursor: pointer;
  color: var(--white); font-size: 26px; background: radial-gradient(circle at 30% 25%, #a66cf5, var(--violet) 60%, #5b21b6);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 0 0 1px var(--violet-line), 0 10px 28px rgba(143, 69, 242, 0.45);
  transition: transform 300ms var(--ease), box-shadow 300ms ease;
  animation: fab-in 700ms var(--ease) both; animation-delay: var(--d, 900ms);
}
.fab__btn:hover { transform: translateY(-3px) scale(1.05); color: var(--white); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 0 0 1px var(--lilac), 0 14px 36px rgba(143, 69, 242, 0.6); }
.fab__btn--wa { width: 50px; height: 50px; font-size: 24px; background: rgba(12, 10, 28, 0.92); box-shadow: inset 0 0 0 1px var(--violet-line), 0 0 18px rgba(168, 85, 247, 0.3), 0 10px 24px rgba(0, 0, 0, 0.5); --d: 1100ms; }
.fab__btn--wa i { color: var(--lilac); }
.fab__btn--wa:hover { background: rgba(30, 18, 60, 0.95); }
/* anillo que late para llamar la atención */
.fab__btn--ai::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--lilac); opacity: 0; animation: ring 2.6s ease-out 2.2s infinite; }
.fab.is-open .fab__btn--ai::after { animation: none; }
@keyframes ring { 0% { opacity: 0.7; transform: scale(0.9); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes fab-in { from { opacity: 0; transform: translateY(24px) scale(0.6); } }
.fab__label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%); opacity: 0; pointer-events: none; white-space: nowrap;
  font-size: 13px; font-weight: 500; color: var(--hi); padding: 7px 12px; border-radius: var(--r-pill);
  background: rgba(10, 12, 23, 0.95); box-shadow: var(--hair); transition: opacity 200ms ease, transform 300ms var(--ease);
}
.fab__btn:hover .fab__label, .fab__btn:focus-visible .fab__label { opacity: 1; transform: translate(0, -50%); }
.fab.is-open .fab__label { display: none; }
.fab__btn--wa { transition: transform 300ms var(--ease), box-shadow 300ms ease, opacity 200ms ease; }
.fab.is-open .fab__btn--wa { opacity: 0; transform: scale(0.6); pointer-events: none; }
.fab__dot { position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 2px var(--bg); }

.chatbox {
  position: absolute; right: 0; bottom: calc(100% + 14px); width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 140px));
  display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: rgba(6, 7, 17, 0.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 1px rgba(216, 236, 248, 0.2), 0 0 0 1px var(--edge), 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(143, 69, 242, 0.18);
  transform-origin: 100% 100%; transform: translateY(12px) scale(0.92); opacity: 0; pointer-events: none;
  transition: transform 380ms var(--ease), opacity 240ms ease;
}
.fab.is-open .chatbox { transform: none; opacity: 1; pointer-events: auto; }
.chatbox__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(180deg, rgba(143, 69, 242, 0.16), transparent); box-shadow: inset 0 -1px 0 var(--edge); }
.chatbox__avatar { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--violet-soft); box-shadow: var(--glow); color: var(--white); font-size: 19px; }
.chatbox__avatar .fab__dot { top: -1px; right: -1px; width: 10px; height: 10px; }
.chatbox__title { margin: 0; font-family: var(--f-dis); font-weight: 500; font-size: 15px; color: var(--hi); }
.chatbox__sub { margin: 1px 0 0; font-size: 12px; color: var(--ink3); }
.chatbox__close { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--ink2); font-size: 18px; cursor: pointer; }
.chatbox__close:hover { background: var(--fill); color: var(--white); }
.chatbox__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.chatbox__log .msg { max-width: 88%; }
.chatbox__log .msg a { color: var(--sky); text-decoration: underline; }
.typing { display: inline-flex; gap: 4px; align-items: center; height: 18px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink3); animation: typing 1.1s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; } .typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.chatbox__foot { padding: 12px 14px 14px; box-shadow: inset 0 1px 0 var(--edge); display: grid; gap: 10px; }
.chatbox__sugg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chatbox__sugg::-webkit-scrollbar { display: none; }
.chatbox__sugg .pill { flex: none; font-size: 12px; padding: 6px 12px; }
.chatbox__form { display: flex; gap: 8px; }
.chatbox__form .btn--solid { padding: 10px 14px; flex: none; }
.chatbox__note { margin: 0; font-size: 11px; color: var(--ink3); text-align: center; }
.chatbox__note a { color: var(--ink2); text-decoration: underline; }

@media (max-width: 480px) {
  .fab { right: 14px; bottom: 14px; }
  .chatbox { position: fixed; right: 8px; left: 8px; bottom: 84px; width: auto; height: calc(100dvh - 96px); }
  .fab__label { display: none; }
}

/* ==========================================================================
   Animaciones de scroll
   Solo se ocultan los elementos si JS está activo (html.js) y el usuario
   no pidió reducir el movimiento.
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  filter: blur(6px);
  transition: opacity 900ms var(--ease), transform 1000ms var(--ease), filter 900ms var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js [data-reveal="left"] { transform: translate3d(-40px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(40px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(0.94) translateY(24px); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }

.js .eyebrow-rule[data-reveal]::before, .js .eyebrow-rule[data-reveal]::after { transform: scaleX(0); }
.js .eyebrow-rule[data-reveal].is-visible::before, .js .eyebrow-rule[data-reveal].is-visible::after { transform: none; }

/* Entrada del hero, palabra por palabra */
.js .hero-in { opacity: 0; transform: translateY(24px); animation: hero-in 1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
.js .h1 .word { opacity: 0; transform: translateY(0.5em) rotate(2deg); filter: blur(8px); animation: word-in 900ms var(--ease) forwards; animation-delay: calc(150ms + var(--w, 0) * 70ms); }
@keyframes hero-in { to { opacity: 1; transform: none; } }
@keyframes word-in { to { opacity: 1; transform: none; filter: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js .hero-in, .js .h1 .word { opacity: 1; transform: none; filter: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --gutter: 20px; --section: 88px; }
  .nav__toggle { display: grid; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px var(--gutter) 20px; background: rgba(5, 6, 15, 0.97); box-shadow: inset 0 -1px 0 var(--edge);
    clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none;
    transition: clip-path 360ms var(--ease), opacity 240ms ease;
  }
  .nav-wrap.is-open .nav__links { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav__link { padding: 12px 14px; }
  .nav__cta { margin: 8px 0 0; }
  .hero { padding-top: 64px; }
  .panel { padding: 22px; }
  .founder { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .route { padding-left: 52px; }
}
@media (max-width: 480px) {
  .board__bars { gap: 4px; }
  .eyebrow { font-size: 13px; }
  .eyebrow-rule { gap: 12px; }
  .logo-tile { min-width: 180px; }
}

[hidden] { display: none !important; }
