/* AlianzaDN Draft — Base: @font-face + reset + tipografía */

/* ── @font-face ─────────────────────────────────────────────────────────────
   Rutas relativas a este archivo (assets/css/base.css) → fonts en ../fonts/
   ────────────────────────────────────────────────────────────────────────── */

/* Cormorant Garamond — 5 caras latin-only */
/* D-DIN PRO — 4 pesos, latin-only (SIL OFL 1.1)
   Sustituye a DIN Next del manual de marca, que es comercial (Monotype).
   Fuente: github.com/CyberFei/D-DIN-PRO — licencia en ../fonts/d-din-pro/OFL-1.1.txt */
@font-face {
  font-family: "D-DIN PRO";
  font-weight: 400;
  font-style:  normal;
  font-display: swap;
  src: url("../fonts/d-din-pro/D-DIN-PRO-400-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "D-DIN PRO";
  font-weight: 500;
  font-style:  normal;
  font-display: swap;
  src: url("../fonts/d-din-pro/D-DIN-PRO-500-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "D-DIN PRO";
  font-weight: 700;
  font-style:  normal;
  font-display: swap;
  src: url("../fonts/d-din-pro/D-DIN-PRO-700-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "D-DIN PRO";
  font-weight: 900;
  font-style:  normal;
  font-display: swap;
  src: url("../fonts/d-din-pro/D-DIN-PRO-900-Heavy.woff2") format("woff2");
}

/* Inter — fuente VARIABLE, un solo archivo cubre 100-900 (SIL OFL 1.1) */
@font-face {
  font-family: "Inter";
  font-weight: 100 900;
  font-style:  normal;
  font-display: swap;
  src: url("../fonts/inter/inter-latin-var.woff2") format("woff2-variations");
}

/* JetBrains Mono — 3 pesos */
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 400;
  font-style:  normal;
  font-display: swap;
  src: url("../fonts/jetbrains-mono/jetbrains-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 500;
  font-style:  normal;
  font-display: swap;
  src: url("../fonts/jetbrains-mono/jetbrains-mono-500.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 600;
  font-style:  normal;
  font-display: swap;
  src: url("../fonts/jetbrains-mono/jetbrains-mono-600.woff2") format("woff2");
}

/* ── Screen-reader utilities ─────────────────────────────────────────────── */
/* Patrón estándar WP — oculta visualmente pero accesible para lectores */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: static;
  width: auto;
  height: auto;
  padding: var(--space-2) var(--space-4);
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--surface);
  color: var(--ink);
  z-index: var(--z-toast);
}

/* ── Saltar al contenido (WCAG 2.4.1, nivel A) ──────────────────────────── */
/* Clase propia y NO .screen-reader-text: woocommerce.css declara
   `.screen-reader-text { position: absolute !important }`, así que el bloque
   :focus de arriba nunca consigue devolverlo a `static` — con cualquier
   especificidad. Aquí se revela con transform, que no depende de `position` en
   absoluto y además no provoca reflujo de la página al enfocar. */
.adn-skip {
  position: absolute;
  top: 0;
  left: var(--space-4);
  z-index: var(--z-toast);
  transform: translateY(-200%);
  padding: var(--space-2) var(--space-4);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  text-decoration: none;
  white-space: nowrap;
}
.adn-skip:focus { transform: translateY(0); }

/* ── Reset ──────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--accent-2);
}

/* ── Tipografía base ────────────────────────────────────────────────────── */
/* D-DIN PRO trae 400/500/700/900. Se pide 700 explícito: con 600 el navegador
   sintetizaba o saltaba al 700 igualmente, pero de forma no declarada. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl)); }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  line-height: var(--leading-normal);
  color: var(--ink-2);
}

code,
pre,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

strong, b { font-weight: 600; }
em, i     { font-style: italic; }

/* ── Utilidades de layout ────────────────────────────────────────────────── */
.adn-wrap {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── Clases de texto ────────────────────────────────────────────────────── */
/* Kicker: etiqueta en versalitas precedida del filete dorado.
   Es el marcador estructural recurrente del rebrand — el recurso gráfico
   dominante del manual. Se usa aquí, en el borde del header y en los cierres
   (final-cta, footer). En ningún otro sitio, para que no pierda peso. */
.adn-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--accent);
}
.adn-kicker::before {
  content: '';
  flex-shrink: 0;
  width: 28px;
  height: 1px;
  /* El oro solo como filete: 3.45 sobre blanco no alcanza para texto,
     pero supera el 3:1 que exige un elemento no textual. */
  background: var(--adn-hairline-start);
}

.adn-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.adn-mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

/* ── Focus visible accesible ─────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
