/* Base común de los prototipos: fuentes, tokens de marca, reset y utilidades. */
@font-face {
  font-family: 'Inter Tight';
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-tight.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Nunito Sans';
  font-weight: 200 1000;
  font-display: swap;
  src: url('fonts/nunito-sans.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Prata';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/prata.woff2') format('woff2');
}

:root {
  /* Marca (manual) */
  --orange: #E8882B;
  --teal: #1A758A;
  --graphite: #3A3A3A;
  --white: #FFFFFF;

  /* Oscuros derivados del grafito y del azul petróleo */
  --ink-950: #121315;
  --ink-900: #18191B;
  --ink-850: #1E1F22;
  --ink-800: #25262A;
  --ink-700: #2F3034;
  --teal-950: #071A1F;
  --teal-900: #0B262D;
  --teal-800: #0F3640;
  --teal-300: #7CC4D3;

  --text: rgb(255 255 255 / 0.92);
  --text-muted: rgb(255 255 255 / 0.66);
  --text-faint: rgb(255 255 255 / 0.4);
  --line: rgb(255 255 255 / 0.12);

  --font-sans: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Nunito Sans', Avenir, 'Segoe UI', sans-serif;
  --font-serif: 'Prata', Georgia, serif;

  --container: 82rem;
  --pad: clamp(1.25rem, 0.5rem + 3vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

/*
 * Escalado fluido en pantallas grandes: desde ~1600px todo (textos, espacios, diagramas)
 * crece en proporción, hasta 125 % en 2K (2560px). En pantallas menores queda en 16px.
 */
html {
  -webkit-text-size-adjust: 100%;
  font-size: clamp(100%, 0.55rem + 0.45vw, 125%);
}

body {
  min-height: 100vh;
  background: var(--ink-950);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:where(ul, ol)[role='list'] {
  list-style: none;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
  border-radius: 4px;
}

.container {
  width: min(100% - var(--pad) * 2, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Líneas de texto partidas por JS para animarlas con máscara */
.split-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.split-line__inner {
  display: block;
}

/* Lenis */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

/* Barra de navegación entre propuestas (solo para revisar los prototipos) */
.proto-switch {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 999;
  display: flex;
  gap: 0.25rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(18 19 21 / 0.85);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
}

.proto-switch a {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-muted);
}

.proto-switch a[aria-current='page'] {
  background: var(--orange);
  color: var(--ink-950);
  font-weight: 700;
}

.proto-switch button {
  padding: 0.45rem 0.9rem;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0 999px 999px 0;
  background: transparent;
  color: var(--text-faint);
}

/* Modo reducido activado desde la barra de prototipos (el sitio final usará prefers-reduced-motion) */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation-duration: 0.01ms !important; /* preferencia de accesibilidad */
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}
