/*
  LOS COLORES Y LAS LETRAS DE LA APP (theme/tokens.ts): el claro del handoff
  v2, el oscuro de paletas.oscuro y el lavanda de acento. Sigue el tema del
  teléfono. Las fuentes se sirven desde la misma web: la web no le pide nada a
  terceros (ver "Lo que importa" en docs/modelo-web.md).

  En oscuro el texto chico va en #9AA2AD y no en el textMuted de la app, que
  sobre #0B0D10 no llega a 4,5:1.
*/
@font-face {
  font-family: "Geist";
  src: url("/fuentes/Geist-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fuentes/Geist-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --fondo: #f6f7f9;
  --tarjeta: #ffffff;
  --borde: #e7e9ed;
  --texto: #14161a;
  --secundario: #4b5260;
  --chico: #646b78;
  --acento: #5b4bdb;
  --lav-fondo: #ece9ff;
  --lav-tinta: #4a3fa8;
  --halo: rgba(139, 124, 246, 0.26);
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #0b0d10;
    --tarjeta: #14171c;
    --borde: #2a2e37;
    --texto: #f4f6f8;
    --secundario: #c7cdd4;
    --chico: #9aa2ad;
    --acento: #9b82ff;
    --lav-fondo: rgba(124, 92, 255, 0.14);
    --lav-tinta: #9b82ff;
    --halo: rgba(124, 92, 255, 0.24);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--fondo);
  color: var(--texto);
  font: 17px/1.6 "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--acento); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 600; }

/* La barra de arriba y el pie, iguales en todas las páginas. */
.barra, .pie {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px;
}
.marca {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--texto); text-decoration: none; font-weight: 600; font-size: 1.05rem;
}
.marca img { border-radius: 10px; }
.pie {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  border-top: 1px solid var(--borde);
  color: var(--chico); font-size: 0.94rem;
}
.pie a { color: var(--chico); }
.pie a:hover { color: var(--texto); }

/* La portada mínima y la 404: una frase grande sobre un halo lavanda. */
.portada {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 16px 72px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  isolation: isolate;
}
.portada::before {
  content: "";
  position: absolute; z-index: -1;
  inset: 0 0 0 auto;
  width: min(720px, 100%);
  background: radial-gradient(closest-side, var(--halo), transparent);
  pointer-events: none;
}
.pildora {
  margin: 0 0 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--lav-fondo);
  color: var(--lav-tinta);
  font-weight: 600; font-size: 0.94rem;
}
.portada h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.5rem, 9vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}
.portada h1 em { font-style: normal; color: var(--acento); }
.portada .bajada { margin: 20px 0 0; color: var(--secundario); max-width: 40ch; }
.portada .bajada a { font-weight: 600; }

/* La política: un texto para leer, sin animación, a 65 caracteres como mucho. */
.texto {
  flex: 1;
  width: 100%;
  max-width: calc(65ch + 32px);
  margin: 0 auto;
  padding: 24px 16px 56px;
}
.texto h1 {
  margin: 8px 0 4px;
  font-size: clamp(2rem, 6vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.fecha { margin: 0 0 28px; color: var(--chico); font-size: 0.94rem; }
.texto section {
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: 20px;
  padding: 20px;
  margin: 0 0 14px;
}
.texto section.corto { background: var(--lav-fondo); border-color: transparent; }
.texto h2 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 10px; font-weight: 600; letter-spacing: -0.01em; }
.texto p { margin: 0 0 12px; }
.texto ul { padding-left: 20px; margin: 0 0 12px; }
.texto li { margin: 0 0 8px; }
.texto p:last-child, .texto ul:last-child, .texto li:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
  .barra, .pie { padding-left: 32px; padding-right: 32px; }
  .portada { padding: 80px 32px 112px; }
  .portada .bajada { font-size: 1.1rem; }
  .texto { padding-top: 40px; }
  .texto section { padding: 24px 28px; }
}
