/* ==============================================
   RESET Y NORMALIZACIÓN DE ESTILOS
   ============================================== */

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

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Remover estilos de lista */
ul, ol {
  list-style: none;
}

/* Links sin estilos por defecto */
a {
  text-decoration: none;
  color: inherit;
}

/* Botones sin estilos por defecto */
button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

/* Inputs y textarea */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
}

/* Imágenes responsive */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Headings sin margin */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: inherit;
  line-height: 1.2;
}

/* Párrafos */
p {
  margin: 0;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 4px;
}

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

/* Selection */
::selection {
  background: var(--accent-subtle);
  color: var(--accent-light);
}

/* Focus visible para accesibilidad */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
