/* =============================================================================
   Listoo · listoo.me
   Sitio estático: HTML + CSS + JS sin compilación.
   Marca (docs/00-indice.md): tinta #15181C, ámbar #F2A900, verde #3DBE8B,
   Archivo para textos e IBM Plex Mono para montos, códigos y recibos.
   ========================================================================== */

@layer reset, base, layout, components, sections, pages, utilities;

/* ---------- Fuentes autoalojadas (assets/fonts · licencia OFL en assets/fonts/LICENSE.txt) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Transiciones entre páginas (progresivas: navegadores sin soporte navegan sin animación). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* =============================================================================
   reset
   ========================================================================== */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul, fieldset { margin: 0; }
  ol, ul { padding: 0; }
  ol[role="list"], ul[role="list"] { list-style: none; }
  fieldset { padding: 0; border: 0; min-width: 0; }
  legend { padding: 0; }
  img, svg, picture { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
  button { cursor: pointer; }
  table { border-collapse: collapse; }
}

/* =============================================================================
   base: tokens, tipografía, enlaces y foco
   ========================================================================== */
@layer base {
  :root {
    color-scheme: light;
    interpolate-size: allow-keywords;

    /* Marca */
    --ink: #15181c;
    --ink-soft: #2b3036;
    --muted: #4f555d;
    --paper: #f4f2ee;          /* bg-gasolinera */
    --paper-cool: #f3f4f1;     /* bg-autoservicio */
    --white: #ffffff;
    --line: #dedad3;
    --line-cool: #dcddd8;
    --line-soft: #efece7;
    --amber: #f2a900;
    --amber-deep: #c98a00;     /* franjas de la pantalla viva */
    --amber-text: #8a5a00;     /* ámbar legible sobre fondos claros (5,3:1) */
    --green: #3dbe8b;
    --green-text: #1f7a4d;     /* verde legible sobre fondos claros (5,3:1) */
    --green-deep: #176b45;     /* verde sobre el fondo "ok" */
    --liters: #b45309;
    --ok: #cdefe0;
    --warn: #ffe9a8;
    --danger: #b42318;
    --danger-bg: #fdecea;
    --input-border: #8f8a81;   /* borde de campos: 3,4:1 sobre blanco */

    /* Sobre fondos de tinta */
    --on-ink: #ffffff;
    --on-ink-muted: #c9cdd2;
    --on-ink-line: #3a4047;

    /* Tipografía */
    --font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --display-stretch: 112%;
    --fs-h2: clamp(2.125rem, 1.45rem + 2.9vw, 3.625rem);
    --fs-h3: clamp(1.1875rem, 1.08rem + .45vw, 1.4375rem);
    --fs-lead: clamp(1.125rem, 1.02rem + .45vw, 1.3125rem);
    --fs-small: .875rem;
    --fs-micro: .8125rem;

    /* Forma y ritmo */
    --radius-control: 12px;
    --radius-card: 18px;
    --radius-pill: 999px;
    --gutter: clamp(1rem, .55rem + 2.2vw, 2.5rem);
    --container: 75rem;
    --header-h: 4rem;
    --section-space: clamp(4rem, 2.6rem + 5.6vw, 7.5rem);
    --shadow-float: 0 1px 0 rgb(255 255 255 / .06) inset, 0 28px 48px -22px rgb(21 24 28 / .42);

    /* Movimiento */
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-lock: cubic-bezier(.34, 1.4, .64, 1);

    /* Foco (se ajusta en secciones oscuras) */
    --focus: var(--green-text);

    /* Aviso «Versión preliminar sujeta a revisión legal» en terminos.html y privacidad.html.
       Cambia a none cuando la revisión legal esté aprobada (ver README). */
    --legal-draft-display: flex;
  }
  @media (width >= 64rem) { :root { --header-h: 4.5rem; } }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 1rem);
    background: var(--white);
  }
  @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

  body {
    min-height: 100dvh;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility;
  }

  h1, h2, h3, h4 { font-weight: 800; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
  h2 { font-size: var(--fs-h2); font-stretch: var(--display-stretch); letter-spacing: -.035em; line-height: 1.02; }
  h3 { font-size: var(--fs-h3); letter-spacing: -.015em; line-height: 1.2; font-weight: 700; }
  p, li, dd { text-wrap: pretty; }
  strong { font-weight: 700; }

  a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
  a:hover { text-decoration-thickness: .14em; }

  :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
  ::selection { background: var(--amber); color: var(--ink); }

  .icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
  .nowrap { white-space: nowrap; }
}

/* =============================================================================
   layout
   ========================================================================== */
@layer layout {
  .container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
  .section { padding-block: var(--section-space); }
  .section-follow { padding-top: clamp(1rem, .5rem + 2vw, 2.5rem); }
  .section-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); }
  .section-head > p:not(.eyebrow) { color: var(--muted); font-size: var(--fs-lead); line-height: 1.5; max-width: 38rem; }
  .section-head-split { max-width: none; }
  @media (width >= 56rem) {
    .section-head-split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: end; column-gap: 4rem; }
  }
  .on-ink { background: var(--ink); color: var(--on-ink); --focus: var(--amber); }
  /* Rejillas de una columna en móvil: minmax(0, 1fr) evita que un hijo ancho (p. ej. un carrusel) desborde la página. */
  :where(.hero-grid, .product-grid, .live-grid, .validate-grid, .faq-grid, .contact-grid, .validar-grid, .legal-grid, .help-layout, .not-found-grid) {
    grid-template-columns: minmax(0, 1fr);
  }
  .on-ink .section-head > p:not(.eyebrow) { color: var(--on-ink-muted); }
}

/* =============================================================================
   components
   ========================================================================== */
@layer components {
  /* ---------- Enlace para saltar al contenido ---------- */
  .skip-link {
    position: fixed;
    top: .75rem;
    left: .75rem;
    z-index: 100;
    padding: .75rem 1rem;
    border-radius: 10px;
    background: var(--ink);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    translate: 0 -200%;
  }
  .skip-link:focus { translate: 0 0; }

  /* ---------- Etiquetas de sección ---------- */
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: var(--fs-micro);
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--muted);
  }
  .eyebrow .icon { width: 1.15rem; height: 1.15rem; }
  .eyebrow-amber { color: var(--amber-text); }
  .eyebrow-green { color: var(--green-text); }
  .on-ink .eyebrow { color: var(--on-ink-muted); }
  .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--green); flex: none; }
  .on-ink .dot { background: var(--amber); }

  .h2-sub { display: block; color: var(--muted); }
  .on-ink .h2-sub { color: var(--on-ink-muted); }
  .lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); }
  .on-ink .lead { color: var(--on-ink-muted); }

  /* ---------- Botones ---------- */
  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 3rem;
    padding: .8rem 1.3rem;
    border: 1.5px solid transparent;
    border-radius: var(--radius-control);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    touch-action: manipulation;
    transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
  }
  .button .icon { width: 1.15rem; height: 1.15rem; stroke-width: 2.2; }
  .button-amber { background: var(--amber); color: var(--ink); }
  .button-amber:hover { background: #ffb81a; box-shadow: 0 10px 24px -14px rgb(201 138 0 / .9); }
  .button-ink { background: var(--ink); color: var(--white); }
  .button-ink:hover { background: var(--ink-soft); box-shadow: 0 10px 24px -14px rgb(21 24 28 / .8); }
  .button-green { background: var(--green); color: var(--ink); }
  .button-green:hover { background: #52cc9b; box-shadow: 0 10px 24px -14px rgb(31 122 77 / .8); }
  .button-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
  .button-outline:hover { background: var(--ink); color: var(--white); }
  .on-ink .button-outline { border-color: var(--on-ink-muted); color: var(--on-ink); }
  .on-ink .button-outline:hover { background: var(--on-ink); color: var(--ink); }
  .button[disabled], .button[aria-disabled="true"] { cursor: progress; opacity: .72; box-shadow: none; }
  .button-block { width: 100%; }
  @media (prefers-reduced-motion: no-preference) {
    .button { transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, translate .2s var(--ease-out); }
    .button .icon { transition: translate .25s var(--ease-out); }
    .button:hover:not([disabled]) { translate: 0 -1px; }
    .button:hover:not([disabled]) .icon { translate: 3px 0; }
    .button:active:not([disabled]) { translate: 0 1px; }
  }

  .text-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 2.75rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: .08em;
    text-underline-offset: .25em;
  }
  .text-link .icon { width: 1.05rem; height: 1.05rem; stroke-width: 2.2; }
  .text-link:hover { color: var(--green-text); }
  .on-ink .text-link:hover { color: var(--amber); }

  /* ---------- Marco de teléfono para capturas reales ---------- */
  .phone {
    position: relative;
    width: var(--phone-w, 15rem);
    padding: .45rem;
    border-radius: 1.9rem;
    background: var(--ink);
    box-shadow: var(--shadow-float);
  }
  .phone img {
    width: 100%;
    height: auto;
    aspect-ratio: 390 / 844;
    border-radius: 1.45rem;
    background: var(--paper);
  }
  .on-ink .phone { background: #262b31; box-shadow: 0 0 0 1px #3a4047, 0 30px 60px -24px rgb(0 0 0 / .7); }

  /* ---------- Visor de escaneo: el marco del logo ---------- */
  .vf-corner {
    position: absolute;
    width: var(--vf-size, 2.5rem);
    height: var(--vf-size, 2.5rem);
    color: var(--vf-color, var(--amber));
    fill: none;
    stroke: currentColor;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: color .35s;
  }
  .vf-corner.tl { top: calc(-1 * var(--vf-out, .75rem)); left: calc(-1 * var(--vf-out, .75rem)); }
  .vf-corner.tr { top: calc(-1 * var(--vf-out, .75rem)); right: calc(-1 * var(--vf-out, .75rem)); rotate: 90deg; }
  .vf-corner.br { bottom: calc(-1 * var(--vf-out, .75rem)); right: calc(-1 * var(--vf-out, .75rem)); rotate: 180deg; }
  .vf-corner.bl { bottom: calc(-1 * var(--vf-out, .75rem)); left: calc(-1 * var(--vf-out, .75rem)); rotate: 270deg; }

  /* ---------- Chips ---------- */
  .chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 2rem;
    padding: .3rem .8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--white);
    font-size: var(--fs-small);
    font-weight: 700;
    line-height: 1.2;
  }

  /* ---------- Selector segmentado (radios accesibles) ---------- */
  .segmented {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: .25rem;
    padding: .25rem;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius-control) + .25rem);
    background: var(--white);
  }
  .segmented label {
    position: relative;
    display: grid;
    align-content: center;
    gap: .15rem;
    min-height: 3rem;
    padding: .55rem 1rem;
    border-radius: var(--radius-control);
    cursor: pointer;
    font-weight: 700;
    line-height: 1.2;
    transition: background-color .2s, color .2s;
  }
  .segmented label small { font-size: var(--fs-micro); font-weight: 500; color: var(--muted); }
  .segmented input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
  .segmented label:hover { background: var(--paper); }
  .segmented label:has(:checked) { background: var(--ink); color: var(--white); }
  .segmented label:has(:checked) small { color: var(--on-ink-muted); }
  .segmented label:has(:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
  .on-ink .segmented { background: #1d2126; border-color: var(--on-ink-line); }
  .on-ink .segmented label { color: var(--on-ink-muted); }
  .on-ink .segmented label:hover { background: #262b31; }
  .on-ink .segmented label:has(:checked) { background: var(--white); color: var(--ink); }

  /* ---------- Formularios ---------- */
  .field { display: grid; gap: .4rem; }
  .field + .field, .field + .field-row, .field-row + .field, .field-row + .field-row { margin-top: 1.15rem; }
  .field-row { display: grid; gap: 1.15rem; }
  .field-row > .field + .field { margin-top: 0; }
  @media (width >= 36rem) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .label, .field > label, .field > legend { font-size: .9375rem; font-weight: 700; line-height: 1.3; }
  .optional { font-weight: 500; color: var(--muted); }
  .hint { font-size: var(--fs-small); color: var(--muted); line-height: 1.45; }
  .input {
    width: 100%;
    min-height: 3rem;
    padding: .7rem .9rem;
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius-control);
    background: var(--white);
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color .15s, background-color .15s;
  }
  .input.mono { font-family: var(--font-mono); font-weight: 600; letter-spacing: .02em; }
  .input::placeholder { color: #6b7076; opacity: 1; }
  .input:hover { border-color: var(--ink-soft); }
  .input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
  .input[aria-invalid="true"] { border-color: var(--danger); background: #fffbfa; }
  textarea.input { min-height: 6.5rem; resize: vertical; }
  .select { position: relative; }
  .select select { appearance: none; padding-right: 2.75rem; cursor: pointer; }
  .select::after {
    content: "";
    position: absolute;
    right: 1.1rem;
    top: 50%;
    width: .55rem;
    height: .55rem;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    translate: 0 -70%;
    rotate: 45deg;
    pointer-events: none;
  }
  .field-error {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    color: var(--danger);
    font-size: var(--fs-small);
    font-weight: 600;
    line-height: 1.4;
  }
  .field-error .icon { width: 1.1rem; height: 1.1rem; margin-top: .05rem; }
  .choice-group { display: grid; gap: .6rem; }
  @media (width >= 36rem) { .choice-group { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .choice {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 3rem;
    padding: .65rem .9rem;
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius-control);
    cursor: pointer;
    font-weight: 600;
    line-height: 1.3;
    transition: border-color .15s, background-color .15s;
  }
  .choice input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--ink); flex: none; }
  .choice:hover { border-color: var(--ink); }
  .choice:has(:checked) { border-color: var(--ink); background: var(--paper); }
  .choice:has(:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
  .choice-group[aria-invalid="true"] .choice { border-color: var(--danger); }
  .form-note { font-size: var(--fs-small); color: var(--muted); line-height: 1.5; margin-top: .9rem; }
  .form-note button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .2em;
  }
  .captcha:empty { display: none; }
  .captcha { margin-top: 1.15rem; min-height: 4.1rem; }

  /* ---------- Mensajes de formularios ---------- */
  .notice {
    display: flex;
    gap: .7rem;
    margin-top: 1.25rem;
    padding: .9rem 1rem;
    border-radius: var(--radius-control);
    background: var(--paper-cool);
    color: var(--ink);
    font-size: .9375rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .notice .icon { width: 1.3rem; height: 1.3rem; margin-top: .1rem; }
  .notice p + p { margin-top: .35rem; }
  .notice a { font-weight: 700; }
  .notice-ok { background: var(--ok); }
  .notice-ok .icon { color: var(--green-deep); }
  .notice-error { background: var(--danger-bg); }
  .notice-error .icon { color: var(--danger); }
  .notice-demo { background: var(--warn); }

  /* ---------- Resultado de la validación (réplica de la pantalla de validación de las apps) ---------- */
  .result { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
  .result:focus-visible { outline-offset: 6px; border-radius: 6px; }
  .result-demo {
    display: flex;
    gap: .55rem;
    align-items: center;
    padding: .65rem .85rem;
    border-radius: 10px;
    background: var(--warn);
    font-size: var(--fs-small);
    font-weight: 700;
    line-height: 1.35;
  }
  .result-demo .icon { width: 1.15rem; height: 1.15rem; }
  .result-head { display: grid; justify-items: center; gap: .45rem; text-align: center; }
  .result-badge {
    display: grid;
    place-items: center;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 50%;
    background: var(--green-text);
    color: var(--white);
  }
  .result-badge .icon { width: 2.25rem; height: 2.25rem; stroke-width: 2.6; }
  .result-title { font-size: 1.5rem; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
  .result-text { color: var(--muted); font-size: .9375rem; line-height: 1.45; max-width: 30rem; }
  .result[data-tone="danger"] .result-badge { background: var(--danger); }
  .result[data-tone="neutral"] .result-badge { background: var(--ink); }
  .result-rows { padding: .25rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
  .result-rows > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: .7rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: .9375rem;
  }
  .result-rows > div:last-child { border-bottom: 0; }
  .result-rows dt { color: var(--muted); flex: none; }
  .result-rows dd { min-width: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
  .result-rows dd.mono { font-weight: 600; }
  .status { font-weight: 700; }
  .status-ok { color: var(--green-text); }
  .status-danger { color: var(--danger); }
  .status-warn { color: var(--amber-text); }
  .status-neutral { color: var(--ink); }
  .result-foot { font-size: var(--fs-small); color: var(--muted); text-align: center; line-height: 1.45; }

  /* ---------- Diálogo ---------- */
  .dialog {
    width: min(36rem, 100% - 2rem);
    max-height: min(88dvh, 46rem);
    padding: 0;
    border: 0;
    border-radius: var(--radius-card);
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 40px 80px -30px rgb(21 24 28 / .55);
    overscroll-behavior: contain;
  }
  .dialog::backdrop { background: rgb(21 24 28 / .6); }
  .dialog-inner { display: grid; gap: 1rem; padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
  .dialog-inner h2 { font-size: 1.75rem; font-stretch: 100%; letter-spacing: -.02em; }
  .dialog-inner p, .dialog-inner li { color: var(--muted); }
  .dialog-inner ul { display: grid; gap: .6rem; padding-left: 1.1rem; }
  .dialog-close {
    position: absolute;
    top: .6rem;
    right: .6rem;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
  }
  .dialog-close:hover { background: var(--paper); }
  @media (prefers-reduced-motion: no-preference) {
    .dialog { transition: opacity .25s, translate .3s var(--ease-out), display .3s allow-discrete, overlay .3s allow-discrete; opacity: 0; translate: 0 1rem; }
    .dialog[open] { opacity: 1; translate: 0 0; }
    @starting-style { .dialog[open] { opacity: 0; translate: 0 1rem; } }
    .dialog::backdrop { transition: background-color .3s, display .3s allow-discrete, overlay .3s allow-discrete; background: rgb(21 24 28 / 0); }
    .dialog[open]::backdrop { background: rgb(21 24 28 / .6); }
    @starting-style { .dialog[open]::backdrop { background: rgb(21 24 28 / 0); } }
  }

  /* ---------- Preguntas (acordeón exclusivo con <details name>) ---------- */
  .faq-item { border-bottom: 1px solid var(--line); }
  .faq-item:first-child { border-top: 1px solid var(--line); }
  .faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    min-height: 3.5rem;
    padding-block: 1.1rem;
    list-style: none;
    cursor: pointer;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary .icon { width: 1.35rem; height: 1.35rem; stroke-width: 2.2; color: var(--muted); }
  .faq-item[open] summary .icon { rotate: 45deg; color: var(--ink); }
  .faq-item summary:hover { color: var(--green-text); }
  .faq-answer { padding-bottom: 1.35rem; padding-right: 2.5rem; color: var(--muted); }
  .faq-answer p + p { margin-top: .6rem; }
  @media (prefers-reduced-motion: no-preference) {
    .faq-item summary .icon { transition: rotate .25s var(--ease-out), color .2s; }
    .faq-item::details-content { block-size: 0; overflow-y: clip; transition: block-size .3s var(--ease-out), content-visibility .3s allow-discrete; }
    .faq-item[open]::details-content { block-size: auto; }
  }
}

/* =============================================================================
   sections (portada y elementos compartidos entre páginas)
   ========================================================================== */
@layer sections {
  /* ---------- Encabezado ---------- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    container: header / scroll-state;
    view-transition-name: site-header;
  }
  .header-inner {
    background: rgb(255 255 255 / .94);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s, border-color .25s;
  }
  @supports (backdrop-filter: blur(1px)) {
    .header-inner { background: rgb(255 255 255 / .82); backdrop-filter: saturate(1.4) blur(14px); }
  }
  @supports (container-type: scroll-state) {
    .header-inner { border-bottom-color: transparent; }
    @container header scroll-state(stuck: top) {
      .header-inner { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgb(21 24 28 / .5); }
    }
  }
  .header-bar { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
  .brand { display: block; flex: none; margin-right: auto; padding-block: .5rem; border-radius: 6px; }
  .brand img { width: clamp(7.25rem, 6rem + 3vw, 8.75rem); height: auto; }
  .header-cta { min-height: 2.75rem; padding: .55rem 1rem; font-size: .9375rem; white-space: nowrap; }
  .menu-button {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: .5rem .7rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--white);
    font-weight: 700;
    font-size: .9375rem;
  }
  .menu-button .icon { width: 1.3rem; height: 1.3rem; stroke-width: 2.2; }
  .menu-button:hover { border-color: var(--ink); }

  /* Navegación: panel emergente (popover) en móvil, fila en escritorio */
  .site-nav { color: var(--ink); }
  .nav-list a, .nav-access {
    display: flex;
    align-items: center;
    gap: .35rem;
    text-decoration: none;
    font-weight: 600;
  }
  .nav-list a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }
  .nav-access { color: var(--green-text); }
  .nav-access .icon { width: 1rem; height: 1rem; stroke-width: 2.3; }

  @media (width < 64rem) {
    .site-nav {
      position: fixed;
      inset: var(--header-h) 0 auto 0;
      width: 100%;
      max-height: calc(100dvh - var(--header-h));
      margin: 0;
      padding: .25rem var(--gutter) 1.5rem;
      overflow: auto;
      overscroll-behavior: contain;
      border: 0;
      border-bottom: 1px solid var(--line);
      background: var(--white);
      box-shadow: 0 30px 40px -30px rgb(21 24 28 / .45);
    }
    .site-nav:not(:where(:popover-open, .is-open)) { display: none; }
    .site-nav:where(:popover-open, .is-open) { display: grid; }
    .nav-list a, .nav-access { min-height: 3.25rem; border-bottom: 1px solid var(--line-soft); font-size: 1.125rem; }
    .nav-access { border-bottom: 0; }
    .header-cta { order: 0; }
    .menu-button { order: 1; }
  }
  @media (width < 30rem) {
    .header-bar { gap: .6rem; }
    .menu-button { padding-inline: .55rem; }
    .menu-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .header-cta { padding-inline: .85rem; }
  }
  @media (width >= 64rem) {
    .menu-button { display: none; }
    .site-nav {
      position: static;
      inset: auto;
      display: flex;
      align-items: center;
      gap: 1.75rem;
      width: auto;
      height: auto;
      margin: 0 1.5rem 0 0;
      padding: 0;
      overflow: visible;
      border: 0;
      background: none;
    }
    .nav-list { display: flex; align-items: center; gap: 1.5rem; }
    .nav-list a, .nav-access { min-height: 2.75rem; font-size: .9375rem; }
    .nav-list a:hover, .nav-access:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }
  }

  /* ---------- Portada ---------- */
  .hero { padding-block: clamp(2.25rem, 1.2rem + 4vw, 4.75rem) clamp(3rem, 2rem + 4vw, 5.5rem); overflow-x: clip; }
  .hero-grid { display: grid; gap: clamp(2.75rem, 2rem + 3vw, 4rem); align-items: center; }
  @media (width >= 60rem) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2.5rem, 1rem + 4vw, 5.5rem); } }
  .hero-copy { container-type: inline-size; display: grid; justify-items: start; }
  .hero .eyebrow { margin-bottom: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }

  .viewfinder {
    --vf-size: clamp(2.1rem, 1rem + 4.4cqi, 4rem);
    --vf-out: clamp(.75rem, .35rem + 1.9cqi, 1.5rem);
    position: relative;
    width: fit-content;
    padding-block: .08em .12em;
  }
  .hero-title {
    font-size: clamp(3.25rem, 19.6cqi, 7.75rem);
    font-stretch: var(--display-stretch);
    font-weight: 800;
    line-height: .9;
    letter-spacing: -.045em;
  }
  .hero-title > span { display: block; }
  .hero .vf-corner { stroke-width: 8.5; }
  .hero-check {
    display: inline-block;
    width: .74em;
    height: .74em;
    margin-left: .06em;
    vertical-align: -.02em;
    fill: none;
    stroke: var(--green);
    stroke-width: 4.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
  }
  .vf-scan { position: absolute; inset: 0 calc(var(--vf-size) * .25); pointer-events: none; opacity: 0; }
  .vf-scan::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 3px;
    background: var(--amber);
    box-shadow: 0 0 18px 3px rgb(242 169 0 / .45);
  }

  @media (prefers-reduced-motion: no-preference) {
    .hero .vf-corner { animation: vf-lock .6s var(--ease-lock) both; }
    .hero .vf-corner.tl { --from: -1.1rem -1.1rem; }
    .hero .vf-corner.tr { --from: 1.1rem -1.1rem; animation-delay: .05s; }
    .hero .vf-corner.br { --from: 1.1rem 1.1rem; animation-delay: .1s; }
    .hero .vf-corner.bl { --from: -1.1rem 1.1rem; animation-delay: .15s; }
    .hero .vf-scan { animation: vf-sweep 1s .45s cubic-bezier(.45, 0, .25, 1) both; }
    .hero .hero-check path { stroke-dasharray: 1; animation: vf-draw .5s 1.3s cubic-bezier(.65, 0, .35, 1) both; }
  }
  @keyframes vf-lock {
    from { opacity: 0; translate: var(--from, 0 0); }
    55% { opacity: 1; }
    to { opacity: 1; translate: 0 0; }
  }
  @keyframes vf-sweep {
    0% { opacity: 1; translate: 0 -100%; }
    88% { opacity: 1; }
    100% { opacity: 0; translate: 0 0; }
  }
  @keyframes vf-draw {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
  }

  .hero-lead {
    margin-top: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
    max-width: 30rem;
    font-size: var(--fs-lead);
    font-weight: 500;
    line-height: 1.45;
    color: var(--ink);
  }
  .hero-lead span { color: var(--muted); }
  .hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
  .hero-facts { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: 1.5rem; color: var(--muted); font-size: var(--fs-small); }
  .hero-facts li { display: inline-flex; align-items: center; gap: .4rem; }
  .hero-facts .icon { width: 1.05rem; height: 1.05rem; color: var(--green-text); stroke-width: 2.6; }

  .hero-visual { position: relative; padding-bottom: clamp(3.5rem, 2rem + 6vw, 5.5rem); }
  .hero-photo {
    width: 100%;
    margin-left: auto;
    aspect-ratio: 5 / 4;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--paper);
  }
  @media (width >= 60rem) { .hero-photo { width: 92%; aspect-ratio: 4 / 4.2; } }
  .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }
  .hero-visual { --phone-w: clamp(8.75rem, 4rem + 15vw, 13rem); }
  @media (width >= 60rem) { .hero-visual { --phone-w: clamp(10.5rem, 2rem + 11vw, 13.5rem); } }
  .hero-phone { position: absolute; left: .75rem; bottom: 0; }
  @media (width >= 60rem) { .hero-phone { left: 0; } }
  .hero-caption {
    position: absolute;
    right: 0;
    bottom: .25rem;
    max-width: calc(100% - var(--phone-w, 13rem) - 3rem);
    font-size: .8125rem;
    line-height: 1.4;
    color: var(--muted);
    text-align: right;
  }

  /* ---------- Franja de métodos de pago ---------- */
  .pay-strip { border-block: 1px solid var(--line); background: var(--paper); }
  .pay-strip .container { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; padding-block: 1.1rem; }
  .pay-label { font-weight: 700; }
  .pay-methods { display: flex; flex-wrap: wrap; gap: .5rem; }
  .pay-by { margin-left: auto; color: var(--muted); font-size: var(--fs-small); }
  .pay-by strong { color: var(--ink); letter-spacing: .06em; }
  @media (width < 48rem) { .pay-by { margin-left: 0; width: 100%; } }

  /* ---------- El problema ---------- */
  .problem-list { display: grid; border-top: 1.5px solid var(--ink); }
  .problem { display: grid; align-content: start; gap: 1rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
  .problem-tag {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--danger);
  }
  .problem-tag .icon { width: 1.05rem; height: 1.05rem; stroke-width: 2.2; }
  .problem-quote {
    font-size: clamp(1.3125rem, 1.15rem + .7vw, 1.75rem);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.015em;
    color: var(--ink);
  }
  .problem-answer { display: flex; gap: .65rem; color: var(--muted); line-height: 1.5; }
  .problem-answer .icon { width: 1.25rem; height: 1.25rem; margin-top: .1rem; color: var(--green-text); stroke-width: 2.6; }
  .problem-answer strong { color: var(--ink); }
  @media (width >= 56rem) {
    .problem-list { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
    .problem { grid-template-rows: auto 1fr auto; padding: 2rem 2rem 2.25rem; border-bottom: 0; }
    .problem:first-child { padding-left: 0; }
    .problem:last-child { padding-right: 0; }
    .problem + .problem { border-left: 1px solid var(--line); }
  }

  /* ---------- Cómo funciona ---------- */
  .steps { display: grid; gap: 1rem; }
  @media (width >= 56rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
  .step { display: grid; gap: 1rem; align-content: start; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); border-radius: var(--radius-card); background: var(--paper); }
  .step-visual {
    display: grid;
    place-items: center;
    min-height: 8.5rem;
    border-radius: 14px;
    background: var(--white);
    border: 1px solid var(--line);
  }
  .step-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
  .step-num { font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-small); color: var(--muted); }
  .step h3 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); font-stretch: var(--display-stretch); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
  .step p { color: var(--muted); }
  .mini-vf { --vf-size: 1.6rem; --vf-out: .55rem; position: relative; padding: .65rem; color: var(--ink); }
  .mini-vf .vf-corner { stroke-width: 8; }
  .mini-vf .qr-glyph { width: 3.4rem; height: 3.4rem; stroke-width: 1.6; }
  .step-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; padding: 1rem; }
  .status-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .8rem;
    border-radius: 10px;
    background: var(--ok);
    color: var(--green-deep);
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    font-weight: 600;
  }
  .status-chip .icon { width: 1rem; height: 1rem; stroke-width: 2.8; }
  .step-receipt { display: grid; gap: .55rem; justify-items: center; }
  .step-receipt small { font-family: var(--font-mono); color: var(--muted); font-size: .8125rem; }

  /* ---------- Productos ---------- */
  .product-gas { background: var(--paper); }
  .product-auto { background: var(--white); }
  .product-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: center; }
  @media (width >= 60rem) {
    .product-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
    .product-grid-reverse { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  }
  .product-copy { display: grid; justify-items: start; gap: 1.25rem; }
  .product-copy h2 { margin-top: .25rem; }
  .product-copy .lead { max-width: 34rem; }
  .feature-list { display: grid; gap: .9rem; margin-block: .25rem; max-width: 36rem; }
  .feature-list li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: .65rem; color: var(--muted); line-height: 1.5; }
  .feature-list li strong { color: var(--ink); }
  .feature-list .icon { width: 1.25rem; height: 1.25rem; margin-top: .12rem; stroke-width: 2.6; }
  .product-gas .feature-list .icon { color: var(--amber-text); }
  .product-auto .feature-list .icon { color: var(--green-text); }
  .product-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem; margin-top: .5rem; }
  .product-price { color: var(--muted); font-size: .9375rem; }
  .product-price .mono { color: var(--ink); font-weight: 600; font-size: 1.125rem; }

  .stage-gas { position: relative; }
  .phone-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(10.25rem, 1fr);
    gap: 1rem;
    margin-inline: calc(-1 * var(--gutter));
    padding: .5rem var(--gutter) 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
  }
  .phone-row > li { scroll-snap-align: start; }
  .phone-row figure { display: grid; justify-items: center; gap: .85rem; }
  .phone-row .phone { --phone-w: 100%; }
  .phone-row figcaption { display: grid; justify-items: center; text-align: center; line-height: 1.3; }
  .phone-row figcaption strong { font-size: 1rem; }
  .phone-row figcaption span { color: var(--muted); font-size: var(--fs-small); }
  .phone-row:focus-visible { outline-offset: -3px; border-radius: 12px; }
  @media (width >= 40rem) {
    .phone-row { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-inline: 0; padding: 0; overflow: visible; }
    .phone-row > li:nth-child(2) { translate: 0 -1.75rem; }
  }

  .stage-auto { position: relative; padding-bottom: clamp(9rem, 4rem + 22vw, 13rem); }
  .stage-photo { width: 100%; aspect-ratio: 3 / 2; border-radius: var(--radius-card); object-fit: cover; object-position: 40% 50%; background: var(--paper-cool); }
  .stage-phones { position: absolute; right: clamp(.5rem, 2vw, 1.5rem); bottom: 0; display: flex; align-items: flex-end; gap: clamp(.6rem, 1.5vw, 1rem); }
  .stage-phones figure { display: grid; justify-items: center; gap: .6rem; }
  .stage-phones .phone { --phone-w: clamp(8.25rem, 4.5rem + 11vw, 11.25rem); }
  .stage-phones .stage-seller .phone { --phone-w: clamp(7.25rem, 4rem + 9vw, 9.75rem); }
  .stage-phones figcaption { font-weight: 700; font-size: var(--fs-small); background: var(--white); padding: .1rem .6rem; border-radius: var(--radius-pill); }
  .mode-shot { display: none; }
  .mode-text { display: none; color: var(--muted); max-width: 34rem; min-height: 3lh; }
  .product-auto:not(:has(input[value="item"]:checked)) .mode-lista,
  .product-auto:has(input[value="item"]:checked) .mode-item { display: block; }
  @media (prefers-reduced-motion: no-preference) {
    .mode-shot, .mode-text { transition: opacity .35s var(--ease-out); }
    @starting-style { .mode-shot, .mode-text { opacity: 0; } }
  }

  /* ---------- Pantalla viva ---------- */
  .live { overflow: clip; }
  .live-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
  @media (width >= 60rem) {
    .live-grid {
      grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
      grid-template-areas: "copy stage" "legend stage";
      column-gap: clamp(2.5rem, 2rem + 3vw, 4.5rem);
      row-gap: 2.25rem;
    }
    .live-copy { grid-area: copy; align-self: end; }
    .live-stage { grid-area: stage; align-self: center; }
    .live-legend { grid-area: legend; align-self: start; }
  }
  .live-copy { display: grid; gap: 1.25rem; justify-items: start; }
  .live-copy > p { color: var(--on-ink-muted); max-width: 36rem; }
  .live-legend { display: grid; gap: 1.5rem; }
  .anatomy-legend { display: grid; gap: 1rem; }
  .anatomy-legend li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .8rem; align-items: start; }
  .anatomy-legend strong { display: block; color: var(--on-ink); }
  .anatomy-legend span:not(.marker) { color: var(--on-ink-muted); line-height: 1.45; }
  .marker {
    display: grid;
    place-items: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: var(--amber);
    color: var(--ink);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: .875rem;
    line-height: 1;
  }
  .live-stage { display: grid; justify-items: center; gap: 1.5rem; }
  .anatomy { display: grid; justify-items: center; gap: 1rem; }
  .anatomy .phone { --phone-w: clamp(15rem, 10rem + 14vw, 18.5rem); }
  .anatomy-screen { position: relative; }
  .anatomy-dot {
    position: absolute;
    left: var(--x);
    top: var(--y);
    translate: -50% -50%;
    box-shadow: 0 0 0 3px var(--ink), 0 6px 14px rgb(0 0 0 / .45);
  }
  .anatomy-dot.d1 { --x: 4.5%; --y: 34%; }
  .anatomy-dot.d2 { --x: 95.5%; --y: 4.8%; }
  .anatomy-dot.d3 { --x: 77%; --y: 17.8%; }
  .anatomy-dot.d4 { --x: 88%; --y: 26%; }
  .live:has(input[value="auto"]:checked) .anatomy-dot.d1 { --y: 24%; }
  .live:has(input[value="auto"]:checked) .anatomy-dot.d2 { --y: 5.1%; }
  .live:has(input[value="auto"]:checked) .anatomy-dot.d3 { --y: 13.8%; }
  .live:has(input[value="auto"]:checked) .anatomy-dot.d4 { --x: 81%; --y: 21%; }
  .live-shot { display: none; }
  .live:not(:has(input[value="auto"]:checked)) .live-gas,
  .live:has(input[value="auto"]:checked) .live-auto { display: block; }
  .anatomy figcaption { max-width: 22rem; text-align: center; color: var(--on-ink-muted); font-size: var(--fs-small); line-height: 1.45; }
  .used-card { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: 1rem; align-items: center; padding: .9rem; border: 1px solid var(--on-ink-line); border-radius: var(--radius-card); max-width: 34rem; }
  .used-card img { width: 100%; height: auto; border-radius: 10px; }
  .used-card figcaption { color: var(--on-ink-muted); font-size: .9375rem; line-height: 1.45; }
  .used-card figcaption strong { color: var(--on-ink); }
  @media (prefers-reduced-motion: no-preference) {
    @supports ((animation-timeline: view()) and (animation-range: entry)) {
      .anatomy-dot { animation: dot-in linear both; animation-timeline: --anatomy; }
      .anatomy { view-timeline: --anatomy block; }
      .anatomy-dot.d1 { animation-range: entry 35% entry 75%; }
      .anatomy-dot.d2 { animation-range: entry 50% entry 90%; }
      .anatomy-dot.d3 { animation-range: entry 65% cover 50%; }
      .anatomy-dot.d4 { animation-range: entry 80% cover 55%; }
    }
    .live-shot { transition: opacity .35s var(--ease-out); }
    @starting-style { .live-shot { opacity: 0; } }
  }
  @keyframes dot-in {
    from { opacity: 0; scale: .2; }
    to { opacity: 1; scale: 1; }
  }

  /* ---------- Precios ---------- */
  .trial-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: var(--radius-pill); background: var(--ok); color: var(--green-deep); font-weight: 700; font-size: .9375rem; }
  .trial-pill .icon { width: 1.1rem; height: 1.1rem; stroke-width: 2.6; }
  .pricing .section-head-split > div:last-child { display: grid; gap: .75rem; justify-items: start; }
  .pricing .section-head-split > div:last-child p:not(.trial-pill) { color: var(--muted); }
  .plans { display: grid; gap: 2rem; }
  .plan-group { display: grid; gap: .9rem; align-content: start; }
  .plan-group-title { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-micro); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
  .plan-group-title .icon { width: 1.15rem; height: 1.15rem; }
  .plan-group-gas .plan-group-title { color: var(--amber-text); }
  .plan-group-auto .plan-group-title { color: var(--green-text); }
  .plan-row { display: grid; gap: 1rem; }
  @media (width >= 44rem) {
    .plan-row { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); column-gap: 1rem; row-gap: 0; }
    .plan-row > .plan { grid-row: span 5; grid-template-rows: subgrid; row-gap: 1rem; }
  }
  .plan {
    position: relative;
    display: grid;
    gap: 1rem;
    align-content: start;
    padding: 1.5rem 1.35rem 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
    box-shadow: inset 0 4px 0 var(--green);
  }
  .plan-group-gas .plan { background: var(--paper); box-shadow: inset 0 4px 0 var(--amber); height: 100%; grid-template-rows: auto auto auto 1fr auto; }
  .plan-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; font-stretch: var(--display-stretch); }
  .plan-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .15rem; font-family: var(--font-mono); font-weight: 600; font-size: clamp(2.75rem, 2.2rem + 1.8vw, 3.4rem); line-height: 1; letter-spacing: -.05em; }
  .plan-currency { align-self: flex-start; margin-top: .12em; font-size: .5em; letter-spacing: 0; }
  .plan-period { flex-basis: 100%; margin-top: .55rem; font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 500; letter-spacing: 0; line-height: 1.3; color: var(--muted); }
  .plan-limit { font-weight: 700; }
  .plan-features { display: grid; gap: .55rem; align-content: start; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
  .plan-features li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: .5rem; line-height: 1.4; }
  .plan-features .icon { width: 1.05rem; height: 1.05rem; margin-top: .12rem; stroke-width: 2.6; color: var(--green-text); }
  .plan-group-gas .plan-features .icon { color: var(--amber-text); }
  .plan .button { width: 100%; }
  @media (width >= 64rem) {
    .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto repeat(5, auto); column-gap: 1rem; row-gap: 0; }
    .plan-group, .plan-row { display: contents; }
    .plan-group-title { grid-row: 1; margin-bottom: .9rem; }
    .plan-group-gas .plan-group-title { grid-column: 1; }
    .plan-group-auto .plan-group-title { grid-column: 2 / span 3; }
    .plans .plan { grid-row: 2 / span 5; grid-template-rows: subgrid; row-gap: 1rem; height: auto; }
  }
  .pricing-notes { display: grid; gap: .4rem; margin-top: 1.75rem; color: var(--muted); font-size: .9375rem; }
  .pricing-notes .text-link { color: var(--ink); justify-self: start; }

  /* ---------- Validar recibo ---------- */
  .validate { background: var(--paper-cool); }
  .validate-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: start; }
  @media (width >= 60rem) { .validate-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); } }
  .validate-copy { display: grid; gap: 1.25rem; justify-items: start; }
  .validate-copy > p:not(.eyebrow):not(.assurance) { color: var(--muted); font-size: var(--fs-lead); line-height: 1.5; max-width: 32rem; }
  .assurance { display: flex; gap: .75rem; align-items: flex-start; max-width: 30rem; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
  .assurance .icon { width: 1.5rem; height: 1.5rem; color: var(--green-text); }
  .validator {
    --vf-size: 2.4rem;
    --vf-out: .6rem;
    position: relative;
    padding: clamp(1.25rem, 1rem + 1.4vw, 2rem);
    border-radius: var(--radius-card);
    background: var(--white);
    box-shadow: 0 1px 0 var(--line-cool), 0 30px 60px -40px rgb(21 24 28 / .35);
  }
  .validator .vf-corner { stroke-width: 6.5; }
  .validator[data-state="ok"] { --vf-color: var(--green); }
  .validator[data-state="danger"] { --vf-color: var(--danger); }
  .validator[data-state="busy"] .vf-corner { animation: vf-pulse 1s ease-in-out infinite; }
  @media (prefers-reduced-motion: reduce) { .validator[data-state="busy"] .vf-corner { animation: none; } }
  @keyframes vf-pulse { 50% { opacity: .35; } }
  .validator-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 1.1rem; }
  .validator .button { margin-top: 1.4rem; }

  /* ---------- Preguntas frecuentes ---------- */
  .faq-grid { display: grid; gap: 2rem; }
  @media (width >= 60rem) {
    .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4.5rem; align-items: start; }
    .faq-grid > header { position: sticky; top: calc(var(--header-h) + 2rem); }
  }
  .faq-grid > header { display: grid; gap: 1rem; justify-items: start; }
  .faq-grid > header p:not(.eyebrow) { color: var(--muted); }

  /* ---------- Contacto ---------- */
  .contact-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: start; }
  @media (width >= 60rem) { .contact-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }
  .contact-copy { display: grid; gap: 1.25rem; justify-items: start; }
  .contact-copy h2 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem); }
  .contact-copy h2 .h2-sub { color: var(--amber); }
  .contact-copy > p:not(.eyebrow) { color: var(--on-ink-muted); font-size: var(--fs-lead); line-height: 1.5; max-width: 30rem; }
  .channels { display: grid; gap: .65rem; width: 100%; max-width: 26rem; margin-top: .5rem; }
  .channel {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-height: 3.5rem;
    padding: .7rem 1rem;
    border: 1px solid var(--on-ink-line);
    border-radius: 14px;
    text-decoration: none;
    transition: background-color .2s, border-color .2s;
  }
  .channel:hover { background: #1e2227; border-color: #59616a; }
  .channel .icon { width: 1.4rem; height: 1.4rem; color: var(--amber); }
  .channel span { display: grid; line-height: 1.3; font-weight: 700; }
  .channel small { font-weight: 400; color: var(--on-ink-muted); font-size: var(--fs-small); }
  .contact-place { color: var(--on-ink-muted); font-size: var(--fs-small); }
  .contact-form {
    --focus: var(--green-text);
    padding: clamp(1.25rem, 1rem + 1.6vw, 2.25rem);
    border-radius: var(--radius-card);
    background: var(--white);
    color: var(--ink);
  }
  .contact-form .button { margin-top: 1.4rem; }

  /* ---------- Pie ---------- */
  .site-footer { padding-block: clamp(2.75rem, 2rem + 3vw, 4rem) 2rem; border-top: 1px solid var(--line); background: var(--white); }
  .footer-grid { display: grid; gap: 2rem; }
  @media (width >= 48rem) { .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } }
  .footer-brand { display: grid; gap: .9rem; justify-items: start; align-content: start; }
  .footer-brand img { width: 8.5rem; height: auto; }
  .footer-brand p { color: var(--muted); max-width: 22rem; }
  .footer-tagline { font-weight: 800; font-stretch: var(--display-stretch); letter-spacing: -.02em; color: var(--ink) !important; font-size: 1.125rem; }
  .footer-col h2 { margin-bottom: .5rem; font-size: var(--fs-micro); font-stretch: 100%; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
  .footer-col a, .footer-col button {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 2.5rem;
    padding: 0;
    border: 0;
    background: none;
    text-decoration: none;
    font-weight: 600;
    text-align: left;
  }
  .footer-col a:hover, .footer-col button:hover { text-decoration: underline; }
  .footer-col .icon { width: .95rem; height: .95rem; stroke-width: 2.3; }
  .footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-small); }

  /* ---------- WhatsApp flotante ---------- */
  .whatsapp-float {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 35;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-width: 3.25rem;
    min-height: 3.25rem;
    padding: .7rem 1.1rem;
    border-radius: var(--radius-pill);
    background: var(--green-text);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 14px 30px -12px rgb(21 24 28 / .55);
    transition: background-color .2s, opacity .25s, visibility .25s;
  }
  .whatsapp-float .icon { width: 1.5rem; height: 1.5rem; }
  .whatsapp-float:hover { background: var(--green-deep); }
  .whatsapp-float[data-hidden],
  body:has(:is(input, textarea, select):focus) .whatsapp-float { opacity: 0; visibility: hidden; pointer-events: none; }
  @media (width < 40rem) {
    .whatsapp-float { padding: 0; }
    .whatsapp-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  }
  @media (prefers-reduced-motion: no-preference) {
    .whatsapp-float { transition: background-color .2s, opacity .25s, visibility .25s, translate .3s var(--ease-out); }
    .whatsapp-float[data-hidden],
    body:has(:is(input, textarea, select):focus) .whatsapp-float { translate: 0 1rem; }
  }
}

/* =============================================================================
   pages: /validar, legales y 404
   ========================================================================== */
@layer pages {
  /* ---------- /validar ---------- */
  .page-hero { padding-block: clamp(2.25rem, 1.5rem + 3vw, 4.5rem) var(--section-space); background: var(--paper-cool); }
  .validar-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: start; }
  @media (width >= 60rem) {
    .validar-grid {
      grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
      grid-template-areas: "intro form" "states form";
      grid-template-rows: auto 1fr;
      row-gap: 1.5rem;
    }
    .validar-intro { grid-area: intro; }
    .validar-grid > .validator { grid-area: form; }
    .validar-states { grid-area: states; }
  }
  .validar-intro { display: grid; gap: 1.25rem; justify-items: start; }
  .page-title { font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.5rem); font-stretch: var(--display-stretch); letter-spacing: -.04em; line-height: .98; }
  .states { display: grid; gap: 0; width: 100%; max-width: 34rem; margin-top: .5rem; border-top: 1px solid var(--line-cool); }
  .states > div { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: 1rem; padding-block: .85rem; border-bottom: 1px solid var(--line-cool); }
  .states dt { font-weight: 700; }
  .states dd { color: var(--muted); font-size: .9375rem; line-height: 1.5; }
  @media (width < 30rem) { .states > div { grid-template-columns: 1fr; gap: .2rem; } }
  .states-title { margin-top: .75rem; font-size: var(--fs-micro); font-stretch: 100%; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .help-layout { display: grid; gap: 2.5rem; align-items: center; }
  @media (width >= 60rem) { .help-layout { grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; } }
  .help-grid { display: grid; gap: 1rem; }
  @media (width >= 40rem) { .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .help-figure { display: grid; justify-items: center; gap: .9rem; }
  .help-figure .phone { --phone-w: clamp(15rem, 12rem + 6vw, 17.5rem); }
  .phone-excerpt img { aspect-ratio: 390 / 548; }
  .help-note { margin-top: 2rem; color: var(--muted); }
  .help-note a { color: var(--ink); font-weight: 600; }
  .help-figure figcaption { max-width: 16rem; text-align: center; color: var(--muted); font-size: var(--fs-small); }
  .help-card { display: grid; gap: .6rem; align-content: start; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-card); }
  .help-card .icon { width: 1.6rem; height: 1.6rem; color: var(--green-text); }
  .help-card h3 { font-size: 1.125rem; }
  .help-card p { color: var(--muted); font-size: .9375rem; }

  /* ---------- Páginas legales ---------- */
  .legal { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) var(--section-space); }
  .legal-grid { display: grid; gap: 2rem; }
  @media (width >= 64rem) {
    .legal-grid {
      grid-template-columns: minmax(0, 15rem) minmax(0, 46rem);
      grid-template-areas: "toc head" "toc doc";
      grid-template-rows: auto 1fr;
      column-gap: 4.5rem;
      row-gap: 0;
      justify-content: center;
    }
    .legal-head { grid-area: head; }
    .legal-toc { grid-area: toc; }
    .legal-doc { grid-area: doc; }
  }
  .legal-toc { align-self: start; padding: 1.25rem; border-radius: var(--radius-card); background: var(--paper); }
  @media (width >= 64rem) { .legal-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); max-height: calc(100dvh - var(--header-h) - 3rem); overflow: auto; } }
  .toc-title { margin-bottom: .6rem; font-size: var(--fs-micro); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .legal-toc ol { display: grid; gap: .1rem; }
  @media (22rem <= width < 64rem) { .legal-toc ol { display: block; columns: 2; column-gap: 1.25rem; } .legal-toc li { break-inside: avoid; } .legal-toc a { font-size: .875rem; } }
  .legal-toc a { display: block; padding-block: .4rem; font-size: .9375rem; line-height: 1.35; text-decoration: none; }
  .legal-toc a:hover { text-decoration: underline; }
  .legal-doc { min-width: 0; }
  .legal-head { display: grid; gap: 1rem; justify-items: start; min-width: 0; padding-bottom: 2rem; border-bottom: 1.5px solid var(--ink); }
  @media (width >= 64rem) { .legal-head { margin-bottom: 2rem; } }
  .legal-doc > h2:first-child { margin-top: 0; }
  @media (width >= 64rem) { .legal-doc > :first-child { margin-top: 0; } }
  .legal-meta { color: var(--muted); font-size: .9375rem; }
  .legal-draft {
    display: var(--legal-draft-display);
    gap: .7rem;
    align-items: flex-start;
    width: 100%;
    padding: .9rem 1rem;
    border-radius: var(--radius-control);
    background: var(--warn);
    color: var(--ink);
    line-height: 1.5;
  }
  .legal-draft .icon { width: 1.3rem; height: 1.3rem; margin-top: .1rem; }
  .legal-doc h2 { margin-top: 2.5rem; margin-bottom: .9rem; font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem); font-stretch: 100%; letter-spacing: -.02em; line-height: 1.2; }
  .legal-doc h3 { margin-top: 1.5rem; margin-bottom: .5rem; font-size: 1.125rem; }
  .legal-doc p, .legal-doc li { color: #353a40; }
  .legal-doc p + p, .legal-doc p + ul, .legal-doc ul + p { margin-top: .85rem; }
  .legal-doc ul { display: grid; gap: .5rem; padding-left: 1.25rem; }
  .legal-doc li::marker { color: var(--muted); }
  .legal-doc a { font-weight: 600; }
  .legal-summary { display: grid; gap: .75rem; padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); }
  .legal-summary h2 { margin: 0 0 .25rem; font-size: 1.125rem; }
  .legal-contact { margin-top: 2.5rem; padding: 1.35rem; border-radius: var(--radius-card); background: var(--paper); }

  /* ---------- 404 ---------- */
  .not-found { padding-block: clamp(3rem, 2rem + 6vw, 7rem); }
  .not-found-grid { display: grid; gap: 2.5rem; align-items: center; justify-items: start; }
  @media (width >= 56rem) { .not-found-grid { grid-template-columns: auto minmax(0, 1fr); gap: 5rem; } }
  .nf-frame { --vf-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); --vf-out: 0rem; position: relative; display: grid; place-items: center; width: clamp(11rem, 8rem + 14vw, 17rem); aspect-ratio: 1; margin: 1rem; }
  .nf-frame .vf-corner { stroke-width: 7; }
  .nf-code { font-family: var(--font-mono); font-weight: 600; font-size: clamp(2.75rem, 2rem + 3vw, 4.25rem); letter-spacing: .04em; color: var(--muted); }
  .not-found-copy { display: grid; gap: 1.25rem; justify-items: start; max-width: 38rem; }
  .not-found-copy p:not(.eyebrow) { color: var(--muted); font-size: var(--fs-lead); line-height: 1.5; }
  .not-found-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
}

/* =============================================================================
   utilities
   ========================================================================== */
@layer utilities {
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  [hidden]:not([hidden="until-found"]) { display: none; }

  @media (forced-colors: active) {
    .button, .menu-button, .chip, .choice, .segmented label { border: 1px solid ButtonText; }
    .vf-corner, .hero-check { stroke: CanvasText; }
    .marker, .anatomy-dot, .result-badge { forced-color-adjust: none; }
  }
  @media print {
    .site-header, .whatsapp-float, .skip-link, .menu-button { display: none; }
    .on-ink { background: none; color: #000; }
  }
}
