/**
 * base.css
 * -----------------------------------------------------------------------
 * Reset ligero + estilos base de tipografía y elementos HTML. Mobile-first:
 * todos los tamaños definidos aquí son los de pantallas pequeñas; los
 * incrementos para pantallas mayores viven en responsive.css.
 * -----------------------------------------------------------------------
 */

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

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

html:focus-within {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 var(--sp-3);
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 var(--sp-4);
    color: var(--text-secondary);
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

input, select, textarea, button {
    font-family: inherit;
    font-size: var(--fs-base);
    color: inherit;
}

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

.container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: var(--sp-4);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: var(--sp-3);
    top: -3rem;
    background: var(--accent);
    color: var(--text-on-accent);
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--radius-sm);
    z-index: var(--z-overlay);
    transition: top var(--t-fast) var(--ease);
    font-weight: 600;
}

.skip-link:focus {
    top: var(--sp-3);
}

/* Foco visible consistente y accesible en toda la app */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

::selection {
    background: var(--accent);
    color: var(--text-on-accent);
}

/* Eyebrow: etiqueta corta sobre los títulos de sección */
.eyebrow {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 var(--sp-2);
}
