/* ============================================================
   RESET.CSS
   Normalización mínima y base tipográfica.
   ============================================================ */

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

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

body {
  font-family: var(--font-familia);
  font-size: var(--font-tam-base);
  line-height: var(--line-height-base);
  color: var(--color-texto);
  background-color: var(--color-fondo-app);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow: hidden; /* el scroll vive dentro del panel principal */
}

/* Botones: quitamos estilo nativo */
button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Inputs: heredan tipografía */
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

/* Enlaces base */
a {
  color: var(--color-texto-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Tablas */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

/* Listas sin viñetas (las usamos para nav) */
ul,
ol {
  list-style: none;
}

/* Imágenes responsivas */
img,
svg {
  display: block;
  max-width: 100%;
}

/* Foco visible y consistente para accesibilidad */
:focus-visible {
  outline: 2px solid var(--color-acento);
  outline-offset: 2px;
  border-radius: var(--radio-sm);
}

/* Ocultar pero accesible (para screen readers) */
.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;
}

/* Scrollbar discreta (Webkit) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-borde-fuerte);
  border-radius: var(--radio-pill);
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-texto-debil);
  background-clip: padding-box;
  border: 2px solid transparent;
}
