/* ============================================================
   AegisX Team v2 — Stylesheet
   Paleta oficial: navy #0a0f1e · cyan #00c2ff · gris #8a96a8
   Tipografía: Inter (400/500/700/800)
   ============================================================ */

:root {
  --navy: #0a0f1e;
  --navy-2: #0d1520;          /* cards / paneles */
  --navy-3: #111a2b;          /* hover sutil */
  --cyan: #00c2ff;
  --cyan-soft: rgba(0, 194, 255, 0.12);
  --cyan-border: rgba(0, 194, 255, 0.15);
  --cyan-border-strong: rgba(0, 194, 255, 0.4);
  --white: #ffffff;
  --gray: #8a96a8;
  --gray-dim: #5a6675;
  --whatsapp: #25d366;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-cyan: 0 0 40px rgba(0, 194, 255, 0.25);
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--cyan); color: var(--navy); }

html {
  scroll-behavior: smooth;
  background: var(--navy);
  overflow-x: clip;
  max-width: 100%;
}
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  background: transparent;
  color: var(--white);
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100vw;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Full-page particle canvas ── */
#particles, .particles-bg {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
  pointer-events: none;
}
/* Ensure all content sits above the canvas */
.nav, .drawer, .hero, .section, .product-hero, .product-cta,
.lp-hero, .lp-marquee, .lp-cta, .footer, .fab-whatsapp, .tweaks,
.showcase, .nosotros, .contact, main, header, footer, section {
  position: relative;
  z-index: 1;
}
.nav { z-index: 50; }
.drawer { z-index: 60; }
.fab-whatsapp { z-index: 40; }
.tweaks { z-index: 70; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─────────────────────────────────────────────────────────────
   Helpers
   ───────────────────────────────────────────────────────────── */
.cyan-text {
  background: linear-gradient(135deg, #6ee0ff 0%, var(--cyan) 50%, #008fbf 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.glow-cyan {
  text-shadow:
    0 0 20px rgba(0, 194, 255, 0.6),
    0 0 60px rgba(0, 194, 255, 0.3);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 2.4px;
  text-transform: uppercase; color: var(--cyan);
  padding: 7px 14px; border-radius: 999px;
  background: var(--cyan-soft);
  border: 1px solid var(--cyan-border);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { color: var(--gray); }

/* ─────────────────────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 700; font-size: 15px; letter-spacing: 0.2px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #00c2ff 0%, #0a8fc4 100%);
  color: var(--navy);
  box-shadow: 0 8px 32px rgba(0, 194, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0, 194, 255, 0.5), inset 0 1px 0 rgba(255,255,255,0.5); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1px solid var(--cyan-border-strong);
}
.btn-outline:hover { background: var(--cyan-soft); border-color: var(--cyan); }
.btn-whatsapp {
  background: var(--whatsapp); color: white;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { transform: translateY(-2px); background: #20b956; }
.btn-block { width: 100%; }

/* ─────────────────────────────────────────────────────────────
   Nav
   ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 12px 24px;
  background: rgba(10, 15, 30, 0.55);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s;
}
.nav.scrolled {
  background: rgba(10, 15, 30, 0.85);
  border-bottom-color: var(--cyan-border);
}
/* Centralised single-group nav (logo + links together, centered) */
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 28px;
  position: relative;
  min-height: 56px;
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-left, .nav-right { display: contents; } /* legacy compat */
.nav-link {
  font-size: 13px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; color: var(--white);
  padding: 8px 4px; position: relative;
  transition: color .2s;
}
.nav-link:hover { color: var(--cyan); }
.nav-link.has-dropdown { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nav-link.has-dropdown .chev {
  width: 10px; height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
}
.nav-item.open .has-dropdown .chev { transform: rotate(-135deg) translateY(0); }

.nav-logo {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.nav-logo::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,194,255,0.30) 0%, transparent 70%);
  pointer-events: none;
}
.nav-logo img { width: 38px; height: auto; position: relative; z-index: 1; }

.nav-item { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: rgba(13, 21, 32, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius);
  padding: 8px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s, transform .2s, visibility .2s;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.nav-item.open .nav-dropdown,
.nav-item:hover .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto;
}
.nav-dropdown a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--white);
  letter-spacing: 0.2px; text-transform: none;
  transition: background .15s;
}
.nav-dropdown a:hover { background: var(--cyan-soft); color: var(--cyan); }
.nav-dropdown a .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; color: var(--cyan); flex-shrink: 0;
}
.nav-dropdown a .ico svg { width: 18px; height: 18px; }

.nav-mobile-btn {
  display: none;
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 8px;
  color: var(--white);
  border: 1px solid var(--cyan-border);
  background: rgba(255,255,255,0.02);
  align-items: center; justify-content: center;
}
.nav-mobile-btn svg { width: 20px; height: 20px; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10, 15, 30, 0.98);
  backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
  padding: 80px 28px 28px;
}
.drawer.open { opacity: 1; visibility: visible; }
.drawer-close {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px; border-radius: 8px;
  color: var(--white); border: 1px solid var(--cyan-border);
  display: flex; align-items: center; justify-content: center;
}
.drawer-nav { display: flex; flex-direction: column; gap: 4px; max-width: 480px; margin: 0 auto; }
.drawer-nav a {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--radius);
  font-size: 18px; font-weight: 600; letter-spacing: 0.2px;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
.drawer-nav a:hover { background: var(--cyan-soft); border-color: var(--cyan-border); }
.drawer-nav a .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; color: var(--cyan); flex-shrink: 0;
}
.drawer-nav a .ico svg { width: 20px; height: 20px; }
.drawer-group-title {
  font-size: 11px; font-weight: 700; letter-spacing: 2.4px;
  text-transform: uppercase; color: var(--cyan);
  margin: 18px 18px 6px;
}

/* Floating WhatsApp (mobile) */
.fab-whatsapp {
  position: fixed; bottom: 22px; right: 22px;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: white;
  display: none;
  align-items: center; justify-content: center;
  z-index: 40;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
  animation: pulseRing 2.4s infinite;
}
.fab-whatsapp svg { width: 30px; height: 30px; }
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ─────────────────────────────────────────────────────────────
   Hero
   ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  text-align: center;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(0,194,255,0.08) 0%, transparent 70%);
  z-index: 1;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 980px; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.hero h1 .line2 { display: block; }
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--gray); max-width: 640px;
  line-height: 1.65;
}
.hero-cta { margin-top: 8px; }
.hero-cta .btn-primary {
  padding: 18px 40px; font-size: 16px;
  min-width: 280px;
}

/* ─────────────────────────────────────────────────────────────
   Sections
   ───────────────────────────────────────────────────────────── */
.section {
  position: relative;
  padding: 110px 24px;
}
/* Alt sections are translucent overlays so the particle bg shows through */
.section--alt {
  background: linear-gradient(180deg, rgba(6, 10, 20, 0.55) 0%, rgba(6, 10, 20, 0.78) 50%, rgba(6, 10, 20, 0.55) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head h2 { margin-top: 16px; margin-bottom: 16px; }
.section-head p { font-size: 1.05rem; }

/* ─────────────────────────────────────────────────────────────
   NUEVO — CMSim showcase
   ───────────────────────────────────────────────────────────── */
.showcase {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 64px; align-items: center;
  max-width: var(--container); margin: 0 auto;
}
.showcase-text .eyebrow-product {
  display: block;
  font-size: 14px; font-weight: 500; color: var(--gray);
  letter-spacing: 0.5px;
  margin: 24px 0 8px;
}
.showcase-text h2 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  margin-bottom: 16px;
}
.showcase-text .lead {
  font-size: 1.2rem; color: var(--white); font-weight: 500;
  margin-bottom: 20px;
}
.showcase-text .lead strong { color: var(--cyan); font-weight: 700; }
.showcase-text .desc { font-size: 1rem; max-width: 520px; margin-bottom: 28px; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--cyan-border);
  font-size: 13px; font-weight: 500; color: var(--white);
}
.pill .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; color: var(--cyan);
}
.pill .ico svg { width: 16px; height: 16px; }

.showcase-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.showcase-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-top: 28px;
}
.metric {
  background: rgba(0, 194, 255, 0.05);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius);
  padding: 16px; text-align: center;
}
.metric .val {
  display: block; font-size: 1.5rem; font-weight: 800;
  color: var(--cyan);
}
.metric .lbl {
  display: block; font-size: 11px; font-weight: 600;
  color: var(--gray); letter-spacing: 1.5px; text-transform: uppercase;
  margin-top: 4px;
}

/* CMSim Mockup */
.showcase-visual { position: relative; perspective: 1400px; }
.mockup {
  background: #0d1320;
  border: 1px solid var(--cyan-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(0,194,255,0.08),
    0 0 80px rgba(0,194,255,0.15);
  transform: rotateY(-6deg) rotateX(2deg);
  transition: transform .4s ease;
}
.mockup:hover { transform: rotateY(-3deg) rotateX(1deg) translateY(-4px); }
.mockup-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: #0a111e;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #3a4356;
}
.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }
.mockup-url {
  flex: 1; text-align: center;
  font-size: 11px; color: var(--gray); font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: rgba(255,255,255,0.04);
  padding: 4px 10px; border-radius: 6px;
}
.mockup-body { display: grid; grid-template-columns: 150px 1fr; min-height: 380px; }
.mockup-img-full {
  display: block;
  width: 100%;
  height: auto;
}
.mockup-sidebar {
  background: #0a111e;
  padding: 16px 12px;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.mockup-side-title {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gray-dim);
  padding: 4px 8px 8px;
}
.mockup-side-item {
  padding: 8px 10px; border-radius: 6px;
  font-size: 12px; color: var(--gray); margin-bottom: 2px;
  display: flex; align-items: center; gap: 8px;
}
.mockup-side-item.active {
  background: var(--cyan-soft); color: var(--cyan); font-weight: 600;
}
.mockup-side-item::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; opacity: 0.5;
}
.mockup-content { padding: 18px 20px; background: #0d1320; }
.mockup-content-title {
  font-size: 11px; font-weight: 700; color: var(--gray);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 16px;
}
.mockup-field { margin-bottom: 14px; }
.mockup-field-label {
  font-size: 10px; color: var(--gray-dim);
  margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px;
}
.mockup-field-input {
  background: #0a111e;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--white);
}
.mockup-field-input.highlight { color: var(--cyan); border-color: var(--cyan-border); }
.mockup-img-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.mockup-img {
  height: 38px; background: #0a111e;
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--gray-dim);
}
.mockup-save {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cyan-soft);
  border: 1px solid var(--cyan-border);
  color: var(--cyan);
  font-size: 11px; font-weight: 700;
  padding: 6px 12px; border-radius: 6px;
  margin-top: 8px;
}

.mockup-badge {
  position: absolute;
  bottom: -20px; right: -10px;
  background: linear-gradient(135deg, #00c2ff 0%, #0a8fc4 100%);
  color: var(--navy);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(0,194,255,0.4);
  text-align: center;
}
.mockup-badge strong { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1; }
.mockup-badge span { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-top: 3px; }

/* ─────────────────────────────────────────────────────────────
   NOSOTROS
   ───────────────────────────────────────────────────────────── */
.nosotros { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; max-width: var(--container); margin: 0 auto; }
.nosotros-text h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin-bottom: 28px;
}
.nosotros-text p { margin-bottom: 18px; font-size: 1.02rem; color: var(--gray); line-height: 1.7; }
.nosotros-text p strong { color: var(--white); font-weight: 500; }

.pillar-stack { display: flex; flex-direction: column; gap: 16px; }
.pillar {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start;
  padding: 24px;
  background: rgba(0, 194, 255, 0.04);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius);
  transition: border-color .25s, transform .25s, background .25s;
}
.pillar:hover {
  border-color: var(--cyan-border-strong);
  background: rgba(0, 194, 255, 0.07);
  transform: translateY(-2px);
}
.pillar-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(0, 194, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar h3 { margin-bottom: 6px; font-size: 1.15rem; }
.pillar p { font-size: 0.95rem; line-height: 1.6; }

/* ─────────────────────────────────────────────────────────────
   SOLUCIONES
   ───────────────────────────────────────────────────────────── */
.solutions {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 22px; max-width: var(--container); margin: 0 auto;
}
.product-card {
  position: relative;
  background: var(--navy-2);
  border: 1px solid rgba(0, 194, 255, 0.12);
  border-radius: 16px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  overflow: hidden;
}
.product-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 50%, transparent 100%);
  opacity: 0; transition: opacity .3s;
}
.product-card:hover {
  border-color: var(--cyan-border-strong);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.3), 0 0 60px rgba(0,194,255,0.08);
}
.product-card:hover::before { opacity: 1; }
.product-card .ico-wrap {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--cyan-soft);
  border: 1px solid var(--cyan-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
}
.product-card .ico-wrap svg { width: 28px; height: 28px; }
.product-card h3 {
  font-size: 1.35rem;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px;
}
.product-card h3 .sub {
  font-size: 0.8rem; font-weight: 500; color: var(--gray); letter-spacing: 0.3px;
}
.product-card .desc { font-size: 0.98rem; color: var(--gray); line-height: 1.6; flex: 1; }
.product-card .micro {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--cyan);
  letter-spacing: 1.5px; text-transform: uppercase;
}
.product-card .card-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--cyan);
  margin-top: 4px;
  transition: gap .2s;
}
.product-card:hover .card-cta { gap: 14px; }

/* ─────────────────────────────────────────────────────────────
   PROYECTOS
   ───────────────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
  padding: 6px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--cyan-border);
  border-radius: 999px;
  width: fit-content;
  margin-left: auto; margin-right: auto;
}
.tab {
  padding: 10px 22px;
  font-size: 13px; font-weight: 600;
  color: var(--gray);
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.tab.active {
  background: linear-gradient(135deg, var(--cyan) 0%, #0a8fc4 100%);
  color: var(--navy);
}
.tab:hover:not(.active) { color: var(--white); }

.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  max-width: var(--container); margin: 0 auto;
}
.project-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--navy-2);
  border: 1px solid var(--cyan-border);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform .3s, border-color .3s;
}
.project-card:hover { transform: translateY(-4px); border-color: var(--cyan-border-strong); }
.project-thumb {
  position: absolute; inset: 0;
  overflow: hidden;
}
.project-thumb-bg {
  position: absolute; inset: 0;
  background-position: center; background-size: cover;
  transition: transform .5s;
}
.project-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.project-card:hover .project-thumb-bg,
.project-card:hover .project-thumb img { transform: scale(1.05); }
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,15,30,0.95) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px;
}
.project-tag {
  display: inline-flex; align-self: flex-start;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--cyan-soft); color: var(--cyan);
  border: 1px solid var(--cyan-border);
  padding: 5px 10px; border-radius: 999px;
  margin-bottom: 10px;
}
.project-name { font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.project-blurb { font-size: 0.85rem; color: var(--gray); }
.project-card .visit {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%; background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid var(--cyan-border);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .25s, transform .25s;
}
.project-card:hover .visit { opacity: 1; transform: translateY(0); }
.project-card .visit svg { width: 14px; height: 14px; }

.project-card.coming-soon { background: var(--navy-2); }
.project-card.coming-soon .project-thumb-bg {
  background:
    radial-gradient(circle at 30% 30%, rgba(0,194,255,0.15) 0%, transparent 50%),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(0,194,255,0.04) 12px 13px);
}
.coming-soon-badge {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
  color: var(--cyan); padding: 5px 10px;
  border: 1px solid var(--cyan-border-strong);
  border-radius: 999px;
}
.coming-soon-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  animation: blink 1.4s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Tab panels */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .35s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ─────────────────────────────────────────────────────────────
   EQUIPO
   ───────────────────────────────────────────────────────────── */
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: var(--container); margin: 0 auto;
}
.team-card {
  background: var(--navy-2);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform .25s, border-color .25s;
}
.team-card:hover { transform: translateY(-3px); border-color: var(--cyan-border-strong); }
.team-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, #0a8fc4 0%, var(--cyan) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.85rem; font-weight: 800; color: var(--navy);
  margin: 0 auto 18px;
  letter-spacing: -1px;
  box-shadow: 0 8px 24px rgba(0,194,255,0.3);
}
.team-card .name { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.team-card .role {
  font-size: 12px; font-weight: 700; color: var(--cyan);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 12px;
}
.team-card .bio { font-size: 0.95rem; color: var(--gray); line-height: 1.6; }

/* ─────────────────────────────────────────────────────────────
   CONTACTO
   ───────────────────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; max-width: var(--container); margin: 0 auto; }
.contact-info h3 { font-size: 1.5rem; margin-bottom: 24px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.contact-list li {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center;
  padding: 14px; border-radius: var(--radius);
  background: rgba(0,194,255,0.04);
  border: 1px solid var(--cyan-border);
}
.contact-list .ico {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--cyan-soft); color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
}
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list .lbl { font-size: 11px; font-weight: 700; color: var(--gray); letter-spacing: 1.5px; text-transform: uppercase; }
.contact-list .val { font-size: 15px; color: var(--white); font-weight: 500; }

.contact-form {
  background: var(--navy-2);
  border: 1px solid var(--cyan-border);
  border-radius: 16px;
  padding: 32px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px; font-weight: 600; color: var(--white);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(10, 15, 30, 0.6);
  border: 1px solid rgba(0,194,255,0.15);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: 400 14px 'Inter', sans-serif;
  color: var(--white);
  transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--gray-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(10, 15, 30, 0.9);
  box-shadow: 0 0 0 4px rgba(0,194,255,0.1);
}
.field textarea { min-height: 120px; resize: vertical; font-family: 'Inter', sans-serif; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300c2ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field select option { background: #0d1520; color: var(--white); }

.form-feedback {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
}
.form-feedback.success {
  display: block;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #4ade80;
}
.form-feedback.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}
.form-hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--gray-dim);
  text-align: center;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */
.footer {
  background: #060912;
  border-top: 1px solid var(--cyan-border);
  padding: 64px 24px 24px;
  margin-top: 40px;
}
.footer-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 56px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 360px; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { width: 38px; height: auto; }
.footer-logo strong {
  font-size: 14px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
}
.footer-tagline {
  font-size: 1rem; color: var(--white); font-weight: 500;
  font-style: italic;
}
.footer-meta { font-size: 13px; color: var(--gray); line-height: 1.8; }
.footer-meta a:hover { color: var(--cyan); }

.footer-col h4 {
  font-size: 11px; font-weight: 700; color: var(--cyan);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--gray); transition: color .15s; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--container); margin: 0 auto;
  padding-top: 24px;
  text-align: center;
  font-size: 12px; color: var(--gray-dim); letter-spacing: 0.3px;
}

/* ─────────────────────────────────────────────────────────────
   Tweaks panel (vanilla)
   ───────────────────────────────────────────────────────────── */
.tweaks {
  position: fixed; bottom: 22px; right: 22px;
  width: 320px;
  background: rgba(13, 21, 32, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--cyan-border-strong);
  border-radius: var(--radius);
  padding: 18px;
  z-index: 70;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  transform: translateY(20px); opacity: 0; visibility: hidden;
  transition: transform .25s, opacity .25s, visibility .25s;
}
.tweaks.open { transform: translateY(0); opacity: 1; visibility: visible; }
.tweaks-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cyan-border);
}
.tweaks-head h4 { font-size: 12px; font-weight: 700; color: var(--cyan); letter-spacing: 2px; text-transform: uppercase; }
.tweaks-close {
  width: 24px; height: 24px; border-radius: 6px;
  color: var(--gray); display: flex; align-items: center; justify-content: center;
}
.tweaks-close:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.tweak-row { margin-bottom: 14px; }
.tweak-row label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 600; color: var(--gray);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 6px;
}
.tweak-row label .v { color: var(--cyan); font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; }
.tweak-row input[type=range] { width: 100%; accent-color: var(--cyan); }
.tweak-swatches { display: flex; gap: 6px; }
.tweak-swatch {
  width: 28px; height: 28px; border-radius: 6px;
  border: 2px solid transparent; cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.tweak-swatch.active { border-color: var(--white); transform: scale(1.1); }

/* ─────────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .showcase, .nosotros, .contact { grid-template-columns: 1fr; gap: 48px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav { padding: 10px 16px; }
  .nav-inner { justify-content: flex-start; gap: 12px; padding-right: 52px; }
  .nav-links { display: none; }
  .nav-mobile-btn { display: inline-flex; }
  .nav-logo { width: 42px; height: 42px; }
  .nav-logo img { width: 32px; }
  .fab-whatsapp { display: flex; }
  .section { padding: 72px 18px; }
  .hero { padding: 100px 18px 56px; }
  .solutions { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding: 48px 18px 20px; }
  .showcase-metrics { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mockup { transform: none; }
  .mockup-body { grid-template-columns: 110px 1fr; }
  .tweaks { width: calc(100vw - 32px); right: 16px; bottom: 90px; }
  .contact-list li { grid-template-columns: 40px 1fr; gap: 12px; padding: 12px; }
  .contact-list .ico { width: 40px; height: 40px; }
  .hero h1 { word-break: break-word; }
}
@media (max-width: 480px) {
  .hero-cta .btn-primary { min-width: 0; width: 100%; }
  .section { padding: 64px 16px; }
  .section-head { margin-bottom: 36px; }
  .pillar { grid-template-columns: 44px 1fr; gap: 12px; padding: 16px; }
  .pillar-icon { width: 44px; height: 44px; }
  .product-card { padding: 22px; }
  .contact-form { padding: 20px; }
  .btn { padding: 12px 22px; font-size: 14px; }
  .hero-cta .btn-primary { padding: 16px 22px; font-size: 15px; }
  .pills { gap: 8px; }
  .pill { padding: 8px 12px; font-size: 12px; }
}
