/* Reset y base — Sosemant Control QR
   Se carga después de variables.css
   ---------------------------------------------------------------------- */

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Imágenes y multimedia */
img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
}

img { height: auto; }

/* Tipografía base */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-semi);
  line-height: var(--leading-tight);
  color: var(--color-text);
}

p { line-height: var(--leading-relaxed); }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover { color: var(--color-primary-hover); }

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

/* Formularios */
button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: none; }

input, textarea, select {
  background: transparent;
  border: none;
  outline: none;
}

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

/* HR */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-6) 0;
}

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

/* Focus visible accesible — aplica solo con teclado */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
