/* =========================================================
   GRUPO IMPOEX — Sistema visual premium
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Expanded:wght@600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-base: #070b14;
  --bg-deep: #03060d;
  --bg-elevated: rgba(12, 21, 38, 0.78);
  --bg-elevated-solid: #0d1526;
  --bg-elevated-2: #111c33;
  --line: rgba(102, 135, 184, 0.22);
  --line-strong: rgba(151, 184, 230, 0.34);
  --line-soft: rgba(82, 112, 158, 0.12);

  --red: #e32b20;
  --red-hot: #ff493d;
  --red-dim: #8f1f18;
  --red-glow: rgba(227, 43, 32, 0.38);
  --blue-glow: rgba(38, 116, 255, 0.22);

  --text-primary: #f6f8fc;
  --text-secondary: #c3cede;
  --text-tertiary: #72829b;

  --font-display: 'Archivo Expanded', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --header-h: 86px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --ease-control: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 18%, rgba(42, 104, 205, 0.15), transparent 36%),
    radial-gradient(circle at 88% 10%, rgba(227, 43, 32, 0.11), transparent 32%),
    linear-gradient(180deg, var(--bg-base), var(--bg-deep));
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 78%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.13;
  background: linear-gradient(to bottom, transparent 0 50%, rgba(255,255,255,0.05) 51% 52%, transparent 53%);
  background-size: 100% 4px;
  mix-blend-mode: overlay;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

::selection { background: var(--red); color: white; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--red-hot);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
  box-shadow: 0 0 14px var(--red-glow);
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-transform: uppercase;
}
.mono-stat { font-family: var(--font-mono); font-weight: 500; }

/* Tarjeta con luz que sigue al cursor. El JS actualiza --mx/--my */
.spotlight-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.spotlight-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(227,43,32,0.24), transparent 42%);
  transition: opacity 0.3s var(--ease-soft);
}
.spotlight-card:hover::before { opacity: 1; }

body.is-nav-open { overflow: hidden; }
body.intro-locked { overflow: hidden; height: 100vh; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
