/* ============================================
   MI ACTIVO 360 — LIGHT / CLEAN TECHNICAL
   Light base + cyan/amber accents + subtle grids
============================================ */

:root {
  /* Base — light */
  --bg-0: #fafbfd;
  --bg-1: #f3f5fa;
  --bg-2: #eaeef5;
  --bg-3: #dfe5ef;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-solid: #ffffff;
  --border: rgba(15, 30, 60, 0.08);
  --border-strong: rgba(15, 30, 60, 0.16);
  --border-glow: rgba(6, 182, 212, 0.35);

  /* Ink */
  --ink-0: #0b1220;
  --ink-1: #273145;
  --ink-2: #5a6a87;
  --ink-3: #8697b4;

  /* Accents */
  --cyan: #06b6d4;
  --cyan-d: #0891b2;
  --amber: #d97706;
  --amber-d: #b45309;
  --lime: #16a34a;
  --magenta: #db2777;
  --violet: #7c3aed;
  --red: #e11d48;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-0);
  color: var(--ink-1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: none; border: none; background: none; }
img { max-width: 100%; display: block; }

/* Ambient backdrops */
.fx-grid {
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(6,182,212,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 40%, transparent 85%);
  z-index: 0;
}
.fx-scanlines { display: none; }

/* ===== Custom cursor ===== */
.cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transition: transform 0.08s ease;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid var(--cyan);
  background: rgba(6, 182, 212, 0.04);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.2);
}
.cursor-ring.hover {
  width: 52px; height: 52px;
  border-color: var(--amber);
  background: rgba(217,119,6,0.06);
}
@media (max-width: 900px) {
  body { cursor: auto; }
  button, a { cursor: pointer; }
  .cursor { display: none; }
}

/* ===== Container ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
@media (max-width: 640px) { .container { padding: 0 20px; } }

/* ===== Shared primitives ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-d);
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.eyebrow.amber { color: var(--amber-d); border-color: rgba(217,119,6,0.3); background: rgba(217,119,6,0.05); }
.eyebrow.amber .dot { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.eyebrow.lime { color: var(--lime); border-color: rgba(22,163,74,0.3); background: rgba(22,163,74,0.05); }
.eyebrow.lime .dot { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.eyebrow.magenta { color: var(--magenta); border-color: rgba(219,39,119,0.3); background: rgba(219,39,119,0.05); }
.eyebrow.magenta .dot { background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }
.eyebrow.violet { color: var(--violet); border-color: rgba(124,58,237,0.3); background: rgba(124,58,237,0.05); }
.eyebrow.violet .dot { background: var(--violet); box-shadow: 0 0 8px var(--violet); }

.section-h {
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 60px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ink-0);
  margin-bottom: 20px;
  text-wrap: balance;
}
.section-h .glow {
  color: var(--cyan-d);
  text-shadow: 0 0 24px rgba(6, 182, 212, 0.2);
}
.section-h .outline {
  -webkit-text-stroke: 1px var(--ink-2);
  color: transparent;
}
.section-sub {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 560px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-d) 100%);
  color: white;
  box-shadow: 0 6px 16px rgba(6, 182, 212, 0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.4), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: transform 0.6s;
}
.btn-primary:hover::after { transform: translateX(200%); }

.btn-ghost {
  background: rgba(255,255,255,0.8);
  color: var(--ink-0);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  background: white;
  color: var(--cyan-d);
}

/* ===== HUD corners ===== */
.hud-corners { position: relative; }
.hud-corners::before, .hud-corners::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--cyan);
}
.hud-corners::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hud-corners::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
.reveal-stagger.visible > * { opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.54s; }

/* ===== Scroll progress ===== */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100; pointer-events: none; }
.scroll-progress > div { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--amber)); width: 0%; transition: width 0.1s; box-shadow: 0 0 8px var(--cyan); }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(250, 251, 253, 0.65);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}
.nav.solid { background: rgba(250,251,253,0.92); border-bottom-color: var(--border); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink-0);
  letter-spacing: -0.02em;
}
.nav-logo-mark {
  position: relative;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(6,182,212,0.12), rgba(6,182,212,0.03));
  border: 1px solid rgba(6,182,212,0.3);
  box-shadow: inset 0 0 10px rgba(6,182,212,0.1);
}
.nav-logo-mark svg { width: 20px; height: 20px; }
.nav-logo span { color: var(--cyan-d); }
.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-links a { transition: color 0.2s; position: relative; }
.nav-links a::before {
  content: '';
  position: absolute;
  left: -10px; top: 50%;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translateY(-50%) scale(0);
  transition: transform 0.2s;
}
.nav-links a:hover { color: var(--cyan-d); }
.nav-links a:hover::before { transform: translateY(-50%) scale(1); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(22,163,74,0.06);
  border: 1px solid rgba(22,163,74,0.25);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--lime);
  letter-spacing: 0.1em;
}
.nav-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: pulse-dot 1.8s infinite;
}

@media (max-width: 900px) {
  .nav-links, .nav-status { display: none; }
  .nav-inner { padding: 14px 20px; }
}

/* ===== Utility ===== */
.mono { font-family: var(--mono); }
.text-cyan { color: var(--cyan-d); }
.text-amber { color: var(--amber-d); }
.text-violet { color: var(--violet); }
.text-lime { color: var(--lime); }
.text-magenta { color: var(--magenta); }

/* ===== Section header common ===== */
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head-center {
  text-align: center;
  margin: 0 auto 56px;
}

/* ===== Code/data tags ===== */
.kbd {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(6,182,212,0.08);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--cyan-d);
}
