/* ============================================================
   Argos Legal -- landing
   A single file. No JS, no external fonts, no CDN.
   Same identity as the panel: paper, ink, seal violet, manila
   (src/web/html.ts, tokens --fondo/--tinta/--acento/--carpeta).
   ============================================================ */

:root {
  color-scheme: light dark;
  --fondo: #f7f7f4;
  --superficie: #ffffff;
  --tinta: #1b1d22;
  --tinta-2: #53565f;
  --borde: #dfdad0;
  --borde-fuerte: #a8a08c;
  --acento: #5a3fa0;
  /* Text drawn on top of --acento (the .boton background). White meets AA
     here (~7.9:1), but dark mode's --acento is a light lavender where white
     text would fail -- see the dark override below. */
  --sobre-acento: #ffffff;
  --carpeta: #ece4c9;
  --grave: #8f1c1c;
  --grave-borde: #b3261e;
  --grave-fondo: #fbe9e8;
  --radio: 8px;
  --radio-tarjeta: 14px;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", Charter, "Bitstream Charter", "Noto Serif", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #141519;
    --superficie: #1c1d22;
    --tinta: #e9e7e2;
    --tinta-2: #b7b3aa;
    --borde: #34333a;
    --borde-fuerte: #5c5a56;
    --acento: #b3a1ef;
    /* White on this lighter --acento was ~2.3:1, below AA. This dark ink
       (the same value as the light mode --tinta) is ~7.4:1 against it. */
    --sobre-acento: #1b1d22;
    --carpeta: #2b2835;
    --grave: #ff9790;
    --grave-borde: #d9534f;
    --grave-fondo: #33161464;
  }
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font: 17px/1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
}
a { color: var(--acento); }
main, header, footer { max-width: 720px; margin: 0 auto; padding: 0 16px; }
/* The legal pages have no header above main; without this the h1 touches the top edge. */
body > main:first-child { padding-top: 48px; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: 32px; margin: 0 0 12px; }
h2 { font-size: 22px; margin: 48px 0 16px; }
p { margin: 0 0 12px; }
.tenue { color: var(--tinta-2); }

.portada { padding: 48px 16px 32px; text-align: center; }
.portada .subtitulo { font-size: 18px; color: var(--tinta-2); max-width: 42ch; margin: 0 auto 24px; }

.boton {
  display: inline-block;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--sobre-acento);
  background: var(--acento);
  border-radius: var(--radio);
}
.boton-secundario {
  display: inline-block;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--tinta);
  border: 1px solid var(--borde-fuerte);
  border-radius: var(--radio);
}

.pasos { padding-left: 20px; }
.pasos li { margin-bottom: 10px; }

.planes { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .planes { grid-template-columns: repeat(2, 1fr); }
}
.plan {
  border: 1px solid var(--borde);
  border-radius: var(--radio-tarjeta);
  padding: 20px;
  background: var(--superficie);
}
.plan h3 { margin: 0 0 4px; font-family: var(--serif); }
.plan .precio { font-size: 28px; font-weight: 700; margin: 8px 0; }
.plan .precio small { font-size: 14px; font-weight: 400; color: var(--tinta-2); }

.mock {
  border: 1px solid var(--borde);
  border-radius: var(--radio-tarjeta);
  padding: 16px;
  background: var(--superficie);
  margin: 16px 0 8px;
}
.mock-etiqueta { display: inline-block; font-size: 12px; font-weight: 600; color: var(--tinta-2); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }

.mock-fila {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
}
.mock-fila[data-estado="grave"] {
  border-left: 4px solid var(--grave-borde);
  background: var(--grave-fondo);
  color: var(--grave);
}

/* The Novedades mock (data-ejemplo="panel-aviso") mirrors the real screen's
   own markers -- data-envio="fallido" and the .aclaracion paragraph --
   restyled with this file's own tokens, since the landing never loads the
   panel's stylesheet. */
.mock-motivo {
  display: block;
  margin: 8px 0 0;
  padding: 8px 10px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: var(--grave);
  background: var(--superficie);
  border: 1px solid var(--grave-borde);
  border-radius: var(--radio);
}
.aclaracion { margin: 8px 0 0; font-size: 14px; }
.aclaracion[data-nivel="grave"] { color: var(--grave); font-weight: 600; }

details { border-top: 1px solid var(--borde); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }

footer { padding: 32px 16px 48px; color: var(--tinta-2); font-size: 14px; }
footer a { color: var(--tinta-2); }
