/* ==========================================================================
   XTHIAN VXRGAS — Design tokens
   Fuente: Manual de Identidad Visual (Brand Book oficial)
   ========================================================================== */

:root {
  /* Color — paleta codificada del brand book */
  --jet-black: #000000;
  --surface-1: #0c0c0c;   /* superficie elevada 1 (cards, paneles) */
  --surface-2: #141414;   /* superficie elevada 2 (inputs, hover) */
  --chrome: #C0C0C0;
  --chrome-soft: rgba(192, 192, 192, 0.35);
  --pure-white: #FFFFFF;
  --royal-blue: #001EFF;
  --crimson: #CC0000;
  --crimson-hover: #E8000A;

  /* Texto */
  --text-primary: var(--pure-white);
  --text-secondary: rgba(255, 255, 255, 0.62);
  --text-muted: rgba(255, 255, 255, 0.38);

  /* Tipografía — jerarquía del brand book, con reemplazos libres de licencia
     Druk        -> Anton    (display / headlines masivos, brutalista)
     Couture     -> Nohemi   (subtítulos, tracking amplio, alta costura)
     Elvon Grotesk -> Inter  (cuerpo de texto, legibilidad clínica) */
  --font-display: 'Anton', 'Archivo Black', sans-serif;
  --font-structural: 'Nohemi', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --content-max: 1280px;
  --edge-pad: clamp(1.25rem, 4vw, 3.5rem);
  --radius-sharp: 2px;   /* la marca es brutalista/metálica, no redondeada */
  --radius-soft: 10px;   /* solo para inputs y elementos de formulario */

  /* Motion */
  --ease-brand: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--jet-black);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--crimson);
  color: var(--pure-white);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--jet-black); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 4px; }

/* Foco visible — accesibilidad, no lo pisamos con outline:none en ningún lado */
:focus-visible {
  outline: 2px solid var(--royal-blue);
  outline-offset: 3px;
}

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--edge-pad);
}

/* Etiqueta estructural reutilizable — tracking amplio, rol "Couture" */
.eyebrow {
  font-family: var(--font-structural);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Barra diagonal cromada — motivo de firma tomado del brand book.
   Se usa como elemento puntual (hero, separadores clave), no decorativo repetido. */
.chrome-edge {
  position: absolute;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--chrome) 25%, var(--pure-white) 50%, var(--chrome) 75%, transparent);
  opacity: 0.5;
}

.chrome-edge--blue { box-shadow: 0 0 24px 2px rgba(0, 30, 255, 0.35); }
.chrome-edge--red { box-shadow: 0 0 24px 2px rgba(204, 0, 0, 0.35); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-structural);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  padding: 1.05rem 2.25rem;
  border-radius: var(--radius-soft);
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease-brand), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--crimson);
  color: var(--pure-white);
}
.btn-primary:hover {
  background: var(--crimson-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(204, 0, 0, 0.32);
}

.btn-secondary {
  background: transparent;
  color: var(--pure-white);
  border-color: var(--chrome-soft);
}
.btn-secondary:hover {
  border-color: var(--royal-blue);
  background: rgba(0, 30, 255, 0.08);
}

.btn-chrome {
  background: linear-gradient(135deg, #e8e8e8, #9a9a9a 45%, #d8d8d8 55%, #7a7a7a);
  color: var(--jet-black);
}
.btn-chrome:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(192, 192, 192, 0.25);
}

/* Única secuencia de animación de carga permitida — revelado del hero */
[data-hero-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease-brand), transform 0.8s var(--ease-brand);
}
[data-hero-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
