/**
 * RESET CSS - Academia de Idiomas
 * Normalización y reset básico
 */

/* Box sizing border-box para todos los elementos */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Reset de márgenes y padding */
* {
  margin: 0;
  padding: 0;
}

/* Altura de línea y fuente mejorada */
html {
  font-family: var(--font-family-primary);
  line-height: var(--line-height-normal);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* Body base */
body {
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
}

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

/* Formularios heredan fuentes */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Eliminar estilos de botones */
button {
  background: none;
  border: none;
  cursor: pointer;
}

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

/* Listas sin estilo */
ul,
ol {
  list-style: none;
}

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

/* Elementos de formulario */
input:focus,
button:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* Placeholder */
::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

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

::-webkit-scrollbar-track {
  background: var(--color-neutral-100);
}

::-webkit-scrollbar-thumb {
  background: var(--color-neutral-400);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-neutral-500);
}

/* Selección de texto */
::selection {
  background-color: var(--color-primary-200);
  color: var(--color-primary-900);
}
