/* ═══════════════════════════════════════════════════════════
   BLUECODE STUDIOS — Design System v1.0
   Dark theme · Geist · Gradiente #24366B → #3d74f2 → #6b9dff
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --bg: #0a0a0a;
  --fg: #ffffff;
  --fg-60: rgba(255, 255, 255, 0.6);
  --fg-50: rgba(255, 255, 255, 0.5);
  --fg-40: rgba(255, 255, 255, 0.4);
  --fg-20: rgba(255, 255, 255, 0.2);
  --border: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.2);
  --surface: rgba(255, 255, 255, 0.05);
  --green: #22c55e;
  --blue-dark: #24366B;
  --blue-mid: #3d74f2;
  --blue-light: #6b9dff;
  --blue-pale: #B9C9EF;
  --grad: linear-gradient(90deg, var(--blue-dark), var(--blue-mid), var(--blue-light));
  --grad-text: linear-gradient(90deg, #5984e8, var(--blue-mid) 40%, var(--blue-pale));
  --radius: 0.625rem;
  --radius-lg: 1rem;
  --font-sans: 'Geist', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --container: 1180px;
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

::selection { background: rgba(61, 116, 242, 0.4); color: var(--fg); }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }

/* ── Gradient text helper ── */
.grad {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ═══════════ PRELOADER ═══════════ */
.preloader {
  position: fixed; inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-inner { text-align: center; width: min(320px, 70vw); }
.preloader-logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.preloader-logo span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.preloader-logo-img {
  display: block;
  width: min(240px, 62vw);
  height: auto;
  margin: 0 auto 26px;
}
.preloader-counter {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-40);
  margin-bottom: 12px;
}
.preloader-bar {
  height: 1px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: 999px;
}

/* ═══════════ CURSOR ═══════════ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 150;
  opacity: 0;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--blue-light);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(107, 157, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s;
}
.cursor-ring.is-hover {
  width: 56px; height: 56px;
  border-color: rgba(107, 157, 255, 0.8);
  background: rgba(61, 116, 242, 0.08);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ═══════════ PAGE GLOW (sigue al mouse) ═══════════ */
.page-glow {
  position: fixed;
  top: -650px; left: -650px;
  width: 1300px; height: 1300px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(61, 116, 242, 0.14), rgba(36, 54, 107, 0.07) 35%, transparent 62%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  will-change: transform;
}
@media (hover: none), (pointer: coarse) {
  .page-glow { display: none; }
}

/* ═══════════ BOTONES ═══════════ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s, border-color 0.3s, color 0.3s, opacity 0.3s;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(107, 157, 255, 0.25) inset, 0 8px 32px rgba(61, 116, 242, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(107, 157, 255, 0.4) inset, 0 12px 48px rgba(61, 116, 242, 0.45);
}
.btn-ghost {
  border: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border-hover);
}
.btn-nav { padding: 10px 20px; font-size: 13.5px; }
.btn-lg  { padding: 16px 30px; font-size: 15px; }
.btn-xl  { padding: 19px 40px; font-size: 16px; }

/* ═══════════ NAVBAR ═══════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.75);
  border-bottom-color: var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: var(--fg);
}
.nav-logo span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.nav-logo img {
  display: block;
  height: 38px;
  width: auto;
  max-width: none;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-60);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: 16px; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px; height: 40px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--fg);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* ═══════════ MOBILE MENU ═══════════ */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 80;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 32px 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu-links a {
  font-size: clamp(32px, 9vw, 44px);
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--fg);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s, color 0.3s;
}
.mobile-menu.is-open .mobile-menu-links a { transform: translateY(0); opacity: 1; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(2) { transition-delay: 0.16s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(3) { transition-delay: 0.24s; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(4) { transition-delay: 0.32s; }
.mobile-menu-links a:hover { color: var(--blue-light); }
.mobile-menu-cta {
  font-size: clamp(18px, 5vw, 22px) !important;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  border-bottom: none !important;
  margin-top: 16px;
}
.mobile-menu-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-40);
}

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 48px) 24px 96px;
  overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-glow {
  position: absolute;
  top: -20%; left: 50%;
  width: 900px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(61, 116, 242, 0.18), transparent 65%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--fg-60);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 40px;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
  font-size: clamp(40px, 7.2vw, 84px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin-bottom: 22px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; will-change: transform; }
.hero-sub {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-40);
  margin-bottom: 28px;
}
.hero-desc {
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--fg-60);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 44px;
  text-wrap: balance;
}
.hero-desc strong { color: var(--fg); font-weight: 600; }
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
/* ═══════════ MARQUEE ═══════════ */
.marquee {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 22px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
}
.marquee-group span {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-40);
  white-space: nowrap;
}
.marquee-group i { font-style: normal; font-size: 11px; color: var(--blue-mid); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ═══════════ SECCIONES BASE ═══════════ */
.section { padding: 96px 24px; position: relative; }
.container { max-width: var(--container); margin: 0 auto; }
.container-narrow { max-width: 860px; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-light);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.tag-num { color: var(--fg-40); }
.section-header { margin-bottom: 64px; }
.section-header-center { text-align: center; }
.section-header-center .section-desc { margin-left: auto; margin-right: auto; }
.section-title {
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 760px;
  margin-bottom: 20px;
}
.section-header-center .section-title { margin-left: auto; margin-right: auto; }
.section-desc {
  font-size: clamp(15px, 1.7vw, 17px);
  color: var(--fg-60);
  line-height: 1.7;
  max-width: 560px;
}

/* ═══════════ SERVICIOS ═══════════ */
.services { border-top: 1px solid var(--border-subtle); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.005));
  padding: 34px 30px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.35s, transform 0.45s var(--ease-out), box-shadow 0.45s;
}
.service-card:hover {
  border-color: rgba(107, 157, 255, 0.35);
  transform: translateY(-5px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
/* Spotlight: gradiente radial que sigue al mouse (vars seteadas por JS) */
.spotlight::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), rgba(61, 116, 242, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.spotlight:hover::before { opacity: 1; }
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 26px;
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.35s, background 0.35s, transform 0.45s var(--ease-out);
}
.card-icon svg { width: 22px; height: 22px; color: var(--blue-light); }
.service-card:hover .card-icon {
  border-color: rgba(107, 157, 255, 0.4);
  background: rgba(61, 116, 242, 0.12);
  transform: scale(1.06) rotate(-4deg);
}
.card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-20);
}
.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 14.5px;
  color: var(--fg-60);
  line-height: 1.68;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--blue-light);
}
.card-cta svg {
  width: 14px; height: 14px;
  transition: transform 0.3s var(--ease-out);
}
.service-card:hover .card-cta svg { transform: translateX(4px); }

/* ═══════════ VALOR ═══════════ */
.value {
  padding-top: 140px;
  padding-bottom: 140px;
  border-top: 1px solid var(--border-subtle);
}
.value-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.value-statement {
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin-bottom: 36px;
}
.value-statement .w {
  color: var(--fg-20);
  display: inline-block;
}
/* Palabras con gradiente de marca dentro del statement */
.value-statement .wg {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0.25;
}
.value-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.value-detail p {
  font-size: clamp(15px, 1.7vw, 17px);
  color: var(--fg-60);
  line-height: 1.75;
}

/* ── Animación prompt → preview ── */
.value-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: end;
}
.vv-glow {
  position: absolute;
  inset: -18px;
  border-radius: 24px;
  background: linear-gradient(90deg, rgba(36, 54, 107, 0.22), rgba(61, 116, 242, 0.22) 40%, rgba(185, 201, 239, 0.22));
  filter: blur(32px);
  pointer-events: none;
}
.vv-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0f0f0f;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.vv-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.vv-dot { width: 12px; height: 12px; border-radius: 50%; }
.vv-dot-r { background: rgba(239, 68, 68, 0.8); }
.vv-dot-y { background: rgba(234, 179, 8, 0.8); }
.vv-dot-g { background: rgba(34, 197, 94, 0.8); }
.vv-window-title { margin-left: 10px; font-size: 12px; color: rgba(255, 255, 255, 0.3); }
.vv-editor-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  min-height: 92px;
}
.vv-bolt {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #24366B, #3d74f2, #B9C9EF);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vv-bolt svg { width: 16px; height: 16px; color: #fff; }
.vv-prompt {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}
.vv-caret {
  display: inline-block;
  width: 2px; height: 15px;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--blue-mid);
  animation: vvBlink 0.8s steps(1) infinite;
}
@keyframes vvBlink { 50% { opacity: 0; } }

.vv-preview { margin-top: 16px; }
.js .vv-preview { opacity: 0; visibility: hidden; }
.vv-shimmer {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  pointer-events: none;
}
.vv-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.vv-preview-bar .vv-window-title { margin-left: 0; }
.vv-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 999px;
  padding: 3px 10px;
}
.vv-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.vv-dash { display: flex; height: 192px; }
.vv-sidebar {
  width: 48px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vv-side-logo {
  width: 24px; height: 24px;
  border-radius: 8px;
  background: linear-gradient(90deg, #24366B, #3d74f2, #B9C9EF);
  margin-bottom: 4px;
}
.vv-side-item { width: 24px; height: 24px; border-radius: 8px; background: var(--surface); }
.vv-side-item.is-active { background: rgba(255, 255, 255, 0.1); }
.vv-main { flex: 1; padding: 12px; min-width: 0; }
.vv-stats { display: flex; gap: 8px; margin-bottom: 12px; }
.vv-stat {
  flex: 1;
  border-radius: 8px;
  background: var(--surface);
  padding: 8px;
}
.vv-stat span { display: block; width: 32px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); margin-bottom: 5px; }
.vv-stat b { display: block; width: 48px; height: 12px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); }
.vv-chart { border-radius: 8px; background: var(--surface); padding: 8px; }
.vv-chart-label { width: 64px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); margin-bottom: 8px; }
.vv-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 64px;
}
.vv-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, rgba(36, 54, 107, 0.5), rgba(61, 116, 242, 0.5), rgba(185, 201, 239, 0.5));
  transform-origin: bottom;
}
.vv-badge {
  position: absolute;
  bottom: 10px; right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.vv-badge svg { width: 13px; height: 13px; color: var(--blue-mid); }

/* ═══════════ METODOLOGÍA ═══════════ */
.method { border-top: 1px solid var(--border-subtle); }
.method-steps {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}
.method-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  transform: translateX(-50%);
  background: var(--border);
}
.method-line-progress {
  width: 100%;
  height: 0%;
  background: var(--grad);
  box-shadow: 0 0 16px rgba(61, 116, 242, 0.6);
}
.method-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 96px 1fr;
  align-items: start;
  padding: 56px 0;
}
.step-num {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(107, 157, 255, 0.35);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--blue-light);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 24px rgba(61, 116, 242, 0.12);
}
.step-body { grid-row: 1; padding-top: 6px; }
/* La línea es el primer hijo: el paso 01 es nth-child(2) */
.method-step:nth-child(even) .step-body {
  grid-column: 1;
  text-align: right;
  justify-self: end;
}
.method-step:nth-child(odd) .step-body {
  grid-column: 3;
  text-align: left;
  justify-self: start;
}
.step-body h3 {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.step-body p {
  font-size: clamp(14.5px, 1.6vw, 16px);
  color: var(--fg-60);
  line-height: 1.7;
  max-width: 480px;
}
.method-step:nth-child(even) .step-body p { margin-left: auto; }

/* ═══════════ TESTIMONIOS ═══════════ */
.testimonials {
  border-top: 1px solid var(--border-subtle);
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}
.testimonials .container { padding: 0 24px; }
.t-rotator {
  min-height: 3.6em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.t-rotator span {
  display: inline-block;
  font-style: italic;
  color: var(--blue-pale);
}

.t-marquee {
  display: flex;
  flex-direction: column;
  gap: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.t-track { display: flex; width: max-content; }
.t-track-a { animation: marquee 52s linear infinite; }
.t-track-b { animation: marqueeReverse 58s linear infinite; }
.t-track:hover { animation-play-state: paused; }
@keyframes marqueeReverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.t-group { display: flex; gap: 20px; padding-right: 20px; }
.t-card {
  position: relative;
  width: min(440px, 84vw);
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.005));
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
  transition: border-color 0.35s;
}
.t-card:hover { border-color: rgba(107, 157, 255, 0.3); }
.t-card blockquote {
  font-size: 14.5px;
  color: var(--fg-60);
  line-height: 1.7;
  flex: 1;
}
.t-card figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
}
.t-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  border: 1px solid rgba(107, 157, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  flex-shrink: 0;
}
.t-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.t-card figcaption strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
}
.t-card figcaption span {
  display: block;
  font-size: 12.5px;
  color: var(--fg-40);
  margin-top: 2px;
}

/* ═══════════ CTA FINAL ═══════════ */
.cta-final {
  border-top: 1px solid var(--border-subtle);
  padding-top: 150px;
  padding-bottom: 150px;
  text-align: center;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  bottom: -45%; left: 50%;
  width: 1100px; height: 750px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(61, 116, 242, 0.16), transparent 65%);
  filter: blur(48px);
  pointer-events: none;
}
.cta-content { position: relative; }
.cta-title {
  font-size: clamp(34px, 5.6vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin-bottom: 22px;
}
.cta-sub {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.7vw, 16px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-50);
  margin-bottom: 28px;
}
.cta-desc {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--fg-60);
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto 48px;
  text-wrap: balance;
}

/* ═══════════ FOOTER ═══════════ */
.footer {
  position: relative;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 24px 40px;
  overflow: hidden;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}
.footer-brand p {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--fg-40);
  max-width: 300px;
  line-height: 1.7;
}
.footer-links { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-links h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-40);
  margin-bottom: 18px;
}
.footer-links a {
  display: block;
  font-size: 14.5px;
  color: var(--fg-60);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.25s, transform 0.3s var(--ease-out);
}
.footer-links a:hover { color: var(--fg); transform: translateX(4px); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--fg-40);
}
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.footer-watermark {
  position: absolute;
  bottom: -0.32em;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(110px, 22vw, 320px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.045);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* ═══════════ REVEAL (estado inicial via JS) ═══════════ */
.js [data-reveal] { opacity: 0; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .value-layout { grid-template-columns: 1fr; }
  .value-visual { justify-self: center; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section { padding: 72px 20px; }
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .nav-burger { display: flex; }
  .hero { padding-bottom: 110px; }
  .hero-badge { font-size: 12px; padding: 7px 14px; margin-bottom: 32px; }
  .hero-btns .btn { width: 100%; max-width: 360px; }
  .section-header { margin-bottom: 48px; }
  .value { padding-top: 96px; padding-bottom: 96px; }
  .vv-dash { height: 168px; }
  .vv-editor-body { padding: 16px; min-height: 84px; }
  .vv-prompt { font-size: 12.5px; }
  .method-line { left: 24px; transform: none; }
  .method-step { grid-template-columns: 48px 1fr; gap: 18px; padding: 32px 0; }
  .step-num { grid-column: 1; width: 48px; height: 48px; font-size: 14px; }
  .method-step:nth-child(odd) .step-body,
  .method-step:nth-child(even) .step-body {
    grid-column: 2;
    text-align: left;
    justify-self: start;
  }
  .method-step:nth-child(even) .step-body p { margin-left: 0; }
  .cta-final { padding-top: 100px; padding-bottom: 100px; }
  .footer { padding: 64px 20px 32px; }
  .footer-links { gap: 40px; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px 24px; }
  .t-card { padding: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; }
  .marquee-track, .t-track { animation: none; }
  .t-track { width: 100%; overflow-x: auto; }
}
