/* ═══════════════════════════════════════════════════════════════
   AGETIX AI — Web corporativa ULTRA-PREMIUM (D072 · nivel #21)
   Identidad: #050A14 fondo · #FFD700 CTA · #00E5FF tech
   Tipografía: Montserrat (display/CTA) · Inter (texto)
   Técnicas: noise overlay · gradient orbs · split-text reveals ·
   sticky stack · bento · marquee · custom cursor · magnetic btns
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #050A14;
  --bg-soft: #0A1220;
  --bg-card: rgba(13, 22, 38, 0.72);
  --gold: #FFD700;
  --cyan: #00E5FF;
  --text: #F8F9FA;
  --text-2: #B0B0B0;
  --green: #00d4aa;
  --border: rgba(0, 229, 255, 0.14);
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
::selection { background: var(--gold); color: var(--bg); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY (textura de cine) ─────────────────── */
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 9990; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035; animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0) } 10% { transform: translate(-5%,-8%) }
  30% { transform: translate(3%,-15%) } 50% { transform: translate(-10%,7%) }
  70% { transform: translate(7%,12%) } 90% { transform: translate(-4%,3%) }
}

/* ── GRADIENT ORBS (vida de fondo) ───────────────────── */
.orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; will-change: transform; }
.orb-cyan { width: 560px; height: 560px; background: radial-gradient(circle, rgba(0,229,255,.16), transparent 65%); animation: drift 14s ease-in-out infinite alternate; }
.orb-gold { width: 460px; height: 460px; background: radial-gradient(circle, rgba(255,215,0,.10), transparent 65%); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(-6%, -4%) scale(1) } to { transform: translate(8%, 10%) scale(1.15) } }

/* ── PRELOADER ───────────────────────────────────────── */
#preloader {
  position: fixed; inset: 0; z-index: 10000; background: var(--bg);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px;
  transition: opacity .6s ease, visibility .6s;
}
#preloader.done { opacity: 0; visibility: hidden; }
#preloader .pl-logo { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 30px; letter-spacing: 4px; }
#preloader .pl-logo b { color: var(--gold); }
#preloader .pl-count { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 15px; color: var(--cyan); letter-spacing: 2px; }
#preloader .pl-bar { width: 220px; height: 2px; background: rgba(255,255,255,.08); overflow: hidden; border-radius: 2px; }
#preloader .pl-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--gold)); }

/* ── CURSOR PERSONALIZADO ────────────────────────────── */
@media (hover:hover) and (pointer:fine) {
  .cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; border-radius: 50%; will-change: transform; }
  .cursor-dot { width: 7px; height: 7px; background: var(--gold); margin: -3.5px; }
  .cursor-ring { width: 38px; height: 38px; border: 1.5px solid rgba(0,229,255,.55); margin: -19px; transition: width .25s, height .25s, margin .25s, border-color .25s, background .25s; }
  .cursor-ring.hovering { width: 64px; height: 64px; margin: -32px; border-color: var(--gold); background: rgba(255,215,0,.06); }
}

h1, h2 { font-family: 'Montserrat', system-ui, sans-serif; font-weight: 800; line-height: 1.06; letter-spacing: -0.02em; }
h3 { font-family: 'Montserrat', system-ui, sans-serif; font-weight: 700; }
a { color: var(--cyan); text-decoration: none; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 28px; }

/* ── SPLIT TEXT (reveal por palabra) ─────────────────── */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
[data-split] .w > i { display: inline-block; font-style: normal; transform: translateY(115%); }

.grad-text { background: linear-gradient(92deg, var(--cyan) 10%, #7ef2ff 45%, var(--gold) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gold { color: var(--gold); } .cyan { color: var(--cyan); }

/* ── NAV ─────────────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .35s, border-color .35s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(5,10,20,.78); backdrop-filter: blur(16px); border-bottom-color: var(--border); }
.nav-inner { max-width: 1320px; margin: 0 auto; padding: 18px 28px; display: flex; align-items: center; gap: 28px; }
.nav-logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nav-logo img { width: 36px; height: 36px; border-radius: 9px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #0D1626, #0A1830); border: 1px solid rgba(0,229,255,.35);
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 19px;
  background-clip: padding-box; color: var(--gold); box-shadow: 0 0 18px rgba(0,229,255,.18);
}
.nav-logo span { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 20px; color: var(--text); letter-spacing: 1px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--text-2); font-size: 14px; font-weight: 500; position: relative; transition: color .2s; }
.nav-links a:not(.btn-login)::after { content: ''; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0; background: var(--cyan); transition: width .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:not(.btn-login):hover::after, .nav-links a.active::after { width: 100%; }
.btn-login {
  background: var(--gold); color: var(--bg) !important;
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 13px;
  text-transform: uppercase; letter-spacing: .8px; padding: 11px 24px; border-radius: 100px;
  transition: transform .2s cubic-bezier(.3,1.6,.5,1), box-shadow .25s;
}
.btn-login:hover { transform: scale(1.06); box-shadow: 0 8px 30px rgba(255,215,0,.45); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 27px; cursor: pointer; }

/* ── HERO ────────────────────────────────────────────── */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 150px 0 40px; position: relative; overflow: hidden; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--border);
  border-radius: 100px; padding: 8px 18px; font-size: 13px; color: var(--text-2); margin-bottom: 30px;
  background: rgba(0,229,255,.04); backdrop-filter: blur(6px);
}
.hero .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35 } }
.hero h1 { font-size: clamp(46px, 7.4vw, 104px); max-width: 1050px; }
.hero p.lead { font-size: clamp(17px, 2vw, 21px); color: var(--text-2); max-width: 620px; margin: 32px 0 44px; }
.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.scroll-hint { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); color: var(--text-2); font-size: 11.5px; letter-spacing: 3px; text-transform: uppercase; opacity: .7; }
.scroll-hint::after { content: ''; display: block; width: 1px; height: 42px; margin: 10px auto 0; background: linear-gradient(var(--cyan), transparent); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top } 45% { transform: scaleY(1); transform-origin: top } 55% { transform: scaleY(1); transform-origin: bottom } 100% { transform: scaleY(0); transform-origin: bottom } }

/* ── BOTONES ─────────────────────────────────────────── */
.btn-primary {
  position: relative; overflow: hidden; background: var(--gold); color: var(--bg);
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 14.5px;
  text-transform: uppercase; letter-spacing: .8px; padding: 19px 40px; border-radius: 100px;
  display: inline-block; transition: transform .25s cubic-bezier(.3,1.6,.5,1), box-shadow .3s; will-change: transform;
}
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 14px 44px rgba(255,215,0,.42); color: var(--bg); }
.btn-primary::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%); transform: translateX(-110%); transition: transform .6s; }
.btn-primary:hover::before { transform: translateX(110%); }
.btn-secondary {
  border: 1px solid rgba(0,229,255,.5); color: var(--text);
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 14.5px;
  padding: 18px 38px; border-radius: 100px; display: inline-block;
  transition: background .25s, border-color .25s, transform .25s; backdrop-filter: blur(6px);
}
.btn-secondary:hover { background: rgba(0,229,255,.09); border-color: var(--cyan); transform: translateY(-2px); }

/* ── MARQUEE ─────────────────────────────────────────── */
.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; background: rgba(10,18,32,.5); position: relative; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: 3px; color: var(--text-2); white-space: nowrap; text-transform: uppercase; }
.marquee span b { color: var(--gold); font-weight: 800; margin-right: 56px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── SECCIONES ───────────────────────────────────────── */
section { padding: 110px 0; position: relative; }
.section-tag { color: var(--cyan); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 3.5px; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.section-tag::before { content: ''; width: 34px; height: 1px; background: var(--cyan); }
.section-title { font-size: clamp(32px, 4.6vw, 58px); margin-bottom: 20px; }
.section-sub { color: var(--text-2); max-width: 640px; margin-bottom: 56px; font-size: 17.5px; }

/* ── CARDS ───────────────────────────────────────────── */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 38px 32px; backdrop-filter: blur(10px);
  transition: transform .35s cubic-bezier(.2,.8,.3,1), border-color .35s, box-shadow .35s;
  will-change: transform; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .4s; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0,229,255,.10), transparent 45%);
}
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-8px); border-color: rgba(0,229,255,.5); box-shadow: 0 26px 60px rgba(0,0,0,.5); }
.card .icon { font-size: 32px; margin-bottom: 20px; display: block; }
.card h3 { font-size: 21px; margin-bottom: 12px; color: var(--text); }
.card p { color: var(--text-2); font-size: 15px; }
.card .card-cta { display: inline-block; margin-top: 24px; color: var(--gold); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 14px; transition: letter-spacing .25s; }
.card:hover .card-cta { letter-spacing: .6px; }
.card.featured { border-color: rgba(255,215,0,.55); }
.card.featured::after {
  content: 'MÁS POPULAR'; position: absolute; top: 18px; right: 18px;
  background: var(--gold); color: var(--bg); font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 10px; letter-spacing: 1.2px; padding: 5px 12px; border-radius: 100px;
}

/* ── STICKY STACK (3 pilares) ────────────────────────── */
.stack-wrap { position: relative; }
.stack-card {
  position: sticky; top: 110px; margin-bottom: 34px;
  background: linear-gradient(160deg, #0D1626 60%, #0A1830);
  border: 1px solid var(--border); border-radius: 26px; padding: 60px 56px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: center;
  box-shadow: 0 -18px 60px rgba(0,0,0,.45); overflow: hidden;
}
.stack-card .orb { top: -30%; right: -12%; }
.stack-card .k { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 13px; letter-spacing: 3px; color: var(--cyan); text-transform: uppercase; margin-bottom: 16px; }
.stack-card h3 { font-size: clamp(26px, 3.3vw, 42px); margin-bottom: 18px; line-height: 1.12; }
.stack-card p { color: var(--text-2); font-size: 16.5px; max-width: 520px; }
.stack-card .big-num {
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: clamp(110px, 15vw, 210px);
  line-height: .85; text-align: right;
  background: linear-gradient(180deg, rgba(0,229,255,.35), rgba(0,229,255,.02));
  -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none;
}
.stack-card:nth-child(2) .big-num { background: linear-gradient(180deg, rgba(255,215,0,.4), rgba(255,215,0,.03)); -webkit-background-clip: text; background-clip: text; }

/* ── BENTO GRID ──────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 215px; gap: 22px; }
.bento .card { padding: 30px 28px; display: flex; flex-direction: column; justify-content: flex-end; }
.bento .card .icon { margin-bottom: auto; }
.b-wide { grid-column: span 2; }
.b-tall { grid-row: span 2; justify-content: flex-end; }

/* ── TABLA MATCH ─────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(8px); }
table.match { width: 100%; border-collapse: collapse; background: var(--bg-card); }
table.match th { text-align: left; padding: 20px 26px; font-family: 'Montserrat', sans-serif; font-size: 12.5px; text-transform: uppercase; letter-spacing: 2px; color: var(--cyan); border-bottom: 1px solid var(--border); }
table.match td { padding: 19px 26px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 15.5px; transition: background .2s; }
table.match tr:hover td { background: rgba(0,229,255,.035); }
table.match td strong { color: var(--gold); font-family: 'Montserrat', sans-serif; }
table.match tr:last-child td { border-bottom: 0; }

/* ── STATS / COUNTERS ────────────────────────────────── */
.stats { display: flex; gap: 70px; flex-wrap: wrap; margin-top: 72px; }
.stat .n { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: clamp(38px, 4.5vw, 56px); color: var(--gold); line-height: 1; }
.stat .n small { font-size: .55em; }
.stat .l { color: var(--text-2); font-size: 14px; margin-top: 8px; max-width: 190px; }

/* ── PRECIOS ─────────────────────────────────────────── */
.price { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 40px; color: var(--text); }
.price small { font-size: 15px; color: var(--text-2); font-weight: 500; }
.plan-list { list-style: none; margin: 24px 0; }
.plan-list li { padding: 7px 0; color: var(--text-2); font-size: 14.5px; }
.plan-list li::before { content: '✓  '; color: var(--green); font-weight: 700; }

/* ── PASOS ───────────────────────────────────────────── */
.step { display: flex; gap: 26px; align-items: flex-start; margin-bottom: 46px; }
.step-num { min-width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: rgba(0,229,255,.08); border: 1px solid var(--border); color: var(--cyan); font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 21px; }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 15px; }

/* ── MARKETPLACE ─────────────────────────────────────── */
.prod-price-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.prod-level { border: 1px solid var(--border); border-radius: 100px; padding: 8px 16px; font-size: 13px; color: var(--text-2); transition: border-color .2s; }
.card:hover .prod-level { border-color: rgba(255,215,0,.4); }
.prod-level b { color: var(--gold); font-family: 'Montserrat', sans-serif; }
.solucion-group { margin-bottom: 64px; }
.solucion-group h3.group-title { font-family: 'Montserrat', sans-serif; font-size: 23px; color: var(--cyan); margin-bottom: 26px; }

/* ── CTA FINAL GIGANTE ───────────────────────────────── */
.cta-final { position: relative; overflow: hidden; background: linear-gradient(140deg, rgba(0,229,255,.08), rgba(255,215,0,.06)); border: 1px solid var(--border); border-radius: 30px; padding: 90px 46px; text-align: center; }
.cta-final h2 { font-size: clamp(30px, 4.6vw, 58px); margin-bottom: 18px; }
.cta-final p { color: var(--text-2); margin-bottom: 40px; font-size: 17px; }

/* ── FOOTER ──────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 70px 0 40px; background: var(--bg-soft); position: relative; overflow: hidden; }
.foot-mega { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: clamp(52px, 9vw, 140px); line-height: .95; letter-spacing: -.02em; color: rgba(248,249,250,.06); user-select: none; margin-bottom: 50px; white-space: nowrap; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.foot-grid h4 { font-family: 'Montserrat', sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: var(--text); margin-bottom: 18px; }
.foot-grid a { display: block; color: var(--text-2); font-size: 14px; padding: 4px 0; transition: color .2s, padding-left .2s; }
.foot-grid a:hover { color: var(--cyan); padding-left: 5px; }
.foot-bottom { color: var(--text-2); font-size: 13px; border-top: 1px solid rgba(255,255,255,.06); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ── ANIMACIONES BASE ────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(44px); }
.reveal-scale { opacity: 0; transform: scale(.92); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 940px) {
  .grid-3, .grid-2, .foot-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .b-wide { grid-column: span 2; } .b-tall { grid-row: span 1; }
  .stack-card { grid-template-columns: 1fr; padding: 42px 30px; }
  .stack-card .big-num { display: none; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(5,10,20,.97); backdrop-filter: blur(20px); flex-direction: column; padding: 26px; border-bottom: 1px solid var(--border); gap: 18px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .stats { gap: 36px; }
  .cursor-dot, .cursor-ring { display: none; }
}
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .b-wide { grid-column: span 1; } }
@media (prefers-reduced-motion: reduce) {
  body::after, .orb, .marquee-track { animation: none !important; }
  .reveal, .reveal-scale, [data-split] .w > i { opacity: 1 !important; transform: none !important; }
}
