/* ============ GENLOOPIA – core styles v3 ============ */
:root {
  --bg-0: #05060d;
  --bg-1: #0a0e27;
  --bg-2: #0f1535;
  --ink-0: #ffffff;
  --ink-1: #c8cce0;
  --ink-2: #8a8fb0;
  --ink-3: #5a5f80;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --cyan: #00E5FF;
  --cyan-2: #22d3ee;
  --violet: #8B5CF6;
  --violet-2: #a855f7;
  --indigo: #4f46e5;
  --grad: linear-gradient(120deg, #2563eb 0%, #6366f1 35%, #8B5CF6 70%, #c026d3 100%);
  --grad-soft: linear-gradient(120deg, rgba(37,99,235,.18) 0%, rgba(139,92,246,.18) 60%, rgba(192,38,211,.18) 100%);
  --glow-cyan: 0 0 24px rgba(0,229,255,.55), 0 0 60px rgba(0,229,255,.25);
  --glow-violet: 0 0 24px rgba(139,92,246,.55), 0 0 60px rgba(139,92,246,.25);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
}

/* ─── RESET BASE ─────────────────────────────────────────────────────────────
   overflow-x:clip en html/body evita scroll horizontal SIN crear un nuevo
   stacking context (a diferencia de overflow:hidden que rompe position:fixed
   en algunos navegadores móviles).
   ─────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
}
body {
  margin: 0; padding: 0;
  background: var(--bg-0);
  color: var(--ink-1);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  width: 100%;
}
img, svg, canvas, video { max-width: 100%; display: block; }

/* ─── BACKGROUND FX ──────────────────────────────────────────────────────────
   CRÍTICO: usar top/left/width/height con 100vw en lugar de inset:0.
   Con inset:0 los elementos fixed heredan el ancho del documento cuando hay
   cualquier desborde, retroalimentando el problema. 100vw siempre es el viewport.
   ─────────────────────────────────────────────────────────────────────────── */
.fx-bg {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(37,99,235,.18), transparent 60%),
    radial-gradient(900px 600px at 85% 80%, rgba(139,92,246,.16), transparent 60%),
    radial-gradient(600px 400px at 50% 50%, rgba(0,229,255,.06), transparent 70%),
    var(--bg-0);
}
.fx-grid {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  animation: gridDrift 30s linear infinite;
}
@keyframes gridDrift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 64px 64px, 64px 64px; }
}
.fx-particles {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
}
.fx-noise {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 1; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.6'/></svg>");
}

/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */
.page { position: relative; z-index: 2; }
.section { position: relative; padding: 120px 0; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
}
@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .h-display { font-size: clamp(38px, 10vw, 56px) !important; }
}

/* ─── TIPOGRAFÍA ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700; color: var(--ink-0);
  letter-spacing: -0.02em; line-height: 1.05; margin: 0;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan-2);
  padding: 8px 14px;
  border: 1px solid rgba(0,229,255,.25);
  border-radius: 999px;
  background: rgba(0,229,255,.04);
  /* Evita que el eyebrow desborde en móviles pequeños */
  max-width: 100%; white-space: nowrap; overflow: hidden;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
  flex-shrink: 0;
}
.h-display { font-size: clamp(48px, 8vw, 104px); }
.h-section { font-size: clamp(32px, 5.4vw, 64px); }
.h-card { font-size: 22px; line-height: 1.25; }

.gradient-text {
  background: linear-gradient(120deg, #ffffff 0%, #c4d0ff 30%, #00E5FF 55%, #8B5CF6 80%, #ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shine 8s ease-in-out infinite;
}
@keyframes shine {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
.text-muted { color: var(--ink-2); }
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-1); max-width: 60ch; }

/* ─── BOTONES ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 14.5px;
  text-decoration: none; border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap; font-family: inherit;
  /* Evita que botones con texto largo rompan el layout en móvil */
  max-width: 100%;
}
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--grad); color: white;
  box-shadow: 0 10px 40px rgba(99,102,241,.35), inset 0 1px 0 rgba(255,255,255,.25);
  position: relative;
}
.btn-primary::before {
  content: ""; position: absolute; inset: -2px; border-radius: 999px;
  background: var(--grad); filter: blur(14px); opacity: .5; z-index: -1;
  transition: opacity .25s ease;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:hover::before { opacity: .85; }

.btn-ghost {
  background: rgba(255,255,255,.04); color: var(--ink-0);
  border-color: var(--line-2); backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(0,229,255,.4); }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }

/* ─── CARD ────────────────────────────────────────────────────────────────── */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color .3s ease, transform .3s ease, background .3s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,229,255,.0), rgba(139,92,246,.0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; transition: background .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: transparent; }
.card:hover::before { background: linear-gradient(135deg, rgba(0,229,255,.6), rgba(139,92,246,.6)); }

/* ─── SCROLL REVEAL ──────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

.hairline { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); margin: 0; border: 0; }

/* ─── NAV ─────────────────────────────────────────────────────────────────
   CRÍTICO: width usa 100vw (no 100%) para no heredar ancho del documento.
   ─────────────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 80;
  width: calc(100vw - 24px); max-width: 1280px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 12px 22px;
  background: rgba(8,10,24,.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line); border-radius: 999px;
  transition: background .3s ease, border-color .3s ease, top .3s ease;
}
.nav.scrolled { background: rgba(8,10,24,.85); border-color: var(--line-2); }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 40px; display: block; filter: drop-shadow(0 0 14px rgba(139,92,246,.4)); }
@media (max-width: 600px) { .nav-logo img { height: 32px; } }

.nav-links { display: flex; gap: 6px; }
.nav-links a {
  color: var(--ink-1); text-decoration: none;
  padding: 8px 14px; font-size: 14px; border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--ink-0); background: rgba(255,255,255,.05); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-burger {
  display: none; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent;
  color: var(--ink-0); cursor: pointer; align-items: center; justify-content: center;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-cta .btn { display: none; }
}

/* Mobile menu usa 100vw/100vh en lugar de inset:0 */
.mobile-menu {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 70;
  background: rgba(5,6,13,.96); backdrop-filter: blur(20px);
  display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--ink-0); text-decoration: none;
  font-size: 24px; font-family: 'Space Grotesk', sans-serif; font-weight: 600;
}

/* ─── HERO ────────────────────────────────────────────────────────────────
   overflow:hidden en .hero es lo que contiene el hero-orb.
   Sin esto el orb (que tiene right negativo) causaría desborde.
   ─────────────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; padding: 140px 0 80px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero h1 { margin-top: 24px; }
.hero .lede { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  margin-top: 80px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; max-width: 920px;
}
.hero-stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 700;
  color: var(--ink-0); letter-spacing: -.02em;
}
.hero-stat .lbl {
  font-size: 12.5px; color: var(--ink-2); margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .12em; text-transform: uppercase;
}
@media (max-width: 700px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .hero-stats { margin-top: 48px; } }

/* Hero orb: right negativo está OK porque .hero tiene overflow:hidden */
.hero-orb {
  position: absolute; right: -80px; top: 50%; transform: translateY(-50%);
  width: 560px; height: 560px;
  pointer-events: none; opacity: .9;
}
.hero-orb svg { width: 100%; height: 100%; }
@media (max-width: 1100px) { .hero-orb { opacity: .3; right: -160px; width: 480px; height: 480px; } }
@media (max-width: 700px)  { .hero-orb { width: 300px; height: 300px; right: -100px; opacity: .18; } }

/* ─── MARQUEE / CRED STRIP ───────────────────────────────────────────────
   overflow:hidden + contain:layout paint impide que el marquee
   (que mide miles de px de ancho) expanda el documento.
   ─────────────────────────────────────────────────────────────────────────── */
.cred {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  /* Altura fija: el contenedor no depende del hijo absoluto */
  height: 76px;
  background: linear-gradient(180deg, rgba(255,255,255,.015), transparent);
  /* overflow:clip no crea scroll context, solo corta visualmente */
  overflow: clip;
  /* clip-path como segunda capa de seguridad contra desborde */
  clip-path: inset(0);
}
.marquee {
  /* position:absolute saca el marquee del flujo normal:
     su ancho real de ~4876px no empuja el documento padre */
  position: absolute;
  top: 50%; transform: translateY(-50%);
  left: 0;
  display: flex; gap: 64px;
  animation: marq 40s linear infinite;
  width: max-content;
  will-change: transform;
  white-space: nowrap;
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--ink-2);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 600;
  letter-spacing: -.01em; white-space: nowrap;
}
.marquee-item .pip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
  flex-shrink: 0;
}
.marquee-item:hover { color: var(--ink-0); }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── SERVICIOS ──────────────────────────────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 56px;
}
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .services-grid { grid-template-columns: 1fr; } }

.service { padding: 32px; min-height: 280px; display: flex; flex-direction: column; cursor: pointer; }
.service .icon-wrap {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2);
  margin-bottom: 22px; flex-shrink: 0;
  transition: all .3s ease;
}
.service:hover .icon-wrap {
  background: rgba(0,229,255,.08); border-color: rgba(0,229,255,.4);
  box-shadow: 0 0 30px rgba(0,229,255,.2);
}
.service .icon-wrap svg { width: 28px; height: 28px; color: var(--cyan); }
.service h3 { font-size: 22px; margin-bottom: 12px; }
.service p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; flex: 1; }
.service .more {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-1); font-size: 13.5px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .08em; text-transform: uppercase;
  opacity: .7; transition: opacity .3s ease, color .3s ease;
}
.service:hover .more { opacity: 1; color: var(--cyan); }
.service.feat .icon-wrap svg { color: var(--violet-2); }
.service.feat:hover .icon-wrap { background: rgba(139,92,246,.08); border-color: rgba(139,92,246,.45); box-shadow: 0 0 30px rgba(139,92,246,.25); }
.service.feat:hover .more { color: var(--violet-2); }

/* ─── AI HIGHLIGHT ───────────────────────────────────────────────────────── */
.ai-section { position: relative; }
.ai-card {
  position: relative; border-radius: var(--r-xl); padding: 64px;
  background:
    radial-gradient(700px 500px at 100% 0%, rgba(139,92,246,.18), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(0,229,255,.14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid var(--line-2);
  overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.ai-card::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent);
  pointer-events: none;
}
@media (max-width: 900px) { .ai-card { grid-template-columns: 1fr; padding: 36px; gap: 36px; } }
@media (max-width: 600px) { .ai-card { padding: 24px; border-radius: 22px; } }

.ai-content { position: relative; z-index: 1; }
.ai-content h2 { margin: 18px 0 18px; }
.ai-bullets { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.ai-bullet { display: flex; gap: 14px; align-items: flex-start; }
.ai-bullet .check {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,229,255,.12); border: 1px solid rgba(0,229,255,.4);
  display: flex; align-items: center; justify-content: center; color: var(--cyan);
}
.ai-bullet b { color: var(--ink-0); font-weight: 600; }
.ai-bullet span { color: var(--ink-2); font-size: 14.5px; }

.ai-visual { position: relative; aspect-ratio: 1/1; max-width: 520px; justify-self: center; width: 100%; }
.ai-visual svg { width: 100%; height: 100%; }

/* ─── PROCESO ─────────────────────────────────────────────────────────────── */
.process-list { margin-top: 56px; }
.process-step {
  display: grid; grid-template-columns: 120px 1fr auto;
  gap: 32px; align-items: center;
  padding: 28px 8px;
  border-top: 1px solid var(--line);
  position: relative;
  transition: padding .3s ease; cursor: default;
}
.process-step:last-child { border-bottom: 1px solid var(--line); }
.process-step::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: linear-gradient(90deg, rgba(0,229,255,.08), transparent);
  transition: width .4s ease;
}
.process-step:hover { padding-left: 24px; }
.process-step:hover::before { width: 60%; }
.process-step .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 5vw, 64px); font-weight: 700;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; letter-spacing: -.02em;
}
.process-step .body h3 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 8px; }
.process-step .body p { color: var(--ink-2); margin: 0; max-width: 60ch; font-size: 14.5px; }
.process-step .meta {
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .process-step { grid-template-columns: 56px 1fr; }
  .process-step .meta { display: none; }
  .process-step .num { font-size: 32px; }
}

/* ─── PORTFOLIO ───────────────────────────────────────────────────────────── */
.work-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.work {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 4/3;
  background: var(--bg-1); cursor: pointer;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .3s ease;
  /* text-decoration:none para los <a> que envuelven los work cards */
  text-decoration: none;
}
.work:hover { transform: translateY(-4px); border-color: rgba(0,229,255,.4); }
.work .visual { position: absolute; inset: 0; }
.work .visual svg { width: 100%; height: 100%; display: block; }
.work .meta {
  position: absolute; left: 22px; right: 22px; bottom: 22px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  z-index: 2;
}
.work .meta::before {
  content: ""; position: absolute; inset: -22px -22px -22px -22px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
  z-index: -1; pointer-events: none;
}
.work .tag {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-2);
}
.work h3 { color: white; font-size: 20px; margin-top: 4px; }
.work .arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  color: white; flex-shrink: 0;
  transition: background .3s ease, transform .3s ease;
}
.work:hover .arrow { background: var(--grad); transform: rotate(-45deg); }
.work-a { grid-column: span 4; aspect-ratio: 16/9; }
.work-b { grid-column: span 2; aspect-ratio: 4/5; }
.work-c { grid-column: span 2; }
.work-d { grid-column: span 2; }
.work-e { grid-column: span 2; }
@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-a, .work-b, .work-c, .work-d, .work-e { grid-column: span 2; aspect-ratio: 4/3; }
}
@media (max-width: 480px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-a, .work-b, .work-c, .work-d, .work-e { grid-column: span 1; aspect-ratio: 4/3; }
}

/* ─── ABOUT ───────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 64px; align-items: start; margin-top: 48px;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }

.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } }

.value {
  padding: 22px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
}
.value h4 { font-size: 16px; margin-bottom: 6px; }
.value p { color: var(--ink-2); font-size: 13.5px; margin: 0; line-height: 1.55; }
.value .vi {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--grad-soft); border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan); margin-bottom: 14px;
}
.about-pic {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-2); aspect-ratio: 4/5;
  background:
    radial-gradient(400px 300px at 30% 20%, rgba(0,229,255,.18), transparent 60%),
    radial-gradient(400px 300px at 80% 80%, rgba(139,92,246,.20), transparent 60%),
    linear-gradient(180deg, #0c1230, #06081a);
}
.about-pic .ring { position: absolute; inset: 0; }
.about-pic-tag {
  position: absolute; left: 22px; bottom: 22px; right: 22px;
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-1);
}

/* ─── TESTIMONIOS ─────────────────────────────────────────────────────────── */
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
@media (max-width: 900px) { .test-grid { grid-template-columns: 1fr; } }

.test {
  padding: 32px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  display: flex; flex-direction: column; gap: 22px;
}
.test .quote { font-size: 17px; color: var(--ink-1); line-height: 1.55; flex: 1; }
.test .quote::before {
  content: "\201C";
  font-family: 'Space Grotesk', sans-serif; font-size: 64px;
  line-height: 0; color: var(--cyan); opacity: .8;
  display: block; height: 24px;
}
.test .who { display: flex; align-items: center; gap: 12px; }
.test .avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  color: white; font-size: 15px; flex-shrink: 0;
}
.test .who .name { color: var(--ink-0); font-weight: 600; font-size: 14.5px; }
.test .who .role { color: var(--ink-3); font-size: 12.5px; }

.metrics-row {
  margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; padding-top: 56px; border-top: 1px solid var(--line);
}
@media (max-width: 700px) { .metrics-row { grid-template-columns: 1fr 1fr; } }

.metric .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 4.4vw, 56px); font-weight: 700; letter-spacing: -.02em;
  background: linear-gradient(120deg, #fff, #00E5FF 60%, #8B5CF6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric .lbl { color: var(--ink-2); font-size: 13.5px; margin-top: 4px; }

/* ─── FINAL CTA ───────────────────────────────────────────────────────────── */
.cta-final {
  position: relative; text-align: center;
  padding: 140px 0 120px; overflow: hidden;
}
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 50% 60%, rgba(0,229,255,.20), transparent 60%),
    radial-gradient(800px 400px at 50% 100%, rgba(139,92,246,.30), transparent 60%);
  z-index: -1;
}
.cta-final h2 { font-size: clamp(40px, 7vw, 88px); }
.cta-final p { margin: 24px auto 0; max-width: 56ch; }
.cta-final .actions { margin-top: 44px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-final .channels {
  margin-top: 56px; display: flex; gap: 28px;
  justify-content: center; flex-wrap: wrap;
  color: var(--ink-2); font-size: 14px;
  font-family: 'JetBrains Mono', monospace; letter-spacing: .08em;
}
.cta-final .channels a { color: var(--ink-1); text-decoration: none; transition: color .2s ease; }
.cta-final .channels a:hover { color: var(--cyan); }

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
.footer {
  position: relative; border-top: 1px solid var(--line);
  padding: 64px 0 28px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.6));
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.footer-brand img { height: 44px; }
.footer-brand p { color: var(--ink-2); font-size: 14px; max-width: 36ch; margin-top: 16px; }
.footer h5 {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-0); margin-bottom: 16px; font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--ink-2); text-decoration: none; font-size: 14px; transition: color .2s ease; }
.footer ul a:hover { color: var(--cyan); }
.footer ul li { color: var(--ink-2); font-size: 14px; }

.footer-socials { display: flex; gap: 10px; margin-top: 22px; }
.footer-socials a {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2); color: var(--ink-1);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.footer-socials a:hover { background: var(--grad); color: white; border-color: transparent; }

.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 12.5px; color: var(--ink-3);
  font-family: 'JetBrains Mono', monospace; letter-spacing: .08em;
}

/* ─── WHATSAPP FLOTANTE ───────────────────────────────────────────────────
   Visible desde el primer instante (CSS puro, no depende de JS).
   El useEffect de React solo lo oculta si el usuario desmarca el toggle.
   ─────────────────────────────────────────────────────────────────────────── */
.fab-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 9999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366;
  display: flex !important; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 10px 30px rgba(37,211,102,.4);
  text-decoration: none;
  animation: waPulse 2.4s ease-in-out infinite;
  transition: transform .3s ease, opacity .3s ease;
  opacity: 1; visibility: visible;
}
@supports (bottom: env(safe-area-inset-bottom)) {
  .fab-wa { bottom: calc(18px + env(safe-area-inset-bottom)); }
}
.fab-wa:hover { transform: scale(1.07); }
@keyframes waPulse {
  0%,100% { box-shadow: 0 10px 30px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.4); }
  50%      { box-shadow: 0 10px 30px rgba(37,211,102,.4), 0 0 0 14px rgba(37,211,102,0); }
}

/* ─── SECTION HEADERS ─────────────────────────────────────────────────────── */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: end; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }
.section-head .right p { margin: 0; max-width: 50ch; }
