/* ==========================================================================
   Ingenti AI — one-pager  ·  build v3
   Sistema de diseño original de Ingenti AI.
   Base grafito azul-negro + doble acento: azul del logo (estructura, confianza)
   y ámbar señal (energía, acción). Ningún color proviene de un sitio de
   referencia; el azul #1787F9 es el del gradiente del logo de la marca.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Fondo y superficies */
  --bg:           #08090D;
  --bg-2:         #0B0D13;
  --surface:      #12141C;
  --surface-2:    #171A24;
  --surface-3:    #1D2130;

  /* Líneas */
  --line:         rgba(255, 255, 255, .08);
  --line-soft:    rgba(255, 255, 255, .05);
  --line-strong:  rgba(255, 255, 255, .16);

  /* Texto */
  --text:         #F3F5F9;
  --text-dim:     #AEB6C6;
  --text-mute:    #8A92A6;

  /* Acentos */
  --blue:         #1787F9;
  --blue-deep:    #0B5ED7;
  --blue-soft:    #7C9CFF;
  --amber:        #FF8A3D;
  --amber-soft:   #FFB627;

  /* Degradados de marca.
     El CTA usa la familia ámbar: un degradado azul -> ámbar atraviesa el punto
     gris (son casi complementarios) y se ve sucio. El azul se reserva para la
     tarjeta destacada y los gráficos, así cada acento tiene un papel claro. */
  --grad-cta:     linear-gradient(100deg, #FF8A3D 0%, #FFB020 100%);
  --grad-blue:    linear-gradient(140deg, #1787F9 0%, #0B5ED7 100%);
  --grad-logo:    linear-gradient(120deg, #1787F9 0%, #7C9CFF 100%);

  /* Textura de puntos, reutilizada en tarjetas y secciones */
  --dots:         radial-gradient(rgba(255, 255, 255, .075) 1px, transparent 1px);
  --dots-size:    18px 18px;

  /* Tipografía */
  --font: "General Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;
  /* Sans de etiquetas y botones: geométrica, cercana a la referencia que
     trajo el cliente. Sustituye a la monoespaciada de la ronda anterior. */
  --font-label: "Satoshi", "General Sans", "Inter", system-ui, sans-serif;

  /* Radios y medidas */
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Ritmo vertical */
  --sec-y: clamp(88px, 12vh, 168px);
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  /* Lenis controla el desplazamiento: el scroll nativo suave pelearía con él. */
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

::selection { background: rgba(255, 138, 61, .3); color: #fff; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 200;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--amber); color: #0A0B0F; font-weight: 500;
  transform: translateY(-160%);
}
.skip-link:focus-visible { transform: none; }

/* ---------- 3. Escala tipográfica --------------------------------------- */
/* Tracking negativo creciente con el tamaño: a 64px el texto necesita cerrar
   mucho más que a 20px, por eso el valor no es único. */
.t-display {
  font-weight: 500;
  font-size: clamp(2rem, 6.4vw, 4rem);      /* 32px -> 64px */
  line-height: 1.04;
  letter-spacing: clamp(-2.5px, -0.38vw, -1.5px);
}
.t-h2 {
  font-weight: 500;
  font-size: clamp(1.75rem, 4.2vw, 3rem);   /* 28px -> 48px */
  line-height: 1.08;
  letter-spacing: clamp(-2px, -0.28vw, -1.2px);
}
.t-h3 {
  font-weight: 500;
  font-size: clamp(1.375rem, 2.6vw, 2rem);  /* 22px -> 32px */
  line-height: 1.14;
  letter-spacing: -1.1px;
}
.t-h4 {
  font-weight: 500;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.t-body {
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);  /* 17px -> 20px */
  line-height: 1.32;
  color: var(--text-dim);
}
/* Los párrafos largos de "Sobre Ingenti AI" necesitan más aire que el 1.32
   del resto del cuerpo para leerse sin esfuerzo en una columna de 70ch. */
.t-prose {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-dim);
}

/* Etiquetas en monoespaciada, caja normal y tracking discreto. */
.eyebrow {
  display: inline-block;
  font-family: var(--font-label);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--text-mute);
}
.eyebrow--blue  { color: var(--blue-soft); }
.eyebrow--amber { color: var(--amber); }
/* Guion de apertura: marca la etiqueta sin necesidad de gritar en mayúsculas. */
.eyebrow--tick::before {
  content: "—";
  margin-right: .6em;
  opacity: .55;
}

/* ---------- 4. Layout ---------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--sec-y); position: relative; }
.section--dots::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--dots);
  background-size: var(--dots-size);
  opacity: .5;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.sec-head { max-width: 760px; margin-inline: auto; text-align: center; }
.sec-head .eyebrow { margin-bottom: 18px; }
.sec-head .t-body { margin-top: 20px; }

.stack-sm > * + * { margin-top: 12px; }
.stack-md > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 36px; }

/* ---------- 5. Botones y pills ------------------------------------------ */
/* El relleno crece desde el punto exacto por donde entra el cursor: main.js
   escribe --ox/--oy (posición) y --od (diámetro que cubre la esquina más
   lejana) al entrar. Sin JS el botón sigue funcionando, sólo sin el barrido. */
.btn {
  --btn-py: 15px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-py) 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-label);
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  cursor: pointer;
  transition: color .3s cubic-bezier(.16, 1, .3, 1),
              border-color .3s ease, box-shadow .35s ease;
}
.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: var(--ox, 50%);
  top: var(--oy, 50%);
  width: var(--od, 140%);
  height: var(--od, 140%);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.btn:hover::before, .btn:focus-visible::before { transform: translate(-50%, -50%) scale(1); }
.btn:active { transform: scale(.985); }
.btn__t { position: relative; z-index: 1; }

.btn--primary {
  background: var(--grad-cta);
  color: #0A0B0F;
  box-shadow: 0 8px 28px -12px rgba(255, 138, 61, .75);
}
/* El ámbar se queda en reposo, como pidió el cliente; el barrido invierte a
   tinta y devuelve el ámbar al texto. */
.btn--primary::before { background: #0A0B0F; }
.btn--primary:hover, .btn--primary:focus-visible { color: var(--amber-soft); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: #0A0B0F; border-color: var(--text); }

.btn--lg { --btn-py: 18px; padding-inline: 34px; }
.btn--block { width: 100%; }

/* Sin caja ni borde: las etiquetas se leen como una línea de navegación y se
   separan con un punto medio, que es más tranquilo que una cápsula por término. */
.pill {
  display: inline-flex;
  align-items: center;
  font-size: .9375rem;
  font-weight: 400;
  color: var(--text-dim);
  transition: color .3s ease;
  /* Sin nowrap: casi todas las etiquetas son cortas y nunca llegan a partirse,
     pero una larga ("Cualquier industria y tamaño…") ensanchaba la columna del
     grid y sacaba scroll horizontal a toda la página en móvil. */
  max-width: 100%;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 0;
}
.pill + .pill::before {
  content: "·";
  margin: 0 12px;
  color: var(--text-mute);
  opacity: .5;
}
.pill-row--tight .pill { font-size: .875rem; }

/* ---------- 6. Animación de entrada ------------------------------------- */
/* Estado inicial sólo cuando JS está vivo: sin él, todo queda visible. */
.js [data-reveal] { opacity: 0; transform: translateY(26px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal] {
  transition: opacity .85s cubic-bezier(.2, .8, .2, 1),
              transform .85s cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  /* Sin scrub no hay nada que llene el riel de la metodología ni que encienda
     los pasos: se muestran ya en su estado final en vez de quedarse al 45%. */
  /* `none` en vez de scaleX(1): el relleno cubre su riel padre en las dos
     orientaciones, así sirve igual para la variante vertical de móvil. */
  .method-h__fill { transform: none !important; }
  .mstep__card { opacity: 1 !important; transform: none !important; }
  .mstep__dot {
    background: var(--grad-cta) !important;
    border-color: transparent !important;
    color: #0A0B0F !important;
  }
  .mstep__n { -webkit-text-stroke-color: var(--amber) !important; }

  /* El carrusel de casos tampoco se ancla: la pista pasa a scroll horizontal
     nativo para que los casos 2 y 3 sigan siendo alcanzables. */
  .cases { min-height: 0 !important; padding-top: 0 !important; }
  .cases__viewport { overflow-x: auto !important; scroll-snap-type: x mandatory; }
  .cslide { scroll-snap-align: start; }
}
