/* ============================================================
   BARNES Buenos Aires — Base: @font-face, reset, elementos base
   Fuentes self-host (.woff2). NO Google Fonts CDN.
   ============================================================ */

/* ---- Bauer Bodoni (titulares) ---- */
@font-face {
    font-family: "Bauer Bodoni";
    src: url("../fonts/bauer-bodoni/bauer-bodoni-roman.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Bauer Bodoni";
    src: url("../fonts/bauer-bodoni/bauer-bodoni-italic.woff2") format("woff2");
    font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
    font-family: "Bauer Bodoni";
    src: url("../fonts/bauer-bodoni/bauer-bodoni-bold.woff2") format("woff2");
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Bauer Bodoni";
    src: url("../fonts/bauer-bodoni/bauer-bodoni-bold-italic.woff2") format("woff2");
    font-weight: 700; font-style: italic; font-display: swap;
}

/* ---- Raleway (texto) ---- */
@font-face {
    font-family: "Raleway";
    src: url("../fonts/raleway/raleway-light.woff2") format("woff2");
    font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Raleway";
    src: url("../fonts/raleway/raleway-regular.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Raleway";
    src: url("../fonts/raleway/raleway-medium.woff2") format("woff2");
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Raleway";
    src: url("../fonts/raleway/raleway-semibold.woff2") format("woff2");
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Raleway";
    src: url("../fonts/raleway/raleway-bold.woff2") format("woff2");
    font-weight: 700; font-style: normal; font-display: swap;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--ff-body);
    font-weight: 400;
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--c-ink);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
input, select, textarea { font: inherit; }

/* ---- Titulares ---- */
/* line-height pareado con el font-size de cada nivel (valores medidos del .ai). Un
   título que use otro font-size (ej. h2 a 36px) debe pasar su line-height de rol. */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-display);
    font-weight: 400;
    color: var(--c-ink);
}
h1 { font-size: var(--fs-hero); line-height: var(--lh-hero); }
h2 { font-size: var(--fs-h2);   line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3);   line-height: var(--lh-h3); }
h4 { font-size: var(--fs-h4);   line-height: var(--lh-card-title); }
em, i { font-style: italic; }

/* ---- Layout helpers ---- */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--c-bg-alt); }

/* ---- Botón pill (acento) — medido del PDF: 138×35px, ancho fijo, texto 12px ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-width: 138px;
    height: 35px;
    padding-inline: 18px;
    font-family: var(--ff-body);
    font-weight: 600;
    font-size: var(--fs-small);
    line-height: 1;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--c-on-dark);
    background: var(--c-accent);
    border-radius: var(--radius-pill);
    transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--c-accent-d); }
.btn:active { transform: translateY(1px); }
.btn--ghost {
    background: transparent;
    color: var(--c-on-dark);
    border: 1px solid rgba(255,255,255,.7);
}
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---- Eyebrow / labels ---- */
.eyebrow {
    font-family: var(--ff-body);
    font-weight: 600;
    font-size: var(--fs-small);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--c-accent);
}

.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;
}

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