/* =========================================================================
   CARLOS BOZA — PROGRAMA DE PARTNERS / AFILIADOS ELITE
   Sistema visual: "Elite Network" — negro mate #0A0A0B + oro clásico #D4AF37
   Consistente con: Web Ingeniería (Bebas Neue) y Web Alto Rendimiento
   ========================================================================= */

:root {
  --bg: #0a0a0b;
  --bg-soft: #101012;
  --panel: rgba(22, 22, 26, 0.72);
  --panel-solid: #16161a;
  --gold: #d4af37;
  --gold-light: #fbe69e;
  --gold-dark: #b88a1f;
  --text: #f3f2ee;
  --muted: #a2a2aa;
  --line: color-mix(in srgb, var(--gold) 25%, transparent);
  --line-soft: color-mix(in srgb, var(--gold) 12%, transparent);
  --radius: 20px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  --glow: 0 0 28px color-mix(in srgb, var(--gold) 18%, transparent);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --tilt-amt: 1;        /* multiplicador efectos 3D (Tweaks) */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  max-width: 100vw; overflow-x: hidden;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: color-mix(in srgb, var(--gold) 35%, transparent); }

/* Fondo: red de nodos (canvas) + glows ------------------------------------ */
.bg-field { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#network-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-glow { position: absolute; border-radius: 50%; filter: blur(85px); opacity: 0.45; will-change: transform; }
.bg-glow.g1 { width: 58vw; height: 58vw; left: -16vw; top: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 13%, transparent), transparent 65%); }
.bg-glow.g2 { width: 46vw; height: 46vw; right: -13vw; top: 46vh;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 8%, transparent), transparent 65%); }

.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05; mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: no-preference) {
  .grain { animation: grainShift 0.9s steps(3) infinite; }
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 1.5%); }
  66% { transform: translate(1.5%, -2%); }
  100% { transform: translate(0, 0); }
}

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  box-shadow: 0 0 12px color-mix(in srgb, var(--gold) 60%, transparent);
  z-index: 200;
}

.shell { position: relative; z-index: 1; }

/* Nav ----------------------------------------------------------------------- */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px clamp(20px, 5vw, 48px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(10,10,11,0.55);
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 16px; letter-spacing: -0.3px; white-space: nowrap; }
.logo img { height: 40px; width: 40px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); }
.logo .sub { display: block; color: var(--gold); font-size: 10.5px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; }
.nav-steps { display: flex; gap: 22px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.nav-steps a { color: var(--muted); text-decoration: none; transition: color 0.25s; position: relative; }
.nav-steps a:hover, .nav-steps a.current { color: var(--gold-light); }
.nav-steps a.current::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.nav-cta {
  font-size: 12px; font-weight: 800; letter-spacing: 0.6px; white-space: nowrap;
  color: #0a0a0b; text-decoration: none;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  padding: 10px 18px; border-radius: 999px;
  box-shadow: var(--glow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 0 36px color-mix(in srgb, var(--gold) 35%, transparent); }
@media (max-width: 900px) { .nav-steps { display: none; } }

/* Botones --------------------------------------------------------------------- */
.btn-primary {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font); font-weight: 800; font-size: 15px; letter-spacing: 0.3px;
  color: #0a0a0b; text-decoration: none;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-dark));
  border: none; border-radius: 999px; padding: 17px 34px; cursor: pointer;
  box-shadow: var(--glow), 0 14px 40px rgba(0,0,0,0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  will-change: transform;
}
.btn-primary:hover { box-shadow: 0 0 44px color-mix(in srgb, var(--gold) 38%, transparent), 0 18px 50px rgba(0,0,0,0.5); }
.btn-primary svg { transition: transform 0.3s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-pulse::before {
  content: ''; position: absolute; inset: -3px;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--gold) 70%, transparent);
  opacity: 0; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-pulse::before { animation: ctaPulse 2.4s var(--ease) infinite; }
}
@keyframes ctaPulse {
  0% { opacity: 0.9; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.18); }
  100% { opacity: 0; transform: scale(1.18); }
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; color: var(--text); text-decoration: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 999px;
  padding: 17px 30px; cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.btn-ghost:hover { border-color: var(--line); background: color-mix(in srgb, var(--gold) 6%, transparent); }

/* Hero ---------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 90px 20px 170px;
  perspective: 1400px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-size: 11.5px; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--gold) 7%, transparent);
  padding: 9px 18px; border-radius: 999px;
  margin-bottom: 32px;
}
.hero-badge .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-badge .pulse { animation: dotPulse 2.2s infinite; }
}
@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 55%, transparent); }
  70% { box-shadow: 0 0 0 11px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(50px, 8.6vw, 116px);
  line-height: 0.97;
  letter-spacing: 1px;
  margin: 0 0 26px;
  text-transform: uppercase;
  font-weight: 400;
  transform-style: preserve-3d;
}
.hl {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hl-white {
  font-style: normal;
  background: linear-gradient(120deg, #ffffff, #e7e2d6 60%, #b9b2a3);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.kline { display: block; overflow: hidden; padding: 0.04em 0; }
.kline > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .kline > span { transform: translateY(112%); transition: transform 0.95s var(--ease); }
  .hero.loaded .kline:nth-of-type(1) > span { transform: none; transition-delay: 0.05s; }
  .hero.loaded .kline:nth-of-type(2) > span { transform: none; transition-delay: 0.17s; }
  .hero.loaded .kline:nth-of-type(3) > span { transform: none; transition-delay: 0.29s; }
}

.hero-sub {
  max-width: 700px; color: var(--muted);
  font-size: clamp(15px, 1.8vw, 17.5px); margin: 0 0 38px;
  text-wrap: pretty;
}
.hero-sub strong { color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .hero-badge, .hero-sub, .hero-ctas { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .hero.loaded .hero-badge { opacity: 1; transform: none; transition-delay: 0.38s; }
  .hero.loaded .hero-sub { opacity: 1; transform: none; transition-delay: 0.48s; }
  .hero.loaded .hero-ctas { opacity: 1; transform: none; transition-delay: 0.58s; }
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* chips flotantes */
.float-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 10px 16px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.5);
  will-change: transform;
  pointer-events: none;
}
.float-chip .ic { display: inline-flex; color: var(--gold); }
.float-chip.fc1 { top: 23%; left: 9%; }
.float-chip.fc2 { top: 31%; right: 8%; }
.float-chip.fc3 { bottom: 33%; left: 12%; }
.float-chip.fc4 { bottom: 27%; right: 11%; }
@media (max-width: 980px) { .float-chip { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .float-chip { animation: floatY 7s ease-in-out infinite; }
  .float-chip.fc2 { animation-delay: -2s; }
  .float-chip.fc3 { animation-delay: -4s; }
  .float-chip.fc4 { animation-delay: -5.5s; }
}
@keyframes floatY { 0%, 100% { margin-top: 0; } 50% { margin-top: -14px; } }

/* ticker */
.hero-ticker {
  position: absolute; bottom: 92px; left: 0; right: 0;
  overflow: hidden; padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track {
  display: inline-flex; align-items: center; gap: 28px; white-space: nowrap;
  font-size: 13px; letter-spacing: 2.6px; text-transform: uppercase; font-weight: 700;
  color: var(--muted);
}
.ticker-track i { color: var(--gold); font-style: normal; font-size: 9px; }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: tick 30s linear infinite; }
}
@keyframes tick { to { transform: translateX(-50%); } }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--muted);
}
.scroll-cue .mouse {
  width: 22px; height: 34px; border: 1.5px solid var(--muted); border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-cue .mouse span { width: 3px; height: 7px; border-radius: 3px; background: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue .mouse span { animation: wheel 1.6s var(--ease) infinite; }
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { opacity: 0; } }

/* Secciones ------------------------------------------------------------------ */
.section { position: relative; padding: clamp(80px, 11vh, 130px) clamp(20px, 5vw, 48px); }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section.alt {
  background: linear-gradient(180deg, transparent, rgba(212,175,55,0.025) 18%, rgba(212,175,55,0.025) 82%, transparent);
}

.step-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: 2.6px; text-transform: uppercase; font-weight: 700;
  color: var(--muted); margin-bottom: 18px;
}
.step-eyebrow .num {
  font-family: var(--font-display); font-size: 26px; letter-spacing: 1px;
  color: var(--gold); line-height: 1;
}
.step-eyebrow .line { flex: 0 0 64px; height: 1px; background: var(--line); }

.title {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(36px, 5.4vw, 64px); line-height: 1.02; letter-spacing: 0.8px;
  margin: 0 0 18px; max-width: 820px; text-wrap: pretty;
}
.title em.hl { font-style: normal; }
.lead { color: var(--muted); font-size: clamp(15px, 1.8vw, 17px); max-width: 680px; margin: 0 0 46px; text-wrap: pretty; }
.lead strong { color: var(--text); }

/* Reveal ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: 0.08s; }
  .reveal.d2 { transition-delay: 0.16s; }
  .reveal.d3 { transition-delay: 0.24s; }
  .reveal.d4 { transition-delay: 0.32s; }
}

/* Cards genéricas + tilt 3D con borde dorado reactivo -------------------------- */
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease), border-color 0.35s;
  overflow: hidden;
}
.card:hover { border-color: var(--line); }
/* borde degradado dorado que sigue el mouse */
.card.gold-border::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: radial-gradient(480px circle at var(--gx, 50%) var(--gy, 50%),
    color-mix(in srgb, var(--gold) 65%, transparent), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s;
  pointer-events: none;
}
.card.gold-border:hover::after { opacity: 1; }
.tilt-glare {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,0.07), transparent 55%);
  opacity: 0; transition: opacity 0.35s;
}
.card:hover .tilt-glare { opacity: 1; }

/* Footer ------------------------------------------------------------------------ */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px clamp(20px, 5vw, 48px) 48px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  text-align: center;
}
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700;
  letter-spacing: 0.6px;
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-links a .ic { color: var(--gold); display: inline-flex; }
.footer-copy { font-size: 12px; color: color-mix(in srgb, var(--muted) 65%, transparent); }
