/* Base (T003): reinicio mínimo y estilos de los elementos HTML. Solo usa variables de tokens.css. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--fuente);
  font-size: var(--texto-m);
  line-height: var(--interlineado);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: var(--peso-fuerte);
  line-height: var(--interlineado-titulo);
  letter-spacing: -.01em;
}
h1 { font-size: var(--texto-3xl); }
h2 { font-size: var(--texto-2xl); }
h3 { font-size: var(--texto-l); }
h4 { font-size: var(--texto-m); }

p {
  margin: 0;
}

a {
  color: var(--acento-texto);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

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

code,
kbd,
pre {
  font-family: var(--fuente-mono);
  font-size: .92em;
}

::selection {
  background: var(--acento-suave);
  color: var(--texto);
}

:focus-visible {
  outline: none;
  box-shadow: var(--foco);
  border-radius: var(--r-s);
}

/* Lo oculto se oculta siempre, aunque la pieza tenga su propio display (botones, filas…) */
[hidden] {
  display: none !important;
}

/* Solo para lectores de pantalla */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Iconos (util/iconos.js): de trazo, heredan el color del texto */
.icono {
  width: var(--icono);
  height: var(--icono);
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Las cifras se alinean (horas, contadores, precios) */
.cifras {
  font-variant-numeric: tabular-nums;
}
