/* =====================================================================
   BASE — variables de diseño, reset, tipografía, layout y componentes
   reutilizables (botones, pastillas, títulos de sección).
   Se carga primero: el resto de hojas se apoya en estas variables.
   ===================================================================== */

/* ---------- Variables (tokens) ---------- */
:root {
  --bg: #060608;
  --bg2: #0a0a0f;
  --red: #ff7a1a;               /* color de marca (naranja Acrox) */
  --red2: #ff8c3a;
  --red-dim: rgba(255,122,26,.14);
  --text: #f4f4f6;
  --muted: #a3a3ad;
  --faint: #6d6d78;
  --card: rgba(255,255,255,.028);
  --card2: rgba(255,255,255,.05);
  --border: rgba(255,255,255,.09);
  --border-red: rgba(255,122,26,.35);
  --radius: 20px;
  --glow: 0 0 24px rgba(255,122,26,.45), 0 0 64px rgba(255,122,26,.18);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .sg { font-family: 'Space Grotesk', sans-serif; }
::selection { background: rgba(255,122,26,.4); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red2); outline-offset: 3px; }

/* ---------- Layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
section { padding: 46px 0; }
.center { text-align: center; }
.red { color: var(--red); }

/* ---------- Fondo ambiental fijo ---------- */
.ambient {
  position: fixed; inset: -10%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 480px at 82% -4%, rgba(255,122,26,.10), transparent 60%),
    radial-gradient(700px 500px at 8% 22%, rgba(255,122,26,.05), transparent 60%),
    radial-gradient(1000px 600px at 50% 110%, rgba(255,122,26,.06), transparent 60%);
}
.gridlines {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,122,26,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,122,26,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 14px; font-weight: 600; font-size: 15px; padding: 15px 30px;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .25s, background .25s;
}
.btn:active { transform: scale(.97); }
.btn.loading { opacity: .6; pointer-events: none; }
.btn-red { background: linear-gradient(180deg, #ff9a2e, #ff7a1a); color: #fff; box-shadow: var(--glow); }
.btn-red:hover { box-shadow: 0 0 32px rgba(255,122,26,.65), 0 0 90px rgba(255,122,26,.25); transform: translateY(-2px); }
.btn-dark { background: var(--tint-2); border-color: var(--border); color: var(--fg-strong); }
.btn-dark:hover { background: var(--tint-3); transform: translateY(-2px); }
.btn-sm { padding: 11px 24px; font-size: 14px; border-radius: 12px; }
/* .btn-ghost va después de .btn-sm a propósito: en la barra de navegación tiene prioridad */
.btn-ghost {
  display: inline-block; background: transparent; border: 1px solid var(--border-strong); color: var(--fg-strong);
  border-radius: 10px; padding: 8px 16px; font-size: 13px; transition: .2s;
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.mini-btn {
  background: var(--card); border: 1px solid var(--border); color: var(--fg-strong);
  border-radius: 8px; padding: 6px 12px; font-size: 15px;
}

/* ---------- Etiquetas / pastillas ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted);
  border: 1px solid var(--border); background: var(--tint-1);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 26px;
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.pill-live, .pill-soon {
  font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px;
}
.pill-live { background: rgba(34,197,94,.13); color: #4ade80; }
.pill-soon { background: rgba(255,122,26,.14); color: var(--red); }
.soon {
  font-size: 10px; font-weight: 800; letter-spacing: 1px; white-space: nowrap; vertical-align: middle;
  background: rgba(255,122,26,.14); border: 1px solid rgba(255,122,26,.4); color: var(--red);
  border-radius: 12px; padding: 3px 10px; margin-left: 8px;
}

/* ---------- Encabezados de sección ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px;
  font-size: 12px; letter-spacing: 2.5px; font-weight: 600; color: var(--red); text-transform: uppercase;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(32px,4vw,48px); letter-spacing: -1px; line-height: 1.1; margin: 14px 0; }
.sec-head p { color: var(--muted); line-height: 1.7; }

/* ---------- Animaciones utilitarias ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
}

/* =====================================================================
   ACROX v2 — mismos colores que la app (Ui/Core/Acx2.cs):
   fondo #0a0a0c · superficie #141417 · elevado #1d1d21 · texto #f4f4f6
   naranja → rojo #ff7a1a → #ff4d2e (botón principal) · radios 10/16
   ===================================================================== */
:root {
  --bg: #0a0a0c;
  --bg2: #0e0e11;
  --surface: #141417;
  --raised: #1d1d21;
  --muted: #8a8a93;
  --faint: #5c5c66;
  --grad: linear-gradient(135deg, #ff7a1a, #ff4d2e);
  --grad-hover: linear-gradient(135deg, #ff8c3a, #ff6447);
  --line-a: rgba(255,255,255,.07);

  /* tokens de TEMA (modo oscuro = el de siempre). El modo claro los
     redefine en theme.css bajo [data-theme=light]. */
  --fg-strong: #fff;                       /* títulos/textos destacados */
  --soft: #d8d8de;                         /* texto de párrafo destacado */
  --tint-0: rgba(255,255,255,.015);
  --tint-1: rgba(255,255,255,.03);
  --tint-2: rgba(255,255,255,.05);
  --tint-3: rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.18);
  --field: rgba(255,255,255,.04);          /* fondo de inputs */
  --menu: rgba(10,10,14,.97);              /* menú móvil */
  --menu-solid: #101016;                   /* desplegables */
  --dialog: #0c0c11;                       /* ventanas modales */
  --overlay: rgba(3,3,5,.78);
  --nav-glass: rgba(6,6,8,.82);
  --glass: rgba(255,255,255,.028);         /* tarjetas de cristal */
  --glass-hi: rgba(255,255,255,.06);       /* brillo del borde superior */
  --shadow-lg: 0 20px 50px rgba(0,0,0,.4);
  --shadow-xl: 0 40px 100px rgba(0,0,0,.6);
}
.btn-red { background: var(--grad); }
.btn-red:hover { background: var(--grad-hover); }