/* Estilos base y utilidades generales del sistema de diseño */

/* ---- FUENTES (Swiss 721, servidas desde el propio sitio) ---- */

/* Cuerpo general: ligera en peso normal, y su bold verdadero para énfasis */
@font-face {
  font-family: 'Swis721 Lt BT';
  src: url('../assets/fonts/swis721-lt.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Swis721 Lt BT';
  src: url('../assets/fonts/swis721-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Titulares del hero: Black Extended */
@font-face {
  font-family: 'Swis721 BlkEx BT';
  src: url('../assets/fonts/swis721-blkex.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background-color: var(--color-bg);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
}

/* ---- UTILIDADES OBLIGATORIAS ---- */

/* Contenedor centrado */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--wide {
  max-width: var(--container-wide);
}

/* Glassmorphism con fallback funcional si backdrop-filter no es soportado */
.glass {
  background: var(--glass-bg-solid);      /* fallback por defecto */
  border: var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
  }
}

/* Ocultar visualmente pero mantener accesible para lectores de pantalla */
.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;
}

/* Botón base: rectángulo plano de esquinas rectas con tipografía de
   etiqueta (mayúsculas espaciadas), en línea con el rediseño minimalista */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: 0;
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
}
