/* Vigente — hoja de estilos única.
 *
 * Sin dependencias externas a propósito: ni tipografías de Google ni CDN. Una
 * fuente remota manda la IP de cada visitante a un tercero y rompe la CSP de
 * `_headers`. La tipografía es la del sistema, que además carga al instante.
 */

:root {
  color-scheme: light dark;

  --verde: #1b6b4c;
  --verde-claro: #2e9a71;
  --fondo: #ffffff;
  --fondo-alt: #f4f7f5;
  --texto: #14201a;
  --texto-suave: #4a5a52;
  --borde: #dbe4de;
  --ambar: #b26a00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #0f1512;
    --fondo-alt: #16201b;
    --texto: #e8efea;
    --texto-suave: #a3b3aa;
    --borde: #26332c;
    --verde-claro: #4dbf90;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  /* 17px de base: la landing la mira gente que está de pie con el móvil al sol. */
  font-size: 17px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--fondo);
}

.contenido {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header.barra {
  border-bottom: 1px solid var(--borde);
  padding: 1rem 0;
}

.barra .contenido {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.marca {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--texto);
  text-decoration: none;
}

.marca svg {
  width: 1.6rem;
  height: 1.6rem;
}

.hero {
  padding: 4rem 0 3rem;
  background: var(--fondo-alt);
  border-bottom: 1px solid var(--borde);
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero p.entrada {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--texto-suave);
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

.distintivo {
  display: inline-block;
  background: color-mix(in srgb, var(--verde) 12%, transparent);
  color: var(--verde-claro);
  border: 1px solid color-mix(in srgb, var(--verde) 35%, transparent);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

section {
  padding: 3.5rem 0;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.rejilla {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin-top: 2rem;
}

.tarjeta {
  background: var(--fondo-alt);
  border: 1px solid var(--borde);
  border-radius: 1rem;
  padding: 1.5rem;
}

.tarjeta p {
  margin: 0;
  color: var(--texto-suave);
}

.tarjeta .icono {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.destacado {
  border-left: 4px solid var(--ambar);
  background: color-mix(in srgb, var(--ambar) 8%, transparent);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.destacado strong {
  color: var(--texto);
}

footer {
  border-top: 1px solid var(--borde);
  padding: 2.5rem 0;
  color: var(--texto-suave);
  font-size: 0.9rem;
}

footer a {
  color: var(--verde-claro);
}

a {
  color: var(--verde-claro);
}

/* --- Páginas de texto legal ------------------------------------------- */

.legal {
  max-width: 46rem;
  padding: 3rem 1.25rem 4rem;
  margin: 0 auto;
}

.legal h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
}

.legal .fecha {
  color: var(--texto-suave);
  font-size: 0.9rem;
  margin-top: 0;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.pendiente {
  background: color-mix(in srgb, var(--ambar) 15%, transparent);
  border: 1px dashed var(--ambar);
  border-radius: 0.4rem;
  padding: 0.15rem 0.4rem;
  font-weight: 600;
}
