/* ============================================================
   BASE.CSS — Reset moderno + estilos base globales
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--clr-text);
  background-color: var(--clr-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--header-height);
  overflow-x: hidden;
}

/* Elementos semánticos */
img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-dark);
}

p {
  line-height: 1.75;
}

strong {
  font-weight: 700;
}

/* Focus visible para accesibilidad */
:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Selección de texto */
::selection {
  background-color: var(--clr-accent);
  color: var(--clr-dark);
}

/* Scrollbar personalizada (Chrome) */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-gray-bg); }
::-webkit-scrollbar-thumb {
  background: var(--clr-primary-light);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--clr-primary); }
