/* ============================================================
   KUBO DIGITAL — Sistema de diseño premium v4
   Neo Futurism · Dark Luxury · Cinematic Interface
   Paleta oficial: Aqua #00D4C6 · Navy #1C2942 · Negro #161616
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Marca */
  --aqua: #00D4C6;
  --aqua-deep: #00A89C;
  --aqua-light: #4CE6DA;
  --navy: #1C2942;
  --navy-2: #243353;
  --ink: #161616;
  --gray-100: #F5F5F5;
  --white: #FFFFFF;
  --accent-saas: #FF6B00; /* sólo acentos SaaS / botones estratégicos */

  /* Superficies (modo oscuro por defecto) */
  --bg: #07090f;
  --bg-2: #0a0d16;
  --bg-3: #0e1320;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-strong: rgba(0, 212, 198, 0.35);

  /* Texto */
  --text: #EAF0F5;
  --text-soft: #9fb0c3;
  --text-dim: #6a788c;

  /* Glows */
  --glow-aqua: 0 0 60px rgba(0, 212, 198, 0.35);
  --glow-aqua-soft: 0 0 30px rgba(0, 212, 198, 0.18);

  /* Tipografía */
  --font-display: "Space Grotesk", "Poppins", sans-serif;
  --font-head: "Poppins", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Escala */
  --container: 1240px;
  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --grad-aqua: linear-gradient(135deg, var(--aqua-light), var(--aqua) 45%, var(--aqua-deep));
  --grad-text: linear-gradient(120deg, #ffffff 0%, #cfeee9 40%, var(--aqua) 100%);
  --grad-dark: radial-gradient(120% 120% at 50% 0%, #11182a 0%, #07090f 60%);
}

/* Modo claro */
:root[data-theme="light"] {
  --bg: #f4f7fa;
  --bg-2: #eef2f7;
  --bg-3: #e7edf4;
  --surface: rgba(28, 41, 66, 0.04);
  --surface-2: rgba(28, 41, 66, 0.07);
  --stroke: rgba(28, 41, 66, 0.12);
  --text: #10182a;
  --text-soft: #41566f;
  --text-dim: #7286a0;
  --grad-text: linear-gradient(120deg, #1C2942 0%, #0a7d75 55%, var(--aqua-deep) 100%);
  --grad-dark: radial-gradient(120% 120% at 50% 0%, #ffffff 0%, #eef2f7 60%);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--aqua); color: #04231f; }

/* ---------- 3. FONDO GLOBAL ---------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(60% 50% at 18% 0%, rgba(0, 212, 198, 0.12), transparent 60%),
    radial-gradient(50% 60% at 100% 20%, rgba(28, 41, 66, 0.55), transparent 60%),
    radial-gradient(40% 40% at 50% 100%, rgba(0, 168, 156, 0.10), transparent 70%),
    var(--bg);
  z-index: -3;
}
/* Cuadrícula tecnológica sutil */
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black, transparent 80%);
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 80%);
  z-index: -2;
  pointer-events: none;
}
:root[data-theme="light"] body::after { background-image:
  linear-gradient(rgba(28,41,66,0.05) 1px, transparent 1px),
  linear-gradient(90deg, rgba(28,41,66,0.05) 1px, transparent 1px); }

/* ---------- 4. LAYOUT ---------- */
.container { width: min(100% - 44px, var(--container)); margin-inline: auto; }
section { position: relative; }
.section-pad { padding: clamp(80px, 12vh, 160px) 0; }
.center { text-align: center; }
.grid { display: grid; gap: 24px; }

/* Etiqueta de sección */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--aqua-light);
  padding: 7px 16px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--stroke-strong);
  backdrop-filter: blur(8px);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--aqua); box-shadow: var(--glow-aqua-soft);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .4; transform: scale(.6);} }

/* Títulos */
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.5vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}
.h-section { font-size: clamp(2rem, 4.4vw, 3.6rem); letter-spacing: -0.025em; }
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.aqua { color: var(--aqua); }
.lead { color: var(--text-soft); font-size: clamp(1rem, 1.4vw, 1.18rem); max-width: 58ch; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin: 18px 0 16px; }

/* ---------- 5. BOTONES ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  padding: 15px 28px; border-radius: 100px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--grad-aqua); color: #04231f;
  box-shadow: 0 10px 40px rgba(0, 212, 198, 0.32);
}
.btn-primary:hover { box-shadow: 0 14px 55px rgba(0, 212, 198, 0.5); transform: translateY(-2px); }
.btn-ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--stroke); backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--stroke-strong); background: var(--surface-2); }
.btn-saas { background: linear-gradient(135deg, #ff8a3d, var(--accent-saas)); color: #1a0c00;
  box-shadow: 0 10px 40px rgba(255, 107, 0, 0.3); }
.btn-saas:hover { transform: translateY(-2px); box-shadow: 0 14px 55px rgba(255,107,0,.45); }
.btn-lg { padding: 18px 34px; font-size: 1.02rem; }

/* ---------- 6. NAVBAR ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), backdrop-filter .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 9, 15, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--stroke);
}
:root[data-theme="light"] .nav.scrolled { background: rgba(244,247,250,.8); }
.nav-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  width: min(100% - 44px, 1320px); margin-inline: auto;
  padding: 18px 0; gap: 20px;
}
.nav.scrolled .nav-inner { padding: 12px 0; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative; padding: 9px 14px; border-radius: 10px;
  font-size: 0.92rem; font-weight: 500; color: var(--text-soft);
  transition: color .25s, background .25s;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface); }
.nav-brand { display: flex; justify-content: center; align-items: center; gap: 11px; }
.nav-brand .logo-mark { width: 34px; height: 34px; color: var(--aqua); filter: drop-shadow(0 0 10px rgba(0,212,198,.5)); }
.nav-brand .logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.01em; }
.nav-brand .logo-text span { color: var(--aqua); }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }

/* Dropdown productos */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 320px; padding: 12px; border-radius: var(--radius);
  background: rgba(12, 16, 26, 0.92); border: 1px solid var(--stroke);
  backdrop-filter: blur(22px); box-shadow: 0 30px 70px rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; transition: all .3s var(--ease); z-index: 120;
}
:root[data-theme="light"] .dropdown { background: rgba(255,255,255,.96); }
.has-dropdown::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 18px; } /* puente */
.has-dropdown:hover .dropdown, .dropdown:hover { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
  transition: background .2s; font-size: 0.9rem;
}
.dropdown a:hover { background: var(--surface-2); }
.dropdown a .dd-ic { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px;
  display: grid; place-items: center; background: var(--surface-2); color: var(--aqua); }
.dropdown a small { display: block; color: var(--text-dim); font-size: 0.76rem; }

/* Toggle tema */
.theme-toggle, .nav-burger {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--stroke); color: var(--text);
  transition: background .25s, border-color .25s;
}
.theme-toggle:hover, .nav-burger:hover { border-color: var(--stroke-strong); }
.nav-burger { display: none; }
.theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 0; z-index: 130; background: rgba(6, 8, 13, 0.97);
  backdrop-filter: blur(20px); display: flex; flex-direction: column;
  padding: 90px 28px 40px; transform: translateY(-100%); transition: transform .5s var(--ease);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--stroke); }
.mobile-menu .m-sub a { font-size: 1rem; color: var(--text-soft); padding: 10px 0 10px 16px; border: none; }

/* ---------- 7. HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 40px; }
.hero-copy { max-width: 640px; }
.hero h1 { margin: 22px 0 20px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero-sub { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--text); margin-bottom: 14px; }
.hero-text { color: var(--text-soft); font-size: 1.05rem; max-width: 50ch; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; gap: 38px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--aqua); }
.hero-stats small { color: var(--text-dim); font-size: 0.82rem; }
.hero-visual { position: relative; height: 520px; }
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; z-index: 3;
}
.scroll-cue .bar { width: 1px; height: 46px; background: linear-gradient(var(--aqua), transparent); }

/* ---------- 8. GLASS CARDS ---------- */
.glass {
  position: relative; background: var(--surface); border: 1px solid var(--stroke);
  border-radius: var(--radius-lg); backdrop-filter: blur(16px);
  overflow: hidden;
}
.glass::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.06), transparent 40%);
  pointer-events: none;
}
.card-hover { transition: transform .5s var(--ease), border-color .5s, box-shadow .5s; will-change: transform; }
.card-hover:hover { transform: translateY(-6px); border-color: var(--stroke-strong); box-shadow: 0 30px 60px rgba(0,0,0,.4), var(--glow-aqua-soft); }

/* ---------- 9. SERVICIOS ---------- */
.services-grid { grid-template-columns: repeat(2, 1fr); }
.service-card { padding: 38px; min-height: 320px; display: flex; flex-direction: column; }
.service-card .svc-num { font-family: var(--font-display); font-size: 0.95rem; color: var(--aqua); letter-spacing: 0.1em; }
.service-card h3 { font-size: 1.55rem; margin: 16px 0 12px; }
.service-card p { color: var(--text-soft); margin-bottom: 22px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.svc-tags span { font-size: 0.78rem; padding: 6px 12px; border-radius: 100px; background: var(--surface-2); border: 1px solid var(--stroke); color: var(--text-soft); }
.svc-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0,212,198,.18), rgba(0,212,198,.04)); border: 1px solid var(--stroke-strong); color: var(--aqua); margin-bottom: 6px; }
.svc-icon svg { width: 28px; height: 28px; }

/* ---------- 10. ADN MANIFESTO ---------- */
.manifesto { text-align: center; }
.manifesto .line {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 4.2vw, 3rem); line-height: 1.18; letter-spacing: -0.02em;
  color: var(--text-dim); transition: color .4s var(--ease); margin: 6px 0;
}
.manifesto .line strong { color: var(--text); font-weight: 700; }
.manifesto .line.in { color: var(--text-soft); }
.manifesto .line em { font-style: normal; background: var(--grad-aqua);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- 11. STOCK FÁCIL ---------- */
.spotlight { position: relative; }
.spotlight-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.badge-saas { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-saas);
  padding: 6px 14px; border-radius: 100px; background: rgba(255,107,0,.1); border: 1px solid rgba(255,107,0,.35); }
.dashboard {
  position: relative; padding: 22px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(20,28,46,.9), rgba(10,13,22,.95));
  border: 1px solid var(--stroke); box-shadow: 0 40px 90px rgba(0,0,0,.5);
}
.dash-bar { display: flex; align-items: center; gap: 7px; margin-bottom: 18px; }
.dash-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--stroke); display: block; }
.dash-bar i:first-child { background: #ff5f57; } .dash-bar i:nth-child(2){ background:#febc2e;} .dash-bar i:nth-child(3){ background:#28c840;}
.dash-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 14px; }
.dash-kpi { padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--stroke); }
.dash-kpi .k { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--aqua); }
.dash-kpi small { color: var(--text-dim); font-size: 0.72rem; }
.dash-chart { height: 130px; display: flex; align-items: flex-end; gap: 9px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--stroke); }
.dash-chart span { flex: 1; border-radius: 6px 6px 0 0; background: var(--grad-aqua); opacity: .85; transition: height 1s var(--ease); }
.float-card { position: absolute; padding: 14px 18px; border-radius: 14px; background: rgba(12,16,26,.92);
  border: 1px solid var(--stroke-strong); backdrop-filter: blur(12px); box-shadow: var(--glow-aqua-soft); font-size: .82rem; }
.float-card.fc1 { top: -22px; right: 24px; }
.float-card.fc2 { bottom: -20px; left: -18px; }
.float-card .fc-val { font-family: var(--font-display); font-weight: 700; color: var(--aqua); font-size: 1.1rem; }

/* ---------- 12. PORTAFOLIO ---------- */
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn { padding: 9px 18px; border-radius: 100px; font-size: 0.85rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--stroke); color: var(--text-soft); transition: all .25s; }
.filter-btn.active, .filter-btn:hover { color: #04231f; background: var(--grad-aqua); border-color: transparent; }
.portfolio-grid { grid-template-columns: repeat(3, 1fr); }
.work-card { position: relative; aspect-ratio: 4/3.2; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--stroke); cursor: pointer; }
.work-card .work-bg { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.work-card:hover .work-bg { transform: scale(1.06); }
.work-card .work-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px; background: linear-gradient(transparent 30%, rgba(5,7,12,.92)); transform: translateY(14px); opacity: .85; transition: all .5s var(--ease); }
.work-card:hover .work-overlay { transform: translateY(0); opacity: 1; }
.work-card .work-cat { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--aqua); }
.work-card h3 { font-size: 1.3rem; margin-top: 6px; }
.work-card .work-arrow { position: absolute; top: 20px; right: 20px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--stroke);
  opacity: 0; transform: scale(.8) rotate(-30deg); transition: all .45s var(--ease); }
.work-card:hover .work-arrow { opacity: 1; transform: scale(1) rotate(0); }

/* ---------- 13. TECNOLOGÍA / ARQUITECTURA ---------- */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.arch { position: relative; padding: 30px; min-height: 420px; }
.arch-node { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.arch-node .node-dot { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: rgba(12,16,26,.9); border: 1px solid var(--stroke-strong); color: var(--aqua);
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; box-shadow: var(--glow-aqua-soft); }
.arch-node small { font-size: 0.72rem; color: var(--text-soft); }
.arch svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arch svg.wires path { fill: none; stroke: url(#wireGrad); stroke-width: 1.5; stroke-dasharray: 6 6; }
.tech-list { display: grid; gap: 14px; }
.tech-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.tech-item .ti-name { font-family: var(--font-head); font-weight: 600; }
.tech-item .ti-role { color: var(--text-dim); font-size: 0.85rem; }
.tech-item .ti-badge { margin-left: auto; font-size: 0.72rem; color: var(--aqua); padding: 5px 12px; border-radius: 100px; background: var(--surface-2); border: 1px solid var(--stroke); }

/* ---------- 14. MÉTRICAS ---------- */
.metrics-grid { grid-template-columns: repeat(5, 1fr); }
.metric { text-align: center; padding: 34px 18px; }
.metric .m-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.4rem);
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.metric .m-label { color: var(--text-soft); font-size: 0.88rem; margin-top: 6px; }

/* ---------- 15. TESTIMONIOS ---------- */
.testi-grid { grid-template-columns: repeat(3, 1fr); }
.testi-card { padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.testi-card .quote { font-size: 1.05rem; color: var(--text); line-height: 1.6; }
.testi-card .quote::before { content: "\201C"; font-family: var(--font-display); font-size: 3rem; color: var(--aqua); line-height: 0; display: block; height: 22px; }
.testi-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-author .av { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-aqua); display: grid; place-items: center; color: #04231f; font-weight: 700; font-family: var(--font-head); }
.testi-author .name { font-weight: 600; font-size: 0.92rem; }
.testi-author .role { color: var(--text-dim); font-size: 0.8rem; }

/* ---------- 16. CTA FINAL ---------- */
.cta-final { position: relative; text-align: center; overflow: hidden;
  padding: clamp(90px, 16vh, 200px) 0; }
.cta-final .cta-particles { position: absolute; inset: 0; z-index: 0; }
.cta-final .container { position: relative; z-index: 2; }
.cta-final h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 5rem); margin-bottom: 26px; }

/* ---------- 17. FOOTER ---------- */
.footer { border-top: 1px solid var(--stroke); padding: 70px 0 36px; position: relative; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand .logo-mark { width: 40px; height: 40px; color: var(--aqua); margin-bottom: 16px; }
.footer-brand p { color: var(--text-soft); max-width: 30ch; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-dim); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--text-soft); padding: 7px 0; transition: color .2s; font-size: 0.92rem; }
.footer-col a:hover { color: var(--aqua); }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-socials a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--stroke); color: var(--text-soft); transition: all .25s; }
.footer-socials a:hover { color: var(--aqua); border-color: var(--stroke-strong); transform: translateY(-2px); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 26px; border-top: 1px solid var(--stroke); color: var(--text-dim); font-size: 0.85rem; }

/* ---------- 18. WHATSAPP FLOTANTE ---------- */
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 90; width: 58px; height: 58px;
  border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff;
  box-shadow: 0 14px 40px rgba(37,211,102,.5); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- 19. CURSOR & UTIL ---------- */
.cursor-glow { position: fixed; top: 0; left: 0; width: 230px; height: 230px; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(0,212,198,.09), transparent 62%);
  transform: translate(-50%, -50%); transition: opacity .4s; mix-blend-mode: screen; }
:root[data-theme="light"] .cursor-glow { background: radial-gradient(circle, rgba(0,168,156,.10), transparent 62%); mix-blend-mode: multiply; }
.progress-bar { position: fixed; top: 0; left: 0; height: 2px; z-index: 200; background: var(--grad-aqua); width: 0%; box-shadow: var(--glow-aqua-soft); }
.reveal { opacity: 0; transform: translateY(34px); }
.hex-deco { position: absolute; opacity: .5; pointer-events: none; color: var(--aqua); }

/* Page hero (internas) */
.page-hero { padding: 160px 0 60px; text-align: center; position: relative; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 18px 0; }
.page-hero p { color: var(--text-soft); max-width: 56ch; margin: 0 auto; }

/* Breadcrumb */
.crumb { font-size: 0.82rem; color: var(--text-dim); }
.crumb a:hover { color: var(--aqua); }

/* Pricing / feature lists */
.feature-list { display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); }
.feature-list li .chk { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  background: rgba(0,212,198,.14); border: 1px solid var(--stroke-strong); color: var(--aqua); margin-top: 2px; }
.feature-list li .chk svg { width: 13px; height: 13px; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; color: var(--text-soft); margin-bottom: 8px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 12px; font-family: inherit; font-size: 0.95rem;
  background: var(--surface); border: 1px solid var(--stroke); color: var(--text); transition: border-color .25s, background .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--aqua); background: var(--surface-2); }
.field textarea { resize: vertical; min-height: 130px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--stroke); }
.contact-info-item .ci-ic { width: 46px; height: 46px; border-radius: 13px; flex: 0 0 46px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--stroke-strong); color: var(--aqua); }
.contact-info-item h4 { font-size: 1rem; } .contact-info-item p { color: var(--text-soft); font-size: 0.9rem; }

/* Pills / value props */
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; }
.value-grid { grid-template-columns: repeat(3,1fr); }
.value-card { padding: 30px; }
.value-card .v-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: var(--aqua);
  background: linear-gradient(135deg, rgba(0,212,198,.16), transparent); border: 1px solid var(--stroke-strong); margin-bottom: 18px; }
.value-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.value-card p { color: var(--text-soft); font-size: 0.92rem; }

/* Split editorial (nosotros) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pmv-card { padding: 34px; }
.pmv-card .pmv-k { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--aqua); }
.pmv-card h3 { font-size: 1.4rem; margin: 12px 0 12px; }
.pmv-card p { color: var(--text-soft); }
.stat-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }

/* Product hero */
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 150px 0 40px; }
.product-hero .ph-icon { width: 70px; height: 70px; border-radius: 20px; display: grid; place-items: center; color: #04231f;
  background: var(--grad-aqua); box-shadow: var(--glow-aqua); margin-bottom: 22px; }
.product-hero.saas .ph-icon { background: linear-gradient(135deg,#ff8a3d,var(--accent-saas)); color: #1a0c00; box-shadow: 0 0 50px rgba(255,107,0,.4); }
.price-tag { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--text); }
.price-tag small { font-size: 1rem; color: var(--text-dim); font-weight: 400; }

/* ---------- 20. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .hero { min-height: auto; padding: 150px 0 90px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-canvas { opacity: .55; }
  .spotlight-grid, .tech-grid, .contact-grid, .split, .product-hero { grid-template-columns: 1fr; gap: 40px; }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .nav-inner { grid-template-columns: auto 1fr auto; }
  .nav-brand { justify-content: flex-start; }
  .services-grid, .portfolio-grid, .testi-grid, .value-grid { grid-template-columns: 1fr; }
  .cursor-glow { display: none; }
  .hero-stats { gap: 24px; }
  .hero-canvas { opacity: .38; }
  .team-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .dash-row { grid-template-columns: 1fr 1fr; }
  .service-card { padding: 28px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .hero { padding: 130px 0 70px; }
  .hero-stats { gap: 18px 28px; }
  .hero-stats .num { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   v4.1 — Refinamientos
   ============================================================ */

/* ---- Logo animado ---- */
.logo-mark { transform-origin: center; }
.nav-brand .logo-mark {
  animation: logoFloat 5s var(--ease) infinite, logoGlow 3.5s ease-in-out infinite;
  transition: transform .8s var(--ease);
}
.nav-brand:hover .logo-mark { transform: rotateY(360deg) scale(1.08); }
@keyframes logoFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes logoGlow {
  0%,100% { filter: drop-shadow(0 0 7px rgba(0,212,198,.45)); }
  50%     { filter: drop-shadow(0 0 16px rgba(0,212,198,.85)); }
}
.footer-brand .logo-mark { animation: logoGlow 3.5s ease-in-out infinite; transition: transform .8s var(--ease); }
.footer-brand:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
@media (prefers-reduced-motion: reduce) { .nav-brand .logo-mark, .footer-brand .logo-mark { animation: none; } }

/* ---- Modo claro: portafolio y dashboards siempre legibles ----
   Estas piezas tienen fondo oscuro fijo, así que el texto debe quedarse claro. */
.work-card .work-overlay { background: linear-gradient(transparent 22%, rgba(5,7,12,.55) 55%, rgba(4,6,10,.96)); z-index: 2; }
.work-card .work-arrow { z-index: 3; }
.work-card h3 { color: #ffffff; }
.work-card .work-cat { color: var(--aqua-light); }
.work-card .work-arrow { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color:#fff; }
.dashboard, .dashboard * { color: #EAF0F5; }
.dashboard .dash-kpi small, .dashboard .dash-bar span { color: #93a3b8 !important; }
.dashboard .dash-kpi .k { color: var(--aqua) !important; }
.float-card { color: #EAF0F5; }
.float-card .fc-val { color: var(--aqua); }

/* ---- Menú móvil mejorado (progresivo) ---- */
.mobile-menu { padding: 96px 26px 48px; gap: 2px; }
.mobile-menu a {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 1.3rem; padding: 16px 4px; border-bottom: 1px solid var(--stroke);
  opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease), color .2s;
}
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu.open a:nth-child(1){ transition-delay:.06s } .mobile-menu.open a:nth-child(2){ transition-delay:.11s }
.mobile-menu.open a:nth-child(3){ transition-delay:.16s } .mobile-menu.open .m-sub { transition-delay:.18s }
.mobile-menu.open a:nth-child(5){ transition-delay:.24s } .mobile-menu.open a:nth-child(6){ transition-delay:.29s }
.mobile-menu .m-link-main[data-toggle]::after {
  content: ""; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .3s var(--ease); margin-right: 4px;
}
.mobile-menu .m-link-main.open-sub::after { transform: rotate(-135deg); }
.mobile-menu .m-sub {
  display: grid; gap: 0; overflow: hidden; max-height: 0;
  margin: 0 0 0 6px; padding-left: 14px; border-left: 1px solid var(--stroke-strong);
  transition: max-height .45s var(--ease), opacity .4s, margin .4s;
  opacity: 0;
}
.mobile-menu .m-sub.open { max-height: 460px; opacity: 1; margin: 4px 0 10px 6px; }
.mobile-menu .m-sub a { font-size: 1rem; color: var(--text-soft); padding: 12px 6px; border-bottom: 1px solid var(--stroke); }
.mobile-menu .m-sub a:last-child { border-bottom: none; }
.mobile-menu .m-sub a .dd-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--surface-2); margin-right: 4px; }
.mobile-menu a:hover, .mobile-menu a:active { color: var(--aqua); }
.mobile-menu .btn { opacity: 1; transform: none; justify-content: center; }

/* ---- Íconos animados del portafolio ---- */
.work-card .work-icon {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 1;
  color: rgba(255,255,255,.92); pointer-events: none;
}
.work-card .work-icon svg { width: 78px; height: 78px; filter: drop-shadow(0 8px 26px rgba(0,0,0,.45)); animation: workFloat 6s var(--ease) infinite; }
.work-card:hover .work-icon svg { animation-play-state: paused; }
.work-card:hover .work-icon { transform: scale(1.12) translateY(-8px); transition: transform .6s var(--ease); }
.work-card .work-icon::after {
  content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,198,.28), transparent 65%); z-index: -1;
  animation: workPulse 4.5s ease-in-out infinite;
}
@keyframes workFloat { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes workPulse { 0%,100% { opacity:.5; transform: scale(.85);} 50% { opacity:.9; transform: scale(1.1);} }
/* patrón de cuadrícula sutil dentro de la tarjeta */
.work-card .work-bg::after {
  content:""; position:absolute; inset:0; opacity:.5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black, transparent 72%);
  mask-image: radial-gradient(circle at 50% 40%, black, transparent 72%);
}

/* ---- Sección de fundadores ---- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.founder-card { padding: 34px 28px; text-align: center; }
.founder-photo {
  width: 130px; height: 130px; border-radius: 50%; margin: 0 auto 20px; position: relative;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(150deg, var(--aqua), var(--aqua-deep));
  box-shadow: 0 0 0 1px var(--stroke-strong), var(--glow-aqua-soft);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-photo .initials { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: #04231f; }
.founder-photo::before {
  content:""; position:absolute; inset:-2px; border-radius:50%; padding:2px;
  background: conic-gradient(from 0deg, var(--aqua-light), transparent 40%, var(--aqua) 75%, var(--aqua-light));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ring 6s linear infinite; opacity:.9;
}
@keyframes ring { to { transform: rotate(360deg); } }
.founder-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.founder-card .role { color: var(--aqua); font-size: .88rem; font-weight: 500; }
.founder-card p { color: var(--text-soft); font-size: .9rem; margin-top: 12px; }
.founder-socials { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.founder-socials a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--stroke); color: var(--text-soft); transition: all .25s; }
.founder-socials a:hover { color: var(--aqua); border-color: var(--stroke-strong); transform: translateY(-2px); }
