/* ============================================================================
   MATTES 2.0 — Base
   Fuentes, reset y primitivas compartidas (contenedor, botones, chips,
   kickers). Las pantallas del rediseño cargan: tokens → base → componentes
   → <pantalla>.css y NO cargan starlight/bootstrap.
   ========================================================================== */

/* --- Jost (variable 100–900, autohospedada; sin CDNs) --------------------- */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../../fonts/jost/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../../fonts/jost/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Reset mínimo --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, figure, blockquote {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--mattes-500);
  outline-offset: 2px;
}

/* El atributo hidden SIEMPRE gana, aunque el elemento tenga display propio */
[hidden] {
  display: none !important;
}

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

/* --- Utilidades ----------------------------------------------------------- */
.mts-contenedor {
  max-width: var(--contenedor-max);
  margin-inline: auto;
  padding-inline: var(--contenedor-pad);
}

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

/* Kicker: etiqueta corta en mayúsculas sobre un título */
.mts-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--mattes-500);
}

/* --- Botones (píldora 48px; variantes del DS) ----------------------------- */
.mts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.15s ease, background-color 0.15s ease;
}

.mts-btn--primario {
  background: var(--action-primary-bg);
  color: var(--action-primary-fg);
}

.mts-btn--primario:hover {
  filter: brightness(1.08);
}

.mts-btn--secundario {
  border: 1.5px solid var(--action-secondary-border);
  color: var(--action-secondary-fg);
}

.mts-btn--secundario:hover {
  background: var(--gris-50);
}

/* --- Chip píldora (sugerencias, filtros) ----------------------------------
   Variante clara (sobre foto/fondo oscuro). */
.mts-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  color: var(--gris-0);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mts-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.7);
}

.mts-chip svg {
  color: var(--mattes-300);
  flex: none;
}
