/* Base del kit de Núcleo: tipografía, botones y utilidades. Los colores y tipografías llegan
   como variables desde la hoja de marca de cada negocio (marca.json); aquí solo hay estructura. */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fuentes/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fuentes/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --r-s: 12px; --r-m: 20px; --r-l: 32px;
  --sombra-0: 0 1px 2px rgb(36 17 58 / .06), 0 2px 8px -2px rgb(51 9 95 / .10);
  --sombra-1: 0 1px 2px rgb(36 17 58 / .06), 0 10px 28px -10px rgb(51 9 95 / .22);
  --sombra-2: 0 2px 4px rgb(36 17 58 / .05), 0 24px 48px -18px rgb(51 9 95 / .32);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --alto-cab: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--c-fondo); color: var(--c-texto); font: 400 1.0625rem/1.6 var(--f-texto), system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-titulos), system-ui, sans-serif; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c-acento); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.solo-lectores { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contenedor { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.contenedor--estrecho { width: min(100% - 2rem, 46rem); }
.i { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }

/* ---------- Franja de demostración ---------- */
.demo { background: var(--c-texto); color: #fff; font-size: .875rem; line-height: 1.4; position: relative; z-index: 50; }
.demo__dentro { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; justify-content: space-between; padding-block: .6rem; }
.demo a { color: #fff; text-underline-offset: 3px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; padding: .7rem 1.4rem;
  border: 2px solid transparent; border-radius: 999px; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }
.btn--primario { background: var(--c-primario); color: #fff; box-shadow: 0 10px 24px -10px var(--c-primario); }
.btn--primario:hover { background: var(--c-primario-suave); }
.btn--acento { background: var(--c-acento); color: var(--c-sobre-acento); box-shadow: 0 12px 28px -12px var(--c-acento); }
.btn--acento:hover { background: color-mix(in srgb, var(--c-acento) 88%, #fff); }
.btn--borde { background: transparent; border-color: color-mix(in srgb, var(--c-primario) 55%, transparent); color: var(--c-primario); }
.btn--borde:hover { background: var(--c-primario); color: #fff; }
.btn--borde-claro { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .4); color: #fff; }
.btn--borde-claro:hover { background: rgb(255 255 255 / .16); }
.btn--texto { background: none; color: var(--c-primario); text-decoration: underline; text-underline-offset: 4px; min-height: 2.5rem; }
.btn--chico { min-height: 2.5rem; padding: .45rem 1.05rem; font-size: .95rem; }
.btn--grande { min-height: 3.4rem; padding: .8rem 1.7rem; font-size: 1.05rem; }
