/* ==========================================================================
   Grupo Autómata v4.4 — v4.3 con mucho menos texto: menos bloques, una idea por tarjeta
   El concepto sale del logo: una cara mitad persona (papel, serif) y mitad
   robot (noche, monoespaciada). El amarillo es la señal: único acento.
   El servicio y el acompañamiento son el centro; el código es lo de menos.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/inter-v12-latin-300.woff2') format('woff2'),
       url('../fonts/inter-v12-latin-300.woff') format('woff');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-v12-latin-500.woff2') format('woff2'),
       url('../fonts/inter-v12-latin-500.woff') format('woff');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-v12-latin-700.woff2') format('woff2'),
       url('../fonts/inter-v12-latin-700.woff') format('woff');
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Lado humano */
  --paper: #f3f1ec;
  --paper-2: #fbfaf7;
  --ink: #0e0e0e;
  --ink-2: #4f4c46;
  --ink-3: #8a867e;
  --ghost: #cfcbc2;
  --line: #dcd8cf;

  /* Lado máquina */
  --night: #0e0e0e;
  --night-2: #171716;
  --night-3: #222220;
  --night-line: #2c2b29;
  --night-text: #ecebe6;
  --night-muted: #8f8b83;

  /* Bat-señal */
  --signal: #ffd23f;
  --signal-glow: rgba(255, 210, 63, .35);
  --ok: #4ade80;

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --nav-h: 72px;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 26px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, ol, ul, dl, dd, figure, pre { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
b, strong { font-weight: 700; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

::selection { background: var(--signal); color: var(--ink); }

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

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.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; left: var(--gutter); top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--signal); color: var(--ink); font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Piezas compartidas
   -------------------------------------------------------------------------- */
.h2 {
  font-size: clamp(2.375rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.h2 em { font-size: 1.08em; letter-spacing: -.02em; }

.tag {
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: .8125rem;
  color: var(--ink-2);
}
.tag--night { color: var(--night-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 .9375rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .3s, transform .2s var(--ease);
}
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .875rem; }
.btn:active { transform: scale(.98); }
.btn__arrow { transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #2a2927; }
.btn--line { border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { box-shadow: 0 0 0 6px var(--signal-glow); }
.btn--line-night { border-color: var(--night-line); color: var(--night-text); background: transparent; }
.btn--line-night:hover { border-color: var(--signal); }

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}

/* --------------------------------------------------------------------------
   Navegación
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.nav.is-scrolled,
.nav.is-open {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}
.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 26px; }
.brand__name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.brand__name span { font-weight: 300; }

.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current] { color: var(--ink); background: rgba(14, 14, 14, .06); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav__burger,
.nav__burger::before {
  display: block;
  width: 22px;
  height: 1.5px;
  margin: auto;
  background: currentColor;
  transition: transform .3s var(--ease);
}
.nav__burger { transform: translateY(-4px); }
.nav__burger::before { content: ''; transform: translateY(8px); }
.nav.is-open .nav__burger { transform: none; rotate: 45deg; }
.nav.is-open .nav__burger::before { transform: none; rotate: -90deg; }

/* Sobre la mitad oscura del hero, el menú va en claro */
@media (min-width: 961px) {
  .nav:not(.is-scrolled) .nav__links a { color: var(--night-muted); }
  .nav:not(.is-scrolled) .nav__links a:hover,
  .nav:not(.is-scrolled) .nav__links a[aria-current] { color: var(--night-text); background: rgba(255, 255, 255, .08); }
}

@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--paper-2);
    box-shadow: 0 20px 40px -16px rgba(14, 14, 14, .25);
  }
  .nav.is-open .nav__menu { display: flex; }
  .nav__links { flex-direction: column; }
  .nav__links a { padding: 12px 14px; font-size: 1.0625rem; border-radius: var(--r-sm); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--nav-h) + clamp(32px, 7vh, 88px));
}

.hero__seal {
  width: 64px;
  margin-bottom: 28px;
}
.hero__seal img { width: 100%; }

.hero__title {
  font-size: clamp(2.75rem, 7vw, 6.75rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.055em;
}
.hero__line { display: block; }
.hero__title em {
  font-size: 1.1em;
  letter-spacing: -.03em;
}
.hero__title code {
  font-family: var(--mono);
  font-weight: 500;
  font-size: .86em;
  letter-spacing: -.06em;
}

.hero__grid {
  display: grid;
  gap: 40px;
  margin-top: clamp(32px, 5vh, 56px);
}

.hero__lead {
  max-width: 38ch;
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Móvil y tablet: el lado máquina es un bloque oscuro a sangre */
.hero__machine {
  margin-inline: calc(-1 * var(--gutter));
  padding: 40px var(--gutter) 48px;
  background: var(--night);
}

/* Escritorio: fondo partido al 50 %, el titular se invierte al cruzar la línea */
@media (min-width: 961px) {
  .hero {
    min-height: min(100svh, 960px);
    padding-bottom: clamp(48px, 8vh, 96px);
    background: linear-gradient(90deg, var(--paper) 50%, var(--night) 50%);
  }
  /* El logo cae sobre la costura: mitad sólida en papel, contorno en la noche */
  .hero__seal {
    width: 92px;
    margin: 0 auto clamp(24px, 4vh, 44px);
    filter: invert(1);
    mix-blend-mode: difference;
  }

  .hero__title {
    color: #fff;
    mix-blend-mode: difference;
    text-align: center;
  }
  .hero__line:first-child { translate: -4% 0; }
  .hero__line:last-child { translate: 5% 0; }

  .hero__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: calc(var(--gutter) * 2);
    align-items: start;
  }
  .hero__human { padding-top: 12px; }
  .hero__machine {
    margin: 0;
    padding: 0;
    background: none;
  }
}

/* Terminal */
.term {
  overflow: hidden;
  border: 1px solid var(--night-line);
  border-radius: var(--r-md);
  background: var(--night-2);
  color: var(--night-text);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.term__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--night-line);
}
.term__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--night-3); }
.term__bar span { margin-left: 10px; font-family: var(--mono); font-size: .75rem; color: var(--night-muted); }

.term__body {
  min-height: 16.5em;
  padding: 18px 20px 22px;
  font-family: var(--mono);
  font-size: clamp(.78rem, 1vw, .875rem);
  line-height: 1.85;
  white-space: normal;
}
.term__body > span { display: block; white-space: pre-wrap; }
.t-cmd::before  { content: '$ '; color: var(--signal); }
.t-ok::before   { content: '✓ '; color: var(--ok); }
.t-warn         { color: var(--signal); }
.t-warn::before { content: '! '; }
.t-note         { color: var(--night-muted); }
.t-note::before { content: '→ '; }
.t-ask           { color: #fff; }
.t-ask::before   { content: '? '; color: var(--signal); }
.t-idle::after,
.t-cmd.is-typing::after {
  content: '';
  display: inline-block;
  width: .6em;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -.2em;
  background: var(--night-text);
  animation: blink 1.1s steps(1) infinite;
}
.t-cmd.is-typing::after { animation: none; }
.js .term__body > span.is-pending { visibility: hidden; }
@keyframes blink { 50% { opacity: 0; } }

/* --------------------------------------------------------------------------
   Ticker de tecnologías
   -------------------------------------------------------------------------- */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .875rem;
  color: var(--ink-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; }
.ticker__list li { padding: 18px 0; white-space: nowrap; }
.ticker__list li::after { content: '/'; margin-inline: 28px; color: var(--ghost); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(80px, 11vw, 160px); }
.section--line { border-top: 1px solid var(--line); }
.section--night { background: var(--night); color: var(--night-text); }

.section__head { margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--split { display: grid; gap: 24px; align-items: end; }
.section__intro { max-width: 44ch; color: var(--ink-2); }
@media (min-width: 900px) {
  .section__head--split { grid-template-columns: 1fr 1fr; }
  .section__intro { justify-self: end; }
}

/* Servicios: bento */
.bento {
  display: grid;
  gap: 16px;
}
@media (min-width: 700px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--wide { grid-column: span 2; }
}
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile { grid-column: span 2; }
  .tile--wide { grid-column: span 4; }
  .tile--full { grid-column: span 6; }
}
@media (min-width: 700px) {
  /* .tile se declara más abajo: se sube la especificidad para que esta grilla gane */
  .tile.tile--full {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 24px 40px;
    min-height: 0;
  }
  .tile.tile--full .chips { margin-top: 0; padding-top: 0; }
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
  padding: clamp(24px, 3vw, 36px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper-2);
  transition: border-color .3s, translate .4s var(--ease);
}
.tile:hover { border-color: #c3beb3; translate: 0 -3px; }
.tile--wide {
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 700px) {
  .tile--wide { grid-template-columns: 1fr 1fr; }
}
.tile__copy { display: flex; flex-direction: column; gap: 12px; }
.tile__note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--ink-2);
}
.tile__title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.tile__text { color: var(--ink-2); max-width: 40ch; }

.tile--night {
  border-color: var(--night-line);
  background: var(--night);
  color: var(--night-text);
}
.tile--night:hover { border-color: #46443f; }
.tile--night .tile__note { color: var(--signal); }
.tile--night .tile__text { color: var(--night-muted); }

.code {
  padding: 22px;
  border-radius: var(--r-md);
  background: var(--night);
  color: var(--night-text);
  font-family: var(--mono);
  font-size: .8125rem;
  line-height: 1.8;
  overflow-x: auto;
}
.c-k { color: var(--signal); }
.c-f { color: #fff; font-weight: 500; }
.c-c { color: var(--night-muted); }
.c-ok { color: var(--ok); }
.tile .code { margin-top: auto; }

/* Integraciones: flujo de sistemas */
.flow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: var(--mono);
  font-size: .75rem;
}
.flow span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  white-space: nowrap;
}
.flow span:last-child { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.flow i {
  flex: 1;
  min-width: 12px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--ink-3) 0 4px, transparent 4px 8px);
  background-size: 16px 1px;
  animation: flow 1s linear infinite;
}
@keyframes flow { to { background-position: 16px 0; } }

/* Adopción: uso que crece semana a semana */
.adoption { display: grid; gap: 8px; margin-top: auto; }
.adoption span {
  position: relative;
  isolation: isolate;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--ink-2);
}
.adoption span::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: var(--w);
  border-radius: 6px;
  background: var(--surface-adopt, #ebe8e1);
}
.adoption span:last-child::before { background: var(--signal); }
.adoption span:last-child { color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.chips a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .8125rem;
  text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.chips a:hover { border-color: var(--ink); background: var(--paper); }

.cup {
  width: 64px;
  margin-top: auto;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cup path:first-child {
  stroke: var(--ink-3);
  stroke-dasharray: 4 6;
  animation: steam 3s linear infinite;
}
@keyframes steam { to { stroke-dashoffset: -40; } }

/* Bat-señal con la cara de MDMN */
.signal {
  position: relative;
  height: 220px;
}
.signal__beam {
  position: absolute;
  inset: 0;
  background: linear-gradient(35deg, transparent 10%, rgba(255, 210, 63, .22));
  clip-path: polygon(0 100%, 10% 100%, 86% 34%, 60% 4%);
}
.signal__disc {
  position: absolute;
  top: 0;
  right: 4%;
  display: grid;
  place-items: center;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3c4 0%, var(--signal) 55%, #e8b300 100%);
  box-shadow: 0 0 60px 10px var(--signal-glow);
  animation: flicker 6s infinite;
}
.signal__disc img { width: 52%; }
.signal__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--night-muted);
}
@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  94% { opacity: .75; }
  96% { opacity: 1; }
  97% { opacity: .85; }
}

/* Proceso */
.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 700px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1040px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 32px 28px 40px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 1040px) {
  .step { border-bottom: 0; padding-left: 28px; border-left: 1px solid var(--line); }
  .step:first-child { padding-left: 0; border-left: 0; }
}
.step__num {
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--ink-3);
}
.kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.steps__loop {
  margin-top: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.375rem;
  color: var(--ink-2);
}
.steps__loop span {
  display: inline-block;
  margin-right: 6px;
  font-style: normal;
  color: var(--ink);
}
.step__title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; }
.step p { color: var(--ink-2); }

.kind {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: .875rem;
  line-height: 1.4;
}
.kind--human {
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
}
.kind--machine {
  background: var(--night);
  color: var(--night-text);
  font-family: var(--mono);
  font-size: .75rem;
}

/* Productos */
.products {
  display: grid;
  gap: 24px;
}
@media (min-width: 1040px) {
  .products { grid-template-columns: 4fr 8fr; gap: 40px; }
}

.products__tabs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--night-line);
}
.ptab {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 22px 20px;
  border: 0;
  border-bottom: 1px solid var(--night-line);
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s;
}
.ptab::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--signal);
  scale: 1 0;
  transition: scale .3s var(--ease);
}
.ptab:hover { background: var(--night-2); }
.ptab[aria-selected="true"] { background: var(--night-2); }
.ptab[aria-selected="true"]::before { scale: 1 1; }
.ptab__name { font-size: 1.375rem; font-weight: 700; letter-spacing: -.03em; }
.ptab__desc { grid-column: 1; font-size: .9375rem; color: var(--night-muted); }
.status {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  padding: 4px 10px;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .6875rem;
  color: var(--night-muted);
}
.status--live { border-color: transparent; background: var(--signal); color: var(--ink); }

.ppanel { display: grid; gap: 24px; }
.ppanel[hidden] { display: none; }
.ppanel__copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ppanel__copy p { max-width: 48ch; color: var(--night-muted); font-size: 1.0625rem; }
.js .ppanel:not([hidden]) { animation: panel-in .5s var(--ease); }
@keyframes panel-in { from { opacity: 0; translate: 0 10px; } }

.screen {
  overflow: hidden;
  border: 1px solid var(--night-line);
  border-radius: var(--r-lg);
  background: var(--night-2);
  font-size: .875rem;
}
.screen__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--night-line);
}
.screen__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--night-3); }
.screen__bar span { margin-left: 10px; font-family: var(--mono); font-size: .75rem; color: var(--night-muted); }
.screen__body { padding: clamp(16px, 2.5vw, 28px); min-height: 330px; }

/* Inventory */
.inv { display: grid; gap: 10px; align-content: start; }
.inv__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 6px;
}
.inv__kpis div {
  padding: 14px 16px;
  border: 1px solid var(--night-line);
  border-radius: var(--r-sm);
}
.inv__kpis small { display: block; font-family: var(--mono); font-size: .6875rem; color: var(--night-muted); }
.inv__kpis b { font-size: 1.5rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.inv__kpis .is-alert b { color: var(--signal); }
.inv__row {
  display: grid;
  grid-template-columns: 74px 1fr 30px;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: var(--night-3);
}
.inv__row > span:not(.meter) { display: none; color: var(--night-text); }
.inv__row code { font-family: var(--mono); font-size: .75rem; color: var(--night-muted); }
.inv__row b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.inv__row.is-low b { color: var(--signal); }
@media (min-width: 560px) {
  .inv__row { grid-template-columns: 74px 1fr 1fr 30px; }
  .inv__row > span:not(.meter) { display: block; }
}
.meter { height: 6px; overflow: hidden; border-radius: 999px; background: var(--night-line); }
.meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--night-text);
  transform-origin: left;
  transform: scaleX(var(--v));
  transition: transform 1.2s var(--ease) .2s;
}
.inv__row.is-low .meter i { background: var(--signal); }

/* Calendariza */
.cal__days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: .6875rem;
  color: var(--night-muted);
}
.cal__days .is-today { color: var(--signal); }
.cal__cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.cal__cols > div {
  display: grid;
  grid-template-rows: repeat(6, 44px);
  gap: 6px;
  padding: 6px;
  border-radius: var(--r-sm);
  background: repeating-linear-gradient(var(--night-3) 0 1px, transparent 1px 50px);
}
.ev {
  grid-row: var(--r);
  padding: 8px;
  overflow: hidden;
  border-left: 2px solid var(--night-text);
  border-radius: 6px;
  background: var(--night-3);
  font-size: .75rem;
  line-height: 1.3;
}
.ev--alt { border-left-color: var(--night-muted); color: var(--night-muted); }
.ev--signal { border-left-color: var(--signal); background: rgba(255, 210, 63, .12); color: var(--signal); }

/* Daily POS */
.pos {
  display: grid;
  gap: 16px;
}
@media (min-width: 560px) {
  .pos { grid-template-columns: 1.2fr 1fr; }
}
.pos__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-content: start;
}
.pos__items span {
  display: grid;
  place-items: center;
  aspect-ratio: 1.15;
  border: 1px solid var(--night-line);
  border-radius: var(--r-sm);
  background: var(--night-3);
  font-weight: 500;
}
.pos__items span:first-child { border-color: var(--signal); }
.pos__ticket {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--night-text);
  color: var(--ink);
}
.pos__line,
.pos__total {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-variant-numeric: tabular-nums;
}
.pos__line { border-bottom: 1px dashed #c9c6be; color: var(--ink-2); }
.pos__total { margin-top: auto; padding-top: 14px; font-weight: 500; }
.pos__total b { font-size: 1.5rem; letter-spacing: -.03em; }
.pos__charge {
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--signal);
  text-align: center;
  font-weight: 500;
}

/* El nombre: entrada de diccionario + declaración */
.define__grid {
  display: grid;
  gap: clamp(48px, 7vw, 96px);
}
@media (min-width: 1040px) {
  .define__grid { grid-template-columns: 5fr 7fr; align-items: start; }
}
.define__word {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: .9;
  letter-spacing: -.02em;
}
.define__kind {
  margin: 14px 0 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-3);
}
.define__senses { display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; }
.define__senses li {
  display: grid;
  grid-template-columns: 28px 1fr;
  color: var(--ink-2);
}
.define__senses span { font-family: var(--mono); font-size: .875rem; color: var(--ink-3); padding-top: 2px; }
.define__senses strong { color: var(--ink); }

.define__statement {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  text-wrap: pretty;
}
.js .define__statement .w {
  color: var(--ghost);
  transition: color .35s;
}
.js .define__statement .w.is-lit { color: var(--ink); }

/* Formas de trabajar */
.plans {
  display: grid;
  gap: 16px;
}
@media (min-width: 960px) {
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper-2);
}
.plan__for {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-2);
}
.plan__name {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.plan__text { color: var(--ink-2); }
.plan__list {
  display: grid;
  gap: 10px;
  margin: 8px 0 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.plan__list li {
  position: relative;
  padding-left: 26px;
  font-size: .9375rem;
}
.plan__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-family: var(--mono);
  font-size: .8125rem;
  color: var(--ink-3);
}
.plan .btn { margin-top: auto; align-self: flex-start; }

.plan--featured {
  border-color: var(--night-line);
  background: var(--night);
  color: var(--night-text);
  box-shadow: 0 30px 60px -30px rgba(14, 14, 14, .55);
}
.plan--featured .plan__for { color: var(--signal); }
.plan--featured .plan__text { color: var(--night-muted); }
.plan--featured .plan__list { border-top-color: var(--night-line); }
.plan--featured .plan__list li::before { color: var(--signal); }
.plan__badge {
  position: absolute;
  top: -13px;
  left: clamp(28px, 3vw, 40px);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .75rem;
}

/* Lo que medimos */
.measures {
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) {
  .measures { grid-template-columns: 1fr 1fr; }
}
.measures__col {
  padding: clamp(28px, 3.5vw, 48px);
  border-radius: var(--r-lg);
}
.measures__col--old { border: 1px dashed var(--line); }
.measures__col--new { background: var(--night); color: var(--night-text); }
.measures__title {
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-3);
}
.measures__col--new .measures__title { color: var(--signal); }
.measures__col ul { display: grid; }
.measures__col li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -.02em;
}
.measures__col li:last-child { border-bottom: 0; }
.measures__col--new li { border-bottom-color: var(--night-line); }
.measures__col--new li::before { content: '→ '; color: var(--signal); font-family: var(--mono); }

/* Tachado que se dibuja al entrar en pantalla */
.measures__col--old s {
  position: relative;
  color: var(--ink-3);
  text-decoration: none;
}
.measures__col--old s::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 52%;
  height: 2px;
  background: var(--ink);
  transform-origin: left;
  transition: transform .7s var(--ease) .4s;
}
.js .measures__col--old:not(.is-in) s::after { transform: scaleX(0); }
.measures__col--old li:nth-child(2) s::after { transition-delay: .55s; }
.measures__col--old li:nth-child(3) s::after { transition-delay: .7s; }
.measures__col--old li:nth-child(4) s::after { transition-delay: .85s; }

.measures__coffee {
  margin-top: 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.375rem;
  color: var(--ink-2);
}
.measures__coffee strong {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Contacto: vuelve a partir la pantalla, como el hero */
.contact {
  border-top: 1px solid var(--line);
}
.contact__grid {
  display: grid;
}
.contact__human {
  padding-block: clamp(72px, 10vw, 140px) 48px;
}
.contact__title {
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.contact__title em { font-size: 1.08em; }
.contact__text { max-width: 40ch; margin-top: 24px; color: var(--ink-2); }

.contact__machine {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  margin-inline: calc(-1 * var(--gutter));
  padding: 56px var(--gutter);
  background: var(--night);
  color: var(--night-text);
  background-image: radial-gradient(circle at 80% 20%, rgba(255, 210, 63, .14), transparent 45%);
}
.contact__mail {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -.04em;
  text-decoration: none;
  background: linear-gradient(var(--signal), var(--signal)) 0 100% / 0 2px no-repeat;
  transition: background-size .4s var(--ease), color .2s;
}
.contact__mail:hover { color: var(--signal); background-size: 100% 2px; }

@media (min-width: 961px) {
  .contact {
    background-image:
      radial-gradient(circle at 85% 30%, rgba(255, 210, 63, .14), transparent 30%),
      linear-gradient(90deg, var(--paper) 50%, var(--night) 50%);
  }
  .contact__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: calc(var(--gutter) * 2);
    min-height: 560px;
  }
  .contact__human { padding-block: clamp(80px, 10vw, 140px); }
  .contact__machine { margin: 0; padding: 0; background: none; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  font-size: .9375rem;
}
.footer__grid {
  display: grid;
  gap: 40px;
  padding-block: 64px 48px;
}
@media (min-width: 700px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1040px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 36ch; color: var(--ink-2); }
.footer__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
}
.footer__logo img { width: 52px; }
.footer__title {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-3);
}
.footer ul { display: grid; gap: 8px; }
.footer ul a {
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .3s var(--ease);
}
.footer ul a:hover { background-size: 100% 1px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--ink-3);
}
.footer__status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .75rem; }

/* --------------------------------------------------------------------------
   Animaciones de entrada (solo con JS; sin JS todo queda visible)
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal:not(.is-in) .meter i { transform: scaleX(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal:not(.is-in) .meter i { transform: scaleX(var(--v)); }
  .js .measures__col--old:not(.is-in) s::after { transform: none; }
  .ticker__track { flex-wrap: wrap; width: auto; }
  .ticker__list[aria-hidden] { display: none; }
}

/* ==========================================================================
   v4.1 / v4.2 — componentes agregados sobre la base de v4
   ========================================================================== */

/* Situaciones: el cliente se reconoce en el problema */
.problems {
  display: grid;
  gap: 16px;
}
@media (min-width: 700px) {
  .problems { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1040px) {
  .problems { grid-template-columns: repeat(3, 1fr); }
}
.problem {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper-2);
  color: inherit;
  text-decoration: none;
  transition: border-color .3s, translate .4s var(--ease), background-color .3s;
}
.problem:hover { border-color: var(--ink); translate: 0 -3px; }
.problem__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.problem__quote::before { content: '“'; color: var(--ink-3); }
.problem__quote::after  { content: '”'; color: var(--ink-3); }
.problem__answer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .9375rem;
}
.problem__answer b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  color: var(--ink);
}
.problem__answer b::before { content: '→ '; color: var(--ink-3); }
.problem:hover .problem__answer b::before { color: var(--ink); }

/* Diff de rescate */
.c-del { color: #f87171; }
.c-add { color: var(--ok); }

/* Reglas de uso de IA */
.rules {
  display: grid;
  border-top: 1px solid var(--night-line);
}
@media (min-width: 900px) {
  .rules { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}
.rule {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-content: start;
  gap: 4px 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--night-line);
}
.rule__num {
  grid-row: span 2;
  font-family: var(--mono);
  font-size: .8125rem;
  color: var(--signal);
  padding-top: 6px;
}
.rule__title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.rule p { color: var(--night-muted); }
.rule--last .rule__title { color: var(--signal); }

/* Referencias: la prueba la dan otros */
.refs {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-top: 48px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper-2);
}
@media (min-width: 900px) {
  .refs { grid-template-columns: 1fr auto; }
}
.refs__title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -.01em;
}
.refs__text { margin-top: 10px; color: var(--ink-2); max-width: 56ch; }

/* Formulario de diagnóstico (arma un correo; no necesita backend) */
.brief {
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: 560px;
}
.brief fieldset { margin: 0; padding: 0; border: 0; }
.brief legend,
.brief__label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--night-muted);
}
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; cursor: pointer; }
.pick input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.pick span {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  font-size: .875rem;
  color: var(--night-text);
  transition: border-color .2s, background-color .2s, color .2s;
}
.pick:hover span { border-color: var(--night-muted); }
.pick input:checked + span { border-color: var(--signal); background: var(--signal); color: var(--ink); }
.pick input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 3px; }

.field {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--night-line);
  border-radius: var(--r-sm);
  background: var(--night-2);
  color: var(--night-text);
  font: 300 1rem/1.5 var(--sans);
  transition: border-color .2s;
}
.field::placeholder { color: #6b6862; }
.field:focus { outline: none; border-color: var(--signal); }
textarea.field { min-height: 96px; resize: vertical; }

.brief__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.brief__hint { font-size: .8125rem; color: var(--night-muted); }
.brief__alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--night-line);
  font-size: .875rem;
  color: var(--night-muted);
}
.brief__alt a { color: var(--night-text); }

@media (min-width: 961px) {
  .contact__machine { padding-block: 72px; }
}

/* v4.2: la foto original, como evidencia */
.snapshot {
  position: relative;
  max-width: 380px;
  padding: 12px 12px 16px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 30px 60px -30px rgba(14, 14, 14, .45), 0 2px 6px rgba(14, 14, 14, .08);
  rotate: -2.5deg;
  transition: rotate .4s var(--ease);
}
.snapshot:hover { rotate: 0deg; }
.snapshot img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  object-position: 50% 78%;
  border-radius: 2px;
}
.snapshot figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: .75rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.snapshot figcaption b { color: var(--ink); font-weight: 500; }
.snapshot__tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 96px;
  height: 26px;
  margin-left: -48px;
  background: rgba(255, 210, 63, .7);
  rotate: 3deg;
}

/* v4.2: números que medimos por tradición */
.tradition {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px dashed var(--line);
}
.tradition div { display: flex; flex-direction: column; gap: 6px; }
.tradition b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tradition span { font-family: var(--mono); font-size: .75rem; color: var(--ink-2); }
.tradition__title {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.375rem;
  color: var(--ink-2);
}

.t-err          { color: #f87171; }
.t-err::before  { content: '✗ '; }

/* Formación: programar con IA */
.academy {
  display: grid;
  gap: clamp(40px, 6vw, 88px);
}
@media (min-width: 1040px) {
  .academy { grid-template-columns: 5fr 7fr; align-items: start; }
  .academy__intro { position: sticky; top: calc(var(--nav-h) + 32px); }
}
.academy__intro .h2 { margin-bottom: 24px; }
.academy__text { color: var(--ink-2); max-width: 48ch; }
.academy__facts {
  display: grid;
  gap: 16px;
  margin: 28px 0 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.academy__facts dt {
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-3);
}
.academy__facts dd { font-size: .9375rem; }

.syllabus { border-top: 1px solid var(--line); }
.module {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.module__num {
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--ink-3);
}
.module__title {
  margin-bottom: 6px;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -.025em;
}
.module p { color: var(--ink-2); }
.module--signal .module__num { color: var(--ink); }
.module--signal .module__title::after {
  content: 'tokens';
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--signal);
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: 4px;
}

/* Comparación de costo en tokens (ilustrativa) */
.tokens {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: var(--r-md);
  background: var(--night);
  color: var(--night-text);
}
.tokens__title { font-family: var(--mono); font-size: .75rem; color: var(--night-muted); }
.tokens__row {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: .75rem;
}
.tokens__bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--night-line);
}
.tokens__bar i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: #f87171;
  transform-origin: left;
  transition: transform 1.2s var(--ease) .3s;
}
.tokens__row.is-good .tokens__bar i { background: var(--signal); }
.js .reveal:not(.is-in) .tokens__bar i { transform: scaleX(0); }
.tokens__note { font-size: .75rem; color: var(--night-muted); }

.tile__link {
  align-self: flex-start;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: .8125rem;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}
.tile__link:hover { background-size: 0 1px; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal:not(.is-in) .tokens__bar i { transform: none; }
}

/* Sobre el hero partido, los enlaces van en una cápsula oscura: se leen igual a ambos lados de la línea */
@media (min-width: 961px) {
  .nav .nav__links {
    padding: 4px;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: background-color .3s, border-color .3s;
  }
  .nav:not(.is-scrolled) .nav__links {
    border-color: var(--night-line);
    background: rgba(14, 14, 14, .9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

/* ==========================================================================
   v4.3 — ajustes y componentes propios
   ========================================================================== */

/* Ritmo vertical más compacto entre secciones */
.section { padding-block: clamp(56px, 7vw, 104px); }
.section__head { margin-bottom: clamp(32px, 4.5vw, 56px); }
.define__grid { gap: clamp(36px, 5vw, 72px); }
.contact__human { padding-block: clamp(56px, 7vw, 96px) 40px; }
@media (min-width: 961px) {
  .contact__human { padding-block: clamp(56px, 7vw, 96px); }
  .contact__machine { padding-block: 56px; }
  .contact__grid { min-height: 0; }
}
.tradition { margin-top: 32px; }

/* Colegios */
.schools {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: clamp(40px, 5vw, 64px);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--night-line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 210, 63, .12), transparent 40%),
    var(--night-2);
}
@media (min-width: 1040px) {
  .schools { grid-template-columns: 5fr 7fr; align-items: center; }
}
.schools__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.schools__kicker,
.products__kicker {
  font-family: var(--mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--signal);
}
.products__kicker { margin-bottom: 20px; }
.schools__title {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.schools__text { color: var(--night-muted); max-width: 46ch; margin-bottom: 8px; }
.schools__grid {
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) {
  .schools__grid { grid-template-columns: 1fr 1fr; }
}
.school {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--night-line);
  border-radius: var(--r-md);
  background: var(--night);
}
.school__num { font-family: var(--mono); font-size: .75rem; color: var(--signal); }
.school b { font-size: 1.125rem; letter-spacing: -.02em; }
.school span:last-child { color: var(--night-muted); font-size: .9375rem; }

/* Referencias: comodines */
.lifelines {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 1040px) {
  .lifelines { grid-template-columns: 5fr 7fr; }
}
.lifelines__intro .h2 { margin-bottom: 20px; }
.lifelines__text { color: var(--ink-2); max-width: 46ch; }

.lifelines__board {
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--r-lg);
  background: var(--night);
  color: var(--night-text);
  perspective: 1200px;
}
.lifelines__face--back[hidden] { display: none; }
.lifelines__face--back { display: grid; gap: 22px; animation: flip-in .6s var(--ease); }
@keyframes flip-in { from { opacity: 0; transform: rotateY(-70deg); } }
.lifelines__step { font-family: var(--mono); font-size: .75rem; color: var(--signal); }
.lifelines__face--back fieldset { margin: 0; padding: 0; border: 0; }
.lifelines__face--back legend {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--night-muted);
}
.lifelines__face--back .btn { justify-self: start; }

.lifelines__list {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .lifelines__list { grid-template-columns: repeat(3, 1fr); }
}
.lifeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.lifeline b { font-size: 1rem; }
.lifeline > span:last-child { font-size: .8125rem; color: var(--night-muted); max-width: 22ch; }
.lifeline__token {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  aspect-ratio: 1;
  border: 2px solid var(--night-line);
  border-radius: 50%;
  background: var(--night-2);
  color: var(--night-text);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
}
.lifeline__token svg {
  width: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Comodines usados: tachados con una X */
.lifeline.is-used .lifeline__token { color: var(--night-muted); opacity: .6; }
.lifeline.is-used .lifeline__token::before,
.lifeline.is-used .lifeline__token::after {
  content: '';
  position: absolute;
  width: 110%;
  height: 2px;
  background: #f87171;
  rotate: 45deg;
}
.lifeline.is-used .lifeline__token::after { rotate: -45deg; }
.lifeline.is-used b { color: var(--night-muted); text-decoration: line-through; }
/* Comodín disponible */
.lifeline.is-live .lifeline__token {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 0 0 0 var(--signal-glow);
  animation: lifeline-pulse 2.2s var(--ease) infinite;
  transition: transform .2s var(--ease);
}
.lifeline.is-live .lifeline__token:hover { transform: scale(1.06); }
.lifeline.is-live > span:last-child { color: var(--signal); }
@keyframes lifeline-pulse {
  0%   { box-shadow: 0 0 0 0 var(--signal-glow); }
  70%  { box-shadow: 0 0 0 18px rgba(255, 210, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 210, 63, 0); }
}

/* Canales de contacto (agenda, WhatsApp) */
.channels {
  display: grid;
  gap: 10px;
}
@media (min-width: 560px) {
  .channels { grid-template-columns: 1fr 1fr; }
}
.channels[hidden] { display: none; }
.channel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--night-line);
  border-radius: var(--r-md);
  color: var(--night-text);
  text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.channel[hidden] { display: none; }
.channel:hover { border-color: var(--signal); }
.channel b { font-size: 1rem; }
.channel b::after { content: ' ↗'; color: var(--signal); }
.channel span { font-size: .8125rem; color: var(--night-muted); }
.channels--light { margin-top: 28px; max-width: 480px; }
.channels--light .channel { border-color: var(--line); color: var(--ink); background: var(--paper-2); }
.channels--light .channel:hover { border-color: var(--ink); }
.channels--light .channel b::after { color: var(--ink-3); }
.channels--light .channel span { color: var(--ink-2); }

/* Formularios con envío real */
.brief__row { display: grid; gap: 16px; }
@media (min-width: 560px) {
  .brief__row { grid-template-columns: 1fr 1fr; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field[aria-invalid="true"] { border-color: #f87171; }
.form-status { font-size: .875rem; color: var(--night-muted); }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: #fca5a5; }
.form-status a { color: inherit; }
.brief button[type="submit"][disabled] { opacity: .6; cursor: progress; }

/* Ventana de contacto */
.dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--night-line);
  border-radius: var(--r-lg);
  background: var(--night);
  color: var(--night-text);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6);
}
.dialog::backdrop {
  background: rgba(14, 14, 14, .55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.dialog[open] { animation: dialog-in .35s var(--ease); }
@keyframes dialog-in { from { opacity: 0; translate: 0 16px; } }
.dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.dialog__eyebrow { font-family: var(--mono); font-size: .75rem; color: var(--signal); margin-bottom: 6px; }
.dialog__title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; }
.dialog__close {
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--night-line);
  border-radius: 50%;
  background: none;
  color: var(--night-text);
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
}
.dialog__close:hover { border-color: var(--signal); }
.dialog__or {
  margin: 20px 0 16px;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--night-muted);
}
.dialog__or[hidden] { display: none; }
.dialog .brief { max-width: none; gap: 18px; }

@media (prefers-reduced-motion: reduce) {
  .lifeline.is-live .lifeline__token { animation: none; }
}

/* ==========================================================================
   v4.4 — menos texto: componentes compactos
   ========================================================================== */

.term__body--short { min-height: 11em; }

/* Postura en una frase */
.statement { text-align: center; }
.statement__text {
  max-width: 18ch;
  margin-inline: auto;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5.6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.js .statement__text .w { color: var(--ghost); transition: color .35s; }
.js .statement__text .w.is-lit { color: var(--ink); }
.statement__sub {
  margin-top: 24px;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
}
.statement__sub s { text-decoration-thickness: 2px; text-decoration-color: #f87171; color: var(--ink-3); }

/* Tarjetas de servicio: la cita del cliente como entrada */
.tile__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--ink-2);
}
.tile__quote::before { content: '“'; }
.tile__quote::after  { content: '”'; }
.tile--night .tile__quote { color: var(--signal); }

/* Temario solo con títulos */
.syllabus--compact .module { grid-template-columns: 56px 1fr; align-items: center; padding: 18px 0; }
.syllabus--compact .module__num { font-size: 2rem; }
.syllabus--compact .module__title { margin: 0; }
.academy__intro .btn { margin-top: 28px; }

/* Pasos en una línea */
.steps--compact .step { gap: 8px; padding-bottom: 28px; }
.steps--compact .step__num { font-size: 2.5rem; }

/* Reglas de IA en una franja */
.rules-strip {
  display: grid;
  gap: 16px;
  margin-top: 32px;
  padding: 24px clamp(20px, 3vw, 32px);
  border-radius: var(--r-lg);
  background: var(--night);
  color: var(--night-text);
}
@media (min-width: 900px) {
  .rules-strip { grid-template-columns: auto 1fr; align-items: center; gap: 32px; }
}
.rules-strip__title { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--signal); }
.rules-strip ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.rules-strip li { font-size: .9375rem; }
.rules-strip li::before { content: '✓ '; color: var(--signal); font-family: var(--mono); }

/* Footer en una fila */
.footer--compact { padding-block: 32px; }
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}
.footer .footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { color: var(--ink); text-decoration: none; font-size: .9375rem; }
.footer__links a:hover { text-decoration: underline; }
.footer__legal { width: 100%; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer__logo img { width: 40px; }
.footer__logo { font-size: 1.125rem; }
