/* base.css — común a todas las webs. No poner aquí nada del diseño de un cliente (eso va en estilo.css). */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; hanging-punctuation: first last; }
body { min-height: 100dvh; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
p, li, dd, figcaption, blockquote { overflow-wrap: break-word; text-wrap: pretty; }
h1, h2, h3, h4 { overflow-wrap: break-word; text-wrap: balance; line-height: 1.1; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .06em; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

/* Accesibilidad */
.saltar { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: .6rem 1rem; background: #000; color: #fff; text-decoration: none; }
.saltar:focus { top: 1rem; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.solo-lectores { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:target { scroll-margin-top: 5rem; }

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

/* Contenedor: ancho máximo y margen lateral (ajústalos con tokens en estilo.css) */
.contenedor { width: min(100% - 2 * var(--margen, 1.25rem), var(--ancho, 72rem)); margin-inline: auto; }

/* Menú móvil: comportamiento mínimo. El aspecto lo define estilo.css */
.menu ul { list-style: none; padding: 0; }
@media (max-width: 47.99em) {
  .menu { display: none; }
  body.menu-abierto .menu { display: block; }
}
@media (min-width: 48em) {
  .menu-boton { display: none; }
}

/* Páginas legales: texto largo legible */
.texto-legal { max-width: 68ch; }
.texto-legal h2 { margin-top: 2em; margin-bottom: .5em; }
.texto-legal p, .texto-legal ul { margin-bottom: 1em; }
