/* Base: reset mínimo, tipografía y estructura. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--noche); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background: var(--noche);
  color: var(--texto);
  font-family: var(--font-texto);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-titulo);
  font-weight: 300;
  line-height: 1.04;
  color: var(--texto);
}
h1 { font-size: 2.875rem; letter-spacing: -2.2px; }
h2 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.6px; line-height: 1.2; }
h1:focus { outline: none; }

p { margin: 0; }
a { color: var(--texto-suave); text-underline-offset: 5px; }
a:hover { color: var(--acento); }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }

.solo-lectores {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.texto-suave { color: var(--texto-suave); }
.texto-acento { color: var(--acento); }
.texto-chico { font-size: 0.9375rem; }
.multilinea { white-space: pre-line; overflow-wrap: anywhere; }

/* ── Estructura ──────────────────────────────────────────────────────────── */
.cabecera { position: relative; z-index: 2; }
.cabecera__interior {
  max-width: calc(var(--columna) + 2 * var(--margen));
  margin: 0 auto;
  padding: 28px var(--margen) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-titulo);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.2px;
  color: var(--texto);
  text-decoration: none;
}
.marca:hover { color: var(--texto); }
.marca__punto { width: 8px; height: 8px; border-radius: 50%; background: var(--acento); }

.principal {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: calc(var(--columna) + 2 * var(--margen));
  margin: 0 auto;
  padding: 0 var(--margen) 120px;
}

.pie {
  position: relative;
  z-index: 2;
  max-width: calc(var(--columna) + 2 * var(--margen));
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--margen) 24px;
  font-size: 0.9375rem;
}
.pie a { display: inline-block; padding: 12px 0; }

.pila > * + * { margin-top: var(--s-4); }
.acciones { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-6); }
.acciones--fila { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--s-4); }

@media (min-width: 640px) {
  h1 { font-size: 3.375rem; letter-spacing: -2.4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
