/* ========================================
   NAVAO | Global Foundation
   ======================================== */

/* Reinicio consistente del navegador */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;

  background-color: var(--color-black-deep);
  color: var(--color-text-light);

  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

/* Elementos multimedia */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
  object-fit: cover;
}

/* Formularios y botones */
button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* Enlaces */
a {
  color: inherit;
  text-decoration: none;
}

/* Listas */
ul,
ol {
  list-style: none;
}

/* Encabezados principales y narrativos */
h1,
h2 {
  color: var(--color-text-light);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Encabezados funcionales y de interfaz */
h3,
h4,
h5,
h6 {
  color: var(--color-text-light);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Párrafos */
p {
  max-width: 70ch;
  text-wrap: pretty;
}

/* Etiqueta editorial pequeña */
.kicker {
  color: var(--color-text-muted-light);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Selección de texto */
::selection {
  background-color: var(--color-gold);
  color: var(--color-black-deep);
}

/* Contenedor reutilizable */
.container {
  width: min(
    calc(100% - (var(--page-padding) * 2)),
    var(--content-width)
  );

  margin-inline: auto;
}

/* Texto accesible para lectores de pantalla */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;

  border: 0;
  margin: -1px;

  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Navegación mediante teclado */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 5px;
}

/* Respeta usuarios que desactivan animaciones */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}