/* Base: ajustes sobre Bootstrap Reboot */

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
}

p { margin: 0; }

/* Foco visible para teclado */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Destino del enlace "Saltar al contenido": recibe el foco sin mostrar anillo */
main:focus { outline: none; }
.on-dark :focus-visible,
.on-dark:focus-visible {
  outline-color: #ffffff;
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  z-index: 2000;
  padding: var(--space-1) var(--space-2);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: var(--space-2); }

/* Contenedor del sitio: máx. 1320 px con padding del diseño */
.container {
  max-width: 1320px;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.section--alt { background: var(--surface-alt); }

/* Tipos */
.t-display { font-size: var(--fs-display); line-height: var(--lh-display); }
.t-h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
.t-h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
.t-lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--muted); }

.eyebrow {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--fs-label);
  line-height: var(--lh-label);
  font-weight: 600;
  color: var(--brand);
}

/* Placeholder visible para contenido pendiente */
.placeholder-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  text-align: center;
  background: var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
