/* Bascones Exterior — base: fuentes, variables, reinicio y tipografía */

@font-face {
    font-family: 'Urbanist';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/urbanist-var.woff2') format('woff2');
}

@font-face {
    font-family: 'Libre Baskerville';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/libre-baskerville-var.woff2') format('woff2');
}

/* resguardos con métrica ajustada: el cambio de fuente no mueve el menú */
@font-face {
    font-family: 'Urbanist Fallback';
    src: local('Arial');
    size-adjust: 97.8%; /* ancho de Urbanist 400 frente a Arial, medido; alturas = métricas de Urbanist / 0.978 */
    ascent-override: 97.1%;
    descent-override: 25.6%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Libre Baskerville Fallback';
    src: local('Georgia');
    size-adjust: 115.7%;
    ascent-override: 83.8%;
    descent-override: 23.3%;
    line-gap-override: 0%;
}

:root {
    --bx-fresno: hsl(210 11% 96%);
    --bx-viruta: hsl(210 11% 93%);
    --bx-lija: hsl(210 10% 84%);
    --bx-forja: hsl(216 10% 10%);
    --bx-grano: hsl(214 7% 38%);
    --bx-yunque: hsl(216 10% 9.6%);
    --bx-yunque-2: hsl(214 8% 18%);
    --bx-niebla: hsl(212 8% 66%);
    --bx-cal: hsl(0 0% 100%);
    --bx-brote: hsl(151 75% 29%);
    --bx-brote-hondo: hsl(150 77% 24%);

    --bx-sans: 'Urbanist', 'Urbanist Fallback', 'Segoe UI', Arial, sans-serif;
    --bx-serif: 'Libre Baskerville', 'Libre Baskerville Fallback', Georgia, 'Times New Roman', serif;

    --bx-radio: 20px;
    --bx-radio-s: 16px;
    --bx-sombra: 0 18px 48px -24px hsl(216 10% 10% / 0.28), 0 2px 6px hsl(216 10% 10% / 0.05);
    --bx-gutter: clamp(16px, 4vw, 40px);
    --bx-max: 1240px;
    --bx-head-h: 72px;
}

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

html {
    scroll-padding-top: calc(var(--bx-head-h) + 20px);

    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;

    background: var(--bx-fresno);
}

html [hidden] {
    display: none;
}

body {
    margin: 0;

    font-family: var(--bx-serif);
    font-size: 1.0625rem;
    line-height: 1.72;
    color: var(--bx-forja);

    background: var(--bx-fresno);
}

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

figure {
    margin: 0;
}

h1,
h2,
h3 {
    margin: 0;

    font-family: var(--bx-sans);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

h2 {
    font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem);
}

h3 {
    font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.6rem);
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 3px solid var(--bx-brote);
    outline-offset: 3px;
}

address {
    font-style: normal;
}

table {
    border-collapse: collapse;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

strong {
    font-weight: 700;
}

/* claves y valores técnicos en sans: el 1 de Baskerville se confunde con la l */
code {
    padding: 1px 6px;

    font-family: var(--bx-sans);
    font-size: 0.95em;
    font-weight: 700;
    overflow-wrap: anywhere;

    background: var(--bx-viruta);
    border-radius: 6px;
}

/* contenedor: nunca width 100% en otra regla, mata el tope de ancho */
.bx-wrap {
    width: min(100% - 2 * var(--bx-gutter), var(--bx-max));
    margin-inline: auto;
}

.bx-sr {
    position: absolute;

    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;

    white-space: nowrap;

    clip: rect(0 0 0 0);
    border: 0;
}

.bx-eyebrow {
    margin: 0 0 16px;

    font-family: var(--bx-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bx-grano);
}

.bx-num {
    font-family: var(--bx-sans);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: var(--bx-brote);
}

/* botón de bloque: ocupa todo el ancho de su columna */
.bx-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 62px;
    padding: 16px 28px;

    font-family: var(--bx-sans);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none;
    color: var(--bx-cal);

    background: var(--bx-brote);
    border: 0;
    border-radius: var(--bx-radio-s);
    cursor: pointer;

    transition: background-color 0.2s ease, transform 0.2s ease;
}

.bx-btn:hover,
.bx-btn:focus-visible {
    color: var(--bx-cal);

    background: var(--bx-brote-hondo);
}

.bx-btn:active {
    transform: translateY(1px);
}

.bx-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;

    font-family: var(--bx-sans);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
    color: var(--bx-forja);
}

.bx-arrow span {
    transition: transform 0.2s ease;
}

.bx-arrow:hover span,
.bx-arrow:focus-visible span {
    transform: translateX(4px);
}

.bx-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;

    list-style: none;
}

.bx-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 16px;

    font-family: var(--bx-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--bx-forja);

    background: var(--bx-cal);
    border: 1px solid var(--bx-lija);
    border-radius: 999px;
}

/* ritmo de secciones: amplia / apretada, separadas por línea fina */
.bx-band {
    padding-top: clamp(72px, 9vw, 128px);
    padding-bottom: clamp(72px, 9vw, 128px);

    border-top: 1px solid var(--bx-lija);
}

.bx-band.bx-band-tight {
    padding-top: clamp(52px, 6vw, 80px);
    padding-bottom: clamp(52px, 6vw, 80px);
}

.bx-band.bx-band-surface {
    background: var(--bx-viruta);
}

.bx-sec-head {
    display: grid;
    gap: 16px;
    max-width: 780px;
    margin-bottom: clamp(36px, 4.5vw, 64px);
}

.bx-sec-head .bx-eyebrow {
    margin-bottom: 0;
}

.bx-sec-head p:not(.bx-eyebrow) {
    max-width: 640px;

    color: var(--bx-grano);
}

@media (prefers-reduced-motion: reduce) {
    .bx-btn,
    .bx-arrow span {
        transition: none;
    }
}
