@font-face {
  font-family: "Inter";
  src: url("/assets/v/c0566c9fd04e4939880b3551647ad31f72356823102a89df5321f29fab504816/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/assets/v/c0566c9fd04e4939880b3551647ad31f72356823102a89df5321f29fab504816/fonts/fraunces-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/v/c0566c9fd04e4939880b3551647ad31f72356823102a89df5321f29fab504816/fonts/space-grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--tef-color-fondo);
  color: var(--tef-color-texto);
  font-family: var(--tef-fuente-cuerpo);
  font-size: 1.125rem;
  line-height: var(--tef-interlinea-cuerpo);
  /* Long references and enlarged text must wrap, not widen the viewport. */
  overflow-wrap: anywhere;
}

a { color: var(--tef-color-accion); text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 0.16em; }
:focus-visible {
  outline: var(--tef-foco-grosor) solid var(--tef-foco-color);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -6rem;
  z-index: 20;
  padding: 0.65rem 1rem;
  background: var(--tef-color-accion);
  color: var(--tef-texto-sobre-accion);
}
.skip-link:focus { top: 1rem; }

.preview-bar {
  padding: 0.6rem 1rem;
  background: var(--tef-color-acento);
  color: var(--tef-color-texto);
  font-size: 0.88rem;
  font-weight: var(--tef-peso-enfasis);
  text-align: center;
}

/* Cabecera de papel: el verde se reserva para la accion, no para el marco. */
.site-header {
  background: var(--tef-color-fondo);
  color: var(--tef-color-texto);
  border-bottom: 1px solid color-mix(in srgb, var(--tef-color-texto) 12%, transparent);
}
.site-header a { color: var(--tef-color-texto); }
.header-inner,
.page-shell,
.footer-inner {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5rem;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; min-width: 0; max-width: 100%; }
.brand img { display: block; width: min(15rem, 52vw); max-width: 100%; height: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-weight: 600; }

.page-shell { padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.article-shell { width: min(100%, 47rem); }
.eyebrow { margin: 0 0 0.75rem; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.state-line { margin: 0 0 1.5rem; font-size: 0.92rem; }
h1, h2, h3 {
  font-family: var(--tef-fuente-titulo);
  font-weight: var(--tef-peso-titulo);
  line-height: 1.12;
  text-wrap: balance;
}
h1 { max-width: 18ch; margin: 0 0 1.5rem; font-size: clamp(2.35rem, 7vw, 4.8rem); }
.article-shell h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
h2 { margin: 3.5rem 0 1rem; font-size: clamp(1.65rem, 4vw, 2.4rem); }
h3 { margin: 2.25rem 0 0.75rem; font-size: 1.35rem; }
p, li { max-width: 68ch; }
p { margin: 0 0 1.25rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-block: 0.4rem; }
blockquote {
  margin: 1.75rem 0;
  padding: 1.1rem 1.3rem;
  background: var(--tef-color-apoyo);
  font-weight: 600;
}
blockquote p:last-child { margin-bottom: 0; }
hr { margin: 3rem 0; border: 0; border-top: 2px solid var(--tef-color-texto); }

.lede { max-width: 55ch; font-size: clamp(1.18rem, 2.5vw, 1.42rem); }
.meta-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}
.meta-grid { margin: 1.5rem 0 2.5rem; }
.meta-chip { padding: 0.8rem 1rem; background: var(--tef-color-apoyo); }
.meta-chip strong { display: block; }
.card-grid { margin-block: 2rem; }
.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem;
  background: #fff;
  box-shadow: 0 0.2rem 1.3rem rgb(26 43 76 / 10%);
}
.card h2, .card h3 { margin-top: 0; font-size: 1.4rem; }
.card a { margin-top: auto; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.safety-callout {
  margin: 2rem 0;
  padding: 1.35rem;
  background: var(--tef-color-acento);
}
.safety-callout h2 { margin-top: 0; font-size: 1.55rem; }
.reflection {
  margin: 3rem 0;
  padding: 1.4rem;
  background: var(--tef-color-apoyo);
}
.reflection h2 { margin-top: 0; font-size: 1.55rem; }
.reflection label { display: block; margin-bottom: 0.55rem; font-weight: 700; }
.reflection textarea {
  display: block;
  width: 100%;
  min-height: 8rem;
  padding: 0.8rem;
  border: 2px solid var(--tef-color-texto);
  border-radius: 0;
  background: var(--tef-color-fondo);
  color: var(--tef-color-texto);
  font: inherit;
}
.local-note { margin-top: 0.6rem; font-size: 0.9rem; }
.table-scroll { overflow-x: auto; margin-block: 1.5rem; }
table { width: 100%; min-width: 42rem; border-collapse: collapse; background: #fff; }
th, td { padding: 0.75rem; border: 1px solid var(--tef-color-texto); text-align: left; vertical-align: top; }
th { background: var(--tef-color-apoyo); }
.series-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; }
.series-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.site-footer { padding-block: 2.5rem; background: var(--tef-color-texto); color: var(--tef-color-fondo); }
.site-footer a { color: inherit; }
.footer-inner { display: grid; gap: 0.5rem; }
.footer-inner p { margin: 0; }

@media (max-width: 48rem) {
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: 1rem; }
  .site-nav ul { gap: 0.15rem 0.8rem; }
  .page-shell { width: min(100% - 1.25rem, 72rem); }
  .series-nav { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .preview-bar, .site-header, .reflection, .series-nav { display: none; }
  body { font-size: 11pt; background: #fff; }
  .page-shell { width: 100%; padding: 0; }
  a { color: inherit; }
}
