/* =============================================
   AIMMA · Sistema de diseño
   Dark futurista / tech corporativo
   ============================================= */

:root {
  --navy-deepest: #020812;
  --navy-deep: #040d1a;
  --navy: #071425;
  --navy-card: #0a1e33;
  --navy-line: #103048;
  --cyan: #00d4f5;
  --cyan-soft: #00b4d8;
  --cyan-deep: #0096b7;
  --cyan-glow: rgba(0, 212, 245, 0.18);
  --cyan-glow-strong: rgba(0, 212, 245, 0.35);
  --white: #ffffff;
  --white-70: rgba(255, 255, 255, 0.70);
  --white-40: rgba(255, 255, 255, 0.40);
  --white-15: rgba(255, 255, 255, 0.07);
  --error: #ff4d6d;

  --font-display: 'Exo 2', system-ui, sans-serif;
  --font-ui: 'Rajdhani', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --header-h: 72px;
  --container: 1240px;
  --radius: 14px;
  --radius-lg: 22px;
  --transition: 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  background: var(--navy-deep);
  color: var(--white);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: transparent; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========== HALOS DE FONDO ========== */
.bg-halos {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
}
.halo-1 { width: 480px; height: 480px; top: -120px; left: -120px; background: radial-gradient(circle, var(--cyan-glow-strong), transparent 70%); }
.halo-2 { width: 600px; height: 600px; bottom: -180px; right: -180px; background: radial-gradient(circle, var(--cyan-glow), transparent 70%); }
.halo-3 { width: 380px; height: 380px; top: 40%; right: 20%; background: radial-gradient(circle, var(--cyan-glow), transparent 70%); opacity: 0.35; }

/* ========== CONTAINER ========== */
.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(4, 13, 26, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--white-15);
  transition: transform var(--transition), background 0.3s;
}
.site-header.hidden { transform: translateY(-100%); }
.site-header.scrolled { background: rgba(4, 13, 26, 0.92); border-bottom-color: rgba(0, 212, 245, 0.18); }

.header-inner {
  height: 100%;
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-logo { width: 40px; height: 40px; filter: drop-shadow(0 0 8px var(--cyan-glow)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--white);
}
.brand-suffix {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; gap: 4px; }
.nav-link {
  position: relative;
  padding: 10px 16px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--white-70);
  border-radius: 8px;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--white); }
.nav-link.active { color: var(--cyan); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  box-shadow: 0 0 8px var(--cyan-glow-strong);
}
.nav-link.active::after { transform: scaleX(1); }

/* ========== BOTONES CTA ========== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--cyan);
  color: var(--navy-deep);
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--cyan), 0 8px 24px var(--cyan-glow-strong);
  transition: transform 0.2s, box-shadow 0.3s, background 0.2s;
  text-decoration: none;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--cyan), 0 14px 32px var(--cyan-glow-strong); background: #0fe1ff; }
.cta-btn:active { transform: translateY(0); }
.cta-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.cta-btn--outline {
  background: transparent;
  color: var(--cyan);
  box-shadow: inset 0 0 0 1.5px var(--cyan), 0 0 16px transparent;
}
.cta-btn--outline:hover { background: rgba(0, 212, 245, 0.08); box-shadow: inset 0 0 0 1.5px var(--cyan), 0 0 24px var(--cyan-glow); }

.cta-btn--ghost {
  background: var(--white-15);
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.cta-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

.cta-btn--lg { padding: 16px 32px; font-size: 1.02rem; }
.cta-btn--block { width: 100%; }
.cta-btn--header { animation: pulseGlow 2.6s ease-in-out infinite; }

/* El atributo HTML hidden debe forzarse con !important para
   sobrescribir display: inline-flex de .cta-btn (caso wizard paso 3) */
[hidden] { display: none !important; }

/* Focus visible global (a11y - navegacion por teclado)
   Glow cian consistente con la marca, solo aparece con :focus-visible
   (no con click de mouse, asi que no molesta a usuarios de mouse) */
*:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 4px var(--cyan-glow);
}
/* Inputs/textareas ya tienen border highlight propio, evitar doble efecto */
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--cyan-glow);
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 1px var(--cyan), 0 8px 24px var(--cyan-glow-strong); }
  50% { box-shadow: 0 0 0 1px var(--cyan), 0 8px 36px rgba(0, 212, 245, 0.55); }
}

/* ========== HAMBURGUESA + DRAWER ========== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(85vw, 360px);
  background: var(--navy-card);
  border-left: 1px solid var(--white-15);
  z-index: 110;
  transform: translateX(100%);
  transition: transform var(--transition);
  padding: 80px 28px 32px;
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-close {
  position: absolute;
  top: 18px; right: 22px;
  font-size: 2rem;
  color: var(--cyan);
  line-height: 1;
}
.drawer-nav { display: flex; flex-direction: column; gap: 6px; }
.drawer-link {
  padding: 14px 16px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--white-70);
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}
.drawer-link:hover, .drawer-link.active { color: var(--cyan); background: rgba(0, 212, 245, 0.06); border-left-color: var(--cyan); }
.drawer-nav .cta-btn { margin-top: 16px; }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 18, 0.7);
  z-index: 105;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

/* ========== TABS / SECCIONES ========== */
main { padding-top: var(--header-h); position: relative; z-index: 1; }
.tab-section {
  min-height: calc(100vh - var(--header-h));
  padding: 80px 0 100px;
  animation: tabFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.tab-section[hidden] { display: none; }

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== TIPOGRAFÍA SECCIONES ========== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.section-subtitle {
  font-size: 1.08rem;
  color: var(--white-70);
  max-width: 720px;
  margin-bottom: 60px;
}

.section-header { margin-bottom: 60px; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 920px; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: heroLineIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-title .line:nth-child(2) { animation-delay: 0.25s; }
.hero-title .accent { color: var(--cyan); text-shadow: 0 0 40px var(--cyan-glow-strong); }

@keyframes heroLineIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--white-70);
  max-width: 640px;
  margin: 0 auto 36px;
  opacity: 0;
  animation: heroLineIn 0.9s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroLineIn 0.9s 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cyan);
  animation: bounce 2s infinite;
  z-index: 1;
  opacity: 0.7;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ========== SERVICES GRID ========== */
.services-band { padding: 80px 0; text-align: center; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
  text-align: left;
}
.service-card {
  background: var(--navy-card);
  border: 1px solid var(--white-15);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: left;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--cyan-glow), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 16px 50px rgba(0, 212, 245, 0.18);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover .hex-icon { color: var(--cyan); transform: scale(1.05); }

.hex-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  color: var(--cyan-soft);
  margin-bottom: 22px;
  transition: transform var(--transition), color var(--transition);
  filter: drop-shadow(0 0 12px var(--cyan-glow));
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.32rem;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--white-70);
  font-size: 0.97rem;
  line-height: 1.55;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.card-link {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* ========== DIAGNÓSTICO / WIZARD ========== */
.diagnostico {
  padding: 80px 0;
  position: relative;
}
.diagnostico-header { text-align: center; margin-bottom: 50px; position: relative; }
.badge-free {
  display: inline-block;
  padding: 6px 18px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  background: var(--cyan);
  color: var(--navy-deep);
  border-radius: 999px;
  margin-bottom: 18px;
  box-shadow: 0 0 24px var(--cyan-glow-strong);
  animation: pulseGlow 2.6s ease-in-out infinite;
}

.wizard {
  max-width: 720px;
  margin: 0 auto;
  background: var(--navy-card);
  border: 1px solid var(--white-15);
  border-radius: var(--radius-lg);
  padding: 40px 36px 32px;
  position: relative;
  overflow: hidden;
}
.wizard::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--cyan-glow-strong), transparent 50%);
  z-index: -1;
  opacity: 0.4;
}

.wizard-progress { margin-bottom: 32px; }
.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--white-15);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 14px;
}
.progress-fill {
  height: 100%;
  width: 33.33%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow-strong);
  border-radius: 2px;
  transition: width var(--transition);
}
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.step-dot {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--white-15);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--white-40);
  transition: all 0.3s;
  flex-shrink: 0;
}
.step-dot.active { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 12px var(--cyan-glow); }
.step-dot.done { background: var(--cyan); color: var(--navy-deep); border-color: var(--cyan); }
.step-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-40);
  margin-right: auto;
  margin-left: -4px;
}

.wizard-step { border: none; padding: 0; display: none; animation: tabFadeIn 0.4s; }
.wizard-step.active { display: block; }
.step-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 24px;
  color: var(--cyan);
}

.field {
  display: block;
  margin-bottom: 20px;
}
.field > span {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--white-70);
  margin-bottom: 6px;
}
.field em { color: var(--cyan); font-style: normal; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--navy-deep);
  border: 1.5px solid var(--white-15);
  border-radius: 8px;
  color: var(--white);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-glow);
}
.field textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.field.invalid input, .field.invalid textarea { border-color: var(--error); }
.field-error {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--error);
  min-height: 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.field.invalid .field-error { opacity: 1; }

.wizard-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 24px;
}
.wizard-actions .cta-btn { flex: 1; min-width: 130px; }
.wizard-footnote {
  margin-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--white-40);
}

/* Pantalla éxito */
.success-screen {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--navy-card);
  border: 1px solid var(--cyan);
  border-radius: var(--radius-lg);
  padding: 56px 36px;
  box-shadow: 0 0 60px var(--cyan-glow);
  animation: tabFadeIn 0.6s;
}
.success-check {
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  color: var(--cyan);
  filter: drop-shadow(0 0 20px var(--cyan-glow-strong));
}
.success-check svg circle, .success-check svg path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: checkDraw 1.6s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.success-check svg path { animation-delay: 0.6s; }
@keyframes checkDraw { to { stroke-dashoffset: 0; } }
.success-screen h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.success-screen p { color: var(--white-70); margin-bottom: 28px; }

/* ========== SPLITS ========== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}
.split-reverse .split-text { order: 2; }
.split-reverse .split-visual { order: 1; }
.split h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 18px;
}
.split p { color: var(--white-70); margin-bottom: 22px; line-height: 1.7; }

.text-emphasis { font-size: 1.15rem; }
.text-emphasis strong { color: var(--cyan); font-weight: 700; }

.check-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--white);
  font-size: 0.98rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px; height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'><polygon points='9,1 17,5.5 17,12.5 9,17 1,12.5 1,5.5' stroke='%2300d4f5' stroke-width='1.4'/><path d='M5 9 L8 12 L13 6' stroke='%2300d4f5' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
}
.check-list.horizontal {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 32px;
  margin-top: 30px;
}

/* ========== DASH FRAME ========== */
.dash-frame {
  background: linear-gradient(135deg, var(--navy-card) 0%, var(--navy) 100%);
  border: 1px solid rgba(0, 212, 245, 0.3);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 245, 0.08);
  position: relative;
}
.dash-frame-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--navy-line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--white-70);
  letter-spacing: 0.08em;
}
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.dot-c { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dash-frame-body { padding: 24px; position: relative; min-height: 320px; }

#chartVentasRent, #chartBarsAds { width: 100%; height: 100%; max-height: 320px; display: block; }

/* KPI grid (interior) */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: absolute;
  inset: 24px;
  align-items: center;
}
.kpi-card { text-align: center; }
.kpi-card p {
  font-size: 0.82rem;
  color: var(--white-70);
  letter-spacing: 0.06em;
  margin-top: 10px;
  margin-bottom: 0;
}
.kpi-ring, .kpi-donut {
  position: relative;
  width: 110px; height: 110px;
  margin: 0 auto;
  color: var(--cyan);
}
.kpi-ring svg, .kpi-donut svg { width: 100%; height: 100%; filter: drop-shadow(0 0 10px var(--cyan-glow-strong)); }
.kpi-ring-fg, .kpi-donut-fg {
  transition: stroke-dashoffset 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.kpi-ring-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
}
.kpi-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan-glow-strong);
  line-height: 1;
}

/* KPI vertical (Marketing) */
.kpi-vertical { display: flex; flex-direction: column; gap: 18px; }
.kpi-vert-card {
  background: var(--navy-card);
  border: 1px solid var(--white-15);
  border-left: 3px solid var(--cyan);
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.kpi-vert-card:hover { box-shadow: 0 0 30px var(--cyan-glow); border-color: var(--cyan); }
.kpi-vert-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan-glow);
  line-height: 1;
}
.kpi-vert-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--white-70);
  text-transform: uppercase;
}

/* ========== SELLERS BOARD ========== */
.sellers { display: flex; flex-direction: column; gap: 18px; padding: 24px; min-height: 320px; }
.seller { display: flex; gap: 14px; align-items: center; }
.seller-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--c, var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--c, var(--cyan));
  flex-shrink: 0;
}
.seller-info { flex: 1; }
.seller-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 0.95rem; }
.seller-row strong { color: var(--c, var(--cyan)); font-family: var(--font-mono); }
.seller-bar {
  height: 6px;
  background: var(--white-15);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.seller-bar-fill {
  height: 100%;
  background: var(--c, var(--cyan));
  border-radius: 3px;
  width: 0;
  box-shadow: 0 0 8px var(--c, var(--cyan));
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.seller-status {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}
.seller-status.ok { color: #00d4f5; }
.seller-status.warn { color: #00b4d8; }
.seller-status.low { color: #ff8b8b; animation: pulse 2s infinite; }
@keyframes pulse {
  50% { opacity: 0.5; }
}

/* ========== EQUATION + TERMINAL ========== */
.equation-block {
  text-align: center;
  padding: 50px 0;
  margin: 0 auto 30px;
}
.equation {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 22px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.1rem, 2.6vw, 2.4rem);
  letter-spacing: 0.02em;
}
.eq-term {
  opacity: 0;
  transform: scale(0.8);
  color: var(--white);
  text-shadow: 0 0 20px var(--cyan-glow);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.eq-term.show { opacity: 1; transform: scale(1); }
.eq-term.highlight { color: var(--cyan); text-shadow: 0 0 30px var(--cyan-glow-strong); }
.eq-eq {
  opacity: 0;
  color: var(--cyan);
  font-size: 1.4em;
  transition: opacity 0.4s;
}
.eq-eq.show { opacity: 1; animation: flashCyan 0.6s; }
@keyframes flashCyan {
  0% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 40px var(--cyan); }
  100% { text-shadow: 0 0 16px var(--cyan-glow); }
}

.terminal {
  max-width: 800px;
  margin: 0 auto;
  background: #000;
  border: 1px solid var(--cyan);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px var(--cyan-glow);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #0a0a0a;
  border-bottom: 1px solid var(--navy-line);
}
.terminal-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--white-70);
}
.terminal-body {
  padding: 24px 28px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--cyan);
  min-height: 220px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.t-prompt { color: var(--cyan-soft); }
.t-line { display: block; }
.t-line .arrow { color: var(--cyan); margin-right: 8px; }
.t-warn { color: var(--cyan); font-weight: 700; font-size: 1.1em; }
.t-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--cyan);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.t-shake { animation: shake 0.4s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-2px); }
  40%, 80% { transform: translateX(2px); }
}

.terminal-cta { text-align: center; padding: 40px 0 60px; }

/* Plataformas Ads */
.ads-platforms {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--white-40);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ========== METRIC ROW + SCAN ========== */
.scan-frame { overflow: hidden; }
.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid var(--navy-line);
}
.metric-row:last-child { border-bottom: none; }
.metric-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--white-70);
}
.metric-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--cyan);
  text-shadow: 0 0 14px var(--cyan-glow);
}
.metric-value.desc { color: #00d4f5; }
.metric-insight {
  background: rgba(0, 212, 245, 0.06);
  border: 1px solid var(--cyan);
  border-radius: 10px;
  padding: 16px 18px;
  margin-top: 12px;
  box-shadow: 0 0 24px var(--cyan-glow);
}
.insight-icon {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 1.2rem;
  margin-right: 12px;
}
.insight-text { font-style: italic; color: var(--white); font-size: 0.98rem; }

.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 20px var(--cyan);
  pointer-events: none;
  animation: scanMove 4s ease-in-out infinite;
}
@keyframes scanMove {
  0%, 100% { top: 10%; }
  50% { top: 90%; }
}

/* ========== INVENTORY / PHONE ========== */
.inventory-block { padding: 60px 0; text-align: center; }
.quote-glow {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  color: var(--cyan);
  text-shadow: 0 0 30px var(--cyan-glow-strong);
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.phone-center {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}
.phone {
  width: 320px;
  background: #000;
  border: 6px solid #1a1f2e;
  border-radius: 38px;
  padding: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 50px var(--cyan-glow);
  overflow: hidden;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 22px;
  background: #1a1f2e;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}
.phone-screen {
  background: #0d1418;
  height: 540px;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
}

/* WhatsApp UI */
.wa-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #0c1c24;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.wa-back { color: var(--white-70); font-size: 1.4rem; }
.wa-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.wa-name { line-height: 1.2; }
.wa-name strong { display: block; font-size: 0.92rem; color: var(--white); }
.wa-online { color: #25d366; font-size: 0.72rem; }

.wa-chat {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    linear-gradient(rgba(13, 20, 24, 0.92), rgba(13, 20, 24, 0.92)),
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(0, 212, 245, 0.02) 8px 9px);
  overflow-y: auto;
}
.wa-msg {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  animation: msgIn 0.4s forwards;
}
.wa-msg.left { background: #1c2a32; color: var(--white); border-bottom-left-radius: 4px; align-self: flex-start; }
.wa-msg.right { background: #054640; color: var(--white); border-bottom-right-radius: 4px; align-self: flex-end; }
.wa-msg.right.cyan { background: rgba(0, 212, 245, 0.15); border: 1px solid rgba(0, 212, 245, 0.4); }
.wa-msg img.product-img {
  width: 100%;
  max-width: 180px;
  border-radius: 8px;
  margin-bottom: 6px;
}
.wa-checks { color: #00d4f5; margin-left: 6px; font-size: 0.75rem; }
.wa-typing {
  display: inline-flex;
  gap: 4px;
  padding: 8px 12px;
  background: #1c2a32;
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.wa-typing span {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: typing 1.2s infinite;
}
.wa-typing span:nth-child(2) { animation-delay: 0.15s; }
.wa-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}
@keyframes msgIn { to { opacity: 1; transform: translateY(0); } }

.wa-audio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.wa-audio-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  position: relative;
}
.wa-audio-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 60%;
  height: 100%;
  background: var(--cyan);
  border-radius: 2px;
}
.wa-doc {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  margin-top: 4px;
}
.wa-doc-icon {
  width: 32px; height: 32px;
  background: var(--cyan);
  color: var(--navy-deep);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.72rem;
}

/* ========== SCRAPING NETWORK ========== */
.scraping-block { padding: 80px 0; text-align: center; }
.scraping-block h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
}
.scraping-block p { color: var(--white-70); margin-bottom: 40px; }
.scraping-network { max-width: 600px; margin: 0 auto; }
#scrapingSvg { width: 100%; }
#scrapingSvg .net-lines line {
  stroke: var(--cyan);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  opacity: 0.6;
  animation: dashFlow 3s linear infinite;
}
@keyframes dashFlow { to { stroke-dashoffset: -50; } }
#scrapingSvg .net-node circle {
  fill: var(--navy-card);
  stroke: var(--cyan);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 8px var(--cyan-glow));
}
#scrapingSvg .net-node text {
  fill: var(--cyan);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
}
#scrapingSvg .net-center { animation: rotateSlow 24s linear infinite; transform-origin: 200px 150px; }
@keyframes rotateSlow { to { transform: rotate(360deg); } }

/* ========== BROWSER MOCK / APPS MOCK ========== */
.browser-mock {
  background: var(--navy-card);
  border: 1px solid var(--white-15);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--navy-line);
}
.browser-url {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--white-70);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 12px;
  border-radius: 12px;
  flex: 1;
}
.browser-body { padding: 36px 26px; min-height: 220px; }
.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(0, 212, 245, 0.08), rgba(255, 255, 255, 0.04));
  background-size: 200% 100%;
  border-radius: 6px;
  animation: shimmer 2s infinite;
  margin-bottom: 14px;
}
.skel-title { height: 28px; width: 70%; }
.skel-line { height: 12px; width: 100%; }
.skel-line.short { width: 60%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.browser-cta {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 22px;
  background: var(--cyan);
  color: var(--navy-deep);
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 8px;
  font-size: 0.85rem;
}

.apps-mock { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: center; }
.app-phone {
  width: 200px;
  background: #000;
  border: 5px solid #1a1f2e;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}
.app-phone .phone-notch { width: 80px; height: 18px; }
.app-phone-screen {
  background: var(--navy-card);
  padding: 32px 16px 20px;
  height: 360px;
}
.app-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--white-15);
  font-size: 0.85rem;
}
.app-line:last-of-type { border-bottom: none; }
.app-line span { color: var(--white-70); }
.app-line strong { color: var(--cyan); font-family: var(--font-mono); }
.app-spark {
  height: 60px;
  margin-top: 18px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 212, 245, 0.2)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'><polyline fill='none' stroke='%2300d4f5' stroke-width='2' points='0,50 25,42 50,46 75,30 100,35 125,20 150,28 175,12 200,18'/></svg>") center / contain no-repeat;
  border-radius: 6px;
}

.app-dash {
  background: var(--navy-card);
  border: 1px solid var(--white-15);
  border-radius: 12px;
  padding: 22px;
  width: 260px;
}
.app-dash-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--white-70);
  margin-bottom: 14px;
}
.app-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 130px;
}
.app-bars span {
  flex: 1;
  background: linear-gradient(180deg, var(--cyan), var(--cyan-deep));
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 12px var(--cyan-glow);
  animation: barGrow 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes barGrow { from { height: 0; } }

/* ========== AGENT IA ========== */
.agent-section {
  text-align: center;
  padding: 80px 0;
  position: relative;
}
.agent-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin-bottom: 50px;
}

.orb-wrapper {
  position: relative;
  width: 280px; height: 280px;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orb {
  position: relative;
  width: 280px; height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orb-core {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--cyan), var(--cyan-deep) 70%, var(--navy-deep));
  box-shadow: 0 0 60px var(--cyan-glow-strong), inset 0 0 30px rgba(255, 255, 255, 0.2);
  animation: orbBreathe 3s ease-in-out infinite;
}
@keyframes orbBreathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 60px var(--cyan-glow-strong), inset 0 0 30px rgba(255, 255, 255, 0.2); }
  50% { transform: scale(1.05); box-shadow: 0 0 90px rgba(0, 212, 245, 0.6), inset 0 0 40px rgba(255, 255, 255, 0.3); }
}
.ring {
  position: absolute;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  opacity: 0;
  animation: ringExpand 3s ease-out infinite;
}
.ring-1 { width: 110px; height: 110px; animation-delay: 0s; }
.ring-2 { width: 110px; height: 110px; animation-delay: 1s; }
.ring-3 { width: 110px; height: 110px; animation-delay: 2s; }
@keyframes ringExpand {
  0% { width: 110px; height: 110px; opacity: 1; }
  100% { width: 280px; height: 280px; opacity: 0; }
}
.orb.speaking .ring { animation-duration: 1.2s; border-width: 2px; }
.orb.speaking .orb-core { animation-duration: 1.2s; }

.agent-subtitle {
  max-width: 720px;
  margin: 30px auto 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--white);
  min-height: 80px;
  line-height: 1.6;
}
.agent-subtitle .word-spoken { color: var(--cyan); text-shadow: 0 0 8px var(--cyan-glow-strong); }

.agent-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 50px;
}
.case-card {
  background: var(--navy-card);
  border: 1px solid var(--white-15);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: all var(--transition);
}
.case-card:hover { border-color: var(--cyan); box-shadow: 0 0 24px var(--cyan-glow); transform: translateY(-4px); }
.case-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  background: rgba(0, 212, 245, 0.08);
  border: 1px solid rgba(0, 212, 245, 0.35);
  border-radius: 12px;
  filter: drop-shadow(0 0 12px var(--cyan-glow));
  transition: transform var(--transition), background var(--transition);
}
.case-card:hover .case-icon { transform: scale(1.08); background: rgba(0, 212, 245, 0.15); }
.case-card h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 6px;
}
.case-card p { color: var(--white-70); font-size: 0.9rem; }

#btnAgentSpeak, #btnAgentStop, #btnAgentCta { margin: 0 8px 12px; }

/* ========== ADVISOR BLOCK ========== */
.advisor-block { padding: 60px 0; text-align: center; }
.advisor-block h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  margin-bottom: 8px;
}
.advisor-block p { color: var(--white-70); margin-bottom: 40px; }

/* ========== FOOTER ========== */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: 80px;
  padding: 60px 0 30px;
  background: var(--navy-deepest);
}
.footer-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 10px var(--cyan-glow-strong);
}
.footer-inner {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--white-70); font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-col p { color: var(--white-70); margin-top: 14px; font-size: 0.92rem; max-width: 380px; }
.brand-footer { margin-bottom: 6px; }
.contact-list { margin-bottom: 16px; }
.social-icons { display: flex; gap: 14px; }
.social-icons a {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--white-15);
  border-radius: 10px;
  color: var(--cyan);
  transition: all 0.2s;
}
.social-icons a:hover { border-color: var(--cyan); box-shadow: 0 0 16px var(--cyan-glow); }

.footer-bottom {
  width: min(100% - 40px, var(--container));
  margin: 50px auto 0;
  text-align: center;
  padding-top: 22px;
  border-top: 1px solid var(--white-15);
}
.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 6px;
}
.footer-copy { color: var(--white-40) !important; letter-spacing: 0.04em !important; }

/* ========== WHATSAPP FLOTANTE ========== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 60px; height: 60px;
  background: var(--cyan);
  color: var(--navy-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--cyan-glow-strong), 0 0 0 0 var(--cyan);
  animation: floatPulse 2.4s infinite;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes floatPulse {
  0% { box-shadow: 0 8px 24px var(--cyan-glow-strong), 0 0 0 0 var(--cyan-glow-strong); }
  70% { box-shadow: 0 8px 24px var(--cyan-glow-strong), 0 0 0 18px transparent; }
  100% { box-shadow: 0 8px 24px var(--cyan-glow-strong), 0 0 0 0 transparent; }
}

/* =============================================
   ADD-ONS · sesión 2026-05-08
   AIMMA THINKING / AIMMALOGISTIC / Conversion Pages / Mapa Colombia
   ============================================= */

/* ===== Bloque thinking compartido (Inteligencia + Logistic + Scraping) ===== */
.thinking-block, .scraping-block {
  padding: 70px 0 30px;
}
.thinking-header, .block-header {
  text-align: center;
  margin-bottom: 40px;
}
.thinking-header h3, .block-header h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 8px 0 12px;
}
.thinking-header p, .block-header p {
  color: var(--white-70);
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.02rem;
}

.thinking-stage {
  max-width: 900px;
  margin: 0 auto;
}
.thinking-terminal {
  background: linear-gradient(135deg, var(--navy-card) 0%, var(--navy) 100%);
  border: 1px solid rgba(0, 212, 245, 0.3);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 245, 0.08);
}
.thinking-body {
  padding: 28px 30px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--white);
  min-height: 260px;
}
.thinking-status, .logistic-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--navy-line);
  margin-bottom: 18px;
}
.thinking-orb-mini {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--cyan), var(--cyan-deep));
  box-shadow: 0 0 12px var(--cyan-glow-strong);
  flex-shrink: 0;
  animation: orbBreathe 1.6s ease-in-out infinite;
}
.thinking-status-text {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-transform: uppercase;
}
.thinking-dots span {
  animation: dotBlink 1.4s infinite;
}
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBlink { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 1; } }

.thinking-output, .logistic-output, .scraping-output {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--white);
  white-space: pre-wrap;
}
.thinking-output .out-line, .logistic-output .out-line, .scraping-output .out-line {
  display: block;
  opacity: 0;
  animation: lineIn 0.4s forwards;
  padding: 2px 0;
}
.thinking-output .arrow, .logistic-output .arrow, .scraping-output .arrow {
  color: var(--cyan);
  margin-right: 10px;
}
.thinking-output .num, .logistic-output .num, .scraping-output .num {
  color: var(--cyan);
  font-weight: 700;
  text-shadow: 0 0 8px var(--cyan-glow);
}
.thinking-output .alert, .logistic-output .alert, .scraping-output .alert {
  color: #ff8b8b;
  font-weight: 700;
}
.thinking-output .ok {
  color: #00d4f5;
  font-weight: 700;
}
@keyframes lineIn {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Archivo / informe */
.thinking-file, .logistic-file, .scraping-file {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(0, 212, 245, 0.06);
  border: 1px solid rgba(0, 212, 245, 0.4);
  border-radius: 12px;
  padding: 14px 18px;
  animation: lineIn 0.5s;
  flex-wrap: wrap;
}
.thinking-file-icon {
  width: 44px;
  height: 44px;
  background: var(--cyan);
  color: var(--navy-deep);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  box-shadow: 0 0 16px var(--cyan-glow-strong);
  flex-shrink: 0;
}
.thinking-file-info { flex: 1; min-width: 200px; }
.thinking-file-info strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 2px;
}
.thinking-file-info small {
  color: var(--white-70);
  font-size: 0.78rem;
}
.thinking-file-status {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}
.thinking-file-bar {
  display: block;
  height: 4px;
  background: var(--white-15);
  border-radius: 2px;
  overflow: hidden;
}
.thinking-file-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow-strong);
  transition: width 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.thinking-file-status small {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
}

/* ===== AIMMALOGISTIC dentro del dash-frame ===== */
.logistic-block {
  margin-top: 18px;
  padding: 16px 0 6px;
  border-top: 1px dashed var(--navy-line);
}
.logistic-block .logistic-status {
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.logistic-output {
  min-height: 70px;
}
.logistic-file { margin-top: 14px; }

/* ===== SCRAPING - Mapa Colombia ===== */
.scraping-stage {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 30px;
  align-items: stretch;
}
.map-frame, .scraping-terminal {
  background: linear-gradient(135deg, var(--navy-card) 0%, var(--navy) 100%);
  border: 1px solid rgba(0, 212, 245, 0.3);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 245, 0.08);
  display: flex;
  flex-direction: column;
}
.map-frame .dash-frame-header { gap: 10px; }
.map-coord {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
}
.map-body {
  padding: 16px 16px 24px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
#mapColombia {
  width: 100%;
  max-width: 380px;
  display: block;
}
#colombiaPath {
  filter: drop-shadow(0 0 6px var(--cyan-glow));
  transition: stroke-dashoffset 2s ease;
}
#colombiaPath.drawn { stroke-dashoffset: 0; }

.map-cities g {
  font-family: var(--font-mono);
  font-size: 7px;
  fill: rgba(0, 212, 245, 0.6);
  text-anchor: middle;
}
.map-cities g circle {
  fill: rgba(0, 212, 245, 0.4);
  stroke: var(--cyan);
  stroke-width: 0.6;
  opacity: 0.5;
}
.map-city.highlight circle {
  fill: var(--cyan);
  opacity: 1;
}
.map-city.highlight text {
  fill: var(--white);
  font-weight: 700;
}

#mapScan {
  transition: opacity 0.4s ease;
  transform-box: fill-box;
  transform-origin: center;
}
#mapScan.active { opacity: 1; animation: scanSweep 3.2s ease-in-out infinite; }
@keyframes scanSweep {
  0% { transform: translate(-40px, 80px) scale(0.85); opacity: 0.25; }
  33% { transform: translate(40px, -40px) scale(1.05); opacity: 0.7; }
  66% { transform: translate(-30px, -90px) scale(1.0); opacity: 0.55; }
  100% { transform: translate(-40px, 80px) scale(0.85); opacity: 0.25; }
}

#mapMarker {
  transition: opacity 0.6s ease;
}
#mapMarker.shown { opacity: 1; }
.map-marker-core {
  filter: drop-shadow(0 0 8px var(--cyan));
}
.map-marker-pulse {
  transform-origin: center;
  animation: markerPulse 2.4s ease-out infinite;
}
.map-marker-pulse.delay { animation-delay: 1.2s; }
@keyframes markerPulse {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
.map-marker-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 8px;
  fill: var(--white);
  text-anchor: middle;
  letter-spacing: 0.08em;
}
.map-marker-count {
  font-family: var(--font-mono);
  font-size: 7px;
  fill: var(--cyan);
  text-anchor: middle;
  letter-spacing: 0.04em;
}

.scraping-terminal-body {
  padding: 28px 28px 24px;
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.8;
}
.scraping-actions {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--navy-line);
  text-align: center;
}
.scraping-question {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 16px;
}
.scraping-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== PAGINAS WEB · 2 cards de conversion ===== */
.pages-block { padding: 70px 0; }
.pages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.page-card {
  background: var(--navy-card);
  border: 1px solid var(--white-15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.page-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 16px 40px rgba(0, 212, 245, 0.12);
}
.page-card-header {
  padding: 26px 28px 18px;
}
.page-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  background: rgba(0, 212, 245, 0.08);
  border: 1px solid rgba(0, 212, 245, 0.4);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.page-card h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 10px;
}
.page-card p {
  color: var(--white-70);
  font-size: 0.94rem;
  line-height: 1.5;
}
.page-card-stage {
  background:
    radial-gradient(circle at 20% 80%, rgba(0,212,245,0.08), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(0,212,245,0.06), transparent 60%),
    var(--navy);
  padding: 32px 24px;
  flex: 1;
}

.conv-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 24px;
}
.conv-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  opacity: 0.35;
  transition: opacity 0.5s, transform 0.5s;
}
.conv-step.active {
  opacity: 1;
  transform: scale(1.05);
}
.conv-step-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--white-70);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.conv-step.active .conv-step-label {
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan-glow);
}
.conv-arrow {
  color: var(--white-40);
  flex-shrink: 0;
  transition: color 0.4s;
}
.conv-arrow.active { color: var(--cyan); animation: arrowFlow 1.4s ease infinite; }
@keyframes arrowFlow {
  50% { transform: translateX(4px); opacity: 0.6; }
}

/* PDF visual */
.conv-pdf-icon {
  position: relative;
  width: 64px;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(0, 212, 245, 0.4);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px;
}
.conv-pdf-tag {
  position: absolute;
  top: -8px; right: -8px;
  background: var(--cyan);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
}
.conv-pdf-page { display: flex; flex-direction: column; gap: 4px; }
.conv-pdf-page span {
  display: block;
  height: 2px;
  background: rgba(0, 212, 245, 0.5);
  border-radius: 1px;
}
.conv-pdf-page span.short { width: 60%; }

/* IA orb */
.conv-ai-orb {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.conv-ai-core {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--cyan), var(--cyan-deep));
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--cyan-glow-strong);
}
.conv-step.active .conv-ai-core { animation: orbBreathe 1.4s ease-in-out infinite; }
.conv-ring {
  position: absolute;
  width: 38px; height: 38px;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  opacity: 0;
}
.conv-step.active .conv-ring {
  animation: convRingExp 1.6s ease-out infinite;
}
.conv-step.active .conv-ring:nth-child(2) { animation-delay: 0.8s; }
@keyframes convRingExp {
  0% { width: 38px; height: 38px; opacity: 1; }
  100% { width: 64px; height: 64px; opacity: 0; }
}

/* Phone mini */
.conv-phone {
  width: 64px;
  height: 96px;
  background: #000;
  border: 2.5px solid #1a1f2e;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.conv-phone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 5px;
  background: #1a1f2e;
  border-radius: 0 0 4px 4px;
}
.conv-phone-screen {
  background: var(--navy-card);
  width: 100%;
  height: 100%;
  padding: 8px 5px 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.conv-phone-header { display: flex; gap: 3px; }
.conv-phone-header span {
  display: block;
  height: 4px;
  background: rgba(0, 212, 245, 0.4);
  border-radius: 1px;
}
.conv-phone-header span:first-child { flex: 2; }
.conv-phone-header span:last-child { flex: 1; }
.conv-phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  flex: 1;
}
.conv-phone-grid span {
  background: rgba(0, 212, 245, 0.18);
  border-radius: 2px;
  animation: tileGlow 2s ease-in-out infinite;
}
.conv-phone-grid span:nth-child(2) { animation-delay: 0.2s; }
.conv-phone-grid span:nth-child(3) { animation-delay: 0.4s; }
.conv-phone-grid span:nth-child(4) { animation-delay: 0.6s; }
@keyframes tileGlow {
  0%, 100% { background: rgba(0, 212, 245, 0.15); }
  50% { background: rgba(0, 212, 245, 0.4); }
}
.conv-phone-cta {
  background: var(--cyan);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.42rem;
  letter-spacing: 0.04em;
  padding: 3px;
  text-align: center;
  border-radius: 2px;
}

/* IG mini */
.conv-ig-phone {
  width: 64px;
  height: 96px;
  background: #000;
  border: 2.5px solid #1a1f2e;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.conv-ig-screen {
  background: #000;
  width: 100%;
  height: 100%;
  padding: 8px 4px 4px;
}
.conv-ig-header {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 3px;
}
.conv-ig-avatar {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7);
}
.conv-ig-name {
  font-family: var(--font-mono);
  font-size: 0.42rem;
  color: var(--white);
}
.conv-ig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5px;
}
.conv-ig-grid span {
  display: block;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
  opacity: 0.45;
  border-radius: 1px;
}
.conv-ig-grid span:nth-child(odd) { opacity: 0.65; }

/* Phone alt (web) */
.conv-phone-screen.alt { padding: 6px 4px 4px; }
.conv-phone-hero { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.conv-phone-hero .skel-line {
  height: 4px;
  background: rgba(0, 212, 245, 0.5);
  border-radius: 1px;
  margin: 0;
  animation: none;
}
.conv-phone-hero .skel-line.short { width: 50%; }
.conv-phone-grid.alt {
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

/* Progress steps */
.conv-progress {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.conv-progress-step {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--white-40);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--white-15);
  letter-spacing: 0.04em;
  transition: all 0.4s;
}
.conv-progress-step.active {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 212, 245, 0.06);
  box-shadow: 0 0 12px var(--cyan-glow);
}
.conv-progress-step.done {
  color: var(--navy-deep);
  background: var(--cyan);
  border-color: var(--cyan);
}

.pages-foot {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* ===== Responsive nuevo bloque ===== */
@media (max-width: 900px) {
  .scraping-stage { grid-template-columns: 1fr; }
  .pages-grid { grid-template-columns: 1fr; }
  .conv-flow { gap: 4px; }
  .conv-step { gap: 8px; }
  .conv-pdf-icon, .conv-ai-orb, .conv-phone, .conv-ig-phone { transform: scale(0.85); }
  .map-body { padding: 12px; }
}
@media (max-width: 560px) {
  .conv-flow { flex-wrap: wrap; }
  .conv-arrow { transform: rotate(90deg); margin: -6px 0; }
  .conv-step { flex: 0 0 auto; }
  .scraping-terminal-body { padding: 22px 18px 20px; }
  .scraping-cta-row { flex-direction: column; }
  .scraping-cta-row .cta-btn { width: 100%; }
  #mapColombia { max-width: 280px; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .nav-list { gap: 0; }
  .nav-link { padding: 10px 10px; font-size: 0.86rem; }
}
@media (max-width: 900px) {
  .main-nav, .cta-btn--header { display: none; }
  .hamburger { display: flex; }
  .header-inner { justify-content: space-between; }

  .split { grid-template-columns: 1fr; gap: 36px; padding: 40px 0; }
  .split-reverse .split-text, .split-reverse .split-visual { order: 0; }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; }

  .agent-cases { grid-template-columns: 1fr 1fr; }

  .apps-mock { gap: 20px; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .container { width: min(100% - 24px, var(--container)); }
  .hero { padding: 40px 18px; min-height: calc(100vh - var(--header-h)); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .cta-btn { width: 100%; }

  .services-band { padding: 50px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 26px 22px; }

  .wizard { padding: 28px 22px; }
  .wizard-actions { flex-direction: column; }
  .wizard-actions .cta-btn { width: 100%; }

  .step-label { display: none; }

  .progress-steps { justify-content: space-around; }

  .equation { font-size: clamp(0.95rem, 4vw, 1.4rem); gap: 8px 12px; }
  .equation .eq-eq { font-size: 1.2em; }

  .terminal-body { padding: 18px 16px; font-size: 0.85rem; }

  .kpi-grid { grid-template-columns: 1fr; gap: 18px; position: static; padding: 16px 0; }
  .kpi-vert-card { padding: 18px 22px; }
  .kpi-vert-num { font-size: 2rem; }

  .phone { width: 280px; }
  .phone-screen { height: 480px; }

  .agent-cases { grid-template-columns: 1fr; }
  .orb-wrapper, .orb { width: 220px; height: 220px; }
  .orb-core { width: 90px; height: 90px; }
  .ring-1, .ring-2, .ring-3 { width: 90px; height: 90px; }
  @keyframes ringExpand {
    0% { width: 90px; height: 90px; opacity: 1; }
    100% { width: 220px; height: 220px; opacity: 0; }
  }

  .wa-float { width: 54px; height: 54px; bottom: 18px; right: 18px; }
  .wa-float svg { width: 24px; height: 24px; }
}
