/* ============================================================
   AURAE AI PREMIUM — premium.css
   Glassmorphism · Cursor-reactive · GSAP helpers · Mobile-first
   ============================================================ */

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d0d0d;
  --surface:   rgba(26, 26, 26, 0.85);
  --surface2:  rgba(38, 38, 38, 0.7);
  --border:    rgba(232, 160, 32, 0.12);
  --border2:   rgba(232, 160, 32, 0.30);
  --amber:     #E8A020;
  --amber-l:   #F2C25C;
  --amber-d:   #B87A12;
  --text:      #F5F5F5;
  --text-dim:  rgba(245, 245, 245, 0.60);
  --text-muted:rgba(245, 245, 245, 0.35);
  --grad:      linear-gradient(135deg, #B87A12, #E8A020, #F2C25C);
  --grad-h:    linear-gradient(90deg,  #B87A12, #E8A020, #F2C25C);
  --font-display: 'Orbitron', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
  --radius:    10px;
  --dur-fast:  150ms;
  --dur-norm:  320ms;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- PRELOADER ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
  pointer-events: all;
}

/* Brand lion mark */
.pre-logo-img {
  width: clamp(120px, 24vw, 180px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 34px rgba(232, 160, 32, 0.45));
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  will-change: opacity, transform;
}

/* Brand name under the lion */
.pre-logo-name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-top: -4px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(10px);
  will-change: opacity, transform;
}
.pre-logo-name span { -webkit-text-fill-color: var(--amber); }

/* Fallback text logo (used only if image fails to load) */
.pre-logo {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.22em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(18px);
}

.pre-logo span {
  display: inline-block;
  background: none;
  -webkit-text-fill-color: var(--text-dim);
  font-size: 0.45em;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  display: block;
  margin-top: 6px;
}

.pre-bar-wrap {
  width: min(280px, 60vw);
  height: 2px;
  background: rgba(232, 160, 32, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.pre-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-h);
  border-radius: 2px;
}

/* ---------- CURSOR (desktop only) ---------- */
@media (pointer: fine) {
  .cursor-dot, .cursor-ring {
    pointer-events: none;
    position: fixed;
    z-index: 9998;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
  }
  .cursor-dot {
    width: 5px; height: 5px;
    background: var(--amber);
    top: 0; left: 0;
  }
  .cursor-ring {
    width: 26px; height: 26px;
    border: 1.5px solid rgba(232, 160, 32, 0.5);
    top: 0; left: 0;
  }
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 68px;
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.4s;
}
.nav.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,0.5); }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex; gap: 32px; align-items: center;
}
.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  transition: color var(--dur-norm);
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--amber); }

.nav-cta {
  padding: 9px 22px;
  background: var(--amber);
  color: #0d0d0d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--dur-norm), transform var(--dur-fast);
}
.nav-cta:hover {
  background: var(--amber-l);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  width: 26px; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- LANGUAGE SWITCH ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--border2); border-radius: 40px;
  padding: 3px; background: rgba(232,160,32,0.05);
}
.lang-btn {
  font-family: var(--font-display); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.08em; color: var(--text-dim);
  padding: 5px 9px; border-radius: 40px; line-height: 1;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.lang-btn:hover { color: var(--amber); }
.lang-btn.active { color: #0d0d0d; background: var(--amber); }
.lang-switch-mobile { display: none; }

/* ---------- MOBILE NAV ---------- */
.mobile-menu {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0;
  background: rgba(13,13,13,0.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 24px clamp(20px,5vw,60px) 32px;
  z-index: 199;
  flex-direction: column; gap: 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1rem;
  color: var(--text-dim);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--dur-norm);
}
.mobile-menu a:hover { color: var(--amber); }

/* ---------- HERO SECTION ---------- */
.hero {
  min-height: 100svh;
  padding: clamp(104px, 13vh, 140px) clamp(20px, 5vw, 80px) clamp(40px, 6vh, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(232,160,32,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 70%, rgba(232,160,32,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border2);
  border-radius: 40px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 32px;
  background: rgba(232,160,32,0.06);
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* Word-reveal hero headline */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  overflow: visible;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero-word {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

.hero-headline .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(16px);
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px;
  background: var(--amber);
  color: #0d0d0d;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--dur-norm), transform var(--dur-fast), box-shadow var(--dur-norm);
}
.btn-primary:hover {
  background: var(--amber-l);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,160,32,0.30);
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border: 1px solid var(--border2);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: border-color var(--dur-norm), color var(--dur-norm), transform var(--dur-fast);
}
.btn-secondary:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
}

/* Hero stats bar */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
}

.stat-item {
  background: rgba(13, 13, 13, 0.90);
  padding: 18px 16px;
  text-align: center;
  position: relative;
}
.stat-item::after {
  content: '';
  position: absolute; inset-x: 0; bottom: 0; height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-expo);
}
.stat-item:hover::after { transform: scaleX(1); }

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Hero visual (right col) */
.hero-visual {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateX(30px);
}

.hero-dashboard {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 32px);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(232,160,32,0.04);
}

.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.dash-dots span:nth-child(1) { background: #ff5f57; }
.dash-dots span:nth-child(2) { background: #ffbd2e; }
.dash-dots span:nth-child(3) { background: #28ca42; }
.dash-title {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.dash-metric-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 20px;
}
.dash-metric {
  background: rgba(232,160,32,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  transition: border-color var(--dur-norm), background var(--dur-norm);
}
.dash-metric:hover { border-color: var(--border2); background: rgba(232,160,32,0.08); }
.dash-metric-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.dash-metric-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--amber);
}
.dash-metric-delta {
  font-size: 0.68rem;
  color: #28ca42;
  margin-top: 3px;
}

.dash-bar-section { margin-bottom: 16px; }
.dash-bar-label {
  display: flex; justify-content: space-between;
  font-size: 0.72rem; color: var(--text-dim);
  margin-bottom: 8px;
}
.dash-bar-track {
  height: 5px;
  background: rgba(232,160,32,0.1);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 8px;
}
.dash-bar-fill {
  height: 100%;
  background: var(--grad-h);
  border-radius: 5px;
  transform-origin: left;
}

.dash-activity { display: flex; flex-direction: column; gap: 8px; }
.dash-activity-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.72rem; color: var(--text-dim);
}
.dash-activity-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber); flex-shrink: 0;
}
.dash-activity-dot.green { background: #28ca42; }

/* ---------- SECTION COMMONS ---------- */
.section {
  padding: clamp(52px, 6.5vw, 88px) clamp(20px, 5vw, 80px);
  position: relative;
}

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-tag::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--amber);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-sub {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 48px;
}

.section-header { max-width: 640px; margin-bottom: 0; }
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
}

/* ---------- TICKER ---------- */
.ticker-section {
  padding: 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(232,160,32,0.03);
}

.ticker-track {
  display: flex;
  gap: 60px;
  animation: ticker-move 28s linear infinite;
  white-space: nowrap;
  padding: 16px 0;
}
.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker-move {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-item {
  display: flex; align-items: center; gap: 16px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}
.ticker-item strong { color: var(--amber); }
.ticker-sep {
  width: 4px; height: 4px;
  background: var(--border2);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- GLASS CARDS (cursor-reactive) ---------- */
.card-reactive {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    140deg,
    rgba(255,255,255,0.04) 0%,
    rgba(232,160,32,0.015) 100%
  ), rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 14px;
  --mx: 50%;
  --my: 50%;
  transition: border-color var(--dur-norm), box-shadow var(--dur-norm), transform 0.25s var(--ease-expo);
}
.card-reactive:hover {
  border-color: var(--border2);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
  transform: translateY(-3px);
}

/* Cursor-following glow overlay */
.card-glow {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 220px at var(--mx) var(--my),
    rgba(232, 160, 32, 0.13) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s;
}
.card-reactive:hover .card-glow { opacity: 1; }

/* Sweep light */
.card-sweep {
  position: absolute; top: 0; bottom: 0;
  width: 60%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(232,160,32,0.06),
    transparent
  );
  left: -80%;
  z-index: 1;
  pointer-events: none;
  transition: none;
}
.card-reactive:hover .card-sweep {
  transition: left 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  left: 140%;
}

/* Card inner content above overlays */
.card-body {
  position: relative; z-index: 2;
}

/* ---------- PROBLEMA SECTION ---------- */
.problema-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.problema-card {
  padding: clamp(20px, 3vw, 28px);
}

.problema-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(232,160,32,0.1);
  border: 1px solid var(--border);
  font-size: 1.3rem;
  margin-bottom: 16px;
  transition: background var(--dur-norm);
}
.card-reactive:hover .problema-icon { background: rgba(232,160,32,0.18); }

.problema-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  color: var(--text);
}
.problema-desc { font-size: 0.85rem; color: var(--text-dim); line-height: 1.65; }

/* ---------- SOLUCIÓN / METRICS ---------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.metric-card {
  padding: clamp(22px, 3vw, 32px);
  text-align: center;
}

.metric-value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 10px;
}
.metric-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ---------- SPHERE SECTION ---------- */
.sphere-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.sphere-canvas-wrap {
  display: flex; align-items: center; justify-content: center;
}

#servicesSphere {
  width: min(400px, 90vw);
  height: min(400px, 90vw);
  cursor: grab;
}

.sphere-content { max-width: 480px; }

.sphere-list { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.sphere-list-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color var(--dur-norm), background var(--dur-norm);
  cursor: default;
}
.sphere-list-item:hover {
  border-color: var(--border);
  background: rgba(232,160,32,0.04);
}
.sphere-bullet {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
  margin-top: 7px; flex-shrink: 0;
}
.sphere-list-item h4 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.sphere-list-item p { font-size: 0.82rem; color: var(--text-dim); }

/* ---------- ENTREGABLES ---------- */
.entregables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.entregable-card {
  padding: clamp(18px, 2.5vw, 26px);
  display: flex; flex-direction: column; gap: 12px;
}

.entregable-number {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--amber);
  opacity: 0.7;
}
.entregable-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}
.entregable-desc { font-size: 0.8rem; color: var(--text-dim); }

/* ---------- PROCESO STEPS ---------- */
.proceso-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0;
  position: relative;
}

.paso {
  padding: clamp(20px, 3vw, 32px) clamp(16px, 2.5vw, 24px);
  position: relative;
}

.paso::before {
  content: '';
  position: absolute; top: 36px; right: 0;
  width: 1px; height: calc(100% - 72px);
  background: var(--border);
}
.paso:last-child::before { display: none; }

.paso-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.6;
}
.paso-title {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.paso-desc { font-size: 0.78rem; color: var(--text-dim); line-height: 1.6; }

/* ---------- SISTEMAS PANELS ---------- */
.sistemas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.sistema-card {
  padding: clamp(20px, 3vw, 28px);
}

.sistema-icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.sistema-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.sistema-list { display: flex; flex-direction: column; gap: 8px; }
.sistema-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.82rem; color: var(--text-dim);
}
.sistema-list li::before {
  content: '→';
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- INDUSTRIAS ---------- */
.industrias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.industria-card {
  padding: clamp(18px, 2.5vw, 26px);
  text-align: center;
}
.industria-icon { font-size: 2rem; margin-bottom: 12px; }
.industria-name {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.industria-desc { font-size: 0.78rem; color: var(--text-dim); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur-norm);
}
.faq-item.open, .faq-item:hover { border-color: var(--border2); }

.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color var(--dur-norm);
}
.faq-item.open .faq-question { color: var(--amber); }

.faq-icon {
  width: 22px; height: 22px;
  border: 1px solid var(--border2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  transition: transform 0.3s, background 0.3s;
  color: var(--amber);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(232,160,32,0.12);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 20px 18px;
}
.faq-answer p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.7; }

/* ---------- CTA FINAL ---------- */
.cta-section {
  text-align: center;
  padding: clamp(60px, 8vw, 104px) clamp(20px, 5vw, 80px);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(600px, 80vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}
.cta-section::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(232,160,32,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; }

.cta-section .section-tag { justify-content: center; }
.cta-section .section-title { font-size: clamp(1.8rem, 4vw, 3.2rem); margin: 0 auto 16px; max-width: 700px; }
.cta-section .section-sub { margin: 0 auto 40px; text-align: center; }

.cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: clamp(50px, 8vw, 80px) clamp(20px, 5vw, 80px) clamp(30px, 5vw, 48px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  margin-bottom: 48px;
}

.footer-brand-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.footer-brand-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: border-color var(--dur-norm), color var(--dur-norm), background var(--dur-norm);
}
.footer-social a:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(232,160,32,0.08);
}

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.84rem;
  color: var(--text-dim);
  transition: color var(--dur-norm);
}
.footer-col ul li a:hover { color: var(--amber); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }
.footer-legal {
  display: flex; gap: 20px;
}
.footer-legal a {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color var(--dur-norm);
}
.footer-legal a:hover { color: var(--amber); }

/* ---------- WHATSAPP FLOAT ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 100;
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
  font-size: 1.5rem;
  transition: transform var(--dur-norm), box-shadow var(--dur-norm);
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.5);
}

/* ---------- DIVIDER ---------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 clamp(20px, 5vw, 80px);
}

/* ---------- MOBILE CAROUSEL (scroll-snap) ---------- */
@media (max-width: 780px) {
  .card-grid-swipe {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    gap: 14px;
    scroll-snap-type: x mandatory;
    padding: 4px 20px 24px;
    margin: 0 -20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .card-grid-swipe::-webkit-scrollbar { display: none; }
  .card-grid-swipe > * {
    flex-shrink: 0;
    width: min(82vw, 300px);
    scroll-snap-align: start;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }

  .sphere-section { grid-template-columns: 1fr; }
  .sphere-canvas-wrap { order: -1; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-toggle { display: flex; }
  .lang-switch-mobile { display: inline-flex; align-self: flex-start; margin-top: 4px; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }

  .proceso-steps { grid-template-columns: 1fr; }
  .paso::before  { display: none; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand-col { order: -1; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2rem; }
  .hero-stats    { grid-template-columns: 1fr 1fr; }
  .hero-ctas     { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

/* ============================================================
   SHARED PAGE HELPERS (used by nosotros / contacto / clientes)
   ============================================================ */
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
}

/* ============================================================
   ANIMATED BACKGROUND — aurora blobs + neural particles
   ============================================================ */
.bg-fx {
  position: fixed; inset: 0; z-index: -3; overflow: hidden;
  pointer-events: none; background: var(--bg);
}
.aura-blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .55; will-change: transform;
  background: radial-gradient(circle, rgba(232,160,32,.35) 0%, rgba(232,160,32,.08) 45%, transparent 70%);
}
.aura-blob.a1 { width: 46vw; height: 46vw; top: -8vw; left: -6vw; animation: auraDrift1 26s ease-in-out infinite; }
.aura-blob.a2 { width: 40vw; height: 40vw; top: 42%; right: -10vw; opacity: .4;
  background: radial-gradient(circle, rgba(242,194,92,.30) 0%, rgba(232,160,32,.06) 45%, transparent 70%);
  animation: auraDrift2 32s ease-in-out infinite; }
.aura-blob.a3 { width: 34vw; height: 34vw; bottom: -8vw; left: 30%; opacity: .32;
  background: radial-gradient(circle, rgba(184,122,18,.34) 0%, rgba(184,122,18,.05) 50%, transparent 72%);
  animation: auraDrift3 38s ease-in-out infinite; }

@keyframes auraDrift1 { 0%,100%{transform:translate3d(0,0,0) scale(1)} 50%{transform:translate3d(6vw,4vw,0) scale(1.12)} }
@keyframes auraDrift2 { 0%,100%{transform:translate3d(0,0,0) scale(1)} 50%{transform:translate3d(-5vw,-6vw,0) scale(1.15)} }
@keyframes auraDrift3 { 0%,100%{transform:translate3d(0,0,0) scale(1)} 50%{transform:translate3d(4vw,-3vw,0) scale(1.1)} }

@media (max-width: 780px) {
  .aura-blob { filter: blur(50px); opacity: .4; }
  .aura-blob.a1 { width: 70vw; height: 70vw; }
  .aura-blob.a2 { width: 65vw; height: 65vw; }
  .aura-blob.a3 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .aura-blob { animation: none; }
}

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label-sm {
  font-family: var(--font-display); font-size: .48rem; letter-spacing: .4em;
  color: var(--amber); text-transform: uppercase; margin-bottom: .8rem; display: block;
}
.section-divider-line { width: 44px; height: 2px; background: var(--grad-h); margin-bottom: 1.8rem; }

.h2-display {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700; line-height: 1.2; letter-spacing: .02em; margin-bottom: 1.2rem;
}
.h2-display .g {
  background: linear-gradient(90deg, #E8A020, #ffb947);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-lead { color: var(--text-dim); font-size: .96rem; line-height: 1.8; max-width: 560px; margin-bottom: 1.5rem; }

.btn-amber {
  display: inline-block; background: var(--amber); color: #0d0d0d; padding: .85rem 2rem;
  border-radius: 6px; font-family: var(--font-display); font-size: .6rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  transition: opacity .2s, transform .2s, box-shadow .2s; box-shadow: 0 0 28px rgba(232,160,32,.35);
}
.btn-amber:hover { opacity: .9; transform: translateY(-2px); box-shadow: 0 0 44px rgba(232,160,32,.5); }

.btn-amber-outline {
  display: inline-block; background: transparent; color: var(--amber); padding: .85rem 1.8rem;
  border-radius: 6px; font-family: var(--font-display); font-size: .6rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; border: 1px solid rgba(232,160,32,.4); transition: all .2s;
}
.btn-amber-outline:hover { border-color: var(--amber); background: rgba(232,160,32,.08); }

/* Interior page hero (nosotros / contacto / clientes) */
.page-hero {
  padding: clamp(6.5rem, 11vw, 9rem) clamp(20px,5vw,80px) clamp(2.5rem, 5vw, 4rem);
  text-align: center; position: relative; z-index: 1;
}
.page-hero::before {
  content: ''; position: absolute; top: 0; left: 50%; width: min(560px, 90vw); height: 420px;
  background: radial-gradient(circle, rgba(232,160,32,.10) 0%, transparent 70%);
  transform: translateX(-50%); border-radius: 50%; pointer-events: none; z-index: -1;
}
.page-hero .section-label-sm,
.page-hero .section-divider-line { display: inline-block; }
.page-hero .section-divider-line { margin: 0 auto 1.4rem; }
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800;
  line-height: 1.15; letter-spacing: .01em; margin-bottom: 1.2rem;
}
.page-hero h1 .accent {
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-hero .lead { color: var(--text-dim); font-size: 1rem; line-height: 1.8; max-width: 620px; margin: 0 auto; }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track { animation: none; }
}

/* ============================================================
   CINEMATIC WEBSCROLL (transición al portal)
   ============================================================ */
.cinematic-scroll-section { position: relative; height: 300vh; background: #050608; }
.cinematic-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; isolation: isolate; }
.cinematic-frame {
  position: absolute; inset: 0; z-index: 1;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  will-change: transform, opacity;
}
.cinematic-frame-1 { background-image: url("assets/img/hero/hero-webscroll-01.jpg"); transform: scale(1); transform-origin: 55% 52%; }
.cinematic-frame-2 { background-image: url("assets/img/hero/hero-webscroll-02.jpg"); opacity: 0; transform: scale(1.05); transform-origin: 50% 42%; }
.cinematic-frame-3 { background-image: url("assets/img/hero/hero-webscroll-03.jpg"); opacity: 0; transform: scale(1.3); transform-origin: 50% 34%; }
.cinematic-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,6,8,.92) 0%, rgba(5,6,8,.58) 34%, rgba(5,6,8,.18) 68%, rgba(5,6,8,.45) 100%),
    linear-gradient(180deg, rgba(5,6,8,.2) 0%, rgba(5,6,8,.55) 78%, rgba(5,6,8,.95) 100%);
}
.cinematic-content {
  position: relative; z-index: 3; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  width: min(560px, calc(100% - 40px)); margin-left: clamp(24px, 8vw, 120px);
}
.cinematic-kicker {
  color: var(--amber); letter-spacing: .24em; text-transform: uppercase;
  font-family: var(--font-display); font-size: .72rem; font-weight: 700; margin-bottom: 16px;
}
.cinematic-content h2 {
  color: #f5f1e8; font-family: var(--font-body); font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 6.2rem); line-height: .95; letter-spacing: -.045em; margin: 0 0 24px;
}
.cinematic-content p {
  color: rgba(245,245,245,.68); font-size: clamp(.95rem, 1.2vw, 1.12rem);
  line-height: 1.75; max-width: 520px;
}
.cinematic-cta { margin-top: 30px; align-self: flex-start; will-change: transform; }
@media (max-width: 780px) {
  /* Mobile: sticky+scroll-zoom no es fiable en móviles → versión estática
     mostrando el reveal final (frame 03) con el texto y el CTA encima. */
  .cinematic-scroll-section { height: auto; }
  .cinematic-sticky { position: relative; height: auto; min-height: 100svh; }
  .cinematic-frame { transform: none !important; }
  .cinematic-frame-1, .cinematic-frame-2 { opacity: 0 !important; }
  .cinematic-frame-3 { opacity: 1 !important; background-position: center 34%; }
  .cinematic-content {
    min-height: 100svh; margin-left: 20px;
    padding: 96px 20px 64px 0; justify-content: flex-end;
  }
  .cinematic-copy { opacity: 1 !important; }
  .cinematic-overlay { background:
    linear-gradient(180deg, rgba(5,6,8,.35) 0%, rgba(5,6,8,.55) 55%, rgba(5,6,8,.9) 100%); }
}

/* ============================================================
   PREMIUM CARDS (sección problema)
   ============================================================ */
.problema-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2.5rem, 5vw, 6rem); align-items: start; }
@media (max-width: 900px) { .problema-layout { grid-template-columns: 1fr; gap: 2.5rem; } }

.premium-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 22px); }
.premium-card {
  position: relative; overflow: hidden; border-radius: 18px;
  padding: clamp(22px, 2.5vw, 30px); min-height: 164px;
  background:
    radial-gradient(circle at 85% 15%, rgba(232,160,32,.12), transparent 34%),
    radial-gradient(circle at 15% 85%, rgba(64,120,255,.10), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  border: 1px solid rgba(232,160,32,.16);
  box-shadow: 0 24px 70px rgba(0,0,0,.38);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease, background .35s ease;
}
.premium-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background:
    linear-gradient(120deg, rgba(255,255,255,.08), transparent 30%),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.06), transparent 45%);
}
.premium-card:hover {
  transform: translateY(-6px); border-color: rgba(232,160,32,.38);
  box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 42px rgba(232,160,32,.08);
}
.premium-card-icon {
  position: relative; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 22px; color: #f5f1e8;
  background: rgba(232,160,32,.12); border: 1px solid rgba(232,160,32,.22);
}
.premium-card-icon .ico { width: 20px; height: 20px; }
.premium-card-title {
  position: relative; color: #f5f1e8; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.05rem, 1.45vw, 1.42rem); line-height: 1.14; letter-spacing: -.01em; margin: 0 0 10px;
}
.premium-card-description {
  position: relative; color: rgba(245,245,245,.62); line-height: 1.65; font-size: .92rem; margin: 0;
}
@media (max-width: 820px) { .premium-card-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SERVICES SHOWCASE (id=servicios)
   ============================================================ */
.services-showcase {
  position: relative; padding: clamp(72px, 10vw, 130px) clamp(20px, 6vw, 96px);
  background:
    radial-gradient(circle at 20% 0%, rgba(232,160,32,.10), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(55,110,255,.08), transparent 32%),
    #050608;
  overflow: hidden; border-top: 1px solid var(--border);
}
.services-showcase-header { width: min(820px, 100%); margin: 0 auto clamp(38px, 6vw, 72px); text-align: center; }
.services-showcase-header .section-kicker {
  color: var(--amber); font-family: var(--font-display); font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase; font-size: .5rem;
}
.services-showcase-header h2 {
  color: #f5f1e8; font-family: var(--font-body); font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: .98; letter-spacing: -.04em; margin: 14px 0 18px;
}
.services-showcase-header p { color: rgba(245,245,245,.64); line-height: 1.75; margin: 0 auto; max-width: 620px; font-size: .98rem; }
.services-card-grid {
  width: min(1180px, 100%); margin: 0 auto; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px);
}
.service-card {
  position: relative; min-height: 290px; border-radius: 20px; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(232,160,32,.14); background: #111;
  box-shadow: 0 24px 80px rgba(0,0,0,.42);
  transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--service-bg); background-size: cover; background-position: center;
  transform: scale(1.04); transition: transform .65s ease, filter .65s ease; filter: saturate(.9) brightness(.72);
}
.service-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,6,8,.18) 0%, rgba(5,6,8,.78) 76%, rgba(5,6,8,.95) 100%),
    linear-gradient(90deg, rgba(5,6,8,.72) 0%, rgba(5,6,8,.25) 100%);
}
.service-card:hover {
  transform: translateY(-7px); border-color: rgba(232,160,32,.34);
  box-shadow: 0 34px 100px rgba(0,0,0,.58), 0 0 44px rgba(232,160,32,.08);
}
.service-card:hover::before { transform: scale(1.11); filter: saturate(1.05) brightness(.82); }
.service-card-content { min-height: 290px; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; }
.service-card-content h3 {
  color: #f5f1e8; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.2rem, 1.8vw, 1.7rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 12px;
}
.service-card-content p { color: rgba(245,245,245,.72); font-size: .9rem; line-height: 1.6; margin: 0 0 18px; }
.service-card-content .service-cta { color: var(--amber); font-family: var(--font-display); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
@media (max-width: 1040px) { .services-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .services-showcase { padding: 72px 18px; }
  .services-card-grid { grid-template-columns: 1fr; }
  .service-card, .service-card-content { min-height: 250px; }
}
