/* ══════════════════════════════════════════════════════════════════════════
   INTELIUMLABS — OPTIMIZACIÓN DE PROCESOS, IA & SOFTWARE PARA PYMES
   Diseño Híbrido (Navy Dark + Clean Light) con Efectos 3D, Partículas y Lenis
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --blue-deep: #070d19;
  --blue-dark: #0a1628;
  --blue-mid: #132a4e;
  --blue-accent: #1e5eff;
  --blue-bright: #2b7fff;
  --blue-sky: #38bdf8;
  --blue-light: #60a5fa;
  --blue-pale: #e8f0fe;
  --blue-ice: #f0f6ff;

  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;

  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  --shadow-sm: 0 4px 16px rgba(10, 22, 40, 0.05);
  --shadow-md: 0 12px 36px rgba(30, 94, 255, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 22, 40, 0.16);
  --shadow-blue: 0 16px 40px rgba(30, 94, 255, 0.25);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  overflow-y: scroll;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--gray-800);
  overflow-x: clip;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
  background: var(--blue-accent);
  border-radius: 4px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* ══════════════════════════════════════════════════════════════════════════
   NAVBAR (Transparent on Dark Hero -> Frosted White on Scroll)
   ══════════════════════════════════════════════════════════════════════════ */
.navbar {
  background: transparent;
  padding: 1.1rem 0;
  transition: var(--transition);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transform: translateZ(0);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 94, 255, 0.08);
  box-shadow: var(--shadow-sm);
  padding: 0.65rem 0;
}

.navbar-brand img {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  transition: transform 0.25s ease;
}

.navbar-brand:hover img {
  transform: translateY(-1px);
}

.navbar .logo-dark {
  display: none !important;
}

.navbar.scrolled .logo-light {
  display: none !important;
}

.navbar.scrolled .logo-dark {
  display: inline-block !important;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.88rem;
  padding: 0.5rem 0.85rem !important;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.navbar.scrolled .nav-link {
  color: var(--gray-600) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--blue-light);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .nav-link::after {
  background: var(--blue-accent);
}

.nav-link:hover {
  color: var(--white) !important;
}

.navbar.scrolled .nav-link:hover {
  color: var(--blue-accent) !important;
}

.nav-link:hover::after {
  left: 14%;
  right: 14%;
}

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white) !important;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
}

.navbar.scrolled .navbar-toggler {
  color: var(--blue-accent) !important;
  border-color: rgba(30, 94, 255, 0.2);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ─── BUTTONS ─── */
.btn-login-il {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.55rem 1.15rem;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.btn-login-il:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.navbar.scrolled .btn-login-il {
  background: transparent;
  color: var(--blue-dark);
  border-color: rgba(30, 94, 255, 0.25);
}

.navbar.scrolled .btn-login-il:hover {
  background: var(--blue-pale);
  color: var(--blue-accent);
  border-color: var(--blue-accent);
}

.btn-nav-cta {
  background: var(--blue-accent);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 16px rgba(30, 94, 255, 0.35);
  white-space: nowrap;
}

.btn-nav-cta:hover {
  background: var(--blue-bright);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(30, 94, 255, 0.5);
}

.btn-primary-il {
  background: linear-gradient(135deg, var(--blue-accent) 0%, #2563eb 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  box-shadow: 0 6px 24px rgba(30, 94, 255, 0.38);
  cursor: pointer;
}

.btn-primary-il:hover {
  background: linear-gradient(135deg, #1a4fd6 0%, var(--blue-accent) 100%);
  color: var(--white);
  box-shadow: 0 10px 32px rgba(30, 94, 255, 0.55);
  transform: translateY(-2px);
}

.btn-secondary-dark {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.9rem 1.75rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-secondary-dark:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-white-il {
  background: var(--white);
  color: var(--blue-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2.4rem;
  border-radius: 50px;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-white-il:hover {
  color: var(--blue-deep);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO SECTION (Portada PDF + Partículas + Hub Animado de Nodos)
   ══════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, #0d2147 0%, #070b16 55%, #050811 100%);
  padding: 7.5rem 0 4.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.16;
  pointer-events: none;
}

.hero-orb-1 {
  width: 580px;
  height: 580px;
  background: var(--blue-accent);
  top: -180px;
  right: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 420px;
  height: 420px;
  background: var(--blue-sky);
  bottom: -120px;
  left: -100px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-28px) scale(1.05); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-sky);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.1vw, 3.45rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 1.35rem;
}

.hero h1 .accent-text {
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 50%, #1e5eff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 510px;
  line-height: 1.68;
  margin-bottom: 2.1rem;
}

/* Pill "Diagnóstico sin costo · solo para las primeras 5 empresas" (usado en el cierre) */
.hero-launch-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(16, 34, 68, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 50px;
  padding: 0.55rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.hero-launch-note {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.68);
}

.hero-launch-note strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.hero-launch-dot {
  width: 8px;
  height: 8px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
  animation: dotPulseCyan 2s infinite;
  flex-shrink: 0;
}

@keyframes dotPulseCyan {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); transform: scale(1); }
  50% { box-shadow: 0 0 0 7px rgba(56, 189, 248, 0); transform: scale(1.15); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); transform: scale(1); }
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ─── HERO SVG HUB (Nodos Operativos PyME con Dots Viajeros) ─── */
.automation-poster {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1.04;
  margin: 0 auto;
}

.ap-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.ap-line {
  fill: none;
  stroke: rgba(96, 165, 250, 0.18);
  stroke-width: 1.6;
  stroke-dasharray: 4 4;
}

.ap-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  fill: rgba(255, 255, 255, 0.88);
}

.ap-sublabel {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 9.5px;
  fill: rgba(148, 163, 184, 0.85);
}

.ap-node {
  cursor: pointer;
  transition: filter var(--transition), transform var(--transition);
}

.ap-node:hover circle {
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.75));
  stroke: #38bdf8;
}

@keyframes ap-dot-travel {
  0% { offset-distance: 0%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.ap-dot {
  r: 4;
  fill: #38bdf8;
  filter: drop-shadow(0 0 6px #38bdf8);
  offset-path: var(--p);
  animation: ap-dot-travel var(--d, 2.3s) var(--dl, 0s) linear infinite;
}

/* ══════════════════════════════════════════════════════════════════════════
   MARQUEE DE ÁREAS Y OPERACIÓN
   ══════════════════════════════════════════════════════════════════════════ */
.integrations {
  padding: 2.1rem 0;
  border-bottom: 1px solid rgba(30, 94, 255, 0.08);
  background: var(--white);
  overflow: hidden;
  position: relative;
}

.integration-track {
  display: flex;
  width: max-content;
  animation: scrollMarquee 36s linear infinite;
}

.integration-track:hover {
  animation-play-state: paused;
}

.integration-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gray-700);
  padding: 0 2.5rem;
  transition: var(--transition);
  white-space: nowrap;
}

.integration-item i {
  font-size: 1.35rem;
}

.integration-item:hover {
  transform: translateY(-2px);
  color: var(--blue-accent);
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════════════════════════
   COMMON SECTION STYLES & FADE-UP BLUR EFFECT
   ══════════════════════════════════════════════════════════════════════════ */
.section {
  padding: 6rem 0;
  scroll-margin-top: 85px;
}

.bg-gray {
  background-color: var(--gray-50) !important;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.08rem;
  color: var(--gray-600);
  max-width: 640px;
  line-height: 1.72;
}

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition: all 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* ══════════════════════════════════════════════════════════════════════════
   SECCIÓN 01: "¿TE SUENA?" (Pág. 2 del PDF — Dolores de Distribuidoras/PyMEs)
   ══════════════════════════════════════════════════════════════════════════ */
.pain-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(30, 94, 255, 0.08);
  box-shadow: 0 6px 24px rgba(10, 22, 40, 0.03);
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: var(--transition-spring);
}

.pain-card:hover {
  transform: perspective(1000px) translateZ(20px) translateY(-6px);
  box-shadow: 0 24px 50px rgba(30, 94, 255, 0.12);
  border-color: rgba(30, 94, 255, 0.25);
}

.pain-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--blue-ice);
  border: 1px solid rgba(30, 94, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--blue-accent);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.pain-card:hover .pain-icon {
  background: var(--blue-accent);
  color: var(--white);
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(30, 94, 255, 0.25);
}

.pain-card p {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gray-800);
  margin: 0;
  line-height: 1.55;
}

.pain-callout {
  background: linear-gradient(90deg, #eff6ff 0%, #f8fafc 100%);
  border-left: 4px solid var(--blue-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.6rem 2rem;
  margin-top: 2.5rem;
  font-size: 1.12rem;
  color: var(--gray-700);
  box-shadow: var(--shadow-sm);
}

.pain-callout strong {
  color: var(--blue-dark);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════════════════
   SECCIÓN 02: LÍNEA DE TIEMPO 3D (Caos Manual vs. Operación Conectada)
   ══════════════════════════════════════════════════════════════════════════ */
.scenario-section {
  background-color: #ffffff;
  background-image: radial-gradient(#cbd5e1 0.85px, transparent 0.85px);
  background-size: 24px 24px;
  position: relative;
  padding: 6rem 0;
}

.n8n-timeline {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 0;
}

.n8n-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(30, 94, 255, 0.16);
  transform: translateX(-50%);
  z-index: 0;
}

.n8n-timeline::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 85px;
  background: linear-gradient(180deg, transparent, var(--blue-accent), transparent);
  transform: translateX(-50%);
  z-index: 1;
  border-radius: 4px;
  animation: n8n-pulse-line 3.5s infinite linear;
}

@keyframes n8n-pulse-line {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: calc(100% - 85px); opacity: 0; }
}

.n8n-timeline-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 3rem;
  z-index: 2;
}

.n8n-side {
  flex: 1;
  padding: 0 2.75rem;
  position: relative;
}

.n8n-side--bad { text-align: right; }
.n8n-side--good { text-align: left; }

.n8n-card {
  border-radius: 20px;
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-spring);
  z-index: 3;
}

.n8n-side--bad .n8n-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-left: auto;
  max-width: 460px;
}

.n8n-side--good .n8n-card {
  background: #ffffff;
  border: 1px solid rgba(30, 94, 255, 0.28);
  box-shadow: 0 15px 35px rgba(30, 94, 255, 0.09);
  margin-right: auto;
  max-width: 460px;
}

@media (min-width: 768px) {
  .n8n-side--bad { perspective: 1200px; }
  .n8n-side--bad .n8n-card {
    transform: rotateY(7deg) rotateX(2deg) translateZ(-8px);
  }
  .n8n-side--good { perspective: 1200px; }
  .n8n-side--good .n8n-card {
    transform: rotateY(-7deg) rotateX(2deg) translateZ(5px);
  }
  .n8n-side--bad:hover .n8n-card,
  .n8n-side--good:hover .n8n-card {
    transform: rotateY(0deg) rotateX(0deg) translateZ(25px) translateY(-5px);
  }
  .n8n-side--good:hover .n8n-card {
    box-shadow: 0 25px 50px rgba(30, 94, 255, 0.16);
  }
}

.n8n-side-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.n8n-side--bad .n8n-side-title {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.n8n-side--good .n8n-side-title {
  background: rgba(30, 94, 255, 0.08);
  color: var(--blue-accent);
  border: 1px solid rgba(30, 94, 255, 0.15);
}

.n8n-side-text {
  font-size: 0.98rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.6;
}

.n8n-node-center {
  width: 78px;
  height: 78px;
  background: var(--white);
  border: 2px solid var(--blue-accent);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--blue-accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  position: relative;
  z-index: 10;
  animation: pulseGlow 2.2s infinite;
}

.n8n-node-center i {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(30, 94, 255, 0.35); }
  70% { box-shadow: 0 0 0 12px rgba(30, 94, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 94, 255, 0); }
}

.n8n-outcome {
  border-radius: 16px;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.n8n-outcome--bad {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #feb2b2;
}

.n8n-outcome--good {
  background: #ebf8ff;
  color: var(--blue-accent);
  border: 1px solid #90cdf4;
  box-shadow: 0 10px 25px rgba(30, 94, 255, 0.12);
}

@media (max-width: 900px) {
  .n8n-timeline {
    padding: 1rem 0 0;
  }
  .n8n-timeline::before,
  .n8n-timeline::after {
    left: 50%;
  }
  .n8n-timeline-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-bottom: 2rem;
  }
  .n8n-node-center {
    position: relative;
    left: auto;
    top: auto;
    order: -1;
    margin: 0 auto 0.25rem;
    width: 62px;
    height: 62px;
    font-size: 0.68rem;
    box-shadow: 0 0 0 6px rgba(30, 94, 255, 0.08);
  }
  .n8n-node-center i {
    font-size: 1.05rem;
    margin-bottom: 1px;
  }
  .n8n-side {
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
  }
  .n8n-side--bad .n8n-card,
  .n8n-side--good .n8n-card {
    margin: 0;
    max-width: 100%;
    width: 100%;
    padding: 1.15rem 1.2rem;
    border-radius: 16px;
  }
  .n8n-outcome {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   SECCIÓN 03: "QUÉ HACEMOS" (Pág. 4 del PDF — Bento Grid 3D de 6 Servicios)
   ══════════════════════════════════════════════════════════════════════════ */
.service-bento {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.3rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-spring);
  border: 1px solid rgba(30, 94, 255, 0.09);
  box-shadow: 0 6px 24px rgba(10, 22, 40, 0.03);
  height: 100%;
  z-index: 1;
}

.service-bento::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2.3rem;
  width: 36px;
  height: 3px;
  background: var(--blue-accent);
  border-radius: 3px;
}

.service-bento--dark {
  background: linear-gradient(145deg, #0d1b33 0%, #071020 100%);
  border-color: rgba(96, 165, 250, 0.18);
}

.service-bento--dark::before {
  background: var(--blue-sky);
}

@media (min-width: 992px) {
  .service-bento:hover {
    transform: perspective(1000px) translateZ(24px) translateY(-6px) scale(1.02);
    box-shadow: 0 30px 60px rgba(30, 94, 255, 0.14);
    border-color: rgba(30, 94, 255, 0.28);
    z-index: 10;
  }
  .service-bento--dark:hover {
    box-shadow: 0 30px 60px rgba(7, 16, 32, 0.45);
    border-color: rgba(56, 189, 248, 0.4);
  }
}

.bento-bg-icon {
  position: absolute;
  bottom: -20px;
  right: -15px;
  font-size: 8.5rem;
  color: var(--blue-accent);
  opacity: 0.04;
  z-index: 0;
  transition: var(--transition);
  pointer-events: none;
}

.service-bento:hover .bento-bg-icon {
  transform: scale(1.1) rotate(-6deg);
}

.service-bento-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
  position: relative;
  z-index: 2;
}

.service-badge {
  background: rgba(30, 94, 255, 0.09);
  color: var(--blue-accent);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.service-badge.badge-light {
  background: rgba(56, 189, 248, 0.14);
  color: var(--blue-sky);
}

.service-bento h3 {
  font-size: 1.35rem;
  color: var(--blue-dark);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
}

.service-bento--dark h3 {
  color: var(--white);
}

.service-bento p {
  color: var(--gray-600);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.service-bento--dark p {
  color: rgba(255, 255, 255, 0.76);
}

.tech-pill {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
  font-weight: 600;
  font-family: var(--font-display);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.tech-pill-light {
  background: var(--blue-ice);
  color: var(--blue-accent);
  font-size: 0.76rem;
  font-weight: 600;
  font-family: var(--font-display);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  border: 1px solid rgba(30, 94, 255, 0.12);
}

/* ══════════════════════════════════════════════════════════════════════════
   SECCIÓN 04: "TRABAJOS REALIZADOS" (Pág. 5 del PDF — Casos Reales + Mockup)
   ══════════════════════════════════════════════════════════════════════════ */
.case-study-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(30, 94, 255, 0.12);
  box-shadow: 0 10px 30px rgba(10, 22, 40, 0.05);
  transition: var(--transition-spring);
}

.case-study-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(30, 94, 255, 0.14);
  border-color: rgba(30, 94, 255, 0.3);
}

.case-study-left {
  background: linear-gradient(155deg, #071020 0%, #0d2142 100%);
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.case-study-left::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 70%);
  bottom: -50px;
  right: -50px;
  pointer-events: none;
}

.case-category {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-sky);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.case-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin: 1.5rem 0 0;
}

.case-study-right {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.15rem;
}

.case-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--gray-100);
}

.case-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.case-label {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-desc {
  font-size: 1rem;
  color: var(--gray-700);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .case-study-card {
    grid-template-columns: 1fr;
  }
  .case-study-left {
    padding: 1.6rem;
  }
  .case-title {
    margin-top: 0.6rem;
    font-size: 1.4rem;
  }
  .case-study-right {
    padding: 1.6rem;
  }
  .case-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

/* ─── SHOWCASE CELULAR 3D + NODOS ERP EN VIVO ─── */
.showcase-layered-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-n8n {
  background: #f8fafc;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  height: 410px;
  border: 1px solid rgba(30, 94, 255, 0.14);
  box-shadow: 0 20px 45px rgba(10, 22, 40, 0.08);
  position: relative;
  overflow: hidden;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.mockup-n8n-canvas {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
  padding: 1rem 1.25rem 1rem 175px;
}

.n8n-node {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid rgba(30, 94, 255, 0.14);
  box-shadow: 0 6px 16px rgba(10, 22, 40, 0.06);
  width: 128px;
  font-size: 0.74rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.n8n-node:hover {
  transform: translateY(-4px);
}

.n8n-node-header {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-family: var(--font-display);
  border-radius: 10px 10px 0 0;
}

.n8n-node-body {
  padding: 0.6rem 0.65rem;
  color: var(--gray-600);
  font-size: 0.7rem;
  line-height: 1.35;
}

.n8n-trigger .n8n-node-header { color: #16a34a; background: rgba(22, 163, 74, 0.06); border-top: 3px solid #16a34a; }
.n8n-ai .n8n-node-header { color: var(--blue-accent); background: rgba(30, 94, 255, 0.06); border-top: 3px solid var(--blue-accent); }
.n8n-db .n8n-node-header { color: #0284c7; background: rgba(2, 132, 199, 0.06); border-top: 3px solid #0284c7; }

.mockup-phone {
  background: #ffffff;
  border-radius: 36px;
  width: 100%;
  max-width: 335px;
  border: 10px solid #1e293b;
  box-shadow: 0 25px 60px rgba(10, 22, 40, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  height: 540px;
  margin: 0 auto;
  z-index: 2;
}

.mockup-phone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 105px;
  height: 22px;
  background: #1e293b;
  border-radius: 0 0 12px 12px;
  z-index: 10;
}

@media (min-width: 992px) {
  .showcase-layered-wrapper {
    min-height: 540px;
  }
  .mockup-n8n {
    display: flex;
    position: absolute;
    top: 10px;
    right: 0;
    width: 94%;
  }
  .mockup-phone {
    position: absolute;
    bottom: -10px;
    left: 0;
    transform: perspective(1200px) rotateY(6deg) rotateX(3deg) scale(0.92);
    transform-origin: bottom left;
    animation: floatPhone 6s ease-in-out infinite;
  }
}

@keyframes floatPhone {
  0%, 100% { transform: perspective(1200px) rotateY(6deg) rotateX(3deg) scale(0.92) translateY(0px); }
  50% { transform: perspective(1200px) rotateY(4deg) rotateX(2deg) scale(0.92) translateY(-14px); }
}

.mockup-header {
  background: var(--blue-dark);
  padding: 2.1rem 1rem 0.9rem;
  color: var(--white);
}

.mockup-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.mockup-avatar {
  background: var(--blue-accent);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.mockup-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
}

.mockup-status {
  font-size: 0.7rem;
  color: #38bdf8;
}

.mockup-body {
  flex: 1;
  background: #eef2f6;
  padding: 1rem;
  overflow: hidden;
  position: relative;
}

.mockup-scroll-inner {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  animation: autoScrollInner 12s cubic-bezier(0.35, 0, 0.25, 1) infinite alternate;
}

@keyframes autoScrollInner {
  0%, 25% { transform: translateY(0); }
  50%, 70% { transform: translateY(-90px); }
  85%, 100% { transform: translateY(-190px); }
}

.chat-bubble {
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  border-radius: 14px;
  max-width: 86%;
}

.bubble-in {
  background: var(--white);
  color: var(--gray-800);
  align-self: flex-start;
  border-top-left-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.bubble-out {
  background: #dcfce7;
  color: #0f172a;
  align-self: flex-end;
  border-top-right-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  font-weight: 500;
}

.mockup-input {
  background: var(--white);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gray-400);
  border-top: 1px solid var(--gray-200);
}

.mockup-send {
  background: var(--blue-accent);
  color: var(--white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════════════════════
   SECCIÓN 05: "QUIÉNES SOMOS" (Pág. 3 del PDF + 3D Glass Floating Window)
   ══════════════════════════════════════════════════════════════════════════ */
.pillar-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.pillar-row:first-of-type {
  border-top: 1px solid var(--gray-200);
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-accent);
  line-height: 1.2;
}

.pillar-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.35rem;
}

.pillar-content p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.6;
}

.perspective-container {
  perspective: 1500px;
}

.browser-mockup {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 246, 255, 0.85) 100%);
  backdrop-filter: blur(20px);
  border-radius: 22px;
  border: 1px solid rgba(30, 94, 255, 0.22);
  box-shadow: -20px 25px 60px rgba(30, 94, 255, 0.12), 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

@media (min-width: 992px) {
  .floating-3d {
    animation: floatGlassWindow 6s ease-in-out infinite;
  }
}

@keyframes floatGlassWindow {
  0%, 100% { transform: perspective(1200px) rotateY(-7deg) rotateX(3deg) translateY(0px); }
  50% { transform: perspective(1200px) rotateY(-4deg) rotateX(1.5deg) translateY(-14px); }
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
  font-size: 0.98rem;
  color: var(--gray-700);
}

.check-list li i {
  color: var(--blue-accent);
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   SECCIÓN 06: "CÓMO TRABAJAMOS" (Pág. 7 del PDF — Deploy Pipeline 3D)
   ══════════════════════════════════════════════════════════════════════════ */
.deploy-pipeline-light {
  position: relative;
  padding-left: 1rem;
}

.deploy-stage {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 2rem;
}

.deploy-stage.final-stage {
  padding-bottom: 0;
}

.deploy-status-line-light {
  position: absolute;
  top: 24px;
  bottom: -4px;
  left: 6px;
  width: 2px;
  background: rgba(30, 94, 255, 0.2);
  z-index: 1;
}

.deploy-node {
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 14px;
  background-color: var(--blue-accent);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--white);
}

.deploy-node.pulse-blue {
  animation: pulseGlow 2s infinite;
}

.deploy-content-light {
  background: var(--white);
  border: 1px solid rgba(30, 94, 255, 0.1);
  border-radius: 16px;
  padding: 1.65rem;
  box-shadow: 0 6px 20px rgba(10, 22, 40, 0.04);
  transition: var(--transition-spring);
}

@media (min-width: 992px) {
  .deploy-stage:hover .deploy-content-light {
    transform: perspective(1000px) translateX(16px) translateZ(20px) rotateY(-4deg);
    box-shadow: 20px 25px 50px rgba(30, 94, 255, 0.14);
    border-color: rgba(30, 94, 255, 0.35);
  }
}

.deploy-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.75rem;
  border-radius: 6px;
}

.trust-mini-card {
  background: var(--white);
  border: 1px solid rgba(30, 94, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.4rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.trust-mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 94, 255, 0.25);
  box-shadow: var(--shadow-md);
}

.trust-mini-card h5 {
  font-size: 1rem;
  color: var(--blue-dark);
  margin-bottom: 0.4rem;
}

.trust-mini-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   SECCIÓN 07: "DIAGNÓSTICO DE PROCESOS SIN COSTO" (Pág. 6 del PDF)
   ══════════════════════════════════════════════════════════════════════════ */
.diag-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
}

.diag-wrapper {
  background: var(--white);
  border: 1.5px solid rgba(30, 94, 255, 0.16);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: 0 25px 70px rgba(30, 94, 255, 0.09);
  position: relative;
  overflow: hidden;
}

.cupos-badge-box {
  background: linear-gradient(145deg, #071020 0%, #0f2447 100%);
  color: var(--white);
  border-radius: 20px;
  padding: 1.5rem 1.8rem;
  text-align: center;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 16px 35px rgba(7, 16, 32, 0.25);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 165px;
}

.cupos-num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--blue-sky);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.cupos-text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.3;
}

/* 4 Pasos Horizontales del PDF Pág. 6 */
.diag-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  margin: 3rem 0;
}

.diag-steps-grid::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}

.diag-step-card {
  position: relative;
  z-index: 1;
}

.diag-step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue-accent);
  color: var(--blue-accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(30, 94, 255, 0.12);
  transition: var(--transition);
}

.diag-step-card:hover .diag-step-circle {
  background: var(--blue-accent);
  color: var(--white);
  transform: scale(1.1);
}

.diag-step-card h4 {
  font-size: 1.08rem;
  color: var(--blue-dark);
  margin-bottom: 0.4rem;
}

.diag-step-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 991px) {
  .diag-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .diag-steps-grid::before {
    display: none;
  }
  .diag-wrapper {
    padding: 2.2rem 1.5rem;
  }
}

@media (max-width: 575px) {
  .diag-steps-grid {
    grid-template-columns: 1fr;
  }
}

.diag-report-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 2.2rem;
}

.diag-honest-note {
  margin-top: 1.75rem;
  padding: 1rem 1.4rem;
  border-radius: 12px;
  background: rgba(30, 94, 255, 0.04);
  color: var(--gray-700);
  font-size: 0.96rem;
}

/* Armador Interactivo de Diagnóstico por WhatsApp */
.quick-builder {
  background: linear-gradient(145deg, #09152b 0%, #0d2142 100%);
  border-radius: 20px;
  padding: 2rem;
  color: var(--white);
  margin-top: 2rem;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.qb-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.qb-chip {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 50px;
  padding: 0.4rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.qb-chip:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.qb-chip.active {
  background: var(--blue-accent);
  border-color: var(--blue-sky);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(30, 94, 255, 0.45);
}

/* ══════════════════════════════════════════════════════════════════════════
   SECCIÓN 08: EQUIPO, FAQ & CTA FINAL (Pág. 8 del PDF)
   ══════════════════════════════════════════════════════════════════════════ */
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.6rem;
  text-align: center;
  border: 1px solid rgba(30, 94, 255, 0.08);
  transition: var(--transition-spring);
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 94, 255, 0.22);
}

.team-img-wrapper {
  width: 132px;
  height: 132px;
  margin: 0 auto 1.35rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--blue-pale);
  background: var(--gray-100);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.team-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-card:hover .team-img-wrapper img {
  transform: scale(1.08);
}

.team-name {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.8rem;
  color: var(--blue-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.team-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.team-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(10, 102, 194, 0.08);
  color: #0A66C2;
  font-size: 1.1rem;
  transition: var(--transition);
  text-decoration: none;
}

.team-linkedin:hover {
  background: #0A66C2;
  color: var(--white);
  transform: translateY(-2px);
}

/* ─── FAQ ─── */
.faq-item {
  border: 1px solid rgba(30, 94, 255, 0.12);
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
  overflow: hidden;
  background: var(--white);
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(30, 94, 255, 0.28);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.6rem;
  cursor: pointer;
  background: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--blue-dark);
  border: none;
  width: 100%;
  text-align: left;
  gap: 1rem;
}

.faq-icon {
  width: 30px;
  height: 30px;
  background: var(--blue-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-accent);
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--blue-accent);
  color: var(--white);
}

.faq-answer {
  display: none;
  padding: 0 1.6rem 1.4rem;
  font-size: 0.96rem;
  color: var(--gray-600);
  line-height: 1.72;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ─── CTA BAND FINAL (Inspirado en Pág. 8 del PDF) ─── */
.cta-band {
  background: radial-gradient(circle at 80% 20%, #102a56 0%, #070d19 65%);
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  color: var(--white);
}

.cta-card-pdf {
  background: rgba(15, 29, 58, 0.78);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.8rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.cta-meta-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-sky);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.2rem;
}

.cta-meta-val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.35rem;
}

.cta-meta-val a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cta-meta-val a:hover {
  color: var(--blue-sky);
}

.qr-box-pdf {
  background: var(--white);
  border-radius: 18px;
  padding: 1.25rem;
  text-align: center;
  max-width: 210px;
  margin: 0 auto;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.qr-box-pdf img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.qr-box-pdf span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.3;
}

/* ─── FOOTER & DARK CONTRAST (WCAG AA 100/100 Lighthouse Accessibility) ─── */
footer {
  background: #050912;
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer .text-white-50,
.cta-band .text-white-50,
.quick-builder .text-white-50 {
  color: rgba(255, 255, 255, 0.78) !important;
}

.footer-link {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
  display: block;
  margin-bottom: 0.45rem;
}

.footer-link:hover {
  color: var(--blue-sky);
}

/* ─── BOTÓN FLOTANTE DE WHATSAPP ─── */
#il-whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  text-decoration: none;
}

#il-whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

.il-wa-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #25D366;
  animation: waPulseRing 2.2s infinite;
  pointer-events: none;
}

@keyframes waPulseRing {
  0% { transform: scale(1); opacity: 0.7; }
  80%, 100% { transform: scale(1.65); opacity: 0; }
}

.browser-body-pad {
  padding: 2.3rem 2rem;
}

@media (max-width: 991px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    text-align: center;
    padding: 6.2rem 0 3.2rem;
  }
  .hero-eyebrow {
    justify-content: center;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.9rem;
  }
  .hero-lead {
    margin-inline: auto;
    font-size: 1rem;
    line-height: 1.62;
    margin-bottom: 1.5rem;
  }
  .hero-launch-pill {
    font-size: 0.8rem;
    padding: 0.45rem 0.95rem;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
    max-width: 100%;
    justify-content: center;
  }
  .hero-launch-note {
    justify-content: center;
    font-size: 0.82rem;
    margin-top: 1.15rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    gap: 0.7rem;
  }
  .hero-actions a {
    width: 100%;
  }
  .navbar-collapse {
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius);
    margin-top: 0.75rem;
    box-shadow: var(--shadow-lg);
  }
  .navbar-collapse .nav-link {
    color: var(--gray-700) !important;
    padding: 0.55rem 0.5rem !important;
  }
  .navbar-collapse .btn-login-il {
    background: var(--blue-pale) !important;
    color: var(--blue-accent) !important;
    border-color: rgba(30, 94, 255, 0.2) !important;
    width: 100%;
    justify-content: center;
  }
  .navbar-collapse .btn-nav-cta {
    width: 100%;
    justify-content: center;
  }
  /* Badge de 5 cupos horizontal en mobile/tablet */
  .cupos-badge-box {
    flex-direction: row;
    width: 100%;
    justify-content: center;
    gap: 0.9rem;
    padding: 0.9rem 1.25rem;
    border-radius: 16px;
  }
  .cupos-num {
    font-size: 2.3rem;
    margin-bottom: 0;
  }
  .cupos-text {
    text-align: left;
    font-size: 0.85rem;
  }
  .cupos-text br {
    display: none;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   OPTIMIZACIÓN MOBILE EXTREMA (<= 767px y 360x800)
   Alineación centrada simétrica, carruseles swipeables y cero sobrecarga
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .navbar {
    padding: 0.75rem 0;
  }
  .navbar-brand img {
    height: 42px !important;
    width: auto !important;
  }

  .section,
  .scenario-section,
  .cta-band {
    padding: 3.4rem 0;
  }

  /* Títulos y Eyebrows 100% centrados y alineados en mobile */
  .section-eyebrow {
    display: inline-flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    background: rgba(30, 94, 255, 0.08);
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }
  .section-title,
  .section-lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .section-title {
    font-size: 1.65rem;
    line-height: 1.18;
    margin-bottom: 0.75rem;
  }
  .section-lead {
    font-size: 0.95rem;
    line-height: 1.58;
  }
  .row.mb-5 {
    margin-bottom: 1.75rem !important;
    text-align: center;
  }

  /* Marquee más compacto en mobile */
  .integrations {
    padding: 1.25rem 0;
  }
  .integration-item {
    font-size: 0.88rem;
    padding: 0 1.25rem;
  }
  .integration-item i {
    font-size: 1.1rem;
  }

  /* 01. ¿Te suena? -> Filas horizontales compactas (entra todo limpio en 1 vista) */
  .pain-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1.1rem;
    border-radius: 14px;
    text-align: left;
  }
  .pain-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    margin-bottom: 0;
    font-size: 1.15rem;
    border-radius: 11px;
  }
  .pain-card p {
    font-size: 0.9rem;
    line-height: 1.42;
  }
  .pain-callout {
    padding: 1.1rem 1.2rem;
    font-size: 0.92rem;
    margin-top: 1.35rem;
    border-radius: 12px;
    text-align: left;
  }

  /* Carrusel Horizontal Swipeable para Servicios y Equipo (como en inteliumlabs.com) */
  .mobile-swipe-hint {
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--blue-accent);
    margin-bottom: 0.65rem;
    opacity: 0.85;
  }
  .row-mobile-scroll {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 12px !important;
    padding: 4px 12px 18px !important;
    margin-left: -4px !important;
    margin-right: -4px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .row-mobile-scroll::-webkit-scrollbar {
    display: none;
  }
  .row-mobile-scroll > div {
    flex: 0 0 85% !important;
    max-width: 85% !important;
    scroll-snap-align: center !important;
    padding: 0 !important;
  }

  .service-bento {
    padding: 1.5rem 1.35rem;
    border-radius: 18px;
    text-align: left;
  }
  .service-bento::before {
    left: 1.35rem;
  }
  .service-bento h3 {
    font-size: 1.18rem;
  }
  .service-bento p {
    font-size: 0.9rem;
  }

  /* 03. Casos Reales compactos y alineados */
  .case-study-card {
    border-radius: 18px;
  }
  .case-study-left {
    padding: 1.15rem 1.25rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .case-title {
    margin: 0;
    font-size: 1.15rem;
    text-align: right;
  }
  .case-title br {
    display: none;
  }
  .case-study-right {
    padding: 1.2rem 1.25rem;
    gap: 0.85rem;
    text-align: left;
  }
  .case-row {
    padding-bottom: 0.75rem;
    gap: 0.2rem;
  }
  .case-desc {
    font-size: 0.9rem;
  }

  /* Celular más compacto en mobile para no ocupar toda la pantalla */
  .mockup-phone {
    height: 430px;
    max-width: 300px;
    border-width: 7px;
    border-radius: 28px;
  }

  /* 04. Quiénes somos + Ventana Glass */
  .pillar-row {
    grid-template-columns: 36px 1fr;
    gap: 0.75rem;
    padding: 1rem 0;
    text-align: left;
  }
  .pillar-num {
    font-size: 1.15rem;
  }
  .pillar-content h4 {
    font-size: 1rem;
  }
  .pillar-content p {
    font-size: 0.88rem;
  }
  .browser-body-pad {
    padding: 1.35rem 1.15rem;
    text-align: left;
  }
  .check-list li {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    text-align: left;
  }

  /* 05. Cómo trabajamos */
  .deploy-pipeline-light {
    padding-left: 0.25rem;
    text-align: left;
  }
  .deploy-stage {
    padding-left: 1.75rem;
    padding-bottom: 1.25rem;
  }
  .deploy-content-light {
    padding: 1.2rem;
  }
  .trust-mini-card {
    padding: 1rem 1.15rem;
    text-align: left;
  }

  /* 06. Diagnóstico sin costo (Sin triple padding anidado en 360px) */
  .diag-wrapper {
    padding: 1.4rem 1.1rem;
    border-radius: 20px;
  }
  .diag-steps-grid {
    gap: 0.75rem;
    margin: 1.5rem 0;
  }
  .diag-step-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    text-align: left;
    background: var(--gray-50);
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--gray-200);
  }
  .diag-step-circle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 0.92rem;
    margin-bottom: 0;
  }
  .diag-step-info h4 {
    font-size: 0.98rem;
    margin-bottom: 0.2rem;
  }
  .diag-step-info p {
    font-size: 0.85rem;
  }
  .diag-report-box {
    padding: 1.25rem 1.05rem;
    border-radius: 16px;
    text-align: left;
  }
  .diag-report-box h4 {
    font-size: 1.05rem !important;
    margin-bottom: 1rem !important;
  }
  .diag-honest-note {
    padding: 0.85rem 1rem;
    font-size: 0.86rem;
    margin-top: 1.15rem;
  }
  .quick-builder {
    padding: 1.25rem 1.05rem;
    border-radius: 16px;
    margin-top: 1.25rem;
    text-align: left;
  }
  .qb-chip {
    font-size: 0.76rem;
    padding: 0.35rem 0.75rem;
  }

  /* FAQ y Contacto Final */
  .faq-question {
    padding: 1.05rem 1.15rem;
    font-size: 0.9rem;
  }
  .faq-answer {
    padding: 0 1.15rem 1.1rem;
    font-size: 0.88rem;
  }
  .cta-card-pdf {
    padding: 1.5rem 1.2rem;
    text-align: center;
  }
  .cta-meta-val {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    word-break: break-word;
  }

  #il-whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 18px;
    right: 18px;
  }
  #il-whatsapp-float svg {
    width: 27px;
    height: 27px;
  }
}

/* Ajuste específico para pantallas de 360px de ancho (ej. 360x800 en Brave) */
@media (max-width: 400px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero {
    padding: 5.4rem 0 2.6rem;
  }
  .hero h1 {
    font-size: 1.82rem;
    line-height: 1.14;
  }
  .hero-lead {
    font-size: 0.92rem;
  }
  .hero-launch-pill {
    font-size: 0.73rem;
    padding: 0.4rem 0.75rem;
  }
  .section-title {
    font-size: 1.48rem;
  }
}
