/* ==========================================================================
   HÁBITOSGALI — HOJA DE NORMALIZACIÓN Y RESET MODERNO
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto;
  scroll-padding-top: 80px;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-main);
}

body {
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  background-color: var(--bg-main);
  color: var(--text-main);
}

/* Enlaces limpios */
a {
  color: inherit;
  text-decoration: none;
}

/* Imágenes y elementos embebidos */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Entradas y botones */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  user-select: none;
}

/* Listas sin viñetas por defecto */
ul,
ol {
  list-style: none;
}

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

/* Accesibilidad de foco */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Selección de texto elegante */
::selection {
  background-color: var(--primary);
  color: #ffffff;
}

/* Scrollbar sutil y moderno */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bg-muted);
}
