/* ============================================================
   RUKU SOLUTIONS — Renovado 2026 v2
   ============================================================ */

:root {
  --primary:       #22c55e;
  --primary-dark:  #16a34a;
  --primary-light: #4ade80;
  --primary-glow:  rgba(34,197,94,.35);

  --bg:            #030a05;
  --bg-2:          #050f07;
  --bg-3:          #071209;
  --bg-card:       #0b1c0e;

  --text:          #c8ddd0;
  --text-muted:    #5e7a68;
  --white:         #ffffff;

  --green:  #10b981;
  --red:    #f87171;
  --wa:     #25d366;

  --border:       rgba(34,197,94,.1);
  --border-mid:   rgba(34,197,94,.2);
  --border-hover: rgba(34,197,94,.45);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-lg:   0 16px 64px rgba(0,0,0,.8);
  --shadow-glow: 0 0 80px rgba(34,197,94,.15);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ── Animated network background ── */
#ruku-net {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* ── Scroll Progress ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), #86efac);
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(34,197,94,.7);
}


/* ── Custom Cursor ── */
.cursor-dot, .cursor-ring {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  z-index: 9997;
  opacity: 0;
  will-change: transform;
}
.cursor-dot  { width: 6px; height: 6px; background: var(--primary); box-shadow: 0 0 12px rgba(34,197,94,.9); transition: opacity .3s; }
.cursor-ring { width: 32px; height: 32px; border: 1.5px solid rgba(34,197,94,.5); transition: opacity .3s, width .2s var(--ease-out), height .2s var(--ease-out); }
.cursor-ready .cursor-dot, .cursor-ready .cursor-ring { opacity: 1; }
.cursor-hover .cursor-ring { width: 52px; height: 52px; border-color: var(--primary); }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ── Layout ── */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.center    { text-align: center; }
section    { padding: 112px 0; }

/* ── Typography ── */
h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.04em;
  color: var(--white);
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--white);
  text-wrap: balance;
}
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; color: var(--white); }
h4 { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
p  { color: var(--text-muted); line-height: 1.8; }

.highlight {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-light) 50%, #86efac 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Fade-up reveals ── */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up[data-split], .reveal[data-split] { opacity: 1; transform: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--r-md);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s, background .25s;
}
.btn--sm  { padding: 10px 20px; font-size: .875rem; }
.btn--md  { padding: 14px 28px; }
.btn--lg  { padding: 18px 40px; font-size: 1.05rem; }

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 28px rgba(34,197,94,.35);
}
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light), #86efac);
  opacity: 0;
  transition: opacity .25s;
}
.btn--primary > * { position: relative; z-index: 1; }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(34,197,94,.5); }
.btn--primary:hover::after { opacity: 1; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-mid);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); background: rgba(34,197,94,.06); transform: translateY(-2px); }

.btn--white  { background: var(--white); color: var(--primary-dark); font-weight: 700; }
.btn--white:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.4); }

.btn--wa {
  background: var(--wa);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.btn--wa:hover { background: #1fb855; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,211,102,.45); }

/* ── Section tags ── */
.section-tag {
  display: inline-block;
  background: rgba(34,197,94,.1);
  color: var(--primary-light);
  border: 1px solid var(--border-mid);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.section-header { text-align: center; max-width: 680px; margin: 0 auto 80px; }
.section-header h2 { margin-bottom: 18px; }
.section-header p  { font-size: 1.05rem; }

/* ── Grid lines ── */
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34,197,94,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,197,94,.03) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(3,10,5,.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: all .25s;
}
.header--scrolled {
  background: rgba(3,10,5,.96);
  border-bottom-color: rgba(34,197,94,.2);
  box-shadow: 0 4px 48px rgba(0,0,0,.7);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 72px; }
.logo { display: flex; align-items: center; }
.logo__img         { height: 52px; width: auto; }
.logo__img--footer { height: 44px; }
.nav__list { display: flex; gap: 4px; }
.nav__link { padding: 8px 16px; border-radius: var(--r-sm); font-size: .9rem; font-weight: 500; color: var(--text-muted); transition: all .2s; }
.nav__link:hover  { color: var(--white); background: rgba(255,255,255,.05); }
.nav__link.active { color: var(--primary-light); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all .25s; }

/* ════════════════════════════════════════════
   HERO — Pantalla completa, centrado, orbe
   ════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 0 60px;
}

/* Gran orbe verde — el cambio visual más dramático */
.hero__orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(34,197,94,.38) 0%, rgba(34,197,94,.12) 35%, transparent 65%);
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  animation: orbBreath 8s ease-in-out infinite;
  z-index: 0;
}
@keyframes orbBreath {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: .9; }
  50%      { transform: translate(-50%,-50%) scale(1.12); opacity: 1; }
}

/* Aurora blobs — ahora visibles */
.hero__aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__aurora::before {
  content: '';
  position: absolute;
  top: -10%; left: -5%;
  width: 70%; height: 80%;
  background: radial-gradient(ellipse, rgba(34,197,94,.32) 0%, transparent 55%);
  filter: blur(80px);
  animation: auroraA 18s ease-in-out infinite;
}
.hero__aurora::after {
  content: '';
  position: absolute;
  bottom: -10%; right: -5%;
  width: 65%; height: 75%;
  background: radial-gradient(ellipse, rgba(74,222,128,.28) 0%, transparent 55%);
  filter: blur(100px);
  animation: auroraB 24s ease-in-out infinite;
}
@keyframes auroraA {
  0%,100% { transform: translate(0,0) scale(1); }
  40%      { transform: translate(5%,4%) scale(1.08); }
  70%      { transform: translate(-3%,6%) scale(.93); }
}
@keyframes auroraB {
  0%,100% { transform: translate(0,0) scale(1); }
  35%      { transform: translate(-4%,-5%) scale(1.1); }
  65%      { transform: translate(3%,4%) scale(.96); }
}

/* Mouse gradient */
.hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 900px at var(--mx, 50%) var(--my, 50%),
      rgba(34,197,94,.22) 0%, transparent 55%);
  filter: blur(20px);
  transition: background .1s;
}

.hero .grid-lines { opacity: .4; }

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  padding: 0 24px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(34,197,94,.08);
  color: var(--primary-light);
  font-size: .78rem;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 999px;
  margin-bottom: 36px;
  border: 1px solid rgba(34,197,94,.25);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero__badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: dotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 5px var(--primary); }
  50%      { box-shadow: 0 0 18px var(--primary), 0 0 30px rgba(34,197,94,.4); }
}

.hero__title    { margin-bottom: 28px; }
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 52px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* Métricas: banda completa debajo del texto */
.hero__metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  max-width: 860px;
  margin-top: 72px;
  border: 1px solid var(--border-mid);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: rgba(11,28,14,.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.metric {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}
.metric:last-child { border-right: none; }
.metric::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.metric:hover::after { transform: scaleX(1); }
.metric__number {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1;
}
.metric__label { font-size: .78rem; color: var(--text-muted); font-weight: 500; line-height: 1.5; }

/* ── Tech Marquee ── */
.tech-marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 0;
}
.tech-marquee__track {
  display: flex;
  align-items: center;
  padding: 22px 0;
  animation: marqueeRoll 32s linear infinite;
  width: max-content;
}
.tech-marquee__track:hover { animation-play-state: paused; }
.tech-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 36px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  transition: color .2s;
}
.tech-marquee__item:hover { color: var(--primary-light); }
.tech-marquee__dot { width: 5px; height: 5px; background: var(--primary); border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 6px var(--primary); }
@keyframes marqueeRoll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ════════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════════ */
.about {
  position: relative;
  overflow: hidden;
}
.about::before {
  content: '';
  position: absolute;
  top: -120px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(34,197,94,.12) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
.about__text h2 { margin-bottom: 20px; }
.about__text p  { margin-bottom: 28px; }

.check-list { margin-bottom: 36px; }
.check-list li {
  padding: 13px 0;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: 14px;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: rgba(34,197,94,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 80px rgba(34,197,94,.08);
}
.comparison__col         { padding: 32px 24px; }
.comparison__col--bad    { background: rgba(248,113,113,.04); border-right: 1px solid var(--border); }
.comparison__col--good   { background: rgba(34,197,94,.06); }
.comparison__col h4      { margin-bottom: 20px; font-size: .8rem; }
.comparison__col--bad  h4 { color: var(--red); }
.comparison__col--good h4 { color: var(--green); }
.comparison__col li {
  font-size: .875rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  line-height: 1.5;
}
.comparison__col li:last-child { border-bottom: none; }
.comparison__col--bad  li { color: #fca5a5; }
.comparison__col--good li { color: #6ee7b7; }

/* ════════════════════════════════════════════
   SERVICIOS — Cards rediseñadas
   ════════════════════════════════════════════ */
.services-preview {
  position: relative;
  overflow: hidden;
}
.services-preview::before {
  content: '';
  position: absolute;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(34,197,94,.1) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.service-card {
  position: relative;
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px 32px 32px;
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
  overflow: hidden;
  cursor: pointer;
}
/* Borde superior gradiente siempre visible */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: .4;
  transition: opacity .35s;
}
/* Número grande de fondo */
.service-card__num {
  position: absolute;
  top: 16px; right: 24px;
  font-size: 4.5rem;
  font-weight: 900;
  color: rgba(34,197,94,.05);
  line-height: 1;
  letter-spacing: -.06em;
  pointer-events: none;
  transition: color .35s;
  user-select: none;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 24px 80px rgba(0,0,0,.6), 0 0 60px rgba(34,197,94,.18); border-color: var(--border-mid); }
.service-card:hover::before { opacity: 1; }
.service-card:hover .service-card__num { color: rgba(34,197,94,.1); }

.service-card__icon {
  width: 56px; height: 56px;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--primary);
  transition: background .3s, transform .3s;
}
.service-card__icon svg { width: 28px; height: 28px; display: block; }
.service-card:hover .service-card__icon { background: rgba(34,197,94,.2); transform: scale(1.05); }
.service-card h3    { margin-bottom: 12px; font-size: 1.1rem; }
.service-card p     { font-size: .875rem; margin-bottom: 24px; line-height: 1.75; }
.service-card__link {
  color: var(--primary);
  font-weight: 600;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s, color .2s;
}
.service-card:hover .service-card__link { gap: 12px; color: var(--primary-light); }

/* ════════════════════════════════════════════
   PROCESS — Timeline vertical
   ════════════════════════════════════════════ */
.process {
  position: relative;
  overflow: hidden;
}
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}
/* Línea horizontal entre números */
.process__steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(34,197,94,.4) 15%,
    rgba(74,222,128,.7) 50%,
    rgba(34,197,94,.4) 85%, transparent 100%);
}
.step { text-align: center; }
.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 auto 28px;
  position: relative;
  z-index: 1;
  background: var(--bg);
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 8px rgba(34,197,94,.12), 0 0 40px rgba(34,197,94,.2);
  transition: transform .3s, box-shadow .3s, background .3s, color .3s;
}
.step:hover .step__number {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 8px rgba(34,197,94,.2), 0 0 60px rgba(34,197,94,.35);
}
.step__content h3 { font-size: 1rem; margin-bottom: 10px; }
.step__content p  { font-size: .875rem; }

/* ════════════════════════════════════════════
   CTA — Sección con fondo verde dramático
   ════════════════════════════════════════════ */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 140px 0;
  isolation: isolate;
  background: radial-gradient(120% 100% at 50% 0%, #0f3d24 0%, #08251a 45%, #051b14 75%, #04120d 100%);
}
.cta__inner  { position: relative; z-index: 2; }
.cta__inner h2 { margin-bottom: 20px; }
.cta__inner p  { color: rgba(200,221,208,.7); font-size: 1.15rem; margin-bottom: 48px; }
.cta__note { margin-top: 28px; color: rgba(34,197,94,.5); font-size: .875rem; }

/* ── CTA animated background effect ── */
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-24px)} }
@keyframes floatY2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(20px)} }
@keyframes drift { 0%{transform:translate(0,0) rotate(0)} 100%{transform:translate(40px,-30px) rotate(360deg)} }
@keyframes pulseGlow { 0%,100%{opacity:.35;transform:scale(1)} 50%{opacity:.6;transform:scale(1.08)} }
@keyframes gridMove { 0%{background-position:0 0,0 0} 100%{background-position:60px 60px,60px 60px} }
@keyframes shimmer { 0%{transform:translateX(-120%) skewX(-15deg)} 100%{transform:translateX(220%) skewX(-15deg)} }
@keyframes ringSpin { 0%{transform:rotate(0)} 100%{transform:rotate(360deg)} }
@keyframes ringSpinRev { 0%{transform:rotate(0)} 100%{transform:rotate(-360deg)} }
@keyframes twinkle { 0%,100%{opacity:.2;transform:scale(.8)} 50%{opacity:1;transform:scale(1.3)} }
@keyframes scanline { 0%{transform:translateY(-100%)} 100%{transform:translateY(900px)} }
@keyframes hexFloat { 0%,100%{transform:translateY(0) rotate(0)} 50%{transform:translateY(-18px) rotate(15deg)} }
@keyframes lineDash { to{stroke-dashoffset:-200} }
@keyframes bigDrift { 0%{transform:translate(0,0) scale(1)} 50%{transform:translate(-30px,25px) scale(1.06)} 100%{transform:translate(0,0) scale(1)} }

.cta-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.cta-fx__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(80,255,170,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(80,255,170,.07) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 14s linear infinite;
  opacity: .5;
  mask-image: radial-gradient(80% 80% at 50% 30%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 30%, black 30%, transparent 90%);
}
.cta-fx__svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; }
.cta-fx__scan {
  position: absolute; left: 0; right: 0; height: 140px;
  background: linear-gradient(180deg, transparent, rgba(74,222,128,.08), transparent);
  animation: scanline 8s linear infinite;
}
.cta-fx__glow-1 { position: absolute; top: -180px; left: 50%; transform: translateX(-50%); width: 900px; height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(52,211,153,.35) 0%, rgba(52,211,153,0) 70%); filter: blur(10px); animation: pulseGlow 7s ease-in-out infinite, bigDrift 20s ease-in-out infinite; }
.cta-fx__glow-2 { position: absolute; top: 60px; left: 8%; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(34,197,94,.5) 0%, rgba(34,197,94,0) 70%); filter: blur(4px); animation: floatY 9s ease-in-out infinite, pulseGlow 6s ease-in-out infinite; }
.cta-fx__glow-3 { position: absolute; bottom: -60px; right: 6%; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(74,222,128,.4) 0%, rgba(74,222,128,0) 70%); filter: blur(4px); animation: floatY2 11s ease-in-out infinite; }
.cta-fx__glow-4 { position: absolute; top: 45%; right: 30%; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(134,239,172,.35) 0%, rgba(134,239,172,0) 70%); filter: blur(6px); animation: bigDrift 14s ease-in-out infinite; }

.cta-fx__ring-1 { position: absolute; top: 18px; left: 220px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(74,222,128,.55); animation: floatY 8s ease-in-out infinite; }
.cta-fx__ring-2 { position: absolute; top: 8%; right: 14%; width: 90px; height: 90px; border-radius: 50%; border: 1px solid rgba(74,222,128,.25); animation: ringSpin 26s linear infinite, floatY2 10s ease-in-out infinite; }
.cta-fx__ring-3 { position: absolute; bottom: 14%; left: 12%; width: 130px; height: 130px; border-radius: 50%; border: 1px dashed rgba(74,222,128,.2); animation: ringSpin 40s linear infinite reverse; }
.cta-fx__ring-4 { position: absolute; top: 38%; left: 4%; width: 70px; height: 70px; border-radius: 50%; border: 1px solid rgba(74,222,128,.3); animation: ringSpinRev 18s linear infinite; }
.cta-fx__ring-5 { position: absolute; bottom: 8%; right: 26%; width: 56px; height: 56px; border-radius: 50%; border: 1.5px dashed rgba(134,239,172,.35); animation: ringSpin 22s linear infinite; }

.cta-fx__hex-1 { position: absolute; top: 14%; left: 30%; width: 22px; height: 22px; border: 1.5px solid rgba(74,222,128,.5); transform: rotate(45deg); animation: hexFloat 10s ease-in-out infinite; }
.cta-fx__hex-2 { position: absolute; top: 70%; right: 16%; width: 16px; height: 16px; border: 1.5px solid rgba(134,239,172,.5); transform: rotate(45deg); animation: hexFloat 8s ease-in-out infinite reverse; }
.cta-fx__hex-3 { position: absolute; top: 50%; left: 14%; width: 14px; height: 14px; background: rgba(74,222,128,.25); transform: rotate(45deg); animation: hexFloat 12s ease-in-out infinite; }
.cta-fx__hex-4 { position: absolute; top: 26%; right: 8%; width: 18px; height: 18px; border: 1.5px solid rgba(74,222,128,.4); transform: rotate(45deg); animation: hexFloat 9s ease-in-out infinite reverse; }

.cta-fx__dot-1  { position: absolute; top: 16px; left: 75px; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 12px 3px rgba(74,222,128,.8); animation: floatY 5s ease-in-out infinite; }
.cta-fx__dot-2  { position: absolute; top: 35%; right: 22%; width: 4px; height: 4px; border-radius: 50%; background: #86efac; box-shadow: 0 0 10px 3px rgba(134,239,172,.7); animation: drift 12s linear infinite; }
.cta-fx__dot-3  { position: absolute; top: 60%; left: 18%; width: 5px; height: 5px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px 3px rgba(74,222,128,.7); animation: drift 16s linear infinite reverse; }
.cta-fx__dot-4  { position: absolute; top: 22%; left: 45%; width: 3px; height: 3px; border-radius: 50%; background: #bbf7d0; box-shadow: 0 0 8px 2px rgba(187,247,208,.6); animation: floatY2 7s ease-in-out infinite; }
.cta-fx__dot-5  { position: absolute; bottom: 20%; right: 38%; width: 4px; height: 4px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px 3px rgba(74,222,128,.6); animation: floatY 9s ease-in-out infinite; }
.cta-fx__dot-6  { position: absolute; top: 10%; left: 60%; width: 3px; height: 3px; border-radius: 50%; background: #bbf7d0; box-shadow: 0 0 10px 3px rgba(187,247,208,.7); animation: twinkle 3.5s ease-in-out infinite; }
.cta-fx__dot-7  { position: absolute; top: 44%; left: 8%; width: 3px; height: 3px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px 3px rgba(74,222,128,.7); animation: twinkle 4.2s ease-in-out infinite .6s; }
.cta-fx__dot-8  { position: absolute; bottom: 32%; right: 12%; width: 3px; height: 3px; border-radius: 50%; background: #86efac; box-shadow: 0 0 10px 3px rgba(134,239,172,.7); animation: twinkle 3s ease-in-out infinite 1.1s; }
.cta-fx__dot-9  { position: absolute; top: 78%; left: 36%; width: 3px; height: 3px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px 3px rgba(74,222,128,.7); animation: twinkle 3.8s ease-in-out infinite .3s; }
.cta-fx__dot-10 { position: absolute; top: 6%; right: 40%; width: 3px; height: 3px; border-radius: 50%; background: #bbf7d0; box-shadow: 0 0 10px 3px rgba(187,247,208,.7); animation: twinkle 4.6s ease-in-out infinite .9s; }

.cta-fx__vignette-1 { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(2,10,7,.55) 100%); }
.cta-fx__vignette-2 { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 15%, transparent 85%, rgba(0,0,0,.4) 100%); }

.cta .btn--white::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(74,222,128,.35), transparent);
  animation: shimmer 3.2s ease-in-out infinite;
}
.cta .btn--white > span { position: relative; z-index: 1; }

/* ── Page hero (servicios, contacto) ── */
.page-hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
  min-height: 36vh;
  display: flex;
  align-items: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 500px;
  background: radial-gradient(ellipse, rgba(34,197,94,.2) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; width: 100%; }
.page-hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 20px auto 0; }

/* ── Services Detail (servicios.html) ── */
.service-detail {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 56px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  scroll-margin-top: 100px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s;
}
.service-detail::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.service-detail:hover { border-color: var(--border-mid); }
.service-detail:last-child { margin-bottom: 0; }
.service-detail__icon {
  width: 68px; height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.2);
  border-radius: var(--r-md);
  color: var(--primary);
  margin-bottom: 20px;
}
.service-detail__icon svg { width: 34px; height: 34px; display: block; }
.service-detail__header h2 { font-size: 1.6rem; margin-bottom: 16px; }
.service-detail__header p  { font-size: 1rem; }
.feature-list { margin: 24px 0; }
.feature-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .9rem; color: var(--text); }
.feature-list li:last-child { border-bottom: none; }
.feature-list .icon { color: var(--green); font-weight: 700; flex-shrink: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tag {
  background: rgba(34,197,94,.08);
  color: var(--primary-light);
  border: 1px solid rgba(34,197,94,.18);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
}
.service-detail__img {
  width: 100%; height: auto;
  margin-top: 28px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  filter: brightness(.85) saturate(.9);
  transition: filter .4s;
  display: block;
}
.service-detail:hover .service-detail__img { filter: brightness(1) saturate(1.05); }

/* ── Contact (contacto.html) ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info h2 { margin-bottom: 20px; }
.contact-info p  { margin-bottom: 32px; }
.contact-items   { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  transition: all .25s;
}
.contact-item:hover { border-color: var(--border-mid); transform: translateX(4px); }
.contact-item__icon { flex-shrink: 0; margin-top: 2px; color: var(--primary); display: flex; }
.contact-item__icon svg { width: 24px; height: 24px; display: block; }
.contact-item__text strong { display: block; font-size: .875rem; color: var(--white); margin-bottom: 4px; font-weight: 600; }
.contact-item__text span  { font-size: .875rem; color: var(--text-muted); }
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px;
  box-shadow: 0 0 60px rgba(34,197,94,.08);
  position: relative;
  overflow: hidden;
}
.contact-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.contact-form h3 { margin-bottom: 8px; }
.contact-form > p { margin-bottom: 32px; font-size: .95rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text);
  background: var(--bg-3);
  transition: all .2s;
  outline: none;
}
.form-group select option { background: var(--bg-3); color: var(--text); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(34,197,94,.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; justify-content: center; }
.form-note   { font-size: .78rem; color: var(--text-muted); text-align: center; margin-top: 12px; }

/* ── Footer ── */
.footer {
  background: #020804;
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 250px;
  background: radial-gradient(ellipse, rgba(34,197,94,.07) 0%, transparent 65%);
  pointer-events: none;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.footer__brand p { font-size: .9rem; line-height: 1.7; margin-top: 16px; }
.footer__links h4, .footer__contact h4 { color: var(--white); margin-bottom: 20px; }
.footer__links ul { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: .9rem; color: var(--text-muted); transition: all .2s; }
.footer__links a:hover { color: var(--primary-light); transform: translateX(4px); display: inline-block; }
.footer__contact p { font-size: .875rem; margin-bottom: 8px; }
.footer__contact .btn--wa { margin-top: 16px; }
.footer__bottom { padding: 24px 0; text-align: center; font-size: .82rem; color: var(--text-muted); position: relative; z-index: 1; }

/* ── WhatsApp Float ── */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 888;
  width: 62px; height: 62px;
  background: var(--wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 24px rgba(37,211,102,.45);
  transition: all .25s;
  animation: pulseWa 2.5s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.12); box-shadow: 0 8px 40px rgba(37,211,102,.6); animation-play-state: paused; }
@keyframes pulseWa {
  0%,100% { box-shadow: 0 4px 24px rgba(37,211,102,.45); }
  50%      { box-shadow: 0 4px 48px rgba(37,211,102,.7); }
}

/* ── Fondo overlay ── */
.fondo-overlay {
  position: absolute;
  inset: 0;
  background-image: url('assets/fondolineas.webp');
  background-size: cover;
  background-position: center;
  opacity: .04;
  pointer-events: none;
  z-index: 0;
}

/* ── Scrollbar ── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(34,197,94,.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(34,197,94,.45); }

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about__grid       { grid-template-columns: 1fr; gap: 48px; }
  .services-grid     { grid-template-columns: repeat(2, 1fr); }
  .process__steps    { grid-template-columns: repeat(2, 1fr); }
  .process__steps::before { display: none; }
  .footer__grid      { grid-template-columns: 1fr 1fr; gap: 40px; }
  .service-detail    { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid      { grid-template-columns: 1fr; }
  .hero__metrics     { grid-template-columns: repeat(2, 1fr); max-width: 520px; }
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(3) { border-top: 1px solid var(--border); }
  .metric:nth-child(4) { border-top: 1px solid var(--border); }
}

@media (max-width: 768px) {
  section { padding: 80px 0; }
  .hero   { padding: 120px 0 80px; }
  .hero__orb { width: 400px; height: 400px; }

  .nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(3,10,5,.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
  }
  .nav.open  { display: block; }
  .nav__list { flex-direction: column; gap: 4px; }
  .header__inner > .btn { display: none; }
  .menu-toggle { display: flex; }

  .services-grid  { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .comparison     { grid-template-columns: 1fr; }
  .footer__grid   { grid-template-columns: 1fr; gap: 32px; }
  .hero__metrics  { grid-template-columns: 1fr 1fr; margin-top: 52px; }
  .service-detail { padding: 28px 20px; }
  .contact-form   { padding: 28px 20px; }
  .cta            { padding: 100px 0; }
}

@media (max-width: 480px) {
  .hero__metrics  { grid-template-columns: 1fr 1fr; }
  .hero__actions  { flex-direction: column; align-items: center; }
  h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
}
