/* =========================================================================
   Eli-T Systems
   Sistema de diseño. CSS nativo, sin paso de build.

   Diales: DESIGN_VARIANCE 7 · MOTION_INTENSITY 6 · VISUAL_DENSITY 4

   Reglas bloqueadas para todo el sitio:
     - Un solo acento: Verde Eli-T #006F45 del brand kit. No cambia por sección.
     - Radio segun el brand kit: tarjeta 14px, control 8px, etiqueta píldora.
     - El tema no se invierte a media página. Claro y oscuro, completos.
   ========================================================================= */

@layer reset, tokens, base, layout, components, motion, utils;

/* ---------------------------------------------------------------- reset --- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; }
  body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
  img, picture, svg, video { display: block; max-width: 100%; height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { background: none; border: 0; cursor: pointer; }
  p, h1, h2, h3, h4 { overflow-wrap: break-word; }
  ul[class] { list-style: none; padding: 0; }
  :target { scroll-margin-top: 6rem; }
}

/* --------------------------------------------------------------- tokens --- */
@layer tokens {
  :root {
    /* Tipografía del brand kit: Space Grotesk display, Inter texto, JetBrains Mono dato. */
    --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    /* Escala fluida. clamp() en vez de saltos por breakpoint. */
    --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
    --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.13rem);
    --step-1:  clamp(1.20rem, 1.12rem + 0.40vw, 1.45rem);
    --step-2:  clamp(1.44rem, 1.30rem + 0.70vw, 1.90rem);
    --step-3:  clamp(1.73rem, 1.50rem + 1.15vw, 2.55rem);
    --step-4:  clamp(2.07rem, 1.70rem + 1.85vw, 3.40rem);
    --step-5:  clamp(2.49rem, 1.90rem + 2.95vw, 4.60rem);

    /* Ritmo vertical. VISUAL_DENSITY 4: aire, sin llegar a galería. */
    --space-2xs: 0.5rem;  --space-xs: 0.75rem; --space-s: 1rem;
    --space-m:   1.5rem;  --space-l:  2.5rem;  --space-xl: 4rem;
    --space-2xl: 6rem;    --space-3xl: 9rem;

    --measure: 62ch;
    --shell: 1240px;

    /* Un solo sistema de radio. */
    --r-surface: 14px;
    --r-field: 8px;
    --r-pill: 999px;

    --ring: 3px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);

    color-scheme: light dark;
  }

  /* Tema claro */
  :root {
    --bg:        #f8faf9;
    --bg-sunk:   #e7f1ec;
    --surface:   #ffffff;
    --surface-2: #e7f1ec;
    --text:      #14201b;
    --text-mute: #667c72;
    --border:    #d3e0d9;
    --border-hi: #a5cdbb;

    /* Verde Eli-T. El ámbar es el único acento de atención, no decorativo. */
    --accent:      #006f45;
    --accent-hi:   #00341f;
    --accent-soft: #e4f0ea;
    --accent-text: #ffffff;
    --attention:   #e08700;
    --attention-text: #8a5300;

    --shadow-color: 158 100% 10%;
    --shadow-s: 0 1px 2px hsl(var(--shadow-color) / 0.08);
    --shadow-m: 0 4px 16px -4px hsl(var(--shadow-color) / 0.14);
    --shadow-l: 0 18px 50px -12px hsl(var(--shadow-color) / 0.22);
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --bg:        #00341f;
      --bg-sunk:   #002516;
      --surface:   #0a4630;
      --surface-2: #0d523a;
      --text:      #f8faf9;
      --text-mute: #a5cdbb;
      --border:    #0f5c40;
      --border-hi: #22a06b;

      --accent:      #22a06b;
      --accent-hi:   #4fc292;
      --accent-soft: #0a4630;
      --accent-text: #00341f;
      --attention:   #e08700;
      --attention-text: #f0d3a0;

      --shadow-color: 158 100% 4%;
      --shadow-s: 0 1px 2px hsl(var(--shadow-color) / 0.4);
      --shadow-m: 0 4px 16px -4px hsl(var(--shadow-color) / 0.55);
      --shadow-l: 0 18px 50px -12px hsl(var(--shadow-color) / 0.7);
    }
  }
}

/* ----------------------------------------------------------------- base --- */
@layer base {
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: var(--step-0);
    line-height: 1.65;
  }

  h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.022em; font-weight: 650; text-wrap: balance; }
  h1 { font-size: var(--step-5); }
  h2 { font-size: var(--step-4); }
  h3 { font-size: var(--step-2); }

  p { text-wrap: pretty; }
  p, li { max-width: var(--measure); }

  a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
  a:hover { color: var(--accent-hi); }

  :where(a, button, input, textarea, select, summary):focus-visible {
    outline: var(--ring) solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
  }

  /* Mono para SKU, UPC, factura, orden y montos, segun el brand kit. */
  .mono, code, kbd { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

  .skip {
    position: absolute; left: var(--space-s); top: var(--space-s);
    transform: translateY(-200%);
    background: var(--accent); color: var(--accent-text);
    padding: var(--space-xs) var(--space-m); border-radius: var(--r-pill);
    z-index: 100; text-decoration: none;
  }
  .skip:focus { transform: translateY(0); }
}

/* --------------------------------------------------------------- layout --- */
@layer layout {
  .shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
  @media (max-width: 34rem) { .shell { width: min(100% - 2rem, var(--shell)); } }

  .section { padding-block: var(--space-2xl); }
  .section--tight { padding-block: var(--space-xl); }
  .section--sunk { background: var(--bg-sunk); }

  .stack > * + * { margin-top: var(--space-s); }
  .stack-l > * + * { margin-top: var(--space-l); }

  .lede { font-size: var(--step-1); color: var(--text-mute); max-width: 54ch; }

  .head { max-width: 46ch; margin-bottom: var(--space-xl); }
  .head p { margin-top: var(--space-s); }
}

/* ----------------------------------------------------------- components --- */
@layer components {

  /* --- nav: una sola línea en escritorio, tope de 72px --- */
  .nav {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
  }
  .nav__in {
    display: flex; align-items: center; gap: var(--space-m);
    height: 76px;
  }
  /* Logotipo del brand kit. 150px de ancho respeta el minimo de 140px. */
  .nav__brand { display: inline-flex; align-items: center; margin-right: auto; }
  .nav__brand img { width: 150px; height: auto; }
  @media (max-width: 34rem) { .nav__brand img { width: 132px; } }
  .nav__links { display: flex; align-items: center; gap: var(--space-m); }
  .nav__links a {
    color: var(--text-mute); text-decoration: none; font-size: var(--step--1);
    font-weight: 550; transition: color 0.2s var(--ease);
  }
  .nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
  .nav__lang {
    font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-mute); text-decoration: none;
    border: 1px solid var(--border-hi); border-radius: var(--r-pill);
    padding: 0.3rem 0.7rem;
  }
  .nav__lang:hover { color: var(--text); border-color: var(--text-mute); }
  .nav__toggle { display: none; padding: 0.5rem; color: var(--text); }

  @media (max-width: 54rem) {
    .nav__toggle { display: block; }
    .nav__links {
      position: absolute; inset: 76px 0 auto; flex-direction: column;
      align-items: stretch; gap: 0; padding: var(--space-s) 1.25rem var(--space-m);
      background: var(--bg); border-bottom: 1px solid var(--border);
      box-shadow: var(--shadow-m);
    }
    .nav__links[hidden] { display: none; }
    .nav__links a { padding: 0.75rem 0; font-size: var(--step-0); border-bottom: 1px solid var(--border); }
    .nav__lang { align-self: flex-start; margin-top: var(--space-s); border-bottom: 1px solid var(--border-hi); }
  }

  /* --- botones: píldora, contraste AA verificado, sin envolver a 2 líneas --- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.8rem 1.5rem; border-radius: var(--r-pill);
    font-weight: 600; font-size: var(--step-0); line-height: 1;
    text-decoration: none; white-space: nowrap;
    transition: transform 0.15s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
  }
  .btn--primary { background: var(--accent); color: var(--accent-text); }
  .btn--primary:hover { background: var(--accent-hi); color: var(--accent-text); }
  .btn--ghost { border: 1px solid var(--border-hi); color: var(--text); }
  .btn--ghost:hover { border-color: var(--text-mute); color: var(--text); background: var(--surface-2); }
  .btn:active { transform: translateY(1px); }
  .btn[disabled] { opacity: 0.55; pointer-events: none; }

  /* --- hero: split asimétrico, entra completo en el viewport --- */
  .hero { padding-top: var(--space-xl); padding-bottom: var(--space-2xl); overflow: clip; }
  .hero__grid {
    display: grid; gap: var(--space-xl);
    grid-template-columns: 1fr;
    align-items: center;
  }
  @media (min-width: 62rem) {
    .hero { padding-top: 6rem; }
    .hero__grid { grid-template-columns: 1.05fr 1.25fr; gap: var(--space-2xl); }
  }
  /* Escala planificada junto al ancho: el titular cae en 2 lineas exactas.
     Con --step-5 y 15ch se partia en 5, que es error de escala, no de copy. */
  .hero h1 { font-size: var(--step-4); max-width: 34ch; }
  .hero h1 .soft { color: var(--text-mute); display: block; }
  .hero__sub { font-size: var(--step-1); color: var(--text-mute); max-width: 42ch; margin-top: var(--space-m); }
  .hero__acts { display: flex; flex-wrap: wrap; gap: var(--space-s); margin-top: var(--space-l); }
  .hero__shot {
    border-radius: var(--r-surface); border: 1px solid var(--border);
    box-shadow: var(--shadow-l); overflow: hidden; background: var(--surface-2);
  }
  @media (min-width: 62rem) {
    .hero__shot { transform: perspective(1600px) rotateY(-4deg) rotateX(1.5deg); }
  }

  /* --- prueba: cifras verificables, no barras de progreso decorativas --- */
  .proof { border-block: 1px solid var(--border); background: var(--bg-sunk); }
  .proof__grid {
    display: grid; gap: var(--space-l);
    grid-template-columns: 1fr;
    padding-block: var(--space-xl);
  }
  @media (min-width: 46rem) { .proof__grid { grid-template-columns: repeat(3, 1fr); } }
  .proof__n {
    font-family: var(--font-mono); font-size: var(--step-3); font-weight: 600;
    letter-spacing: -0.03em; color: var(--text);
  }
  .proof__l { color: var(--text-mute); font-size: var(--step--1); margin-top: 0.25rem; }

  /* --- bento: 5 ítems, 5 celdas exactas, sin celda vacía --- */
  .bento { display: grid; gap: var(--space-m); grid-template-columns: 1fr; }
  @media (min-width: 46rem) { .bento { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 68rem) {
    .bento { grid-template-columns: repeat(6, 1fr); }
    .bento > :nth-child(1) { grid-column: span 4; }
    .bento > :nth-child(2) { grid-column: span 2; }
    .bento > :nth-child(3) { grid-column: span 2; }
    .bento > :nth-child(4) { grid-column: span 2; }
    .bento > :nth-child(5) { grid-column: span 2; }
  }
  .tile {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-surface); padding: var(--space-l);
    display: flex; flex-direction: column; gap: var(--space-xs);
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .tile:hover { border-color: var(--border-hi); transform: translateY(-2px); }
  .tile h3 { font-size: var(--step-1); }
  .tile p { color: var(--text-mute); font-size: var(--step--1); }
  /* Variación visual real: la primera y la cuarta llevan imagen, no solo texto. */
  .tile--shot { padding: 0; overflow: hidden; }
  /* Banda de imagen de altura fija: las celdas con captura y las de texto
     conservan alturas comparables, sin importar cuantas columnas ocupen. */
  .tile--shot img { width: 100%; height: 190px; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--border); }
  .tile--shot .tile__body { padding: var(--space-l); display: flex; flex-direction: column; gap: var(--space-xs); }
  .tile--accent { background: var(--accent-soft); border-color: transparent; }

  /* --- split: capacidad insignia. Máximo 2 consecutivos en la página. --- */
  /* minmax(0, ...) en vez de 1fr pelado: evita que un hijo que no se puede
     encoger, como un boton con nowrap, empuje la columna y desborde la pagina. */
  .split { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); align-items: center; }
  @media (min-width: 62rem) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-2xl); } }
  .split--flip > :first-child { order: 2; }
  @media (max-width: 62rem) { .split--flip > :first-child { order: 0; } }
  .split__shot { border-radius: var(--r-surface); border: 1px solid var(--border); box-shadow: var(--shadow-m); overflow: hidden; }
  .ticks { display: grid; gap: var(--space-xs); margin-top: var(--space-l); }
  .ticks li { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; color: var(--text-mute); }
  .ticks svg { margin-top: 0.35em; color: var(--accent); flex: none; }

  /* --- banda de soporte local: familia de layout distinta, ancho completo --- */
  .band { background: var(--accent); color: var(--accent-text); border-radius: var(--r-surface); padding: var(--space-2xl) var(--space-l); text-align: center; }
  .band h2 { max-width: 20ch; margin-inline: auto; }
  .band p { max-width: 52ch; margin: var(--space-m) auto 0; color: color-mix(in srgb, var(--accent-text) 82%, transparent); }
  .band .btn { margin-top: var(--space-l); background: var(--accent-text); color: var(--accent); }
  .band .btn:hover { background: var(--accent-text); color: var(--accent); opacity: 0.9; }

  /* --- áreas de producto: tarjeta por área, no tabla de 30 filas --- */
  .areas { display: grid; gap: var(--space-m); grid-template-columns: 1fr; }
  @media (min-width: 52rem) { .areas { grid-template-columns: repeat(2, 1fr); } }
  .area { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-surface); padding: var(--space-l); }
  .area:first-child { grid-column: 1 / -1; }
  .area h3 { font-size: var(--step-2); }
  .area > p { color: var(--text-mute); margin-top: 0.4rem; }
  .chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-m); }
  .chips li {
    font-size: 0.82rem; color: var(--text-mute);
    border: 1px solid var(--border); border-radius: var(--r-pill);
    padding: 0.3rem 0.75rem; background: var(--bg);
  }

  /* --- FAQ: acordeón nativo --- */
  .faq { border-top: 1px solid var(--border); max-width: 68ch; }
  .faq details { border-bottom: 1px solid var(--border); }
  .faq summary {
    padding: var(--space-m) 0; font-weight: 600; font-size: var(--step-1);
    cursor: pointer; list-style: none;
    display: grid; grid-template-columns: 1fr auto; gap: var(--space-m); align-items: center;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after {
    content: ""; width: 11px; height: 11px; flex: none;
    border-right: 2px solid var(--text-mute); border-bottom: 2px solid var(--text-mute);
    transform: rotate(45deg); transition: transform 0.25s var(--ease);
  }
  .faq details[open] summary::after { transform: rotate(-135deg); }
  .faq details p { padding-bottom: var(--space-m); color: var(--text-mute); }

  /* --- formulario: etiqueta arriba, ayuda presente, error debajo --- */
  .field { display: grid; gap: 0.4rem; margin-bottom: var(--space-m); }
  .field label { font-weight: 600; font-size: var(--step--1); }
  .field .help { font-size: 0.82rem; color: var(--text-mute); }
  .field input, .field textarea {
    background: var(--bg); color: var(--text);
    border: 1px solid var(--border-hi); border-radius: var(--r-field);
    padding: 0.75rem 0.9rem; width: 100%;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  }
  .field input::placeholder, .field textarea::placeholder { color: var(--text-mute); opacity: 1; }
  .field input:focus, .field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    outline: none;
  }
  .field textarea { min-height: 8.5rem; resize: vertical; }
  .field .err { font-size: 0.82rem; color: #c0362c; min-height: 1.1em; }
  @media (prefers-color-scheme: dark) { .field .err { color: #ff9a90; } }
  .field[data-invalid] input, .field[data-invalid] textarea { border-color: #c0362c; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

  .note { border-radius: var(--r-field); padding: var(--space-m); border: 1px solid var(--border); }
  .note--ok { background: var(--accent-soft); border-color: transparent; }
  .note--err { background: color-mix(in srgb, #c0362c 8%, var(--bg)); border-color: color-mix(in srgb, #c0362c 35%, transparent); }
  .note strong { display: block; margin-bottom: 0.2rem; }

  /* --- contacto --- */
  .contact__grid { display: grid; gap: var(--space-xl); grid-template-columns: 1fr; }
  @media (min-width: 58rem) { .contact__grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-2xl); } }
  .dl { display: grid; gap: var(--space-m); }
  .dl dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mute); font-family: var(--font-mono); }
  .dl dd { margin: 0.25rem 0 0; font-size: var(--step-1); white-space: pre-line; }
  .dl a { text-decoration: none; }
  .map { border: 1px solid var(--border); border-radius: var(--r-surface); overflow: hidden; margin-top: var(--space-l); }
  .map iframe { display: block; width: 100%; height: 320px; border: 0; filter: grayscale(1) contrast(1.05); }
  @media (prefers-color-scheme: dark) { .map iframe { filter: grayscale(1) invert(0.92) hue-rotate(180deg); } }

  /* --- footer --- */
  .foot { border-top: 1px solid var(--border); background: var(--bg-sunk); padding-block: var(--space-xl) var(--space-l); }
  .foot__grid { display: grid; gap: var(--space-l); grid-template-columns: 1fr; }
  @media (min-width: 52rem) { .foot__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-xl); } }
  .foot h2 { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); color: var(--text-mute); font-weight: 500; margin-bottom: var(--space-s); }
  .foot ul { display: grid; gap: 0.55rem; }
  .foot a { color: var(--text-mute); text-decoration: none; font-size: var(--step--1); }
  .foot a:hover { color: var(--text); }
  .foot__brand img { width: 168px; height: auto; }
  .foot__tag { color: var(--text-mute); font-size: var(--step--1); margin-top: 0.5rem; max-width: 34ch; }
  .foot__bar { margin-top: var(--space-xl); padding-top: var(--space-m); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: var(--space-s); justify-content: space-between; color: var(--text-mute); font-size: 0.82rem; }
  .social { display: flex; gap: 0.75rem; }
  .social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: var(--r-pill); color: var(--text-mute); }
  .social a:hover { color: var(--text); border-color: var(--text-mute); }

  /* --- soporte remoto ---------------------------------------------------- */
  /* Rotulo: el mismo tratamiento que los titulos del pie, en mono y versalitas.
     Es el unico eyebrow del sitio y vive solo en esta pagina. */
  .rotulo {
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute);
    margin-bottom: var(--space-s);
  }

  /* Maqueta de la ventana del programa. El SVG se pinta con las variables del
     tema, asi que el modo oscuro no necesita una segunda version. */
  .shotwin { margin: 0; }
  .shotwin svg {
    width: 100%; height: auto; display: block;
    border-radius: var(--r-surface);
    filter: drop-shadow(0 10px 24px hsl(var(--shadow-color) / 0.14));
  }
  .shotwin figcaption { margin-top: var(--space-s); margin-bottom: 0; }

  /* Pasos numerados. El numero en ambar repite las llamadas de un diagrama de
     despiece, que es de donde sale el lenguaje visual de la guia. */
  .steps { display: grid; gap: var(--space-l); list-style: none; counter-reset: none; }
  .step {
    /* minmax(0, 1fr) y no 1fr: un 1fr pelado equivale a minmax(auto, 1fr), y
       ese auto no baja del ancho minimo del contenido. En movil el boton de
       descarga empujaba la columna y desbordaba la pagina. */
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-m);
    align-items: start;
    padding-bottom: var(--space-l); border-bottom: 1px solid var(--border);
  }
  .step:last-child { border-bottom: 0; padding-bottom: 0; }
  .step__n {
    display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
    border-radius: var(--r-pill); background: var(--attention); color: #00341f;
    font-family: var(--font-mono); font-weight: 600; font-size: var(--step-1);
  }
  .step h3 { font-size: var(--step-2); margin-bottom: var(--space-2xs); }
  .step p { color: var(--text-mute); max-width: 60ch; }
  .step__note { font-size: var(--step--1); margin-top: var(--space-s); }
  /* La ruta del menu se lee como algo que hay que encontrar en pantalla, no
     como prosa: caja propia y monoespaciada para que salte a la vista. */
  .step__path {
    display: inline-block; padding: var(--space-2xs) var(--space-s);
    border: 1px solid var(--border); border-radius: var(--r-field);
    background: var(--surface); color: var(--text);
    font-size: var(--step--1); overflow-wrap: anywhere;
  }

  /* Tarjeta de aviso: mismo componente que .tile, con el borde de atencion. */
  .tile--warn { border-color: var(--attention); background: var(--surface); }
  .tile--warn h3 { color: var(--attention-text); }

  @media (min-width: 54rem) {
    .step { grid-template-columns: 3rem minmax(0, 1fr); gap: var(--space-l); }
  }

  /* Estos dos botones llevan el numero de telefono completo y el nombre del
     programa, y no caben en una linea en pantallas estrechas. El nowrap general
     protege los CTA de escritorio, que es donde partirse se ve mal. */
  @media (max-width: 30rem) {
    .tile--warn .btn { white-space: normal; text-align: center; }
  }
}

/* --------------------------------------------------------------- motion --- */
/* MOTION_INTENSITY 6. Cada animación comunica jerarquía o entrada de contenido.
   Sin librerías: animaciones CSS scroll-driven donde el navegador las soporta,
   con IntersectionObserver como respaldo (site.js añade .is-in). */
@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
    .reveal.is-in { opacity: 1; transform: none; }

    /* Escalonado por índice, para que una fila entre en secuencia y no en bloque. */
    .reveal[style*="--i"] { transition-delay: calc(var(--i) * 70ms); }

    @supports (animation-timeline: view()) {
      .reveal { opacity: 1; transform: none; transition: none; animation: rise linear both; animation-timeline: view(); animation-range: entry 5% cover 26%; }
      .reveal.is-in { opacity: 1; }
    }

    @keyframes rise {
      from { opacity: 0; transform: translateY(20px); }
      to   { opacity: 1; transform: none; }
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
    .tile:hover, .btn:active { transform: none; }
  }
}

/* ---------------------------------------------------------------- utils --- */
@layer utils {
  .vh { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .center { text-align: center; }
  .mt-l { margin-top: var(--space-l); }
  .mt-xl { margin-top: var(--space-xl); }
}
