/* ============================================================
   SoulGeit — Landing Page Premium
   Estilos: oscuro tech + enterprise software
   Paleta: azul eléctrico + cyan + slate neutro
   Tipografía: Blanka (display) + Rajdhani (body) + Share Tech Mono (code)
   ============================================================ */

:root {
  --bg: #020c14;
  --bg-2: #041624;
  --bg-3: #071f34;
  --surface: #0c2640;
  --surface-2: #102e4c;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);

  --text: #edf4ff;
  --text-dim: #a8c0d6;
  --text-muted: #5e8099;

  --primary: #0ea5e9;
  --primary-2: #0284c7;
  --primary-glow: rgba(14,165,233,0.38);
  --accent-violet: #38bdf8;

  /* Degradado de títulos: azul eléctrico */
  --grad-title: linear-gradient(135deg, #7dd3fc, #0ea5e9 52%, #0284c7);
  --cyan: #22d3ee;
  --cyan-2: #06b6d4;
  --emerald: #34d399;
  --silver: #94a3b8;

  --light: #f8fafc;
  --light-2: #f1f5f9;
  --dark-on-light: #0c1a27;
  --dim-on-light: #4a6580;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 10px 40px rgba(14,165,233,.07);
  --shadow-glow: 0 0 0 1px rgba(14,165,233,.22), 0 20px 60px rgba(14,165,233,.16);
  --purple-glow: 0 0 40px rgba(14,165,233,.12);
  --purple-border: rgba(14,165,233,.22);

  --container: 1200px;
  --container-narrow: 880px;

   --font-display: 'Blanka', 'Orbitron', system-ui, sans-serif;
   --font-body: 'Rajdhani', system-ui, sans-serif;
   --font-mono: 'Share Tech Mono', 'Courier New', monospace;
}

/* ===================== LIGHT THEME ===================== */
[data-theme="light"] {
  --bg: #f4f8fc;
  --bg-2: #e8f2fa;
  --bg-3: #d8eaf6;
  --surface: #ffffff;
  --surface-2: #f0f7fd;
  --border: rgba(0,0,0,0.07);
  --border-strong: rgba(0,0,0,0.12);

  --text: #0c1a27;
  --text-dim: #3a5a72;
  --text-muted: #7a9cb4;

  --primary: #0284c7;
  --primary-2: #0369a1;
  --primary-glow: rgba(2,132,199,0.22);
  --accent-violet: #0ea5e9;

  /* Degradado de títulos sobre fondo claro */
  --grad-title: linear-gradient(135deg, #0ea5e9, #0284c7 55%, #0369a1);
  --cyan: #0891b2;
  --cyan-2: #0e7490;
  --emerald: #059669;
  --silver: #4a7a96;

  --light: #0c1a27;
  --light-2: #1a3347;
  --dark-on-light: #0c1a27;
  --dim-on-light: #4a6580;

  --shadow-soft: 0 10px 40px rgba(0,0,0,0.06);
  --shadow-glow: 0 0 0 1px rgba(2,132,199,.18), 0 20px 60px rgba(2,132,199,.10);
  --purple-glow: 0 0 40px rgba(2,132,199,.08);
  --purple-border: rgba(2,132,199,.18);
}

[data-theme="light"] body {
  background: var(--bg);
  color: var(--text);
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4 {
  color: #0f172a;
}


[data-theme="light"] .btn-ghost {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.12);
  color: #0f172a;
}

[data-theme="light"] .btn-ghost:hover {
  background: rgba(2,132,199,0.06);
  border-color: var(--primary);
  color: var(--primary);
}


[data-theme="light"] .hero {
  background: var(--bg);
}

[data-theme="light"] .footer {
  background: #eef1f7;
  border-top-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .cookie-consent {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  color: #0f172a;
}

[data-theme="light"] .cookie-consent a {
  color: var(--primary);
}

[data-theme="light"] .back-to-top {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: rgba(0,0,0,0.08);
  color: #0f172a;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06), 0 0 0 0 rgba(2,132,199,0);
}
[data-theme="light"] .back-to-top::before {
  background: linear-gradient(135deg, rgba(2,132,199,.5), rgba(56,189,248,.4), rgba(8,145,178,.4));
}
[data-theme="light"] .back-to-top::after {
  background: linear-gradient(135deg, var(--primary), var(--accent-violet));
}
[data-theme="light"] .back-to-top .btt-tooltip {
  background: rgba(255,255,255,0.92);
  border-color: rgba(2,132,199,0.2);
  color: #0f172a;
}
[data-theme="light"] .back-to-top .btt-pulse {
  border-color: rgba(2,132,199,0.25);
}
[data-theme="light"] .back-to-top:hover {
  background: rgba(255,255,255,0.9);
  border-color: var(--primary);
  box-shadow: 0 14px 44px rgba(0,0,0,0.1), 0 0 30px rgba(2,132,199,0.15);
}


[data-theme="light"] .hero-sub {
  color: #475569;
}

[data-theme="light"] .hero-overlay {
  background: rgba(246,248,252,0.4);
}

[data-theme="light"] .hs-label {
  color: #64748b;
}

[data-theme="light"] .code-monitor {
  background: #ffffff;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

[data-theme="light"] .monitor-header {
  background: #f1f4f9;
  border-bottom-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .monitor-body {
  background: #fafbfd;
}

[data-theme="light"] .monitor-tab {
  color: #475569;
}

[data-theme="light"] .cl-line {
  color: #334155;
}

[data-theme="light"] .cl-comment {
  color: #059669;
}

[data-theme="light"] .cl-keyword {
  color: #0284c7;
}

[data-theme="light"] .cl-fn {
  color: #0891b2;
}

[data-theme="light"] .monitor-keyboard {
  background: #eef1f7;
  border-top-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .monitor-keyboard .key {
  background: #fff;
  border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .wa-float {
  background: #25D366;
  color: #fff;
}

[data-theme="light"] .wa-float span {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .preloader {
  background: #f6f8fc;
}

[data-theme="light"] .preloader-logo {
  color: #0f172a;
}

[data-theme="light"] .preloader-text {
  color: #64748b;
}

[data-theme="light"] #scrollProgress {
  background: linear-gradient(90deg, var(--primary), var(--accent-violet));
}

[data-theme="light"] .mobile-overlay {
  background: rgba(0,0,0,0.3);
}

[data-theme="light"] .section-light {
  background: #ffffff;
}

[data-theme="light"] .service-card,
[data-theme="light"] .plan-card,
[data-theme="light"] .problem-card,
[data-theme="light"] .usecase-card,
[data-theme="light"] .testimonial,
[data-theme="light"] .faq-item,
[data-theme="light"] .stack-card,
[data-theme="light"] .svc-compare-card,
[data-theme="light"] .portfolio-item {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  color: #0f172a;
}

[data-theme="light"] .service-card h3,
[data-theme="light"] .plan-card h3,
[data-theme="light"] .problem-card h3,
[data-theme="light"] .usecase-card h3,
[data-theme="light"] .testimonial h3,
[data-theme="light"] .stack-card h3,
[data-theme="light"] .svc-compare-card h3,
[data-theme="light"] .portfolio-item h3 {
  color: #0f172a;
}

[data-theme="light"] .service-card p,
[data-theme="light"] .plan-card p,
[data-theme="light"] .problem-card p,
[data-theme="light"] .usecase-card p,
[data-theme="light"] .testimonial p,
[data-theme="light"] .stack-card p,
[data-theme="light"] .svc-compare-card p,
[data-theme="light"] .portfolio-item p {
  color: #475569;
}

[data-theme="light"] .faq-item summary {
  color: #0f172a;
}

[data-theme="light"] .faq-item summary::after {
  color: #64748b;
}

[data-theme="light"] .field input,
[data-theme="light"] .field textarea,
[data-theme="light"] .field select,
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
  background: #f1f4f9;
  border-color: rgba(0,0,0,0.1);
  color: #0f172a;
}

[data-theme="light"] .field input:focus,
[data-theme="light"] .field textarea:focus,
[data-theme="light"] .field select:focus,
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2,132,199,.12);
}

[data-theme="light"] .field input::placeholder,
[data-theme="light"] .field textarea::placeholder,
[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
  color: #94a3b8;
}

[data-theme="light"] .contact-list li,
[data-theme="light"] .contact-info-item {
  background: #f1f4f9;
  border-color: rgba(0,0,0,0.06);
  color: #475569;
}

[data-theme="light"] .contact-list li strong,
[data-theme="light"] .contact-info-item strong {
  color: #0f172a;
}

[data-theme="light"] .filter-btn {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.1);
  color: #475569;
}

[data-theme="light"] .filter-btn:hover,
[data-theme="light"] .filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}

[data-theme="light"] .stack-tags span {
  background: rgba(2,132,199,.08);
  color: var(--primary);
  border-color: rgba(2,132,199,.15);
}

[data-theme="light"] .arch-layer {
  background: #f1f4f9;
  border-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .arch-layer:hover {
  background: rgba(2,132,199,.04);
  border-color: rgba(2,132,199,.2);
}

[data-theme="light"] .arch-layer-items span {
  background: rgba(2,132,199,.06);
  color: #475569;
  border-color: rgba(2,132,199,.1);
}

[data-theme="light"] .arch-layer-label {
  color: var(--primary);
}

[data-theme="light"] .form-msg {
  color: #475569;
}

[data-theme="light"] .field select option {
  background: #fff;
  color: #0f172a;
}

[data-theme="light"] .toast {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  color: #0f172a;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

[data-theme="light"] .toast-info {
  border-left-color: var(--primary);
}

[data-theme="light"] .toast-error {
  border-left-color: #ef4444;
}

[data-theme="light"] .toast-success {
  border-left-color: #10b981;
}

[data-theme="light"] .skip-link {
  background: #0f172a;
  color: #fff;
}

[data-theme="light"] .skip-link:focus {
  background: var(--primary);
}

[data-theme="light"] .orb-1 { opacity: .06; }
[data-theme="light"] .orb-2 { opacity: .05; }
[data-theme="light"] .orb-3 { opacity: .04; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Consistent keyboard focus ring across the whole site */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); }

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: #fff;
}
h1 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 0 60px rgba(14,165,233,0.25), 0 0 120px rgba(14,165,233,0.10);
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
h3 { font-size: 1.15rem; letter-spacing: 0.04em; }
h4 { font-size: 0.88rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }

.grad {
  background: var(--grad-title);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.grad-dark {
  background: var(--grad-title);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow, .kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 6px 14px;
  border: 1px solid rgba(34,211,238,.25);
  border-radius: 100px;
  background: rgba(34,211,238,.06);
  margin-bottom: 22px;
  font-weight: 600;
}
.section-light .kicker {
  color: var(--primary);
  border-color: rgba(14,165,233,.25);
  background: rgba(14,165,233,.06);
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-display);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, background .3s ease, border-color .3s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 8px 22px rgba(99, 102, 241, .26);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(99, 102, 241, .36); }
.btn-ghost {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--primary); color: #fff; }
.section-light .btn-ghost {
  background: #fff;
  border-color: #d8deea;
  color: var(--dark-on-light);
}
.section-light .btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ===================== NAVBAR ===================== */
.navbar-top-line {
  position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent 0%, rgba(14,165,233,.0) 10%, rgba(14,165,233,.7) 40%, rgba(56,189,248,.9) 50%, rgba(14,165,233,.7) 60%, rgba(14,165,233,.0) 90%, transparent 100%);
}
.navbar {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  background: rgba(2, 7, 16, 0.55);
  border-bottom: 1px solid rgba(14,165,233,0.07);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.navbar.scrolled {
  background: rgba(2, 7, 16, 0.96);
  border-bottom-color: rgba(14,165,233,0.2);
  box-shadow: 0 1px 0 rgba(14,165,233,0.1), 0 8px 40px rgba(0,0,0,0.55), 0 16px 48px rgba(14,165,233,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  color: #fff; letter-spacing: .01em;
  transition: opacity .3s ease;
}
.logo:hover { opacity: .85; }
.logo-mark {
  width: 58px; height: 58px; color: var(--primary);
  filter: drop-shadow(0 0 16px rgba(14,165,233,.55));
  transition: filter .3s ease;
}
.logo:hover .logo-mark {
  filter: drop-shadow(0 0 24px rgba(14,165,233,.8));
}
.logo-text span {
  background: linear-gradient(135deg, var(--primary), var(--accent-violet));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  font-size: 0.875rem; color: rgba(255,255,255,0.58); font-weight: 500;
  font-family: var(--font-body);
  transition: color .2s ease, background .2s ease; position: relative;
  letter-spacing: 0.035em; padding: 6px 13px; border-radius: 7px;
}
.nav-links a:hover {
  color: rgba(255,255,255,0.92);
  background: rgba(14,165,233,0.07);
}
.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
  background: rgba(14,165,233,0.1);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 2px; left: 13px; right: 13px;
  height: 1.5px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-violet));
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

/* Status badge */
.nav-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.75rem; font-family: var(--font-mono);
  color: rgba(255,255,255,0.42); letter-spacing: 0.06em;
  white-space: nowrap; user-select: none;
}
.nav-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,.8);
  animation: navStatusPulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes navStatusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(34,197,94,.8); }
  50% { opacity: 0.55; box-shadow: 0 0 12px rgba(34,197,94,.4); }
}

/* Vertical separator */
.nav-sep {
  width: 1px; height: 26px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.12), transparent);
  flex-shrink: 0;
}

/* CTA button in nav */
.nav-contact-btn {
  padding: 8px 18px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent !important;
  color: var(--primary) !important;
  border: 1px solid rgba(14,165,233,0.4) !important;
  border-radius: 6px !important;
  box-shadow: 0 0 18px rgba(14,165,233,.08), inset 0 0 18px rgba(14,165,233,.03);
  transition: color .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease !important;
  position: relative; overflow: hidden;
}
.nav-contact-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(14,165,233,.12) 0%, transparent 60%);
  opacity: 0; transition: opacity .22s ease;
}
.nav-contact-btn:hover {
  color: #fff !important;
  border-color: rgba(14,165,233,.75) !important;
  box-shadow: 0 0 28px rgba(14,165,233,.28), inset 0 0 20px rgba(14,165,233,.06) !important;
  background: rgba(14,165,233,.05) !important;
}
.nav-contact-btn:hover::before { opacity: 1; }

/* Theme toggle in nav */
.nav-cta .theme-toggle {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.07);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.nav-cta .theme-toggle:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,0.13);
  transform: rotate(12deg);
}

.nav-toggle {
  display: none; width: 42px; height: 42px; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
  border-radius: 8px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,0.08);
  transition: background .3s ease, border-color .3s ease;
}
.nav-toggle:hover {
  background: rgba(14,165,233,.06);
  border-color: rgba(14,165,233,0.2);
}
.nav-toggle span {
  width: 20px; height: 1.5px; background: rgba(255,255,255,0.75); border-radius: 2px;
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(2, 7, 16, 0.99);
    backdrop-filter: blur(24px);
    flex-direction: column; align-items: flex-start;
    gap: 0; padding: 20px 24px 30px;
    border-bottom: 1px solid rgba(14,165,233,0.12);
    transform: translateY(-130%);
    transition: transform .35s ease;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a {
    width: 100%; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 1rem; border-radius: 0;
  }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn { display: none; }
  .nav-status { display: none; }
  .nav-sep { display: none; }
}

[data-theme="light"] .navbar {
  background: rgba(246, 248, 252, 0.7);
  border-bottom-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .navbar.scrolled {
  background: rgba(246, 248, 252, 0.96);
  border-bottom-color: rgba(14,165,233,0.2);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.06);
}
[data-theme="light"] .nav-links a { color: rgba(15, 23, 42, 0.6); }
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active { color: #0f172a; }
[data-theme="light"] .nav-links a.active { background: rgba(14,165,233,0.08); }
[data-theme="light"] .nav-links {
  background: rgba(246, 248, 252, 0.99);
  border-bottom-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .logo,
[data-theme="light"] .logo-text { color: #0f172a; }
[data-theme="light"] .nav-toggle { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .nav-toggle span { background: rgba(15, 23, 42, 0.7); }
[data-theme="light"] .nav-status { color: rgba(15,23,42,0.45); }
[data-theme="light"] .nav-sep { background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1), transparent); }
[data-theme="light"] .nav-contact-btn { color: var(--primary-2) !important; border-color: rgba(2,132,199,.4) !important; }
[data-theme="light"] .nav-contact-btn:hover { color: var(--primary-2) !important; border-color: rgba(2,132,199,.7) !important; }

/* ===================== NAVBAR EXTRAS ===================== */

/* Logo stack */
.logo-info {
  display: flex; flex-direction: column; gap: 1px;
}
.logo-tag {
  font-family: var(--font-mono);
  font-size: 0.57rem;
  color: rgba(14,165,233,0.45);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  font-weight: 400;
}
[data-theme="light"] .logo-tag { color: rgba(2,132,199,0.5); }

/* Top accent line sweep */
.navbar-top-line {
  position: relative;
  overflow: hidden;
}
.navbar-top-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100px; height: 100%; width: 100px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent);
  animation: navTopSweep 8s ease-in-out infinite 1.5s;
  pointer-events: none;
}
@keyframes navTopSweep {
  0% { left: -100px; opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { left: calc(100% + 100px); opacity: 0; }
}

/* Nav link index numbers */
.link-idx {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(14,165,233,0.28);
  letter-spacing: 0.04em;
  margin-right: 5px;
  transition: color .2s ease;
  vertical-align: baseline;
}
.nav-links a:hover .link-idx,
.nav-links a.active .link-idx { color: rgba(14,165,233,0.65); }
[data-theme="light"] .nav-links a:hover .link-idx,
[data-theme="light"] .nav-links a.active .link-idx { color: rgba(2,132,199,0.7); }

/* CTA button — font + arrow + scan */
.nav-contact-btn {
  font-family: var(--font-body) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}
.nav-contact-btn svg {
  flex-shrink: 0;
  transition: transform .22s ease;
}
.nav-contact-btn:hover svg { transform: translateX(4px); }
.nav-contact-btn::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  left: -100%; width: 55%;
  background: linear-gradient(90deg, transparent, rgba(14,165,233,0.22), transparent);
  transition: left .52s ease;
  pointer-events: none;
}
.nav-contact-btn:hover::after { left: 150%; }

/* ========================
   NAV DROPDOWN
   ======================== */
.nav-item {
  position: relative;
  display: flex; align-items: center;
}
.nav-link-drop {
  display: flex !important; align-items: center !important; gap: 5px !important;
  cursor: pointer;
}
.dd-chevron {
  flex-shrink: 0;
  color: rgba(255,255,255,0.32);
  transition: transform .25s ease, color .2s ease;
}
.nav-link-drop:hover .dd-chevron { color: rgba(14,165,233,0.7); }
.nav-item.dd-open .dd-chevron { transform: rotate(180deg); color: var(--primary); }

/* Dropdown panel */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 290px;
  background: rgba(2, 7, 16, 0.98);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: 14px;
  padding: 6px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.4,0,.2,1), visibility 0s .22s;
  z-index: 300;
  box-shadow:
    0 4px 6px rgba(14,165,233,0.06),
    0 20px 60px rgba(0,0,0,0.65),
    0 0 0 1px rgba(14,165,233,0.04),
    inset 0 1px 0 rgba(255,255,255,0.03);
}
/* Bridge hover gap */
.nav-dropdown::before {
  content: ''; position: absolute;
  top: -14px; left: 0; right: 0; height: 14px;
}
/* HUD corner accent top-right */
.nav-dropdown::after {
  content: '';
  position: absolute; top: 8px; right: 8px;
  width: 10px; height: 10px;
  border-top: 1.5px solid rgba(14,165,233,0.45);
  border-right: 1.5px solid rgba(14,165,233,0.45);
  pointer-events: none;
}
/* HUD corner accent bottom-left via box-shadow hack on ::before */
.nav-dropdown .dd-corner-bl {
  position: absolute; bottom: 8px; left: 8px;
  width: 10px; height: 10px;
  border-bottom: 1.5px solid rgba(14,165,233,0.25);
  border-left: 1.5px solid rgba(14,165,233,0.25);
  pointer-events: none;
}

/* Desktop hover open */
@media (min-width: 981px) {
  .nav-item:hover .dd-chevron { transform: rotate(180deg); }
  .nav-item:hover .nav-dropdown {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition: opacity .22s ease, transform .22s cubic-bezier(.4,0,.2,1), visibility 0s 0s;
  }
}

/* Dropdown items — base */
.nav-dropdown a {
  display: flex !important; align-items: center !important;
  gap: 10px !important;
  padding: 9px 12px !important;
  border-radius: 8px !important;
  color: rgba(255,255,255,0.6) !important;
  font-size: .855rem !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  letter-spacing: .025em !important;
  background: transparent !important;
  width: 100%;
  transition: color .18s ease, background .18s ease, padding-left .18s ease !important;
  white-space: nowrap;
}
.nav-dropdown a:hover {
  color: #fff !important;
  background: rgba(14,165,233,0.08) !important;
  padding-left: 16px !important;
}
.nav-dropdown a::after { display: none !important; }

/* Featured "ver todos" item */
.nav-dropdown .dd-featured {
  color: var(--primary) !important;
  font-weight: 600 !important;
  padding-bottom: 11px !important;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(14,165,233,0.12) !important;
  border-radius: 8px 8px 0 0 !important;
}
.nav-dropdown .dd-featured:hover {
  color: #7dd3fc !important;
  background: rgba(14,165,233,0.06) !important;
  padding-left: 16px !important;
}

/* Item index number */
.dd-num {
  font-family: var(--font-mono);
  font-size: .58rem; color: rgba(14,165,233,0.28);
  letter-spacing: .04em; flex-shrink: 0; min-width: 18px;
  transition: color .18s ease;
}
.nav-dropdown a:hover .dd-num { color: rgba(14,165,233,0.7); }

/* Right arrow */
.dd-arrow {
  margin-left: auto; flex-shrink: 0;
  color: rgba(14,165,233,0.45);
  opacity: 0; transform: translateX(-4px);
  transition: opacity .18s ease, transform .18s ease;
}
.nav-dropdown a:hover .dd-arrow { opacity: 1; transform: translateX(0); }

/* Mobile dropdown: inline expand */
@media (max-width: 980px) {
  .nav-item {
    flex-direction: column; align-items: stretch; width: 100%;
  }
  .nav-link-drop {
    width: 100%; padding: 14px 4px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    border-radius: 0 !important;
    font-size: 1rem !important;
  }
  .nav-dropdown {
    position: static; transform: none !important;
    opacity: 1 !important; pointer-events: none;
    visibility: hidden; max-height: 0; overflow: hidden;
    border: none; box-shadow: none; background: transparent;
    backdrop-filter: none; padding: 0; border-radius: 0;
    transition: max-height .32s ease, visibility 0s .32s !important;
  }
  .nav-dropdown::before, .nav-dropdown::after { display: none; }
  .nav-item.dd-open .nav-dropdown {
    visibility: visible; max-height: 460px; pointer-events: auto;
    transition: max-height .32s ease, visibility 0s 0s !important;
  }
  .nav-dropdown a {
    padding: 11px 16px !important;
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
    border-radius: 0 !important;
    font-size: .95rem !important;
    background: rgba(14,165,233,0.02) !important;
  }
  .nav-dropdown a:hover { padding-left: 22px !important; }
  .dd-num { font-size: .65rem; }
  .dd-arrow { opacity: 1 !important; transform: none !important; }
  .nav-dropdown .dd-corner-bl { display: none; }
}

/* Mobile nav footer (inside <nav>, hidden on desktop) */
.nav-mobile-footer {
  display: none; width: 100%;
  margin-top: 8px; padding-top: 18px;
  border-top: 1px solid rgba(14,165,233,0.12);
}
.nav-mobile-cta-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0;
  color: var(--primary); font-weight: 600; font-size: 1rem;
  font-family: var(--font-body); letter-spacing: 0.04em;
  transition: color .2s ease, gap .2s ease;
}
.nav-mobile-cta-btn:hover { color: #fff; gap: 16px; }
.nav-mobile-cta-btn .nav-status-dot { width: 7px; height: 7px; flex-shrink: 0; }
.nav-mobile-info {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: rgba(255,255,255,0.28); letter-spacing: 0.07em;
  margin: 2px 0 0; padding: 0;
}
@media (max-width: 980px) {
  .nav-mobile-footer { display: block; }
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: 0;
  height: 100vh;
  min-height: 600px;
  isolation: isolate;
  background: #03050b;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 1;
  /* Un flujo dominante diagonal + un apoyo muy tenue. */
  background:
    radial-gradient(70% 60% at 72% 22%, rgba(14,165,233,.11), transparent 58%),
    radial-gradient(60% 50% at 20% 85%, rgba(34,211,238,.04), transparent 60%);
  pointer-events: none;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 18%, transparent 60%);
  z-index: 2;
  pointer-events: none;
}
/* Orbs: 1 dominante (orb-1) + apoyos cada vez más tenues, mucho
   más blur para que actúen como profundidad atmosférica, no como
   focos. Menor contraste para no competir con las cards. */
.orb { position: absolute; border-radius: 50%; filter: blur(120px); z-index: 1; pointer-events: none; }
.orb-1 { width: 560px; height: 560px; background: var(--primary); top: -140px; left: -120px; opacity: .16; }
.orb-2 { width: 400px; height: 400px; background: var(--cyan); bottom: -120px; right: -60px; opacity: .07; }
.orb-3 { width: 350px; height: 350px; background: var(--accent-violet); top: 45%; right: -140px; opacity: .04; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 3;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero { padding: 80px 0 70px; min-height: 100vh; }
}

.hero-title {
  margin-bottom: 22px;
  line-height: 1.15;
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 0 50px rgba(14,165,233,0.3), 0 0 100px rgba(14,165,233,0.12);
}
.hero-title .typewriter-text {
  font-weight: 800;
  background: var(--grad-title);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title .typewriter-cursor {
  font-weight: 300;
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.hero-title .grad {
  display: inline-block;
  position: relative;
}
.hero-sub {
  color: var(--text-dim); font-size: 1.08rem; max-width: 580px; margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-actions.center { justify-content: center; }

.hero-proof {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px;
  padding-top: 30px; border-top: 1px solid var(--border);
}
.hero-proof li {
  font-size: 0.88rem; color: var(--text-dim); line-height: 1.5;
}
.hero-proof strong { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 4px; font-weight: 700; }

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  background: rgba(14,165,233,.08);
  border: 1px solid rgba(14,165,233,.15);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 20px;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===================== DASHBOARD MOCKUP ===================== */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  perspective: 1000px;
}

.dashboard-mockup {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(160deg, rgba(13,20,41,0.95), rgba(8,12,24,0.98));
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 80px rgba(14,165,233,0.15),
    0 0 40px rgba(34,211,238,0.06),
    0 20px 60px rgba(0,0,0,0.5);
  transform: rotateY(-3deg) rotateX(2deg);
  transition: transform .6s ease;
}

.dashboard-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

/* --- Dash Header --- */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dash-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent-violet));
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 0.85rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.dash-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.9rem;
  color: #fff;
  line-height: 1.2;
}

.dash-subtitle {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
}

.dash-status {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--emerald);
  letter-spacing: 0.03em;
}

.dash-dot-live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: dashLivePulse 2s infinite;
}

@keyframes dashLivePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* --- KPIs --- */
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 16px 16px 6px;
}

.dash-kpi {
  text-align: center;
  padding: 14px 8px;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
  transition: background .3s ease, border-color .3s ease;
}

.dash-kpi:hover {
  background: rgba(14,165,233,0.06);
  border-color: rgba(14,165,233,0.15);
}

.kpi-label {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.kpi-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1;
}

.kpi-sub {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
}

.kpi-sub.green { color: var(--emerald); }
.kpi-sub.blue { color: var(--cyan); }
.kpi-sub.purple { color: var(--accent-violet); }

/* --- Chart --- */
.dash-chart {
  margin: 6px 16px;
  padding: 16px 14px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.chart-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
}

.chart-period {
  font-size: 0.6rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 3px 10px;
  border-radius: 100px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  height: 120px;
}

.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}

.bar-glow {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 40%;
  border-radius: 8px;
  opacity: 0;
  transition: opacity .4s ease;
}

.bar-group:hover .bar-glow {
  opacity: 1;
}

.bar-group:nth-child(1) .bar-glow { background: radial-gradient(ellipse at bottom, rgba(14,165,233,0.4), transparent 80%); }
.bar-group:nth-child(2) .bar-glow { background: radial-gradient(ellipse at bottom, rgba(14,165,233,0.4), transparent 80%); }
.bar-group:nth-child(3) .bar-glow { background: radial-gradient(ellipse at bottom, rgba(34,211,238,0.35), transparent 80%); }
.bar-group:nth-child(4) .bar-glow { background: radial-gradient(ellipse at bottom, rgba(14,165,233,0.4), transparent 80%); }
.bar-group:nth-child(5) .bar-glow { background: radial-gradient(ellipse at bottom, rgba(56,189,248,0.4), transparent 80%); }
.bar-group:nth-child(6) .bar-glow { background: radial-gradient(ellipse at bottom, rgba(14,165,233,0.4), transparent 80%); }
.bar-group:nth-child(7) .bar-glow { background: radial-gradient(ellipse at bottom, rgba(34,211,238,0.4), transparent 80%); }

.bar {
  width: 100%;
  height: 0;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--primary), rgba(14,165,233,0.3));
  position: relative;
  z-index: 1;
  transition: height .8s cubic-bezier(.34,1.56,.64,1);
  animation: barGrow 0.8s cubic-bezier(.34,1.56,.64,1) forwards;
  animation-play-state: paused;
}

.bar-group.in-view .bar {
  animation-play-state: running;
}

.bar-group:nth-child(1) .bar { animation-delay: 0.1s; background: linear-gradient(180deg, var(--primary), rgba(14,165,233,0.25)); }
.bar-group:nth-child(2) .bar { animation-delay: 0.2s; background: linear-gradient(180deg, var(--primary), rgba(14,165,233,0.25)); }
.bar-group:nth-child(3) .bar { animation-delay: 0.3s; background: linear-gradient(180deg, var(--cyan), rgba(34,211,238,0.25)); }
.bar-group:nth-child(4) .bar { animation-delay: 0.4s; background: linear-gradient(180deg, var(--primary), rgba(14,165,233,0.25)); }
.bar-group:nth-child(5) .bar { animation-delay: 0.5s; background: linear-gradient(180deg, var(--accent-violet), rgba(56,189,248,0.25)); }
.bar-group:nth-child(6) .bar { animation-delay: 0.6s; background: linear-gradient(180deg, var(--primary), rgba(14,165,233,0.25)); }
.bar-group:nth-child(7) .bar { animation-delay: 0.7s; background: linear-gradient(180deg, var(--cyan), rgba(34,211,238,0.25)); }

@keyframes barGrow {
  from { height: 0; }
  to { height: var(--h); }
}

.bar span {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transition: opacity .3s ease .4s;
}

.bar-group.in-view .bar span {
  opacity: 1;
}

.bar-group small {
  font-size: 0.58rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-top: 2px;
}

/* --- Footer Row: Ring + Quote --- */
.dash-footer-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px 16px;
}

.dash-ring-container {
  position: relative;
  width: 70px; height: 70px;
  flex-shrink: 0;
}

.dash-ring {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 5;
}

.ring-progress {
  fill: none;
  stroke: url(#dashGradient);
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(14,165,233,0.5));
  transition: stroke-dashoffset 1.2s cubic-bezier(.34,1.56,.64,1);
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  line-height: 1;
}

.ring-label {
  font-size: 0.55rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.dash-quote {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(14,165,233,0.06);
  border: 1px solid rgba(14,165,233,0.12);
  border-radius: 12px;
  flex: 1;
}

.quote-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.quote-text {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.quote-text strong {
  color: #fff;
  font-weight: 700;
}

/* --- Light theme dashboard --- */
[data-theme="light"] .dashboard-mockup {
  background: linear-gradient(160deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
  border-color: rgba(0,0,0,0.06);
  box-shadow:
    0 0 60px rgba(2,132,199,0.08),
    0 20px 50px rgba(0,0,0,0.08);
}

[data-theme="light"] .dash-header {
  border-bottom-color: rgba(0,0,0,0.05);
}

[data-theme="light"] .dash-name { color: #0f172a; }
[data-theme="light"] .dash-subtitle { color: #94a3b8; }

[data-theme="light"] .dash-kpi {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.04);
}

[data-theme="light"] .dash-kpi:hover {
  background: rgba(2,132,199,0.03);
  border-color: rgba(2,132,199,0.1);
}

[data-theme="light"] .kpi-value { color: #0f172a; }
[data-theme="light"] .kpi-label { color: #94a3b8; }

[data-theme="light"] .dash-chart {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.04);
}

[data-theme="light"] .chart-title { color: #475569; }
[data-theme="light"] .chart-period {
  color: #94a3b8;
  background: rgba(0,0,0,0.03);
}

[data-theme="light"] .bar-group small { color: #94a3b8; }
[data-theme="light"] .bar span { color: #0f172a; }

[data-theme="light"] .ring-bg { stroke: rgba(0,0,0,0.06); }
[data-theme="light"] .ring-value { color: #0f172a; }
[data-theme="light"] .ring-label { color: #94a3b8; }

[data-theme="light"] .dash-quote {
  background: rgba(2,132,199,0.03);
  border-color: rgba(2,132,199,0.08);
}

[data-theme="light"] .quote-text { color: #475569; }
[data-theme="light"] .quote-text strong { color: #0f172a; }

/* --- Light theme hero arrows --- */
[data-theme="light"] .hero-arrow { color: rgba(2,132,199,0.7); }
[data-theme="light"] .hero-arrow::after,
[data-theme="light"] .arrow-corners::before,
[data-theme="light"] .arrow-corners::after {
  border-color: rgba(2,132,199,0.5);
}
[data-theme="light"] .hero-arrow:hover { color: #0284c7; }
[data-theme="light"] .hero-arrow:hover svg {
  filter: drop-shadow(0 0 6px rgba(2,132,199,0.9));
}

[data-theme="light"] .dash-status {
  background: rgba(16,185,129,0.06);
  border-color: rgba(16,185,129,0.12);
}

/* --- Responsive dashboard --- */
@media (max-width: 980px) {
  .hero-visual {
    min-height: auto;
    perspective: none;
  }
  .dashboard-mockup {
    max-width: 100%;
    transform: none;
  }
  .dashboard-mockup:hover { transform: none; }
  .chart-bars { height: 100px; }
}

@media (max-width: 600px) {
  .dash-kpis { grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 10px 8px 2px; }
  .dash-kpi { padding: 10px 4px; }
  .kpi-value { font-size: 1.1rem; }
  .chart-bars { height: 80px; gap: 3px; }
  .dash-chart { margin: 4px 8px; padding: 12px 8px 8px; }
  .dash-footer-row { padding: 6px 8px 12px; }
}

/* ===================== HERO HORIZONTAL SLIDES ===================== */
.hero-slides {
  position: relative;
  z-index: 4;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  height: 100vh;
  min-height: 600px;
  scrollbar-width: thin;
  scrollbar-color: rgba(14,165,233,0.3) transparent;
}

.hero-slides::-webkit-scrollbar {
  height: 5px;
}

.hero-slides::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  margin: 0 20px;
}

.hero-slides::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--primary), var(--accent-violet), var(--cyan));
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(14,165,233,0.4);
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0 60px;
  position: relative;
}

/* Ensure hero-visual videos inside slides are always visible */
.hero-slide .hero-visual {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Slide 1 (inicio): layout centrado */
.hero-slide[data-slide="0"] .hero-grid {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.hero-slide[data-slide="0"] .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
}
.hero-slide[data-slide="0"] .hero-sub {
  max-width: 660px;
}
.hero-slide[data-slide="0"] .hero-actions {
  justify-content: center;
}
.hero-slide[data-slide="0"] .hero-stats {
  justify-content: center;
}
@media (max-width: 900px) {
  .hero-slide[data-slide="0"] .hero-visual { display: none !important; }
}

/* Slide-specific accent glows */
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  transition: opacity 1.2s ease;
}

.hero-slide:nth-child(1)::before {
  background: 
    radial-gradient(ellipse at 75% 45%, rgba(14,165,233,.2), transparent 55%),
    radial-gradient(ellipse at 25% 60%, rgba(56,189,248,.08), transparent 50%);
}

.hero-slide:nth-child(2)::before {
  background: 
    radial-gradient(ellipse at 20% 55%, rgba(34,211,238,.15), transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(14,165,233,.1), transparent 55%);
}

.hero-slide:nth-child(3)::before {
  background: 
    radial-gradient(ellipse at 55% 35%, rgba(16,185,129,.12), transparent 55%),
    radial-gradient(ellipse at 30% 70%, rgba(34,211,238,.08), transparent 50%);
}

/* Slide number indicator */
.hero-slide-number {
  position: absolute;
  bottom: 30px;
  left: 40px;
  z-index: 5;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.15);
  opacity: 0;
  animation: heroSlideNumIn 0.8s ease 0.6s forwards;
}

@keyframes heroSlideNumIn {
  to { opacity: 1; }
}

@media (max-width: 768px) {
  .hero-slide-number {
    left: 20px;
    bottom: 20px;
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .hero-slide-number {
    display: none;
  }
}

/* ===================== HERO NAV DOTS ===================== */
.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}

.hero-dot {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.12);
  cursor: pointer;
  transition: background .35s cubic-bezier(.23,1,.32,1), border-color .35s ease, transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease, width .45s cubic-bezier(.23,1,.32,1);
  padding: 0;
  overflow: visible;
}
/* subtle ambient glow ring */
.hero-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 0 rgba(14,165,233,0);
  transition: box-shadow .5s ease;
  pointer-events: none;
}
/* ripple on click */
.hero-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(14,165,233,0.6);
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
  transition: transform .5s ease, opacity .5s ease;
}
.hero-dot:active::after {
  opacity: 0;
  transform: scale(2.2);
  transition: transform .6s cubic-bezier(.23,1,.32,1), opacity .25s ease;
}
.hero-dot.ripple::after {
  opacity: 1;
  transform: scale(2.2);
  transition: transform .6s cubic-bezier(.23,1,.32,1), opacity .4s ease;
}

.hero-dot:hover {
  background: rgba(14,165,233,0.55);
  border-color: var(--primary);
  transform: scale(1.5);
  box-shadow: 0 0 20px rgba(14,165,233,0.55);
}
.hero-dot:hover::before {
  box-shadow: 0 0 18px 4px rgba(14,165,233,0.3);
}

.hero-dot.active {
  width: 36px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent-violet));
  border-color: transparent;
  box-shadow:
    0 0 22px rgba(14,165,233,0.7),
    0 0 0 4px rgba(14,165,233,0.08);
  transform: scale(1);
  cursor: default;
}
.hero-dot.active::before {
  box-shadow: 0 0 22px 8px rgba(14,165,233,0.25);
}
.hero-dot.active:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 28px rgba(14,165,233,0.8),
    0 0 0 6px rgba(14,165,233,0.12);
}

@media (max-width: 480px) {
  .hero-dots {
    bottom: 28px;
    gap: 10px;
  }
  .hero-dot {
    width: 11px;
    height: 11px;
  }
  .hero-dot.active {
    width: 28px;
  }
}

/* ===================== HERO ARROW NAV ===================== */
/* ── HUD targeting brackets navigation ── */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 54px;
  height: 54px;
  background: none;
  border: none;
  color: rgba(14,165,233,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: color 0.3s ease, transform 0.35s cubic-bezier(0.23,1,0.32,1);
}

/* ── Sweep light (idle) ── */
.hero-arrow::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(14,165,233,0.06), transparent);
  animation: arrowSweep 3.5s ease-in-out infinite;
  pointer-events: none;
}

/* ── 4 corners: ::before/::after on button + both on .arrow-corners ── */
.arrow-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* top-left corner */
.hero-arrow::after {
  content: '';
  position: absolute;
  top: 5px; left: 5px;
  width: 13px; height: 13px;
  border-top: 1.5px solid rgba(14,165,233,0.55);
  border-left: 1.5px solid rgba(14,165,233,0.55);
  transition: all 0.3s ease;
}
/* bottom-right corner */
.arrow-corners::before {
  content: '';
  position: absolute;
  bottom: 5px; right: 5px;
  width: 13px; height: 13px;
  border-bottom: 1.5px solid rgba(14,165,233,0.55);
  border-right: 1.5px solid rgba(14,165,233,0.55);
  transition: all 0.3s ease;
}
/* top-right corner */
.arrow-corners::after {
  content: '';
  position: absolute;
  top: 5px; right: 5px;
  width: 13px; height: 13px;
  border-top: 1.5px solid rgba(14,165,233,0.3);
  border-right: 1.5px solid rgba(14,165,233,0.3);
  transition: all 0.3s ease;
}
/* bottom-left corner — via box-shadow trick on ::after of button */
/* We reuse the sweep ::before and add a 4th via outline trick on the svg */
.hero-arrow svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, filter 0.3s ease, color 0.3s ease;
  outline: none;
}

/* ── HOVER ── */
.hero-arrow:hover {
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.hero-arrow:hover::after {
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-color: #0ea5e9;
  box-shadow: -3px -3px 12px rgba(14,165,233,0.55);
}
.hero-arrow:hover .arrow-corners::before {
  bottom: 2px; right: 2px;
  width: 16px; height: 16px;
  border-color: #0ea5e9;
  box-shadow: 3px 3px 12px rgba(14,165,233,0.55);
}
.hero-arrow:hover .arrow-corners::after {
  top: 2px; right: 2px;
  width: 16px; height: 16px;
  border-color: rgba(14,165,233,0.7);
  box-shadow: 3px -3px 10px rgba(14,165,233,0.35);
}
.hero-arrow:hover svg {
  filter: drop-shadow(0 0 6px #0ea5e9) drop-shadow(0 0 14px rgba(14,165,233,0.5));
}
.hero-arrow:active {
  transform: translateY(-50%) scale(0.93);
  transition: all 0.1s ease;
}

/* ── positions & arrow animation ── */
.hero-arrow-left  { left: 18px; }
.hero-arrow-right { right: 18px; }

.hero-arrow-left svg  { animation: nudgeLeft  2.6s ease-in-out infinite; }
.hero-arrow-right svg { animation: nudgeRight 2.6s ease-in-out infinite; }

@keyframes nudgeLeft {
  0%, 100% { transform: translateX(0);    opacity: 0.75; }
  50%       { transform: translateX(-4px); opacity: 1; }
}
@keyframes nudgeRight {
  0%, 100% { transform: translateX(0);   opacity: 0.75; }
  50%       { transform: translateX(4px); opacity: 1; }
}
@keyframes arrowSweep {
  0%   { left: -60%; }
  60%, 100% { left: 140%; }
}

@media (max-width: 768px) {
  .hero-arrow { width: 44px; height: 44px; }
  .hero-arrow-left  { left: 8px; }
  .hero-arrow-right { right: 8px; }
}
@media (max-width: 480px) {
  .hero-arrow { display: none; }
}

/* ===================== HERO SCROLL INDICATOR ===================== */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  right: 40px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: heroScrollFadeIn 1.5s ease 2s forwards;
}

@keyframes heroScrollFadeIn {
  to { opacity: 1; }
}

.hero-scroll-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.hero-scroll-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 16px;
  border-radius: 3px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: heroScrollDot 2s ease-in-out infinite;
}

@keyframes heroScrollDot {
  0% { top: -16px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@media (max-width: 768px) {
  .hero-scroll-indicator {
    right: 20px;
    bottom: 24px;
  }
}

@media (max-width: 480px) {
  .hero-scroll-indicator {
    display: none;
  }
}

/* Hero robot video (reemplaza dashboard) */
.hero-robot-video {
  width: 100%;
  max-width: 500px;
  min-height: 340px;
  display: block;
  object-fit: contain;
  mix-blend-mode: screen;
  border-radius: 18px;
}

.hero-robot-video::-webkit-media-controls {
  display: none !important;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}
.hs-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hs-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--grad-title);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hs-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ===================== TYPEWRITER ===================== */
.typewriter-wrapper {
  display: inline;
}
.typewriter-cursor {
  display: inline;
  font-weight: 300;
  color: var(--cyan);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.typewriter-text {
  display: inline;
}

/* ===================== CODE ILLUSTRATION (COMPACTA) ===================== */
.code-illustration {
  position: relative;
  width: 100%;
  max-width: 420px;
  min-height: 280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.code-monitor {
  position: relative; z-index: 3;
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
}
.monitor-screen {
  width: 100%;
  background: linear-gradient(180deg, #0a0f1f, #070b18);
  border: 1px solid rgba(14,165,233,.2);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 2px rgba(15,18,35,.8), 0 0 0 4px rgba(14,165,233,.06), 0 15px 40px rgba(0,0,0,.5), 0 0 30px rgba(14,165,233,.1);
}
.monitor-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 8px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.monitor-dots { display: flex; gap: 4px; }
.mdot { width: 6px; height: 6px; border-radius: 50%; }
.mdot-red { background: #ef4444; }
.mdot-yellow { background: #f59e0b; }
.mdot-green { background: #10b981; }
.monitor-tab {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.52rem; color: var(--text-muted);
  background: rgba(14,165,233,.08);
  padding: 2px 6px; border-radius: 3px;
}
.monitor-body {
  position: relative;
  padding: 8px 10px 12px;
  min-height: 100px; overflow: hidden;
}
.code-lines-horizontal {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem; line-height: 1.85;
  color: var(--text); margin: 0; padding: 0;
}
.cl-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 2px 0;
}
.cl-line-2 { animation: fadeInLine 0.6s ease 0.3s both; }
.cl-line-3 { animation: fadeInLine 0.6s ease 0.8s both; }
.cl-line-4 { animation: fadeInLine 0.6s ease 1.3s both; }
.cl-line-5 { animation: fadeInLine 0.6s ease 1.8s both; }
@keyframes fadeInLine {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
.cl-prompt { color: #4ade80; }
.cl-keyword { color: #c084fc; font-weight: 500; }
.cl-fn { color: #60a5fa; }
.cl-method { color: #facc15; }
.cl-comment { color: #4ade80; font-style: italic; }
.code-cursor-blink {
  font-size: 0.6rem; color: var(--cyan);
  animation: cursorBlink 1s step-end infinite;
}
@keyframes cursorBlink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Teclado glow */
.monitor-keyboard {
  margin-top: 6px; display: flex; gap: 3px; justify-content: center; opacity: 0.3;
}
.key { width: 18px; height: 5px; border-radius: 2px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.05); }
.monitor-keyboard:hover .key { background: rgba(14,165,233,.08); border-color: rgba(14,165,233,.15); transition: all .3s ease; }

/* Partículas flotantes */
.code-particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.cp { position: absolute; font-family: 'Share Tech Mono', monospace; font-size: 0.65rem; font-weight: 600; opacity: 0.2; animation: floatCode 5s ease-in-out infinite; }
.cp-1 { top: 2%; left: 0; color: var(--cyan); }
.cp-2 { top: 16%; right: 0; color: #c084fc; animation-delay: 1s; }
.cp-3 { bottom: 20%; left: 0; color: var(--primary); font-size: 0.8rem; animation-delay: 2s; }
.cp-4 { top: 35%; right: 0; color: #facc15; font-size: 0.7rem; animation-delay: 0.5s; }
@keyframes floatCode {
  0%,100%{transform:translateY(0) rotate(0deg);opacity:.2}
  50%{transform:translateY(-8px) rotate(2deg);opacity:.35}
}

@media (max-width: 980px) {
  .code-illustration { max-width: 260px; min-height: 180px; }
  .code-lines-horizontal { font-size: 0.48rem; }
}
@media (max-width: 600px) {
  .code-illustration { min-height: 150px; max-width: 240px; }
  .monitor-body { min-height: 70px; padding: 6px 8px; }
  .monitor-screen { border-radius: 8px; }
  .code-lines-horizontal { font-size: 0.42rem; line-height: 1.5; }
  .monitor-keyboard { display: none; }
}

/* ===================== TRUST BAR ===================== */
.trustbar {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  overflow: hidden;
}
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.marquee-track {
  display: inline-flex; gap: 30px; white-space: nowrap;
  animation: scroll 38s linear infinite;
}
.marquee-track span {
  font-size: 0.85rem; color: var(--text-dim); font-weight: 500;
  letter-spacing: .04em;
}
.marquee-track span:nth-child(odd) { color: var(--primary); }
@keyframes scroll {
  from { transform: translateX(0) }
  to { transform: translateX(-50%) }
}

/* ===================== SECTIONS BASE ===================== */
.section { padding: 110px 0; position: relative; }
@media (max-width: 768px) { .section { padding: 70px 0; } }

.section-light {
  background: var(--light);
  color: var(--dark-on-light);
}
.section-light h1, .section-light h2, .section-light h3, .section-light h4 { color: var(--dark-on-light); }
.section-light p { color: var(--dim-on-light); }

.section-dark-alt {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-3) 100%);
  position: relative;
}
.section-dark-alt::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(14,165,233,.08), transparent 60%);
  z-index: 1;
}

/* Fondo de imagen Galactic Coders para sección Nosotros */
.nosotros-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.nosotros-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(2,12,20,0.88) 0%, rgba(2,12,20,0.78) 30%, rgba(2,12,20,0.65) 60%, rgba(2,12,20,0.55) 100%);
  z-index: 1;
}
.nosotros-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* ============================================================
   SECCIÓN NOSOTROS V2 — Rediseño UI/UX profesional
   Layout: 2 columnas (texto + glass cards) + barra de métricas
   ============================================================ */
.section-nosotros-v2 {
  padding: 130px 0 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.nosotros-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* --- Grid principal 2 columnas --- */
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* --- Columna izquierda --- */
.nosotros-left {
  max-width: 540px;
}

.nosotros-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(14,165,233,0.25);
}

.nosotros-headline {
  font-family: var(--font-body);
  font-size: clamp(1.9rem, 2.8vw, 2.4rem);
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 22px;
}
.nosotros-headline .nosotros-highlight {
  background: linear-gradient(135deg, #7dd3fc, #0ea5e9 55%, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.nosotros-body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
  margin-bottom: 30px;
  max-width: 480px;
}

.nosotros-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --- Columna derecha: glass cards --- */
.nosotros-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nosotros-cap-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.nosotros-cap-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(14,165,233,0.35);
  transform: translateX(6px);
}

.nosotros-cap-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(14,165,233,0.2), rgba(56,189,248,0.06));
  border: 1px solid rgba(14,165,233,0.25);
  color: var(--primary);
}
.nosotros-cap-icon svg {
  width: 20px;
  height: 20px;
}

.nosotros-cap-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nosotros-cap-text strong {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}
.nosotros-cap-text span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  line-height: 1.45;
}

/* --- Barra de métricas --- */
.nosotros-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 64px;
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.nosotros-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 20px 24px;
  background: rgba(0,0,0,0.3);
  transition: background .3s ease;
}
.nosotros-metric:hover {
  background: rgba(14,165,233,0.08);
}

.nosotros-metric-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.nosotros-metric-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .nosotros-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .nosotros-left {
    max-width: 100%;
    text-align: center;
  }
  .nosotros-body {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .nosotros-actions {
    justify-content: center;
  }
  .nosotros-right {
    max-width: 500px;
    margin: 0 auto;
  }
  .nosotros-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .nosotros-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .nosotros-metric {
    padding: 22px 14px 18px;
  }
  .nosotros-metric-num {
    font-size: 1.5rem;
  }
  .nosotros-headline {
    font-size: 1.5rem;
  }
  .section-nosotros-v2 {
    padding: 70px 0 60px;
  }
}

/* Mantener compatibilidad con estilos anteriores limpios */
.benefits-strip { display: none; } /* oculto, reemplazado por .nosotros-metrics */
#nosotros .kicker { display: none; }
/* PROFESSIONAL OVERRIDES START */
#nosotros.section-nosotros-v2 {
  padding: 140px 0 130px !important;
}
#nosotros .nosotros-label {
  display: inline-block !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.3em !important;
  color: #1e293b !important;
  padding: 6px 16px !important;
  background: rgba(30,41,59,0.08) !important;
  border: 1px solid rgba(30,41,59,0.18) !important;
  border-radius: 6px !important;
  border-bottom: 1px solid rgba(30,41,59,0.18) !important;
  margin-bottom: 18px !important;
}
#nosotros .nosotros-headline {
  color: #f8fafc !important;
  font-size: clamp(1.9rem, 2.8vw, 2.5rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 20px !important;
}
#nosotros .nosotros-headline .nosotros-highlight {
  background: linear-gradient(135deg, #cbd5e1, #94a3b8, #475569) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 700 !important;
}
#nosotros .nosotros-body {
  color: rgba(255,255,255,0.72) !important;
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
  margin-bottom: 32px !important;
  max-width: 480px !important;
}

/* Glass Cards — light glass, stands out from dark BG, perfectly aligned */
#nosotros .nosotros-right { gap: 14px !important; }
#nosotros .nosotros-cap-card {
  display: flex !important; align-items: center !important; gap: 18px !important;
  padding: 22px 26px !important;
  background: rgba(255,255,255,0.045) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 14px !important;
  margin-left: 0 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25) !important;
  transition: all .3s cubic-bezier(.4,0,.2,1) !important;
  transform: none !important;
}
#nosotros .nosotros-cap-card:hover {
  background: rgba(255,255,255,0.075) !important;
  border-color: rgba(30,41,59,0.35) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(30,41,59,0.08) !important;
}
#nosotros .nosotros-cap-icon {
  width: 48px !important; height: 48px !important; border-radius: 12px !important;
  background: linear-gradient(135deg, rgba(30,41,59,0.12), rgba(51,65,85,0.04)) !important;
  border: 1px solid rgba(30,41,59,0.2) !important;
  color: #334155 !important; flex-shrink: 0 !important;
}
#nosotros .nosotros-cap-card:hover .nosotros-cap-icon {
  background: linear-gradient(135deg, rgba(30,41,59,0.2), rgba(51,65,85,0.08)) !important;
  border-color: rgba(30,41,59,0.4) !important;
  box-shadow: 0 0 22px rgba(0,0,0,0.12) !important;
}
/* Metrics Bar — light glass with subtle dividers */
#nosotros .nosotros-metrics {
  gap: 0 !important; background: rgba(255,255,255,0.035) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 16px !important; margin-top: 64px !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2) !important; overflow: hidden !important;
}
#nosotros .nosotros-metric {
  background: transparent !important; padding: 34px 24px 28px !important; position: relative !important;
}
#nosotros .nosotros-metric:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 20%; height: 60%; width: 1px;
  background: rgba(255,255,255,0.08);
}
#nosotros .nosotros-metric:hover { background: rgba(30,41,59,0.05) !important; }
#nosotros .nosotros-metric-num {
  font-family: var(--font-display) !important; font-size: 2.1rem !important;
  font-weight: 700 !important; color: #f1f5f9 !important; line-height: 1 !important;
  margin-bottom: 8px !important; background: none !important;
  -webkit-text-fill-color: #f1f5f9 !important; filter: none !important;
}
#nosotros .nosotros-metric:hover .nosotros-metric-num {
  color: #475569 !important; -webkit-text-fill-color: #475569 !important;
}
#nosotros .nosotros-metric-label {
  font-family: var(--font-body) !important; font-size: 0.77rem !important;
  color: rgba(255,255,255,0.55) !important; font-weight: 500 !important;
  letter-spacing: 0.02em !important; line-height: 1.4 !important;
}
@media (max-width: 900px) {
  #nosotros .nosotros-metric:nth-child(2)::after { display: none; }
}
@media (max-width: 500px) {
  #nosotros.section-nosotros-v2 { padding: 70px 0 60px !important; }
}
#nosotros .nosotros-cap-icon svg { width: 20px !important; height: 20px !important; }
#nosotros .nosotros-cap-text strong {
  color: #f1f5f9 !important; font-size: 0.96rem !important; font-weight: 600 !important;
  letter-spacing: 0.01em !important; line-height: 1.3 !important;
}
#nosotros .nosotros-cap-text span {
  color: rgba(255,255,255,0.6) !important; font-size: 0.81rem !important;
  line-height: 1.45 !important; font-weight: 400 !important;
}
/* END PROFESSIONAL OVERRIDES */
.section-nosotros-v2 {
  padding: 140px 0 130px;
}
.nosotros-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.nosotros-label {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--primary);
  padding: 5px 14px;
  background: rgba(14,165,233,0.08);
  border: 1px solid rgba(14,165,233,0.18);
  border-radius: 6px;
  border-bottom: none;
  margin-bottom: 16px;
}

.nosotros-headline {
  text-shadow: 0 2px 24px rgba(0,0,0,0.7), 0 0 60px rgba(14,165,233,0.15);
  letter-spacing: 0.01em;
}

.nosotros-headline .nosotros-highlight {
  background: linear-gradient(135deg, #bae6fd, #38bdf8 45%, #0ea5e9 75%, #7dd3fc) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none;
  filter: drop-shadow(0 0 12px rgba(14,165,233,0.35));
}

.nosotros-body {
  color: rgba(235,245,255,0.88) !important;
  font-size: 1.08rem !important;
  line-height: 1.72 !important;
}

/* --- Glass Cards mejor posicionadas --- */
.nosotros-right {
  gap: 16px !important;
}

.nosotros-cap-card {
  background: rgba(14,165,233,0.06) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(14,165,233,0.2) !important;
  border-radius: 16px !important;
  padding: 20px 22px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: all .35s cubic-bezier(.4,0,.2,1) !important;
}

.nosotros-cap-card:nth-child(2) {
  margin-left: 10px;
}
.nosotros-cap-card:nth-child(3) {
  margin-left: 0;
}
.nosotros-cap-card:nth-child(4) {
  margin-left: 10px;
}

.nosotros-cap-card:hover {
  background: rgba(14,165,233,0.12) !important;
  border-color: rgba(56,189,248,0.45) !important;
  transform: translateX(8px) translateY(-2px) !important;
  box-shadow: 0 8px 32px rgba(14,165,233,0.15), inset 0 1px 0 rgba(255,255,255,0.06);
}

.nosotros-cap-text strong {
  color: #e6f4ff !important;
  font-size: 0.98rem !important;
}

.nosotros-cap-text span {
  color: rgba(200,225,245,0.75) !important;
  font-size: 0.84rem !important;
  line-height: 1.5 !important;
}

.nosotros-cap-icon {
  width: 44px !important;
  height: 44px !important;
  background: linear-gradient(135deg, rgba(14,165,233,0.25), rgba(56,189,248,0.1)) !important;
  border-color: rgba(56,189,248,0.35) !important;
  border-radius: 12px !important;
}

/* --- Barra de métricas con más presencia --- */
.nosotros-metrics {
  gap: 1px !important;
  background: rgba(14,165,233,0.06) !important;
  border: 1px solid rgba(14,165,233,0.18) !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}

.nosotros-metric {
  background: rgba(2,12,20,0.5) !important;
  padding: 30px 20px 26px !important;
}

.nosotros-metric:hover {
  background: rgba(14,165,233,0.12) !important;
}

.nosotros-metric-num {
  font-size: 2.2rem !important;
  background: linear-gradient(180deg, #fff 0%, #bae6fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(14,165,233,0.3));
}

.nosotros-metric-label {
  color: rgba(180,215,240,0.8) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.04em !important;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .nosotros-cap-card:nth-child(2),
  .nosotros-cap-card:nth-child(3),
  .nosotros-cap-card:nth-child(4) {
    margin-left: 0;
  }
}

@media (max-width: 500px) {
  .section-nosotros-v2 {
    padding: 70px 0 60px !important;
  }
}

#nosotros .capabilities { display: none; }
#nosotros .agents-grid { display: none; }

.section-head {
  text-align: center; max-width: 780px; margin: 0 auto 60px;
}
.section-head p { color: var(--text-dim); font-size: 1.05rem; margin-top: 18px; }
.section-light .section-head p { color: var(--dim-on-light); }
.muted-note { font-size: 0.85rem !important; color: var(--text-muted) !important; font-style: italic; }
.section-light .muted-note { color: #8a93a8 !important; }
.h3-alt { font-size: 1.5rem; }

/* ===================== GRIDS ===================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ===================== PROBLEMA ===================== */
.problem-card {
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.problem-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
}
.p-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.6rem;
  background: var(--grad-title);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.problem-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.problem-card p { font-size: 0.92rem; color: var(--dim-on-light); }

/* ===================== SERVICIOS ===================== */
.service-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative; overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0; transition: opacity .3s;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(14,165,233,.35); }
.service-card:hover::before { opacity: 1; }
.svc-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14,165,233,.12), rgba(14,165,233,.05));
  border: 1px solid rgba(14,165,233,.2);
  color: var(--primary);
  margin-bottom: 22px;
}
.svc-icon svg { width: 26px; height: 26px; }
.service-card h3 { color: #fff; margin-bottom: 10px; font-size: 1.15rem; }
.service-card p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 18px; }
.card-cta {
  font-size: 0.85rem; font-weight: 600; color: var(--primary);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .25s ease;
}
.card-cta:hover { gap: 12px; }

/* ===================== AGENTES IA ===================== */
.agents-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .agents-grid { grid-template-columns: 1fr; gap: 40px; } }

.capabilities { display: grid; gap: 12px; }
.capabilities li {
  position: relative; padding: 14px 18px 14px 44px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem; color: var(--text);
  transition: border-color .25s ease;
}
.capabilities li:hover { border-color: rgba(14,165,233,.35); }
.capabilities li::before {
  content: ''; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #0284c7);
  box-shadow: 0 0 14px rgba(14,165,233,.6);
}

/* ARCHITECTURE */
.architecture {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  padding: 30px;
  background:
    radial-gradient(ellipse at center, rgba(14,165,233,.06), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.arch-row {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: 100%;
}
.arch-spread { justify-content: space-between; flex-wrap: wrap; }
.arch-node {
  background: rgba(13, 20, 41, .85);
  border: 1px solid var(--border-strong);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.85rem; color: #fff; font-weight: 600;
  text-align: center; min-width: 110px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.arch-node small { font-size: 0.7rem; color: var(--text-muted); font-weight: 400; }
.node-core {
  background: linear-gradient(135deg, rgba(14,165,233,.18), rgba(14,165,233,.08));
  border-color: rgba(14,165,233,.5);
  box-shadow: 0 0 30px rgba(14,165,233,.25);
  padding: 18px 28px; min-width: 180px; position: relative;
}
.core-glow {
  position: absolute; inset: -2px; border-radius: 14px;
  border: 1px solid rgba(14,165,233,.6); opacity: .4;
  animation: corepulse 2.4s infinite;
}
@keyframes corepulse { 0% { transform: scale(1); opacity: .5 } 100% { transform: scale(1.15); opacity: 0 } }
.node-user, .node-team {
  background: rgba(14,165,233,.08); border-color: rgba(14,165,233,.3);
}
.arch-line {
  width: 1px; height: 26px;
  background: linear-gradient(180deg, var(--primary), transparent);
  position: relative;
}
.arch-line::after {
  content: ''; position: absolute; left: -1px; top: 0;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 8px var(--primary);
  animation: flow 2s linear infinite;
}
@keyframes flow {
  from { top: 0; opacity: 1 }
  to { top: 100%; opacity: 0 }
}

.agent-types {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.agent-pill {
  padding: 12px 22px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 0.9rem; color: var(--text);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.agent-pill:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: rgba(14,165,233,.08);
}

/* ===================== USE CASES ===================== */
.usecase-card {
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.usecase-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 18px 50px rgba(14,165,233,.1);
}
.uc-tag {
  display: inline-block;
  font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(14,165,233,.08);
  color: var(--primary);
  margin-bottom: 16px;
}
.usecase-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.usecase-card p { font-size: 0.92rem; color: var(--dim-on-light); }

/* ===================== TIMELINE ===================== */
.timeline {
  position: relative;
  display: grid; gap: 24px;
  max-width: 800px; margin: 0 auto;
  padding-left: 30px;
}
.timeline::before {
  content: ''; position: absolute; left: 14px; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), rgba(14,165,233,.1));
}
.timeline li {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  transition: border-color .25s ease, transform .25s ease;
}
.timeline li:hover { border-color: rgba(14,165,233,.4); transform: translateX(4px); }
.timeline li::before {
  content: ''; position: absolute; left: -24px; top: 26px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--primary);
  box-shadow: 0 0 12px rgba(14,165,233,.5);
}
.tl-num {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: 0.8rem; color: var(--primary); letter-spacing: .15em;
  margin-bottom: 6px;
}
.timeline h3 { color: #fff; margin-bottom: 6px; }
.timeline p { color: var(--text-dim); font-size: 0.92rem; }

/* ===================== BENEFITS ===================== */
.benefits-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 980px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .benefits-grid { grid-template-columns: 1fr; } }

/* Industrias: tarjetas verticales centradas, con icono destacado */
#industrias .grid-4 { gap: 18px; }
#industrias .benefit {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 30px 18px;
  font-size: 0.95rem;
  font-weight: 600;
}
#industrias .benefit > span:first-child {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  font-size: 1.7rem;
  background: linear-gradient(135deg, rgba(14,165,233,.14), rgba(34,211,238,.06));
  border: 1px solid rgba(14,165,233,.18);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .3s ease;
}
#industrias .benefit:hover { transform: translateY(-4px); border-color: rgba(14,165,233,.4); }
#industrias .benefit:hover > span:first-child { transform: scale(1.08) rotate(-4deg); border-color: rgba(14,165,233,.4); }
[data-theme="light"] #industrias .benefit { background: #fff; border-color: rgba(0,0,0,.08); color: var(--dark-on-light); }

.benefit {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.92rem; color: var(--text); font-weight: 500;
  transition: border-color .25s ease, transform .25s ease;
}
.benefit:hover { border-color: rgba(14,165,233,.4); transform: translateY(-2px); }
.b-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 12px var(--primary);
  flex-shrink: 0;
}

/* ===================== PLANES ===================== */
.plans-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  align-items: stretch;
}
@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

.plan-card {
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .3s ease, border-color .3s ease;
}
.plan-card:hover { transform: translateY(-6px); border-color: rgba(14,165,233,.3); }

.plan-featured {
  border-color: rgba(14,165,233,.5);
  background:
    radial-gradient(ellipse at top, rgba(14,165,233,.12), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg-3));
  box-shadow: 0 25px 70px rgba(99, 102, 241, .18);
  transform: scale(1.02);
}
.plan-best {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), #0284c7);
  color: #fff; font-size: 0.72rem; padding: 5px 14px;
  border-radius: 100px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
}

.plan-card header { padding-bottom: 22px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.plan-tag {
  display: inline-block; font-size: 0.75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); font-weight: 700; margin-bottom: 10px;
}
.plan-card h3 { font-size: 1.25rem; color: #fff; margin-bottom: 12px; }
.plan-price { font-size: 0.9rem; color: var(--text-dim); }

.plan-list {
  flex: 1; display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px;
}
.plan-list li {
  position: relative; padding-left: 26px;
  font-size: 0.9rem; color: var(--text-dim);
}
.plan-list li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(14,165,233,.15); border: 1px solid rgba(14,165,233,.4);
}
.plan-list li::after {
  content: ''; position: absolute; left: 4px; top: 11px;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--primary);
  border-bottom: 1.5px solid var(--primary);
  transform: rotate(-45deg);
}

/* ===================== TESTIMONIOS ===================== */
.testimonial-card {
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(14,165,233,.08);
}
.testimonial-card p {
  font-size: .95rem;
  color: var(--dark-on-light);
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex; align-items: center; gap: 14px;
  padding-top: 16px;
  border-top: 1px solid #eef1f7;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #0284c7);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: .9rem;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: .9rem; color: var(--dark-on-light); }
.testimonial-author small { font-size: .78rem; color: var(--dim-on-light); }

/* Targeta de tags */
.tag-row {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px;
}
.tag-row span {
  background: rgba(14,165,233,.1);
  color: var(--primary);
  font-size: .68rem;
  padding: 2px 10px;
  border-radius: 20px;
}

/* Proceso */
.process-benefit {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
  padding: 24px 20px !important;
}
.process-benefit > span { font-size: 1.5rem; }
.process-benefit > strong { color: var(--dark-on-light); font-size: 0.95rem; }
.process-benefit > small { font-size: 0.78rem; color: var(--dim-on-light); line-height: 1.4; }

/* Formulario de contacto inline */
.contact-form-inline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto 20px;
}
.contact-form-inline input,
.contact-form-inline textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color .3s ease, background .3s ease;
}
.contact-form-inline input:focus,
.contact-form-inline textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(14,165,233,.08);
}
.contact-form-inline textarea {
  resize: vertical;
  min-height: 80px;
}
.contact-form-inline .btn {
  width: 100%;
}
.contact-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.contact-alt span {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.cta-kicker {
  color: var(--cyan) !important;
  border-color: rgba(34,211,238,.25) !important;
  background: rgba(34,211,238,.06) !important;
}

@media (max-width: 980px) {
  .nav-contact-btn { display: none !important; }
}

/* ===================== FAQ ===================== */
.faq { display: grid; gap: 12px; }
.faq-item {
  background: linear-gradient(180deg, var(--surface), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s ease;
}
.faq-item[open] { border-color: rgba(14,165,233,.35); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: #fff;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.6rem; line-height: 1; color: var(--primary);
  transition: transform .3s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 24px 22px;
  color: var(--text-dim); font-size: 0.95rem;
}

/* ===================== CTA FINAL ===================== */
.cta-final {
  position: relative; overflow: hidden;
  padding: 110px 0;
  text-align: center;
  isolation: isolate;
}
.cta-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(14,165,233,.18), transparent 60%),
    linear-gradient(180deg, var(--bg-3), var(--bg));
}
.cta-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
.cta-final h2 { max-width: 800px; margin: 0 auto 18px; }
.cta-final p { color: var(--text-dim); font-size: 1.08rem; max-width: 620px; margin: 0 auto 36px; }

/* ===================== CONTACTO ===================== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-info h2 { margin-bottom: 18px; }
.contact-list { margin-top: 28px; display: grid; gap: 12px; }
.contact-list li {
  font-size: 0.95rem; color: var(--dim-on-light);
  padding: 12px 0; border-bottom: 1px solid #e6ebf3;
}
.contact-list strong { color: var(--dark-on-light); margin-right: 8px; }

.contact-form {
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  box-shadow: 0 20px 60px rgba(20,10,40,.06);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.82rem; font-weight: 600; color: var(--dark-on-light);
}
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border: 1px solid #d8deea;
  border-radius: 10px;
  background: #f9fafd;
  font-family: inherit; font-size: 0.95rem; color: var(--dark-on-light);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14,165,233,.12);
}
.field textarea { resize: vertical; min-height: 100px; }
.form-msg {
  margin-top: 12px; font-size: 0.88rem; color: #00a36b;
  min-height: 20px;
}
.form-msg.error { color: #d63a3a; }

@media (max-width: 540px) {
  .contact-form { grid-template-columns: 1fr; padding: 24px; }
}

/* ===================== FOOTER ===================== */
.footer {
  background: #020308;
  border-top: 1px solid var(--border);
  padding: 70px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.foot-brand p { color: var(--text-dim); font-size: 0.92rem; max-width: 320px; margin-top: 16px; }
.foot-socials { display: flex; gap: 12px; margin-top: 18px; }
.foot-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-dim);
  transition: all .25s ease;
}
.foot-social-link svg { width: 18px; height: 18px; }
.foot-social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}
.foot-social-link.foot-social-link--linkedin {
  color: #fff;
  border-color: rgba(255,255,255,.24);
  background: linear-gradient(145deg, #2186d7 0%, #0a66c2 54%, #074d93 100%);
  box-shadow: 0 8px 22px rgba(10, 102, 194, .24);
}
.foot-social-link.foot-social-link--linkedin:hover {
  color: #fff;
  border-color: rgba(255,255,255,.5);
  background: linear-gradient(145deg, #3b9be5 0%, #1677d2 54%, #095cab 100%);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 30px rgba(10, 102, 194, .4);
}
.foot-social-link.foot-social-link--x {
  color: #fff;
  border-color: rgba(255,255,255,.28);
  background: linear-gradient(145deg, #292b2f 0%, #111214 52%, #000 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
}
.foot-social-link.foot-social-link--x:hover {
  color: #fff;
  border-color: rgba(255,255,255,.58);
  background: linear-gradient(145deg, #3a3d42 0%, #202226 52%, #08090a 100%);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .48);
}
.foot-social-link.foot-social-link--facebook {
  color: #fff;
  border-color: rgba(255,255,255,.24);
  background: linear-gradient(145deg, #2b8af7 0%, #1877f2 52%, #145fc5 100%);
  box-shadow: 0 8px 22px rgba(24, 119, 242, .22);
}
.foot-social-link.foot-social-link--facebook:hover {
  color: #fff;
  border-color: rgba(255,255,255,.5);
  background: linear-gradient(145deg, #48a0ff 0%, #2583f5 52%, #176bd8 100%);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 30px rgba(24, 119, 242, .38);
}

.foot-social-link.foot-social-link--tiktok {
  color: #fff;
  border-color: rgba(37, 244, 238, .42);
  background: linear-gradient(145deg, #24262a 0%, #0b0c0e 55%, #000 100%);
  box-shadow: -3px 2px 18px rgba(37, 244, 238, .2), 3px -2px 18px rgba(254, 44, 85, .2);
}
.foot-social-link.foot-social-link--tiktok:hover {
  color: #fff;
  border-color: rgba(37, 244, 238, .75);
  background: linear-gradient(145deg, #35383d 0%, #17191c 55%, #070708 100%);
  transform: translateY(-3px) scale(1.06);
  box-shadow: -5px 4px 24px rgba(37, 244, 238, .34), 5px -4px 24px rgba(254, 44, 85, .34);
}
.foot-social-link.foot-social-link--youtube {
  color: #fff;
  border-color: rgba(255,255,255,.24);
  background: linear-gradient(145deg, #ff3b3b 0%, #ff0000 52%, #c90000 100%);
  box-shadow: 0 8px 22px rgba(255, 0, 0, .22);
}
.foot-social-link.foot-social-link--youtube:hover {
  color: #fff;
  border-color: rgba(255,255,255,.5);
  background: linear-gradient(145deg, #ff5959 0%, #ff1818 52%, #df0000 100%);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 30px rgba(255, 0, 0, .36);
}
.foot-social-link.foot-social-link--instagram {
  color: #fff;
  border-color: rgba(255,255,255,.24);
  background: linear-gradient(135deg, #833ab4 0%, #c13584 34%, #e1306c 60%, #fd1d1d 78%, #fcb045 100%);
  box-shadow: 0 8px 22px rgba(225, 48, 108, .22);
}
.foot-social-link.foot-social-link--instagram:hover {
  color: #fff;
  border-color: rgba(255,255,255,.5);
  background: linear-gradient(135deg, #9b42c9 0%, #d23b91 34%, #f13c78 60%, #ff3232 78%, #ffc15c 100%);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 30px rgba(225, 48, 108, .38);
}
.footer h4 { color: #fff; font-size: 0.85rem; }
.footer ul { display: grid; gap: 10px; }
.footer ul li, .footer ul a { color: var(--text-dim); font-size: 0.9rem; transition: color .2s ease; }
.footer ul a:hover { color: var(--primary); }

.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-size: 0.82rem; color: var(--text-muted);
  flex-wrap: wrap; gap: 10px;
}

/* ===================== WHATSAPP FLOAT ===================== */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 12px 18px 12px 14px;
  border-radius: 100px;
  font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 12px 30px rgba(37,211,102,.4);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(37,211,102,.55); }
.wa-float svg { width: 24px; height: 24px; }
@media (max-width: 600px) {
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
}

/* Menú desplegable del botón flotante de WhatsApp (dos países) */
.wa-float-menu {
  position: fixed; right: 24px; bottom: 164px; z-index: 89;
  width: 264px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden;
  transform: translateY(10px) scale(.97);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.wa-float-menu.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.wa-menu-title {
  display: block; padding: 6px 12px 10px;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted);
}
.wa-menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px;
  color: var(--text); text-decoration: none;
  transition: background .2s ease;
}
.wa-menu-item:hover { background: rgba(37,211,102,.14); }
.wa-flag { font-size: 1.35rem; line-height: 1; }
.wa-menu-copy { display: flex; flex-direction: column; gap: 2px; }
.wa-menu-copy strong { font-size: .92rem; }
.wa-menu-copy small { font-size: .78rem; color: var(--text-muted); }
@media (max-width: 600px) {
  .wa-float-menu { right: 16px; bottom: 150px; }
}

/* ===================== SCROLL REVEAL ===================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1; transform: translateY(0);
}

/* ===================== IMG REVEAL + FLOAT =====================
   Reusable: add class "img-anim" to any <img>. It rises + fades +
   zooms in when scrolled into view (handled by the reveal observer
   in main.js), then floats gently and continuously. */
.img-anim {
  opacity: 0;
  transform: translateY(34px) scale(.94);
  transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1);
  will-change: transform, opacity;
}
.img-anim.in {
  opacity: 1;
  animation: imgFloat 6s ease-in-out 1s infinite;
}

@keyframes imgFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-12px) scale(1); }
}

/* Service image cards (servicios.html): they already slide in with the
   pinned scroll, so here we add only the continuous gentle float so the
   image visibly "moves" while the user looks at it. The inner <img>
   keeps its own hover zoom — different element, no conflict. */
.svc-right-card {
  animation: imgFloat 7s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .img-anim, .img-anim.in { opacity: 1; transform: none; animation: none !important; }
  .svc-right-card { animation: none !important; }
  .marquee-track, .float-chip, .agent-ico::after, .core-glow, .arch-line::after, .badge-live i { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ===================== SELECTION ===================== */
::selection { background: rgba(14,165,233,.35); color: #fff; }

/* ============================================================
   HERO VIDEO BACKGROUND
   ============================================================ */
.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  /* Overlay más controlado: oscurece el centro para que el título
     siempre se lea sobre el vídeo (legibilidad + look cinematográfico). */
  background:
    linear-gradient(180deg, rgba(3,5,11,.88) 0%, rgba(3,5,11,.62) 42%, rgba(3,5,11,.72) 70%, rgba(3,5,11,.95) 100%),
    radial-gradient(95% 75% at 50% 48%, rgba(3,5,11,.5), transparent 72%);
  pointer-events: none;
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  z-index: 9999;
  width: 0;
  transition: width .1s linear;
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-title);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}
.preloader-ring {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.preloader-text {
  margin-top: 14px;
  font-size: .8rem;
  color: var(--text-dim);
  font-weight: 500;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   CURSOR FOLLOWER
   ============================================================ */
.cursor-follower {
  position: fixed;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(14,165,233,.2);
  border: 1px solid var(--purple-border);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .3s ease, height .3s ease, background .3s ease, border-color .3s ease;
}
.cursor-follower.hover {
  width: 48px; height: 48px;
  background: rgba(14,165,233,.08);
  border-color: rgba(14,165,233,.2);
}
@media (hover: none) and (pointer: coarse) {
  .cursor-follower { display: none; }
}

/* ============================================================
   PARTICLES CANVAS
   ============================================================ */
#particlesCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  /* Capa pasiva de profundidad: UN solo flujo de luz suave,
     diagonal, baja saturación. Sin partículas, sin ruido. */
  background:
    radial-gradient(80% 55% at 72% 18%, rgba(14,165,233,.085), transparent 60%),
    radial-gradient(70% 45% at 18% 92%, rgba(34,211,238,.035), transparent 62%);
}
[data-theme="light"] #particlesCanvas {
  background:
    radial-gradient(80% 55% at 72% 18%, rgba(14,165,233,.05), transparent 60%),
    radial-gradient(70% 45% at 18% 92%, rgba(34,211,238,.028), transparent 62%);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 36px; right: 28px;
  z-index: 99;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(13, 20, 41, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(14,165,233,0.2);
  color: rgba(255,255,255,0.75);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.85);
  transition: opacity .5s cubic-bezier(.23,1,.32,1), visibility .5s ease, transform .5s cubic-bezier(.23,1,.32,1),
              background .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 0 rgba(14,165,233,0);
}
/* glowing ring */
.back-to-top::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-violet), var(--cyan));
  opacity: 0;
  z-index: -1;
  transition: opacity .45s ease;
  filter: blur(8px);
}
.back-to-top::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-violet));
  opacity: 0;
  z-index: -1;
  transition: opacity .4s ease;
}
/* tooltip */
.back-to-top .btt-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13,20,41,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(14,165,233,0.25);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 100px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  letter-spacing: .03em;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  background: rgba(13, 20, 41, 0.75);
  border-color: rgba(14,165,233,0.5);
  color: #fff;
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 14px 44px rgba(0,0,0,0.5), 0 0 30px rgba(14,165,233,0.25);
}
.back-to-top:hover::before { opacity: 0.7; }
.back-to-top:hover::after { opacity: 0.5; }
.back-to-top:hover .btt-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}
.back-to-top:active {
  transform: translateY(-2px) scale(0.95);
  transition: transform .15s ease;
}
.back-to-top svg { width: 22px; height: 22px; position: relative; z-index: 1; transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.back-to-top:hover svg { transform: translateY(-3px); }

/* pulse dot */
.back-to-top .btt-pulse {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(14,165,233,0.3);
  opacity: 0;
  pointer-events: none;
}
.back-to-top.visible .btt-pulse {
  animation: bttPulse 2.2s ease-out infinite;
}

@keyframes bttPulse {
  0%   { width: 50px; height: 50px; opacity: 0.6; border-width: 1.5px; }
  100% { width: 100px; height: 100px; opacity: 0; border-width: 0.5px; }
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 28px; right: 18px;
    width: 44px; height: 44px;
  }
  .back-to-top svg { width: 18px; height: 18px; }
  .back-to-top .btt-tooltip { display: none; }
  @keyframes bttPulse {
    0%   { width: 44px; height: 44px; opacity: 0.6; border-width: 1.5px; }
    100% { width: 80px; height: 80px; opacity: 0; border-width: 0.5px; }
  }
}

/* ============================================================
   THEME TOGGLE
   ============================================================ */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.theme-toggle:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
  transform: rotate(15deg);
}
.theme-toggle .theme-icon { width: 20px; height: 20px; }
.theme-toggle .sun { display: block; }
.theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .moon { display: block; }

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.section-divider {
  line-height: 0;
  overflow: hidden;
  background: transparent;
}
.section-divider svg {
  display: block;
  width: 100%;
  height: 40px;
}
.section-divider svg path {
  fill: var(--bg-2);
}
.section-light + .section-divider svg path,
.section-dark-alt + .section-divider svg path {
  fill: var(--bg);
}

/* ============================================================
   SKIP LINK (Accesibilidad)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10001;
  background: var(--surface);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: .9rem;
  transition: top .3s ease;
}
.skip-link:focus { top: 16px; }

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9990;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  max-width: 480px;
  width: calc(100% - 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  transition: transform .5s cubic-bezier(.34,1.56,.64,1);
}
.cookie-consent.show { transform: translateX(-50%) translateY(0); }
.cookie-consent p { font-size: .85rem; color: var(--text-dim); line-height: 1.5; }
.cookie-consent a { color: var(--primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { flex: 1; }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9995;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 14px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .88rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
  transform: translateX(120%);
  opacity: 0;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .4s ease;
  max-width: 360px;
}
.toast.show {
  transform: translateX(0);
  opacity: 1;
}
.toast.toast-success { border-left: 3px solid #22c55e; }
.toast.toast-error { border-left: 3px solid #ef4444; }
.toast.toast-info { border-left: 3px solid var(--primary); }

/* ============================================================
   SERVICE BADGE (Estrella / Más solicitado)
   ============================================================ */
.service-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: .03em;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}

/* ============================================================
   MOBILE OVERLAY
   ============================================================ */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

/* ============================================================
   CONTACT GRID (para index.html y servicios.html)
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FORM STYLES
   ============================================================ */
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #fff;
  font-size: .9rem;
  font-family: var(--font-body);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}
.field select { cursor: pointer; }
.field select option { background: var(--surface); color: #fff; }
.field textarea { resize: vertical; min-height: 80px; }
.field.full { grid-column: 1 / -1; }
.form-msg {
  margin-top: 12px;
  font-size: .85rem;
  color: var(--text-dim);
}

/* Contact info list */
.contact-list {
  display: grid;
  gap: 16px;
}
.contact-list li {
  padding: 12px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--text-dim);
}
.contact-list li strong {
  display: block;
  color: #fff;
  font-size: .82rem;
  margin-bottom: 2px;
}

/* Alternate contact info items */
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.contact-info-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14,165,233,.15), rgba(14,165,233,.08));
  border: 1px solid rgba(14,165,233,.25);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-item strong { display: block; color: #fff; font-size: .85rem; }
.contact-info-item span { font-size: .85rem; color: var(--text-dim); }

/* ============================================================
   FORM GROUP (used in servicios.html)
   ============================================================ */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #fff;
  font-size: .9rem;
  font-family: var(--font-body);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}
.form-group textarea { resize: vertical; }

/* ============================================================
   PLAN FEATURED (tarjeta destacada)
   ============================================================ */
.plan-best {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--primary), #0284c7);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: .03em;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}

/* ============================================================
   KICKER / EYEBROW
   ============================================================ */
.kicker {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(14,165,233,.08);
  border: 1px solid rgba(14,165,233,.2);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ============================================================
   HERO GLOW GRAD (used in tecnologia.html)
   ============================================================ */
.hero-glow-grad {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(14,165,233,.25), transparent 60%);
  pointer-events: none;
}

/* ============================================================
   TECH HERO
   ============================================================ */
.tech-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

/* ============================================================
   ANIMATIONS — FadeIn
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ACCESIBILIDAD — Respetar "reducir movimiento"
   Para usuarios con sensibilidad al movimiento / vestibular.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .cursor-follower,
  #particlesCanvas { display: none !important; }
  .hero-video,
  .hero-robot-video { display: none !important; }
}

/* ============================================================
   PIRÁMIDE / EXPERIENCIA — sección cósmica animada (home)
   Triángulo con gradiente + estrellas + nodos con órbita.
   Siempre oscura (independiente del tema claro/oscuro).
   ============================================================ */
.dev-pyramid {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 170px 0 160px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 118%, #16314d 0%, transparent 60%),
    radial-gradient(ellipse at 50% -10%, #1a1136 0%, transparent 55%),
    linear-gradient(180deg, #060912, #04060e);
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

/* --- Campo de estrellas --- */
.pyramid-stars {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 25px 35px, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 120px 80px, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 205px 150px, rgba(160,210,255,.85), transparent),
    radial-gradient(1px 1px at 80px 220px, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 280px 60px, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 320px 255px, rgba(190,160,255,.7), transparent),
    radial-gradient(1px 1px at 45px 300px, rgba(255,255,255,.6), transparent);
  background-size: 340px 340px;
  opacity: .6;
  animation: pyrTwinkle 6s ease-in-out infinite;
}
.pyramid-stars-2 {
  background-size: 520px 520px;
  opacity: .4;
  animation: pyrTwinkle 9s ease-in-out infinite reverse, pyrDrift 70s linear infinite;
}
@keyframes pyrTwinkle { 0%,100% { opacity:.30; } 50% { opacity:.7; } }
@keyframes pyrDrift { from { background-position: 0 0; } to { background-position: 520px 260px; } }

/* --- Red neuronal ambiental --- */
.pyramid-neural {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .76;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 92% 88% at 50% 50%, #000 38%, rgba(0,0,0,.72) 68%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 88% at 50% 50%, #000 38%, rgba(0,0,0,.72) 68%, transparent 100%);
}

/* Aura contenida: hace protagonista al tetraedro sin tapar el texto. */
.pyramid-stage::before {
  content: "";
  position: absolute;
  inset: 9%;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(125,211,252,.16) 0%, rgba(34,211,238,.10) 24%, rgba(14,165,233,.055) 47%, transparent 72%);
  filter: blur(14px);
  animation: pyrAuraBreath 5.2s ease-in-out infinite;
}
.pyramid-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14%;
  z-index: 0;
  width: 58%;
  height: 12%;
  border-radius: 50%;
  pointer-events: none;
  transform: translateX(-50%) scaleY(.38);
  background: radial-gradient(ellipse, rgba(103,232,249,.28), rgba(14,165,233,.10) 42%, transparent 72%);
  filter: blur(12px);
  animation: pyrFloorPulse 4.4s ease-in-out infinite;
}
@keyframes pyrAuraBreath {
  0%,100% { transform: scale(.94); opacity: .62; }
  50% { transform: scale(1.06); opacity: 1; }
}
@keyframes pyrFloorPulse {
  0%,100% { opacity: .48; transform: translateX(-50%) scale(.88,.34); }
  50% { opacity: .9; transform: translateX(-50%) scale(1.08,.44); }
}

.pyramid-orbit {
  box-shadow: inset 0 0 28px rgba(34,211,238,.035), 0 0 34px rgba(14,165,233,.06);
}
.pyramid-core::before,
.pyramid-core::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.pyramid-core::before {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(165,243,252,.38);
  box-shadow: 0 0 18px rgba(34,211,238,.16);
}
.pyramid-core::after {
  width: 68px;
  height: 68px;
  border: 1px dashed rgba(125,211,252,.22);
  animation: pyrSpin 16s linear infinite;
}
@media (max-width: 640px) {
  .pyramid-neural { opacity: .52; }
}

/* --- Layout --- */
.pyramid-grid {
  position: relative; z-index: 2;
  display: grid;
  width: 100%;
  max-width: 1600px;
  grid-template-columns: minmax(320px, 400px) 560px minmax(320px, 400px);
  align-items: start;
  justify-content: center;
  column-gap: clamp(40px, 3.2vw, 64px);
}
.pyramid-text { width: 100%; max-width: 400px; padding-top: 100px; }
.pyramid-left  { justify-self: end; text-align: right; }
.pyramid-right { justify-self: start; text-align: left; }
.pyramid-kicker {
  display: block;
  font-family: var(--font-display);
  font-size: .9rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: #9fabc2; margin-bottom: 22px;
  white-space: nowrap;
}
.pyramid-kicker strong { color: var(--cyan); font-weight: 700; }
.dev-pyramid h2,
[data-theme="light"] .dev-pyramid h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.16; letter-spacing: .02em; text-transform: uppercase;
  margin-bottom: 24px;
}
.dev-pyramid p,
[data-theme="light"] .dev-pyramid p {
  color: #c4cee0; font-size: 1.05rem; line-height: 1.65; margin-bottom: 16px;
}
.dev-pyramid p strong { color: #fff; font-weight: 600; }

/* --- Escenario del triángulo --- */
.pyramid-stage { position: relative; width: 560px; height: 560px; margin: 0 auto; }

/* pyramid-frame / pyramid-shape / pyramid-net → replaced by canvas tetrahedron */

/* --- Órbita punteada giratoria --- */
.pyramid-orbit {
  position: absolute; left: 50%; top: 50%;
  width: 360px; height: 360px; border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,.42);
  transform: translate(-50%, -50%);
  animation: pyrSpin 28s linear infinite;
  z-index: 2; pointer-events: none;
}
.pyramid-orbit-2 {
  width: 260px; height: 260px;
  border-color: rgba(34,211,238,.22);
  animation: pyrSpinRev 40s linear infinite;
}
@keyframes pyrSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes pyrSpinRev { to { transform: translate(-50%, -50%) rotate(-360deg); } }

/* --- Líneas de conexión (red) --- */
.pyramid-net {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 2; pointer-events: none; overflow: visible;
}
.pyramid-net polygon {
  fill: rgba(34,211,238,.025);
  stroke: rgba(150,195,255,.5);
  stroke-width: 1.3;
  stroke-dasharray: 5 9;
  filter: drop-shadow(0 0 4px rgba(14,165,233,.45));
  animation: pyrNetDash 2.6s linear infinite;
}
@keyframes pyrNetDash { to { stroke-dashoffset: -28; } }

/* --- Núcleo central --- */
.pyramid-core {
  position: absolute; left: 50%; top: 50%;
  width: 12px; height: 12px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #eafcff, #6fe4f7 55%, rgba(34,211,238,0));
  box-shadow: 0 0 14px rgba(34,211,238,.9), 0 0 36px rgba(34,211,238,.5);
  z-index: 2; pointer-events: none;
  animation: pyrCorePulse 3s ease-in-out infinite;
}
@keyframes pyrCorePulse {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: .9; }
  50%     { transform: translate(-50%,-50%) scale(1.35); opacity: 1; }
}

/* --- Nodos (alineados sobre la órbita) --- */
.pyramid-node {
  position: absolute; z-index: 3;
  width: 86px; height: 86px;
}
.node-top   { left: 50%; top: 15.2%; transform: translate(-50%, -50%); }
.node-left  { left: 21%; top: 67%;   transform: translate(-50%, -50%); }
.node-right { left: 79%; top: 67%;   transform: translate(-50%, -50%); }

.node-circle {
  width: 86px; height: 86px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 28%, #6fe4f7, #18b9da 58%, #0d8fb0);
  box-shadow:
    0 0 0 6px rgba(34,211,238,.10),
    0 0 24px rgba(34,211,238,.6),
    0 0 56px rgba(34,211,238,.32);
  animation: pyrNodePulse 3s ease-in-out infinite;
}
.node-circle svg { width: 38px; height: 38px; }
.node-left  .node-circle { animation-delay: 1s; }
.node-right .node-circle { animation-delay: 2s; }
@keyframes pyrNodePulse {
  0%,100% {
    box-shadow: 0 0 0 6px rgba(34,211,238,.10), 0 0 22px rgba(34,211,238,.5), 0 0 48px rgba(34,211,238,.28);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 0 11px rgba(34,211,238,.16), 0 0 34px rgba(34,211,238,.85), 0 0 72px rgba(34,211,238,.45);
    transform: translateY(-4px);
  }
}
.node-label {
  position: absolute; top: calc(100% + 9px); left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: #e2ecf7; text-shadow: 0 1px 8px rgba(0,0,0,.7);
}

/* --- Chevron --- */
.pyramid-scroll {
  position: absolute; bottom: 16px; left: 50%; z-index: 4;
  width: 42px; height: 42px; display: grid; place-items: center;
  color: var(--cyan); transform: translateX(-50%);
  animation: pyrChevron 2.2s ease-in-out infinite;
}
.pyramid-scroll svg { width: 26px; height: 26px; }
.pyramid-scroll:hover { color: #fff; }
@keyframes pyrChevron {
  0%,100% { transform: translate(-50%, 0); opacity: .7; }
  50%     { transform: translate(-50%, 8px); opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 1360px) {
  .pyramid-grid { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .pyramid-left, .pyramid-right { text-align: center; max-width: 620px; padding-top: 0; }
  .pyramid-left  { justify-self: center; order: 1; }
  .pyramid-stage { order: 2; margin: 10px auto 0; }
  .pyramid-right { justify-self: center; order: 3; }
  .pyramid-scroll { display: none; }
}
@media (max-width: 640px) {
  .pyramid-stage { width: min(560px, calc(100vw - 48px)); height: auto; aspect-ratio: 1; }
  .pyramid-orbit { width: 210px; height: 210px; }
  .pyramid-orbit-2 { width: 152px; height: 152px; }
  .pyramid-node { width: 58px; height: 58px; }
  .node-circle { width: 58px; height: 58px; }
  .node-circle svg { width: 26px; height: 26px; }
  .node-label { font-size: .62rem; }
}

/* ============================================================
   SOLUCIONES INTELIGENTES — sección clara con vórtice de
   partículas (canvas). Siempre clara (independiente del tema).
   ============================================================ */
.smart-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 200px 0 190px;
  text-align: center;
  color: #0f172a;
  background:
    radial-gradient(60% 50% at 15% 8%, rgba(236,72,153,.07), transparent 60%),
    radial-gradient(55% 50% at 85% 92%, rgba(59,130,246,.07), transparent 60%),
    linear-gradient(180deg, #eef0f5, #e7e9ef);
}
.smart-vortex {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.smart-inner { position: relative; z-index: 2; }

.smart-head h2,
[data-theme="light"] .smart-head h2 {
  color: #0f172a;
  font-weight: 800;
  font-size: clamp(2.1rem, 5.6vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  text-transform: none;
  margin: 0 auto;
}
.smart-underline {
  display: block;
  width: 180px; height: 5px; border-radius: 4px;
  margin: 28px auto 24px;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8, #7dd3fc);
}
.smart-sub {
  color: #475569;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  max-width: 680px; margin: 0 auto;
}

.smart-cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 1100px; margin: 100px auto 0;
}
.smart-col { padding: 4px 30px; }
.smart-col + .smart-col { border-left: 1px solid rgba(236,72,153,.45); }
.smart-col h3,
[data-theme="light"] .smart-col h3 {
  color: #0f172a; font-weight: 800;
  font-size: 1.32rem; line-height: 1.22; letter-spacing: -.01em;
  margin-bottom: 12px; text-transform: none;
}
.smart-col p { color: #475569; font-size: .98rem; line-height: 1.65; }

.smart-chevron {
  position: absolute; left: 50%; z-index: 3;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: #475569; transform: translateX(-50%);
}
.smart-chevron svg { width: 26px; height: 26px; }
.smart-chevron:hover { color: #0f172a; }
.smart-chevron-up   { top: 20px;    animation: pyrChevronUp 2.4s ease-in-out infinite; }
.smart-chevron-down { bottom: 20px; animation: pyrChevron   2.4s ease-in-out infinite; }
@keyframes pyrChevronUp {
  0%,100% { transform: translate(-50%, 0); opacity: .7; }
  50%     { transform: translate(-50%, -7px); opacity: 1; }
}

@media (max-width: 760px) {
  .smart-cols { grid-template-columns: 1fr; max-width: 440px; }
  .smart-col { padding: 0 20px; }
  .smart-col + .smart-col {
    border-left: 0;
    border-top: 1px solid rgba(236,72,153,.35);
    margin-top: 30px; padding-top: 30px;
  }
}

/* ============================================================
   SHOWCASE — sección de soluciones con fondo a pantalla
   completa que cambia por pestañas (cross-fade + ken burns).
   ============================================================ */
.showcase {
  position: relative;
  display: flex; align-items: center;
  min-height: 100vh;
  padding: 110px 0;
  overflow: hidden;
  isolation: isolate;
  background: #04060e;
}
.showcase-bgs { position: absolute; inset: 0; z-index: 0; }
.showcase-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.1s ease;
}
.showcase-bg.active {
  opacity: 1;
  animation: showcaseZoom 9s ease-out forwards;
}
@keyframes showcaseZoom { from { transform: scale(1.06); } to { transform: scale(1.16); } }

/* Imagen de fondo del showcase */
.showcase-img {
  position: absolute; inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.showcase-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(4,6,14,.94) 0%, rgba(4,6,14,.66) 36%, rgba(4,6,14,.55) 66%, rgba(4,6,14,.85) 100%),
    linear-gradient(180deg, rgba(4,6,14,.55), rgba(4,6,14,.55));
}

.showcase-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 330px 1fr; gap: 56px;
  align-items: center; width: 100%;
}

/* --- Pestañas --- */
.showcase-tabs { display: flex; flex-direction: column; gap: 4px; }
.showcase-tab {
  position: relative;
  text-align: left;
  padding: 20px 18px 22px;
  border-top: 1px solid rgba(255,255,255,.18);
  border-radius: 0 0 12px 12px;
  transition: background .35s ease;
}
.showcase-tab::before {
  content: ''; position: absolute; top: -1px; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--primary));
  box-shadow: 0 0 12px rgba(34,211,238,.5);
  transition: width .45s cubic-bezier(.4,0,.2,1);
}
.showcase-tab .st-title {
  display: block;
  font-family: var(--font-display); font-weight: 700; font-size: 1.06rem;
  color: #fff; margin-bottom: 8px; letter-spacing: .01em;
}
.showcase-tab .st-desc {
  display: block; font-size: .85rem; line-height: 1.5; color: #9aa6ba;
  transition: color .3s ease;
}
.showcase-tab:hover { background: rgba(255,255,255,.045); }
.showcase-tab:hover .st-desc { color: #c2cbdc; }
.showcase-tab.active {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}
.showcase-tab.active::before { width: 100%; }
.showcase-tab.active .st-desc { color: #d0d8e6; }

/* --- Paneles --- */
.showcase-panels { position: relative; min-height: 380px; }
.showcase-panel {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  opacity: 0; visibility: hidden; transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease, visibility .65s;
  pointer-events: none;
}
.showcase-panel.active {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
}
.showcase-panel .kicker { margin-bottom: 18px; }
.showcase-panel h2 {
  color: #fff; font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 22px; text-shadow: 0 4px 30px rgba(0,0,0,.5);
}
.showcase-panel p {
  color: #d6dded; font-size: 1.06rem; line-height: 1.65;
  max-width: 680px; margin: 0 auto 16px;
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
}
.showcase-panel .btn { margin-top: 16px; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .showcase { min-height: auto; padding: 90px 0; }
  .showcase-grid { grid-template-columns: 1fr; gap: 36px; }
  .showcase-panels { min-height: 0; order: 1; }
  .showcase-panel { position: relative; opacity: 0; height: 0; overflow: hidden; transform: none; }
  .showcase-panel.active { height: auto; }
  .showcase-tabs { order: 2; }
  .showcase-overlay {
    background:
      linear-gradient(180deg, rgba(4,6,14,.7) 0%, rgba(4,6,14,.78) 100%);
  }
}
@media (max-width: 560px) {
  .showcase-panel h2 { font-size: 1.8rem; }
  .showcase-panel p { font-size: .98rem; }
  .showcase-tab { padding: 16px 14px 18px; }
}

/* ===================== UBICACIÓN / MAPA ===================== */
.ubicacion-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .ubicacion-grid { grid-template-columns: 1fr; gap: 36px; }
}

.ubicacion-info {
  display: grid;
  gap: 14px;
}

.ubicacion-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .3s ease, background .3s ease;
}
.ubicacion-card:hover {
  border-color: rgba(14,165,233,.35);
  background: rgba(14,165,233,.04);
}
.ubicacion-card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14,165,233,.15), rgba(14,165,233,.08));
  border: 1px solid rgba(14,165,233,.25);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.ubicacion-card strong {
  display: block;
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.ubicacion-card span {
  font-size: .84rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.ubicacion-mapa {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
}
.ubicacion-mapa iframe {
  display: block;
  filter: grayscale(30%);
}
.ubicacion-mapa-caption {
  text-align: center;
  padding: 10px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.ubicacion-mapa-caption small {
  color: var(--text-dim);
  font-size: .78rem;
}
.ubicacion-mapa-caption a {
  color: var(--primary);
  text-decoration: none;
}
.ubicacion-mapa-caption a:hover {
  text-decoration: underline;
}
