/* Box-sizing reset box-sizing.css */
*, *::before, *::after {
    box-sizing: border-box;
}

/* base.css */
html {
    font-size: 100%; /* 1rem = 16px */
    -ms-text-size-adjust: 100%;  
    -webkit-text-size-adjust: 100%; 
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    margin: 0;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* elements.css Remove default margins */
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
    margin: 0;
}
  
/* lists.css Remove list styles on ul, ol elements */
ul[role='list'], ol[role='list'] {
    list-style: none;
    padding: 0;
}
  
/* buttons.css Remove default button styles */
button {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
}
  
/* Prevent blue highlight on tap in mobile */
button, a {
    -webkit-tap-highlight-color: transparent;
}
  
/* links.css Remove default anchor styles */
a {
    text-decoration: none;
    color: inherit;
    outline: none;
}
  
/* Optional: visually remove outline but keep accessibility */
a:focus, button:focus {
    outline: none;
    /* box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5); /* custom focus ring */
}

button:disabled,
a:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}
  
/* media.css Images: make responsive */
img, picture {
    max-width: 100%;
    display: block;
}
  
/* inputs.css Inputs: inherit font */
input, button, textarea, select {
    font: inherit;
}
  
/* accessibility.css Reduce animation for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
}

/* ===== TYPOGRAPHY STYLES ===== */
h1 {
    font-size: var(--fs-h1);
    font-weight: var(--fw-light);
    margin-top: 0;
    margin-bottom: var(--spacing-h1);
}

h2 {
    font-size: var(--fs-h2);
    font-weight: var(--fw-light);
    margin-top: 0;
    margin-bottom: var(--spacing-h2);
}

h3 {
    font-size: var(--fs-h3);
    font-weight: var(--fw-regular);
    margin-top: 0;
    margin-bottom: var(--spacing-h3);
}

h4 {
    font-size: var(--fs-h4);
    font-weight: var(--fw-semibold);
    margin-top: 0;
    margin-bottom: var(--spacing-h4);
}

p {
    margin-top: 0;
    margin-bottom: var(--spacing-base);
    line-height: 1.5;
}

/* Small devices (â‰¥600px) */
@media (min-width: 600px) {
    :root {
        --font-size-base: 0.9375rem; /* â‰ˆ15px */
        --font-size-sm: 0.875rem;

        --spacing-base: 1.1em;
        --spacing-h1: 1.4em;
        --spacing-h2: 1.2em;
        --spacing-h3: 1em;
        --spacing-h4: 0.8em;
    }
}

/* Medium devices (â‰¥768px) */
@media (min-width: 768px) {
    :root {
        --font-size-base: 1rem; /* â‰ˆ16px */
        --font-size-sm: 0.9375rem;

        --spacing-base: 1.25em;
        --spacing-h1: 1.6em;
        --spacing-h2: 1.4em;
        --spacing-h3: 1.2em;
        --spacing-h4: 1em;
    }
}

/* Large devices (â‰¥992px) */
@media (min-width: 992px) {
    :root {
        --font-size-base: 1rem; /* 16px fijo */

        --spacing-base: 1.5em;
        --spacing-h1: 1.8em;
        --spacing-h2: 1.6em;
        --spacing-h3: 1.4em;
        --spacing-h4: 1.2em;
    }
}

/* Extra large devices (â‰¥1200px) */
@media (min-width: 1200px) {
    :root {
        --font-size-base: 1.0625rem; /* 17px */
        --font-size-xl: 1.5rem;
        --font-size-xxl: 2rem;

        --spacing-base: 1.75em;
        --spacing-h1: 2em;
        --spacing-h2: 1.8em;
        --spacing-h3: 1.6em;
        --spacing-h4: 1.4em;
    }
}