/* base.css — estilos de los elementos HTML sin clase (Fase 1.3). Usa solo variables de tokens.css. */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: var(--texto) / var(--interlineado) var(--fuente);
  color: var(--tinta);
  background: var(--fondo);
}

h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
h1 { font-size: var(--titulo); }
h2 { font-size: var(--texto-grande); }
h3 { font-size: var(--texto); }
p { margin: 0; }
p + p { margin-top: var(--e2); }
ul, ol { margin: 0; padding-left: var(--e5); }
code { font-family: var(--fuente-mono); font-size: .95em; }
strong, b { font-weight: 600; }

a { color: var(--acento); }
a:hover { color: var(--acento-oscuro); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }

input[type=text], input[type=password], input[type=number], input[type=date], input[type=search], select {
  padding: 6px 9px;
  border: 1px solid var(--linea);
  border-radius: var(--radio-pequeno);
  background: var(--panel);
  min-height: 34px;
}
input[type=number] { text-align: right; }
textarea {
  width: 100%;
  padding: var(--e2) var(--e3);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  background: var(--panel);
  resize: vertical;
}
input[readonly], textarea[readonly] { background: var(--fondo); }
input[type=checkbox], input[type=radio] { accent-color: var(--acento); width: 16px; height: 16px; margin: 0; }

/* Foco visible solo con teclado */
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--anillo-foco); border-radius: var(--radio-pequeno); }

fieldset { border: 1px solid var(--linea); border-radius: var(--radio); margin: 0; padding: var(--e2) var(--e3) var(--e3); }
legend { font-size: var(--texto-pequeno); color: var(--suave); padding: 0 var(--e1); }

table { border-collapse: collapse; }
hr { border: 0; border-top: 1px solid var(--linea); margin: var(--e4) 0; }

[hidden] { display: none !important; }

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

@media print {
  body { background: #fff; }
  .no-imprimir { display: none !important; }
}
