/* ==========================================================================
   TecnoWolf — Landing futurista
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Theme tokens (dark by default) ---------- */
:root,
[data-theme="dark"] {
  --bg-deep: #04060d;
  --bg-surface: #0a0f1e;
  --bg-elevated: #10162a;
  --bg-card: rgba(255,255,255,0.03);
  --border-soft: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --text-primary: #eef0f7;
  --text-secondary: #9ea5bb;
  --text-muted: #5a637a;
  --hud-line: rgba(255,255,255,0.06);
  --grid-line: rgba(255,255,255,0.035);
  --halo: 0 0 60px var(--a1-glow), 0 0 120px var(--a2-glow);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 60px -20px rgba(0,0,0,0.5);
}
[data-theme="light"] {
  --bg-deep: #f4f6fb;
  --bg-surface: #ffffff;
  --bg-elevated: #fbfcff;
  --bg-card: rgba(0,0,0,0.02);
  --border-soft: rgba(0,0,0,0.07);
  --border-strong: rgba(0,0,0,0.14);
  --text-primary: #0a0f1e;
  --text-secondary: #4d5670;
  --text-muted: #8a92a8;
  --hud-line: rgba(0,0,0,0.06);
  --grid-line: rgba(0,0,0,0.04);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 40px -20px rgba(10,20,40,0.15);
}

/* ---------- Accent palettes ---------- */
[data-palette="cyan"] {
  --a1: #22e6ff;
  --a1-deep: #00b8d9;
  --a2: #7c5cff;
  --a2-deep: #5b3df2;
  --a1-glow: rgba(34,230,255,0.22);
  --a2-glow: rgba(124,92,255,0.22);
  --grad: linear-gradient(135deg, #22e6ff 0%, #7c5cff 100%);
}
[data-palette="plasma"] {
  --a1: #ff2e92;
  --a1-deep: #d11a72;
  --a2: #00d4ff;
  --a2-deep: #00a4cc;
  --a1-glow: rgba(255,46,146,0.22);
  --a2-glow: rgba(0,212,255,0.22);
  --grad: linear-gradient(135deg, #ff2e92 0%, #00d4ff 100%);
}
[data-palette="quantum"] {
  --a1: #b3ff3c;
  --a1-deep: #82cc1a;
  --a2: #2a8dff;
  --a2-deep: #1a6bcc;
  --a1-glow: rgba(179,255,60,0.22);
  --a2-glow: rgba(42,141,255,0.22);
  --grad: linear-gradient(135deg, #b3ff3c 0%, #2a8dff 100%);
}

/* ---------- Typography ---------- */
h1,h2,h3,h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-ligatures: none;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--a1);
  padding: 6px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--bg-card);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--a1);
  box-shadow: 0 0 8px var(--a1);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
section {
  position: relative;
  padding: 120px 0;
}
@media (max-width: 768px) {
  section { padding: 80px 0; }
  .container { padding: 0 20px; }
}

/* ==========================================================================
   Background — animated grid + orbs + starfield
   ========================================================================== */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
[data-theme="light"] .starfield { opacity: 0.55; mix-blend-mode: multiply; }
.bg-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.0) 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.0) 70%);
  animation: gridDrift 60s linear infinite;
}
@keyframes gridDrift {
  from { transform: translate(0, 0); }
  to   { transform: translate(64px, 64px); }
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.28;
  animation: orbFloat 22s ease-in-out infinite alternate;
}
.bg-orb-1 {
  width: 520px; height: 520px;
  left: -10%; top: 10%;
  background: var(--a1);
}
.bg-orb-2 {
  width: 600px; height: 600px;
  right: -8%; top: 30%;
  background: var(--a2);
  animation-duration: 28s;
  animation-delay: -10s;
}
.bg-orb-3 {
  width: 380px; height: 380px;
  left: 35%; bottom: -5%;
  background: var(--a1);
  opacity: 0.25;
  animation-duration: 32s;
  animation-delay: -5s;
}
[data-theme="light"] .bg-orb { opacity: 0.35; }
@keyframes orbFloat {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(60px, -40px) scale(1.15); }
}
.bg-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(255,255,255,0.012) 3px,
    rgba(255,255,255,0.012) 4px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}
[data-theme="light"] .bg-scanline { display: none; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1280px;
  z-index: 100;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--bg-surface) 70%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border-soft);
  transition: padding .3s, top .3s;
}
.nav.is-scrolled {
  padding: 8px 16px 8px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 16px;
  text-transform: uppercase;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--grad);
  box-shadow: 0 0 20px var(--a1-glow);
  position: relative;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name span { color: var(--a1); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: color .2s, border-color .2s, background .2s;
}
.icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.icon-btn svg { width: 16px; height: 16px; }

.lang-btn {
  width: auto;
  padding: 0 12px;
  height: 36px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lang-btn:hover { color: var(--text-primary); border-color: var(--border-strong); }
.lang-btn .active { color: var(--a1); }

.cta-pill {
  padding: 0 18px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  border: 0;
  background: var(--text-primary);
  color: var(--bg-deep);
  transition: transform .2s;
}
.cta-pill:hover { transform: translateY(-1px); }

/* Mobile menu */
.menu-btn { display: none; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    flex-direction: column;
    top: calc(100% + 8px);
    left: 0; right: 0;
    padding: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    backdrop-filter: blur(20px);
  }
  .nav-links.is-open a { width: 100%; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100vh;
  padding-top: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero h1 {
  font-size: clamp(36px, 6.4vw, 84px);
  line-height: 1.08;
  margin-top: 24px;
  margin-bottom: 24px;
  overflow: visible;
}
@media (max-width: 768px) {
  .hero h1 { font-size: clamp(32px, 9vw, 52px); line-height: 1.12; }
}
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .italic {
  font-style: italic;
  font-family: 'Space Grotesk', serif;
  font-weight: 400;
}
.hero p.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 0 36px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  border: 0;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--grad);
  color: #04060d;
  box-shadow: 0 10px 30px -10px var(--a1-glow), 0 0 0 1px rgba(255,255,255,0.1) inset;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px var(--a1-glow), 0 0 0 1px rgba(255,255,255,0.2) inset;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .8s;
}
.btn-primary:hover::after { transform: translateX(100%); }

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

/* Hero visual */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  justify-self: end;
}
@media (max-width: 980px) {
  .hero-visual { justify-self: center; max-width: 420px; }
}
.hud-frame {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.hud-frame::before, .hud-frame::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border: 1.5px solid var(--a1);
}
.hud-frame::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.hud-frame::after  { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

.hud-corners-2 {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hud-corners-2::before, .hud-corners-2::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border: 1.5px solid var(--a2);
}
.hud-corners-2::before { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.hud-corners-2::after  { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }

.hud-rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.hud-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
}
.hud-ring.r1 { width: 60%; height: 60%; animation: spin 30s linear infinite; }
.hud-ring.r2 { width: 80%; height: 80%; animation: spin 50s linear infinite reverse; border-style: dashed; }
.hud-ring.r3 { width: 95%; height: 95%; animation: spin 80s linear infinite; opacity: 0.5; }
@keyframes spin {
  to { transform: rotate(360deg); }
}
.hud-ring .tick {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--a1);
  box-shadow: 0 0 8px var(--a1);
  top: -3px;
  left: calc(50% - 3px);
}
.hud-ring.r2 .tick { background: var(--a2); box-shadow: 0 0 8px var(--a2); }
.hud-ring.r3 .tick { width: 4px; height: 4px; }

.hud-wolf {
  position: absolute;
  width: 50%;
  height: 50%;
  display: grid;
  place-items: center;
}
.hud-wolf svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 24px var(--a1-glow));
}

.hud-data {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hud-data.top { top: 16px; left: 50%; transform: translateX(-50%); }
.hud-data.bot { bottom: 16px; left: 50%; transform: translateX(-50%); }
.hud-data.left { left: 16px; top: 50%; transform: rotate(-90deg) translateX(50%); transform-origin: left top; }
.hud-data.right { right: 16px; top: 50%; transform: rotate(90deg) translateY(-50%); transform-origin: right top; }

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 80px;
  padding: 28px 32px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
}
.stats-strip .stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stats-strip .stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats-strip .stat-lbl {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Sección heading shared
   ========================================================================== */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 64px;
  gap: 16px;
}
.section-head h2 {
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.05;
  max-width: 720px;
}
.section-head h2 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head p {
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* ==========================================================================
   Sobre nosotros
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
.about-image {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: repeating-linear-gradient(
    45deg,
    var(--bg-elevated),
    var(--bg-elevated) 16px,
    var(--bg-surface) 16px,
    var(--bg-surface) 32px
  );
}
.about-image .img-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  padding: 10px 14px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-deep) 60%, transparent);
}
.about-image .img-corner {
  position: absolute;
  top: 14px; left: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--a1);
  letter-spacing: 0.1em;
}
.about-content h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 24px;
  line-height: 1.05;
}
.about-content h2 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-content > p {
  color: var(--text-secondary);
  font-size: 16.5px;
  line-height: 1.65;
  margin: 0 0 20px;
}
.values-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.values-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--bg-card);
}
.values-list .vicon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--grad);
  display: grid; place-items: center;
  color: var(--bg-deep);
}
.values-list .vicon svg { width: 16px; height: 16px; }
.values-list b {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  margin-bottom: 2px;
}
.values-list span {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Tecnologías
   ========================================================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 880px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }

.tech-card {
  position: relative;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  transition: transform .25s, border-color .25s;
  overflow: hidden;
}
.tech-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 50%, var(--a1) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.tech-card:hover {
  transform: translateY(-4px);
}
.tech-card:hover::before { opacity: 1; }
.tech-card .logo {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  margin-bottom: 16px;
  color: var(--a1);
}
.tech-card .logo svg { width: 24px; height: 24px; }
.tech-card h4 {
  font-size: 16px;
  margin-bottom: 4px;
}
.tech-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.tech-card .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
}

.tech-marquee {
  margin-top: 48px;
  overflow: hidden;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 24px 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.tech-marquee-track {
  display: flex;
  gap: 64px;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.tech-marquee-track span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.tech-marquee-track span em {
  font-style: normal;
  color: var(--a1);
  margin-right: 12px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================================
   Proceso
   ========================================================================== */
.process-list {
  display: grid;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 28px 32px;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  position: relative;
  transition: border-color .25s, transform .25s;
}
.process-step:hover {
  border-color: var(--border-strong);
  transform: translateX(6px);
}
@media (max-width: 720px) {
  .process-step { grid-template-columns: 60px 1fr; gap: 16px; padding: 20px; }
  .process-step .step-time { grid-column: 1 / -1; text-align: left; }
}
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 44px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
  line-height: 1;
}
.step-body h4 {
  font-size: 20px;
  margin-bottom: 6px;
}
.step-body p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.55;
}
.step-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 6px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ==========================================================================
   Contacto + CTA Final
   ========================================================================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 980px) {
  .contact-wrap { grid-template-columns: 1fr; }
}
.contact-info h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 16px;
}
.contact-info > p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 32px;
}
.contact-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--bg-card);
  transition: border-color .2s, transform .2s;
}
.contact-list li:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.contact-list .cicon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  color: var(--a1);
}
.contact-list .cicon svg { width: 18px; height: 18px; }
.contact-list .clbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.contact-list .cval {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.contact-form {
  padding: 36px;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}
.contact-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60%; height: 1px;
  background: linear-gradient(90deg, var(--a1), transparent);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}
[data-theme="light"] .field label { color: #1a1a2e; }
.field input, .field textarea, .field select {
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--a1);
  box-shadow: 0 0 0 3px var(--a1-glow);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-submit { width: 100%; justify-content: center; margin-top: 8px; }

/* CTA Final */
.cta-final {
  position: relative;
  padding: 80px 48px;
  border-radius: 32px;
  text-align: center;
  border: 1px solid var(--border-soft);
  background:
    radial-gradient(ellipse at 20% 0%, var(--a1-glow), transparent 50%),
    radial-gradient(ellipse at 80% 100%, var(--a2-glow), transparent 50%),
    var(--bg-card);
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
}
.cta-final h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.0;
  position: relative;
  margin-bottom: 24px;
}
.cta-final h2 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-final p {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.55;
  position: relative;
}
.cta-final .hero-cta { justify-content: center; position: relative; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-soft);
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
  margin: 16px 0 20px;
  max-width: 320px;
}
.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color .2s;
}
.footer-col a:hover { color: var(--a1); }
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  transition: color .2s, border-color .2s;
}
.footer-social a:hover { color: var(--a1); border-color: var(--a1); }
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.footer-bottom .updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-bottom .updated::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--a1);
  box-shadow: 0 0 8px var(--a1);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */
.fab-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  border: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4);
  z-index: 90;
  animation: waPulse 2.4s ease-in-out infinite;
  transition: transform .2s;
}
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 30px; height: 30px; }
@keyframes waPulse {
  0%   { box-shadow: 0 12px 32px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.6); }
  100% { box-shadow: 0 12px 32px rgba(37,211,102,0.4), 0 0 0 24px rgba(37,211,102,0); }
}
.fab-wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.fab-wa:hover .fab-wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s, transform .8s;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Nav: scroll progress + active link
   ========================================================================== */
.nav-progress {
  position: absolute;
  left: 24px; right: 24px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  transition: opacity .25s;
}
.nav.is-scrolled .nav-progress { opacity: 1; }
.nav-progress::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
  transition: transform .15s linear;
  border-radius: 2px;
  box-shadow: 0 0 8px var(--a1-glow);
}
.nav-links a.is-active {
  color: var(--text-primary);
  background: var(--bg-card);
}
.nav-links a.is-active::after {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--a1);
  margin-left: 8px;
  vertical-align: middle;
  box-shadow: 0 0 6px var(--a1);
}

/* ==========================================================================
   Hero entry cascade + HUD parallax
   ========================================================================== */
.hero .eyebrow,
.hero h1,
.hero p.lead,
.hero .hero-cta,
.hero .stats-strip,
.hero-visual {
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero .eyebrow      { animation-delay: .05s; }
.hero h1            { animation-delay: .15s; }
.hero p.lead        { animation-delay: .3s; }
.hero .hero-cta     { animation-delay: .45s; }
.hero .stats-strip  { animation-delay: .8s; }
.hero-visual        { animation: heroVisualIn 1.2s cubic-bezier(.2,.7,.2,1) .25s forwards; }

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroVisualIn {
  0%   { opacity: 0; transform: translateY(20px) scale(.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-visual {
  transform-style: preserve-3d;
  perspective: 1000px;
}
.hud-rings {
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.hud-frame, .hud-corners-2 {
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}

/* Soft float for the wolf glyph inside HUD */
.hud-wolf svg {
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(-3px); }
  50%      { transform: translateY(3px); }
}

/* Brand mark gentle pulse */
.brand-mark {
  animation: brandPulse 3.6s ease-in-out infinite;
}
@keyframes brandPulse {
  0%, 100% { box-shadow: 0 0 18px var(--a1-glow); }
  50%      { box-shadow: 0 0 30px var(--a1-glow), 0 0 60px var(--a2-glow); }
}

/* Stats — count up uses CSS for the appear, JS animates the number */
.stat-num.is-counting { letter-spacing: -0.04em; }

/* ==========================================================================
   Tech cards — 3D tilt support (transform applied via JS)
   ========================================================================== */
.tech-grid { perspective: 1200px; }
.tech-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.tech-card .logo {
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  transform: translateZ(20px);
}
.tech-card:hover .logo {
  transform: translateZ(30px) rotateZ(-4deg) scale(1.05);
  color: var(--bg-deep);
  background: var(--grad);
  border-color: transparent;
}

/* Process steps — animated connector line */
.process-list { position: relative; }
.process-step::before {
  content: '';
  position: absolute;
  left: 56px;
  top: -18px;
  width: 1px;
  height: 18px;
  background: linear-gradient(to bottom, transparent, var(--border-strong));
}
.process-step:first-child::before { display: none; }
@media (max-width: 720px) { .process-step::before { left: 36px; } }

/* Floating WhatsApp — subtle drift on idle */
.fab-wa {
  animation: waPulse 2.4s ease-in-out infinite, waDrift 8s ease-in-out infinite;
}
@keyframes waDrift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* Reduced motion — disable heavy decorative animations */
@media (prefers-reduced-motion: reduce) {
  .bg-orb, .bg-grid, .brand-mark, .hud-wolf svg, .fab-wa, .hud-ring,
  .footer-bottom .updated::before, .tech-marquee-track {
    animation: none !important;
  }
  .reveal, .hero .eyebrow, .hero h1, .hero p.lead, .hero .hero-cta,
  .hero .stats-strip, .hero-visual {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   Logo imagen (nav / footer)
   ========================================================================== */
.brand-logo-img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--a1-glow));
  display: block;
}
[data-theme="light"] .brand-logo-img {
  filter: none;
}
.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffffff;
}
.brand-accent { color: #b3ff3c; }
.brand-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #b3ff3c;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

/* About — logo sin fondo centrado */
.about-logo-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 32px !important;
  background: transparent !important;
  filter: drop-shadow(0 0 24px var(--a1-glow)) drop-shadow(0 0 48px var(--a2-glow));
}

/* Tag buttons con borde animado */
.tag-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--a1);
  border: 1px solid var(--a1);
  cursor: default;
  position: relative;
  animation: tagGlow 2s ease-in-out infinite alternate;
}
@keyframes tagGlow {
  0%   { box-shadow: 0 0 2px var(--a1-glow); border-color: var(--a1); }
  100% { box-shadow: 0 0 10px var(--a1), 0 0 20px var(--a1-glow); border-color: var(--a1); transform: translateY(-1px); }
}

/* ==========================================================================
   About — imagen real
   ========================================================================== */
.about-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ==========================================================================
   Portfolio — sección con GIF grid
   ========================================================================== */
#portfolio { padding-top: 100px; padding-bottom: 100px; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.portfolio-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  aspect-ratio: 16 / 10;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  cursor: pointer;
}
.portfolio-card:hover {
  border-color: var(--a1);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px -12px var(--a1-glow), 0 0 0 1px var(--a1-glow);
}
.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--bg-surface);
  padding: 8px;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.portfolio-card:hover img {
  transform: scale(1.03);
}
.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,6,13,0.92) 0%, rgba(4,6,13,0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px 22px;
  gap: 12px;
  text-decoration: none;
}
.portfolio-card:hover .portfolio-card-overlay { opacity: 1; }
.portfolio-card-title {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.portfolio-card-desc {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--a1);
}

@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: 16px; }
  #portfolio { padding-top: 70px; padding-bottom: 70px; }
}

/* ==========================================================================
   Responsive — mejoras adicionales
   ========================================================================== */

/* Hero: ocultar visual en pantallas muy pequeñas */
@media (max-width: 520px) {
  .hero-visual { display: none; }
  .hero { padding-top: 120px; min-height: auto; padding-bottom: 60px; }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
    gap: 16px;
    margin-top: 48px;
  }
}

/* Tech grid: 1 columna en móvil pequeño */
@media (max-width: 520px) {
  .tech-grid { grid-template-columns: 1fr; }
  .tech-marquee-track span { font-size: 20px; }
}

/* CTA Final: reducir padding en móvil */
@media (max-width: 640px) {
  .cta-final { padding: 48px 24px; border-radius: 20px; }
  .contact-form { padding: 24px 20px; }
}

/* Nav: ajustar pill CTA en pantallas pequeñas */
@media (max-width: 480px) {
  .cta-pill { display: none; }
  .lang-btn { font-size: 11px; }
  .nav { padding: 0 16px; }
}

/* Stats: 1 columna en < 360px */
@media (max-width: 360px) {
  .stats-strip { grid-template-columns: 1fr; }
}

/* Footer bottom: apilar en móvil */
@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Proceso: reducir número en móvil */
@media (max-width: 480px) {
  .step-num { font-size: 32px; }
  .process-step { padding: 16px; gap: 12px; }
}
