/* =====================================================================
   BASE · reinicio, tipografía y utilidades
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--alto-cabecera) + var(--e-4));
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--fuente-texto);
  font-size: var(--t-base);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--fuente-titulo); font-weight: 400; line-height: 1.12; margin: 0 0 var(--e-4); text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--t-2xl); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-l); }
h4 { font-size: var(--t-m); }
p, ul, ol, dl { margin: 0 0 var(--e-4); }
p { text-wrap: pretty; }
a { color: var(--enlace); text-underline-offset: 0.18em; }
a:hover { color: var(--azul-700); }
strong { font-weight: 700; }
::selection { background: var(--ocre-300); color: var(--azul-950); }

:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; border-radius: 2px; }
.seccion--oscura :focus-visible, .sitio-cabecera :focus-visible, .sitio-pie :focus-visible, .portada :focus-visible { outline-color: var(--ocre-300); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.enlace-salto {
  position: absolute; left: var(--e-4); top: -4rem; z-index: 100;
  background: var(--azul-900); color: var(--blanco); padding: var(--e-3) var(--e-4); border-radius: var(--r-s);
}
.enlace-salto:focus { top: var(--e-3); }

.contenedor { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }
.contenedor--texto { width: min(100% - 2.5rem, var(--ancho-texto)); }

.icono { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Texto de lectura larga (prédicas): más grande y con más aire */
.texto-lectura { font-size: 1.1875rem; line-height: 1.78; max-width: 38rem; }
.texto-lectura h3 { margin-top: var(--e-7); }

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