/* =====================================================
   Agrocolectiva · Landing v 2.0 — Monocromo Tenue / Glass
   Cromo neutro grafito · color solo en datos · jerarquía
   por opacidad · Inter + Inter Tight · movimiento suave
   ===================================================== */

:root {
  /* Identidad — tinta sobre papel gris (tema claro base) */
  --ink: #1a1c1f;
  --ink-rgb: 26, 28, 31;
  --canvas-rgb: 251, 251, 252;
  --bg-deep: #eff0f2;
  --bg-mid: #e9eaed;
  --bg-soft: #e2e4e8;

  /* Acentos desaturados — solo datos y estados, nunca cromo */
  --sage:  #4e7d68;   /* verde Agrocolectiva, desaturado */
  --teal:  #5d6c70;
  --gold:  #94804f;
  --terra: #a3675a;

  /* Escalera de tinta — jerarquía por opacidad */
  --text:       var(--ink);
  --text-mid:   rgba(var(--ink-rgb), .72);
  --text-dim:   rgba(var(--ink-rgb), .52);
  --text-faint: rgba(var(--ink-rgb), .34);

  /* Superficies y bordes */
  --surface:       rgba(var(--ink-rgb), .04);
  --surface-hover: rgba(var(--ink-rgb), .08);
  --surface-track: rgba(var(--ink-rgb), .1);
  --border:        rgba(var(--ink-rgb), .08);
  --border-strong: rgba(var(--ink-rgb), .16);

  /* Glass */
  --bg-glass:      rgba(var(--canvas-rgb), .8);
  --bg-glass-soft: rgba(var(--canvas-rgb), .64);
  --blur: blur(22px) saturate(1.12);

  /* CTA = tinta invertida */
  --cta-bg: #16181b;
  --cta-fg: #f3f4f5;
  --cta-bg-hover: #000000;
  --cta-bg-active: #2c2f33;

  /* Tipografía */
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;

  /* Geometría */
  --radius-sm: 9px;
  --radius-md: 12px;
  --radius-card: 14px;
  --radius-lg: 18px;
  --radius-hero: 22px;
  --radius-pill: 999px;

  /* Sombras — suaves, blur largo, spread negativo */
  --shadow-sm: 0 2px 12px rgba(25,30,35,.1);
  --shadow-md: 0 14px 40px -14px rgba(25,30,35,.18);
  --shadow-lg: 0 24px 60px -22px rgba(25,30,35,.22);
  --lens: inset 0 1px 0 rgba(255,255,255,.5);

  /* Movimiento */
  --ease-out:    cubic-bezier(.2,.7,.2,1);
  --ease-inout:  cubic-bezier(.65,.05,.36,1);
  --ease-spring: cubic-bezier(.34,1.3,.64,1);
  --motion-fast: .12s;
  --dur-micro: .18s;
  --motion-normal: .22s;
  --dur-ui: .32s;
  --dur-flow: .85s;

  /* Layout */
  --container: 1200px;
  --head-height: 56px;
  --gutter: clamp(20px, 4vw, 56px);
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px;
}

/* Tema oscuro — grafito, se activa solo con el toggle */
[data-theme="dark"] {
  --ink: #f3f4f5;
  --ink-rgb: 243, 244, 245;
  --canvas-rgb: 15, 17, 20;
  --bg-deep: #0c0d0f;
  --bg-mid: #121417;
  --bg-soft: #17191d;

  --sage:  #86ad99;
  --teal:  #9fb0b4;
  --gold:  #c0b094;
  --terra: #c08e80;

  --text-mid:   rgba(var(--ink-rgb), .72);
  --text-dim:   rgba(var(--ink-rgb), .5);
  --text-faint: rgba(var(--ink-rgb), .3);
  --surface:       rgba(var(--ink-rgb), .035);
  --surface-hover: rgba(var(--ink-rgb), .07);
  --surface-track: rgba(var(--ink-rgb), .09);
  --border:        rgba(var(--ink-rgb), .075);
  --border-strong: rgba(var(--ink-rgb), .15);

  --bg-glass:      rgba(var(--canvas-rgb), .68);
  --bg-glass-soft: rgba(var(--canvas-rgb), .52);

  --cta-bg: #f3f4f5;
  --cta-fg: #101214;
  --cta-bg-hover: #ffffff;
  --cta-bg-active: #dadcdd;

  --shadow-sm: 0 2px 12px rgba(0,0,0,.22);
  --shadow-md: 0 14px 40px -14px rgba(0,0,0,.5);
  --shadow-lg: 0 24px 60px -22px rgba(0,0,0,.65);
  --lens: inset 0 1px 0 rgba(255,255,255,.06);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  transition: background var(--dur-ui) var(--ease-inout), color var(--dur-ui) var(--ease-inout);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: var(--text); text-decoration: none; transition: color var(--motion-normal) var(--ease-out); }
img, svg, picture { display: block; max-width: 100%; }
::selection { background: rgba(var(--ink-rgb), .18); }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

:focus-visible { outline: 2px solid rgba(var(--ink-rgb), .55); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

.wrap { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--cta-bg); color: var(--cta-fg);
  padding: 12px 20px; z-index: 999;
  font-family: var(--display); font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--cta-fg); }

/* ===== Glass material ===== */
.glass {
  background: var(--bg-glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  box-shadow: var(--lens), var(--shadow-md);
}

/* ===== Dots — el átomo de color del sistema ===== */
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.dot--sage  { background: var(--sage); }
.dot--teal  { background: var(--teal); }
.dot--gold  { background: var(--gold); }
.dot--terra { background: var(--terra); }

/* ============================================================
   HEADER — topbar glass fija
   ============================================================ */
.head {
  position: sticky; top: 0; z-index: 200;
  background: var(--bg-glass-soft);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
}
.head__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: var(--head-height);
  gap: var(--s-5);
}
.head__brand {
  display: flex; align-items: center; gap: var(--s-3);
  color: var(--text);
  min-width: 0;
}
.head__brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
}
.head__brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.head__brand-name {
  font-family: var(--display);
  font-size: 14.5px; font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.head__brand-div {
  width: 1px; height: 16px;
  background: var(--border-strong);
}
.head__brand-sub {
  font-family: var(--display);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.head__nav { display: flex; justify-content: center; gap: var(--s-5); min-width: 0; flex-wrap: nowrap; }
.head__nav a {
  font-size: 12.5px; font-weight: 500;
  color: var(--text-mid);
  padding: 6px 2px;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: color var(--motion-normal) var(--ease-out);
}
.head__nav a:hover { color: var(--text); }
.head__tools { display: flex; align-items: center; gap: var(--s-3); }
.head__tools .btn { white-space: nowrap; }

/* Degradar metadatos antes que funciones */
@media (max-width: 1100px) {
  .head__brand-div, .head__brand-sub { display: none; }
}
@media (max-width: 920px) {
  .head__nav { display: none; }
  .head__row { grid-template-columns: auto auto; justify-content: space-between; }
}

.theme-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--text-mid);
  transition: color var(--motion-normal) var(--ease-out),
              border-color var(--motion-normal) var(--ease-out),
              background var(--motion-normal) var(--ease-out),
              transform var(--dur-micro) var(--ease-spring);
}
.theme-btn:hover { color: var(--text); background: var(--surface-hover); transform: translateY(-1px); }
.theme-btn:active { transform: scale(.92); }
.theme-btn svg { width: 15px; height: 15px; }
.theme-btn .sun { display: none; }
[data-theme="dark"] .theme-btn .sun { display: block; }
[data-theme="dark"] .theme-btn .moon { display: none; }

/* ============================================================
   Tipografía — display apretado vs. kickers expandidos
   ============================================================ */
.h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -.025em;
}
.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(27px, 3.2vw, 38px);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.h1 em, .h2 em {
  font-style: normal;
  color: var(--text-mid);
}
.h3 {
  font-family: var(--display);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.h4 {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.lead {
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 62ch;
}
.lead strong { color: var(--text); font-weight: 600; }

/* Kicker — la firma tipográfica del sistema */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
   Botones — primario tinta invertida · glass · micro-spring
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 12px 22px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .01em;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  transition: background var(--dur-ui) var(--ease-out),
              border-color var(--dur-ui) var(--ease-out),
              color var(--dur-ui) var(--ease-out),
              box-shadow var(--dur-ui) var(--ease-out),
              transform var(--dur-micro) var(--ease-spring);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn--sm { padding: 8px 14px; font-size: 12px; border-radius: var(--radius-sm); }

.btn--primary {
  background: var(--cta-bg);
  color: var(--cta-fg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.16), transparent 46%);
}
.btn--primary:hover { background: var(--cta-bg-hover); color: var(--cta-fg); box-shadow: var(--shadow-md); }
.btn--primary:active { background: var(--cta-bg-active); }
.btn--primary svg { position: relative; }

.btn--glass {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.btn--glass:hover { background: var(--surface-hover); border-color: rgba(var(--ink-rgb), .34); color: var(--text); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* ============================================================
   HERO — lienzo grafito + niebla + card glass
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100svh - var(--head-height));
  display: flex;
  align-items: center;
  padding-block: clamp(40px, 5vw, 72px);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 78% 12%, rgba(var(--ink-rgb), .055), transparent 62%),
    radial-gradient(ellipse 55% 45% at 8% 88%, rgba(var(--ink-rgb), .035), transparent 60%);
  pointer-events: none;
}
.hero__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(var(--ink-rgb), .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--ink-rgb), .045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, black, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, black, transparent 82%);
}
.hero__wrap { position: relative; width: 100%; }
.hero__card {
  border-radius: var(--radius-hero);
  padding: clamp(28px, 4vw, 56px);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
.hero__copy .h1 { margin-block: var(--s-4); }
.hero__lead {
  margin-bottom: var(--s-6);
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 56ch;
}
.hero__lead strong { color: var(--text); font-weight: 600; }

.hero__chips {
  display: flex; gap: var(--s-2); flex-wrap: wrap;
  margin-top: var(--s-5);
}
.hero__chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 7px 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.hero__chip .dot { width: 6px; height: 6px; }

/* Mock de producto enmarcado — vende producto real */
.mock {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-mid);
  box-shadow: var(--shadow-lg);
}
.mock__bar {
  display: flex; align-items: center; gap: var(--s-3);
  padding: 10px 14px;
  background: var(--bg-glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
}
.mock__title {
  font-family: var(--display);
  font-size: 11px; font-weight: 600;
  letter-spacing: -.005em;
  color: var(--text);
}
.mock__pill {
  font-family: var(--display);
  font-size: 9px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim);
  padding: 3px 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.mock__status { margin-left: auto; display: inline-flex; }
.mock__body { position: relative; }
.mock__body img { width: 100%; height: auto; display: block; }

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 440px; }
}

/* ============================================================
   Secciones
   ============================================================ */
.sec {
  padding-block: clamp(72px, 9vw, 120px);
  position: relative;
}
.sec--hairline { border-top: 1px solid var(--border); }
.sec__intro { max-width: 680px; margin-bottom: var(--s-7); }
.sec__intro h2 { margin-top: var(--s-3); }
.sec__intro .lead { margin-top: var(--s-4); }

/* ============================================================
   Métricas — KPI grid con hairlines, no cajas
   ============================================================ */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
}
.metric {
  padding: var(--s-6) var(--s-5);
  border-right: 1px solid var(--border);
}
.metric:last-child { border-right: 0; }
.metric__value {
  font-family: var(--display);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1;
  margin-bottom: var(--s-3);
}
.metric__label {
  font-family: var(--display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.metric__hint {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: var(--s-2);
  line-height: 1.45;
}
@media (max-width: 800px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--border); }
  .metric:nth-child(odd) { border-right: 1px solid var(--border); }
  .metric:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0 !important; border-bottom: 1px solid var(--border); }
  .metric:last-child { border-bottom: 0; }
}

/* ============================================================
   Pasos — editorial con hairlines
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.step {
  padding-top: var(--s-5);
  position: relative;
}
.step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border-strong);
  transform-origin: 0 50%;
}
.step__num {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
  margin-bottom: var(--s-4);
}
.step h3 { margin-bottom: var(--s-2); }
.step p { color: var(--text-mid); font-size: 13.5px; line-height: 1.6; }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* ============================================================
   Features — cards superficie + hairline
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
.feature {
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: background var(--dur-ui) var(--ease-out),
              border-color var(--dur-ui) var(--ease-out),
              transform var(--dur-ui) var(--ease-out),
              box-shadow var(--dur-ui) var(--ease-out);
}
.feature:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.feature__icon {
  width: 36px; height: 36px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: var(--s-4);
  color: var(--text-mid);
}
.feature__icon svg { width: 18px; height: 18px; }
.feature h3 { margin-bottom: var(--s-2); }
.feature p { color: var(--text-mid); font-size: 13px; line-height: 1.6; }
@media (max-width: 700px) {
  .features { grid-template-columns: 1fr; }
}

/* ============================================================
   Tech — grid hairline, dot como acento de dato
   ============================================================ */
.tech {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.tech-item {
  padding: var(--s-6) var(--s-5) var(--s-6) 0;
  border-right: 1px solid var(--border);
}
.tech-item + .tech-item { padding-left: var(--s-5); }
.tech-item:last-child { border-right: 0; }
.tech-item__lbl {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--s-4);
}
.tech-item__lbl .dot { width: 6px; height: 6px; }
.tech-item h4 { margin-bottom: var(--s-2); }
.tech-item p { font-size: 12.5px; color: var(--text-mid); line-height: 1.55; }
@media (max-width: 800px) {
  .tech { grid-template-columns: 1fr 1fr; }
  .tech-item { border-bottom: 1px solid var(--border); padding-left: 0; }
  .tech-item:nth-child(odd) { border-right: 1px solid var(--border); padding-right: var(--s-5); }
  .tech-item:nth-child(even) { border-right: 0; padding-left: var(--s-5); }
  .tech-item:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 480px) {
  .tech { grid-template-columns: 1fr; }
  .tech-item { border-right: 0 !important; padding-inline: 0 !important; }
}

/* ============================================================
   CTA — panel glass
   ============================================================ */
.cta-band {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--s-7);
  align-items: center;
  padding: clamp(32px, 5vw, 72px);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 70% at 88% 30%, rgba(var(--ink-rgb), .05), transparent 62%);
  pointer-events: none;
}
.cta-band__copy { position: relative; }
.cta-band__copy .h2 { margin-top: var(--s-3); }
.cta-band__copy p { color: var(--text-mid); margin-top: var(--s-4); max-width: 52ch; font-size: 14px; line-height: 1.6; }
.cta-band__actions { position: relative; display: flex; flex-direction: column; gap: var(--s-3); }
.cta-band__actions .btn--primary svg { color: var(--sage); }
@media (max-width: 700px) {
  .cta-band { grid-template-columns: 1fr; padding: var(--s-6); }
}

/* DOMO badge */
.parent {
  display: inline-flex; align-items: center; gap: var(--s-4);
  padding: 14px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  margin-bottom: var(--s-7);
  flex-wrap: wrap;
}
.parent__lbl {
  font-family: var(--display);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim);
}
.parent__name {
  font-family: var(--display);
  font-size: 13.5px; font-weight: 600;
  letter-spacing: -.005em;
  color: var(--text);
}
.parent__link {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--display);
  font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim);
  transition: color var(--motion-normal) var(--ease-out);
}
.parent__link:hover { color: var(--text); }

/* ============================================================
   Footer
   ============================================================ */
.foot {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text-mid);
  padding-block: var(--s-8) var(--s-6);
}
.foot__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--border);
}
.foot__logo-full {
  display: inline-block;
  background: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: var(--s-4);
}
.foot__logo-full img { height: 64px; width: auto; display: block; }
.foot__brand-tag {
  font-size: 12.5px; line-height: 1.55;
  color: var(--text-dim);
  max-width: 280px;
  margin-top: var(--s-3);
}
.foot__col h5 {
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--s-4);
}
.foot__col a, .foot__col span {
  display: block;
  font-size: 12.5px;
  color: var(--text-mid);
  padding: 4px 0;
}
.foot__col a:hover { color: var(--text); }
.foot__bottom {
  margin-top: var(--s-5);
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--s-3);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--text-faint);
}
@media (max-width: 700px) {
  .foot__top { grid-template-columns: 1fr; gap: var(--s-5); }
  .foot__bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Movimiento — fade-up + blur, stagger, reduced-motion
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(5px);
  animation: reveal var(--dur-flow) var(--ease-out) forwards;
}
.reveal--1 { animation-delay: 60ms; }
.reveal--2 { animation-delay: 140ms; }
.reveal--3 { animation-delay: 220ms; }
.reveal--4 { animation-delay: 300ms; }
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(5px);
  transition: opacity var(--dur-flow) var(--ease-out),
              transform var(--dur-flow) var(--ease-out),
              filter var(--dur-flow) var(--ease-out);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@supports (animation-timeline: view()) {
  .steps > .step,
  .features > .feature,
  .metrics > .metric,
  .tech > .tech-item {
    opacity: 0;
    animation: card-stagger linear both;
    animation-timeline: view(block);
  }
  @keyframes card-stagger {
    0%   { opacity: 0; transform: translateY(22px); filter: blur(4px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
  }
  .steps > *:nth-child(1), .features > *:nth-child(1), .metrics > *:nth-child(1), .tech > *:nth-child(1) { animation-range: entry 5% cover 26%; }
  .steps > *:nth-child(2), .features > *:nth-child(2), .metrics > *:nth-child(2), .tech > *:nth-child(2) { animation-range: entry 11% cover 32%; }
  .steps > *:nth-child(3), .features > *:nth-child(3), .metrics > *:nth-child(3), .tech > *:nth-child(3) { animation-range: entry 17% cover 38%; }
  .features > *:nth-child(4), .metrics > *:nth-child(4), .tech > *:nth-child(4) { animation-range: entry 23% cover 44%; }
}

/* ============================================================
   Animaciones v2 — coreografía fina
   ============================================================ */

/* Hairline de progreso de scroll */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 300;
  background: rgba(var(--ink-rgb), .4);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* Topbar condensada al hacer scroll */
.head {
  transition: background var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}
.head.is-scrolled {
  background: var(--bg-glass);
  box-shadow: var(--shadow-sm);
}

/* Lienzo del hero — deriva cartográfica y niebla que respira */
.hero__grid-bg {
  animation: grid-drift 70s linear infinite;
  transform: translate(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px));
  transition: transform 1.2s var(--ease-out);
}
@keyframes grid-drift {
  to { background-position: 56px 56px, 56px 56px; }
}
.hero__bg {
  animation: fog-breathe 16s var(--ease-inout) infinite alternate;
  transform: translate(calc(var(--px, 0) * 1.8px), calc(var(--py, 0) * 1.8px));
  transition: transform 1.6s var(--ease-out);
}
@keyframes fog-breathe {
  from { opacity: .65; }
  to   { opacity: 1; }
}

/* H1 — revelado palabra por palabra (el JS hace el split) */
.h1 .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}
.h1 .wi {
  display: inline-block;
  transform: translateY(112%);
  animation: word-up .9s var(--ease-out) var(--d, 0s) forwards;
}
@keyframes word-up {
  to { transform: translateY(0); }
}

/* Mock — flotación suave (el tilt 3D lo lleva el JS) */
.hero .hero__visual.reveal {
  animation:
    reveal var(--dur-flow) var(--ease-out) 220ms forwards,
    visual-float 9s var(--ease-inout) 1.6s infinite alternate;
}
@keyframes visual-float {
  from { translate: 0 0; }
  to   { translate: 0 -8px; }
}
.mock { will-change: transform; }

/* Dot de estado del mock — pulso de "en vivo" */
.mock__status .dot { position: relative; }
.mock__status .dot::after {
  content: ""; position: absolute; inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--sage);
  animation: ping 2.6s var(--ease-out) infinite;
}
@keyframes ping {
  0%        { transform: scale(.6); opacity: .9; }
  70%, 100% { transform: scale(2.2); opacity: 0; }
}

/* Hairlines que se dibujan al entrar (pasos) */
@supports (animation-timeline: view()) {
  .step::before {
    transform: scaleX(0);
    animation: draw-line linear both;
    animation-timeline: view(block);
  }
  .steps > .step:nth-child(1)::before { animation-range: entry 5% cover 30%; }
  .steps > .step:nth-child(2)::before { animation-range: entry 11% cover 36%; }
  .steps > .step:nth-child(3)::before { animation-range: entry 17% cover 42%; }
  @keyframes draw-line {
    to { transform: scaleX(1); }
  }
}

/* Botones — flecha que asiente, brillo que recorre, imán */
.btn svg {
  transition: transform var(--dur-ui) var(--ease-spring);
}
.btn:hover svg { transform: translateX(2px); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 32%, rgba(255,255,255,.22) 50%, transparent 68%);
  transform: translateX(-130%);
}
.btn--primary:hover::before { animation: sheen 1s var(--ease-out); }
@keyframes sheen {
  to { transform: translateX(130%); }
}
.btn--primary {
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
}
.btn--primary:hover {
  transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) - 1px), 0);
}
.btn--primary:active {
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(.97);
}
.btn--primary.is-magnet {
  transition: background var(--dur-ui) var(--ease-out),
              border-color var(--dur-ui) var(--ease-out),
              color var(--dur-ui) var(--ease-out),
              box-shadow var(--dur-ui) var(--ease-out);
}

/* Icono de feature que se eleva con la card */
.feature__icon {
  transition: transform var(--dur-ui) var(--ease-spring),
              color var(--dur-ui) var(--ease-out),
              background var(--dur-ui) var(--ease-out);
}
.feature:hover .feature__icon {
  transform: translateY(-2px);
  color: var(--text);
  background: var(--surface-track);
}

/* Chips del hero — entrada en cascada propia */
.hero__chip {
  opacity: 0;
  transform: translateY(10px);
  animation: chip-in .7s var(--ease-out) forwards;
}
.hero__chips .hero__chip:nth-child(1) { animation-delay: .55s; }
.hero__chips .hero__chip:nth-child(2) { animation-delay: .65s; }
.hero__chips .hero__chip:nth-child(3) { animation-delay: .75s; }
@keyframes chip-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
  .reveal, .fade-in,
  .steps > .step, .features > .feature, .metrics > .metric, .tech > .tech-item {
    opacity: 1; transform: none; filter: none; animation: none;
  }
}
