/*
 * ELEMENTS: Base HTML element resets
 * 
 * Phase B: Eliminar globales peligrosos
 * 
 * Purpose: Solo resets neutrales para elementos HTML
 * NO estilos visuales (color, font-family) que rompan componentes
 * 
 * Orden de carga: Después de variables, antes de typography
 */

/* ==========================================================
   HTML ELEMENTS - Solo resets neutrales
========================================================== */

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-md);
    line-height: var(--line-height-content);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================
   HEADINGS - Solo reset, NO estilos visuales
========================================================== */

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    /* NO color - se hereda del contexto */
    /* NO font-family - se aplica con utility classes */
}

/* ==========================================================
   LINKS - Solo reset básico
========================================================== */

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

a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Links en headings - heredan color del contexto */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: inherit;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ==========================================================
   IMAGES - Responsive por defecto
========================================================== */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================
   LISTS - Reset básico
========================================================== */

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

