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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--fuente-cuerpo);
    font-size: var(--texto-base);
    line-height: 1.65;
    color: var(--color-texto);
    background: var(--color-fondo);
    overflow-x: hidden;
}

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

h1, h2, h3, h4 {
    font-family: var(--fuente-display);
    line-height: 1.15;
    margin: 0 0 var(--espacio-sm);
    color: var(--color-azul-oscuro);
    font-weight: 800;
}

h1 { font-size: var(--texto-h1); font-weight: 900; }
h2 { font-size: var(--texto-h2); }
h3 { font-size: var(--texto-h3); font-weight: 800; }

p { margin: 0 0 var(--espacio-sm); }

a {
    color: var(--color-azul);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* Foco visible siempre — accesibilidad, no se quita nunca */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-coral-solido);
    outline-offset: 3px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--texto-eyebrow);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-coral-solido);
    margin-bottom: var(--espacio-xs);
}
.eyebrow::before {
    content: '';
    width: 22px;
    height: 3px;
    background: currentColor;
    border-radius: 999px;
}

.seccion__contenedor {
    max-width: var(--ancho-maximo);
    margin: 0 auto;
    padding: var(--espacio-xxl) var(--espacio-md);
}
.seccion__contenedor--angosto { max-width: var(--ancho-maximo-angosto); }
.seccion__contenedor--compacto { padding-top: var(--espacio-lg); padding-bottom: var(--espacio-lg); }

.visualmente-oculto {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
