/* =========================================================
   BNEXIA — Design System
   Paleta corporativa oficial + tipografía
   ========================================================= */

:root {
  /* Colores de marca (oficiales) */
  --azul-1: #191E39;          /* Confianza — solidez */
  --azul-1-soft: #242A4A;
  --azul-2: #1F428D;          /* Calma — equilibrio profesional */
  --azul-2-hover: #17357A;
  --azul-3: #1FB5D7;          /* Evolución — moderno */
  --morado: #5F24FF;          /* Estrategia — análisis */
  --morado-soft: #EEE7FF;

  /* Neutros */
  --white: #FFFFFF;
  --off-white: #FAFAFB;
  --gray-50: #F5F6F8;
  --gray-100: #ECEEF2;
  --gray-200: #D9DCE3;
  --gray-400: #8B93A6;
  --gray-600: #4A5268;
  --gray-800: #2B3149;
  --border: #E7E9EF;

  /* Tipografía — coherente con el wordmark geométrico de Bnexia */
  --font-display: 'Geist', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif; /* sólo para acentos italic en headlines */
  --font-body: 'Geist', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Layout */
  --max-w: 1240px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(25, 30, 57, 0.04), 0 1px 3px rgba(25, 30, 57, 0.06);
  --shadow: 0 4px 16px rgba(25, 30, 57, 0.06), 0 2px 4px rgba(25, 30, 57, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(25, 30, 57, 0.12), 0 8px 16px -8px rgba(25, 30, 57, 0.08);

  /* Transiciones */
  --t: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 400ms cubic-bezier(0.4, 0, 0.2, 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-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--azul-1);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

/* Utilidades --------------------------------------------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azul-2);
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: currentColor;
}
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
/* Acentos italic serif dentro de headlines */
.display em,
h1 em, h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* Botones ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all var(--t);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--azul-2);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--azul-2-hover);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, var(--shadow);
}
.btn-dark {
  background: var(--azul-1);
  color: white;
}
.btn-dark:hover { background: var(--azul-1-soft); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--azul-1);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--azul-2); color: var(--azul-2); }
.btn-link {
  padding: 0;
  background: transparent;
  color: var(--azul-2);
  font-weight: 500;
  gap: 6px;
}
.btn-link:hover { gap: 10px; color: var(--azul-2-hover); }
.btn-accent {
  background: var(--morado);
  color: white;
}
.btn-accent:hover { background: #4E15E8; transform: translateY(-1px); }

.btn svg { transition: transform var(--t); }
.btn:hover svg.arrow { transform: translateX(3px); }

/* Pills / Badges ---------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.pill-green { background: #E8F8EF; color: #0F7B3C; }
.pill-blue  { background: #E7F0FF; color: var(--azul-2); }
.pill-dark  { background: var(--azul-1); color: white; }
.pill-cyan  { background: #E0F5FA; color: #0B7A92; }
.pill-purple{ background: var(--morado-soft); color: var(--morado); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255,255,255,0.95);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 8px; }

.nav-link:hover { color: var(--azul-1); background: var(--gray-50); }

.nav-link {
  position: relative;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  border-radius: 6px;
  transition: background var(--t), color var(--t);
  white-space: nowrap;
}


.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .btn { padding: 10px 18px; font-size: 14px; }
.nav-toggle { display: none; }

/* Dropdown mega */
.has-dropdown { position: relative; }\n.dropdown::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 620px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: all var(--t);
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.dropdown-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 10px;
}
.dropdown-item {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background var(--t);
}
.dropdown-item:hover { background: var(--gray-50); }
.dropdown-item .name { font-weight: 600; color: var(--azul-1); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.dropdown-item .desc { font-size: 13px; color: var(--gray-600); margin-top: 2px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background: var(--white);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(31, 181, 215, 0.10), transparent 60%),
    radial-gradient(ellipse 700px 400px at 5% 110%, rgba(95, 36, 255, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--gray-600);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.hero-tag .dot {
  background: var(--morado);
  color: white;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hero h1 {
  font-size: clamp(44px, 6vw, 76px);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--azul-1);
  margin-bottom: 24px;
}
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--azul-2);
  position: relative;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 0.08em;
  background: var(--azul-3);
  opacity: 0.4;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--gray-600);
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--gray-600);
  font-size: 14px;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta svg { color: var(--azul-3); flex-shrink: 0; }

/* Hero visual — mockup conversacional */
.hero-visual {
  position: relative;
  padding: 20px;
}
.chat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  max-width: 420px;
  margin-left: auto;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 16px;
}
.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--azul-3), var(--azul-2));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 600; font-size: 14px;
}
.chat-header .title { font-size: 14px; font-weight: 600; color: var(--azul-1); }
.chat-header .status { font-size: 12px; color: #0F7B3C; display: flex; align-items: center; gap: 6px; }
.chat-header .status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #10B06A; }

.msg {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 85%;
  margin-bottom: 10px;
  animation: fadeUp 0.5s ease both;
}
.msg.user {
  background: var(--gray-100);
  color: var(--azul-1);
  border-bottom-right-radius: 4px;
  margin-left: auto;
}
.msg.bot {
  background: var(--azul-2);
  color: white;
  border-bottom-left-radius: 4px;
}
.msg.bot strong { color: var(--azul-3); font-weight: 600; }
.msg.typing {
  background: var(--gray-100);
  padding: 14px;
  width: fit-content;
  display: flex; gap: 4px;
}
.msg.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gray-400);
  animation: bounce 1.4s infinite;
}
.msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.msg.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4 } 30% { transform: translateY(-4px); opacity: 1 } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: translateY(0) } }

.chat-footer {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--gray-50);
  border-radius: 10px;
  font-size: 12px;
  color: var(--gray-600);
  display: flex; align-items: center; justify-content: space-between;
}
.chat-footer .channels { display: flex; gap: 6px; }
.chat-footer .channels span {
  padding: 2px 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11px;
  color: var(--gray-600);
}

/* Isotipo decorativo flotante */
.iso-float {
  position: absolute;
  top: -20px; left: -20px;
  width: 120px; height: 120px;
  opacity: 0.08;
  z-index: 1;
  animation: floaty 8s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(-12px) rotate(8deg) } }

/* =========================================================
   LOGOS / SOCIAL PROOF
   ========================================================= */
.logos {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--off-white);
}
.logos-title {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.logos-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  align-items: center;
  justify-items: center;
}
.logo-placeholder {
  height: 28px;
  color: var(--gray-400);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  opacity: 0.7;
  transition: opacity var(--t);
}
.logo-placeholder:hover { opacity: 1; color: var(--azul-2); }

/* =========================================================
   SECCIÓN GENÉRICA
   ========================================================= */
section { scroll-margin-top: 80px; }
.section { padding: 100px 0; }
.section-dark { background: var(--azul-1); color: white; }
.section-tinted { background: var(--off-white); }

.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--azul-1);
  margin: 16px 0 18px;
}
.section-dark .section-head h2 { color: white; }
.section-head p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--gray-600);
}
.section-dark .section-head p { color: rgba(255,255,255,0.7); }
.section-dark .eyebrow { color: var(--azul-3); }

/* =========================================================
   DOS MUNDOS (split)
   ========================================================= */
.two-worlds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.world-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: white;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.world-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.world-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.world-card.agents::after { background: linear-gradient(90deg, var(--azul-2), var(--azul-3)); }
.world-card.mia::after    { background: linear-gradient(90deg, var(--azul-1), var(--morado)); }
.world-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.world-card.agents .world-icon { background: linear-gradient(135deg, #E7F0FF, #E0F5FA); color: var(--azul-2); }
.world-card.mia .world-icon    { background: linear-gradient(135deg, #F1EBFF, var(--morado-soft)); color: var(--morado); }
.world-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--azul-1);
  margin-bottom: 12px;
}
.world-card .lead { font-size: 16px; color: var(--gray-600); margin-bottom: 24px; }
.world-card ul { list-style: none; margin-bottom: 28px; }
.world-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px;
}
.world-card ul li:last-child { border-bottom: none; }
.world-card ul li svg { color: var(--azul-3); flex-shrink: 0; margin-top: 3px; }
.world-card.mia ul li svg { color: var(--morado); }

/* =========================================================
   PRODUCTOS (grid)
   ========================================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  position: relative;
  padding: 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--t);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--azul-2);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.product-card.featured {
  border-color: var(--azul-3);
  background: linear-gradient(180deg, #F0FAFC, white 40%);
}
.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.product-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--azul-1);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.product-card .tagline { font-size: 14px; color: var(--gray-600); margin-bottom: 22px; min-height: 42px; }
.product-features {
  list-style: none;
  margin-bottom: 24px;
  flex-grow: 1;
}
.product-features li {
  font-size: 13px;
  color: var(--gray-800);
  padding: 4px 0;
  display: flex; align-items: flex-start; gap: 8px;
}
.product-features li::before { content: '—'; color: var(--azul-3); font-weight: 600; }
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--gray-100);
}
.product-price { font-size: 14px; color: var(--gray-600); }
.product-price strong { color: var(--azul-1); font-size: 18px; font-weight: 600; }
.product-price .suffix { font-size: 12px; color: var(--gray-400); }

/* =========================================================
   MIA — sección oscura destacada
   ========================================================= */
.mia-hero {
  position: relative;
  overflow: hidden;
}
.mia-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 500px at 85% 20%, rgba(95, 36, 255, 0.25), transparent 60%),
    radial-gradient(ellipse 500px 400px at 10% 90%, rgba(31, 181, 215, 0.15), transparent 60%);
  pointer-events: none;
}
.mia-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.mia-grid h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: white;
  margin: 16px 0 22px;
}
.mia-grid h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--azul-3), var(--morado));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mia-grid p { color: rgba(255,255,255,0.75); font-size: 17px; line-height: 1.6; margin-bottom: 28px; }
.mia-features {
  list-style: none;
  margin-bottom: 36px;
}
.mia-features li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; gap: 14px;
}
.mia-features li strong { color: white; font-weight: 600; display: block; margin-bottom: 2px; font-size: 15px; }
.mia-features li span { color: rgba(255,255,255,0.65); font-size: 14px; }
.mia-features li .ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(95, 36, 255, 0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--azul-3);
  flex-shrink: 0;
}

.mia-visual {
  position: relative;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}
.mia-terminal {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
}
.mia-terminal .prompt { color: var(--azul-3); }
.mia-terminal .answer { color: white; }
.mia-terminal .tool { color: var(--morado); }
.mia-terminal .cursor { display: inline-block; width: 8px; height: 14px; background: var(--azul-3); vertical-align: middle; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0 } }
.mia-terminal-head {
  display: flex; gap: 6px; padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mia-terminal-head span { width: 10px; height: 10px; border-radius: 50%; }
.mia-terminal-head span:nth-child(1) { background: #FF5F57; }
.mia-terminal-head span:nth-child(2) { background: #FEBC2E; }
.mia-terminal-head span:nth-child(3) { background: #28C840; }

/* Privacy badge */
.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(31, 181, 215, 0.3);
  border-radius: 999px;
  font-size: 13px;
  color: white;
  margin-bottom: 20px;
}
.privacy-badge svg { color: var(--azul-3); }

/* =========================================================
   CÓMO FUNCIONA (3 pasos)
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  font-family: var(--font-serif);
  font-size: 72px;
  line-height: 1;
  color: var(--azul-3);
  opacity: 0.35;
  position: absolute;
  top: 18px; right: 24px;
  font-style: italic;
  font-weight: 400;
}
.step h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--azul-1);
  margin: 32px 0 10px;
  position: relative;
}
.step p { font-size: 15px; color: var(--gray-600); line-height: 1.55; }

/* =========================================================
   DIFERENCIACIÓN ("por qué bnexia")
   ========================================================= */
.reasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.reason {
  padding: 28px 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--t);
}
.reason:hover { border-color: var(--azul-3); transform: translateY(-2px); }
.reason .ico-wrap {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #E0F5FA;
  color: var(--azul-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.reason h4 { font-size: 16px; font-weight: 600; color: var(--azul-1); margin-bottom: 8px; }
.reason p { font-size: 14px; color: var(--gray-600); line-height: 1.55; }

/* =========================================================
   TESTIMONIAL / STATS
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 60px 48px;
  background: linear-gradient(135deg, var(--azul-1), #24295A);
  border-radius: var(--radius-lg);
  color: white;
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, white, var(--azul-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 8px;
}
.stat .label { font-size: 14px; color: rgba(255,255,255,0.65); }

/* =========================================================
   FAQ (accordion)
   ========================================================= */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 500;
  color: var(--azul-1);
  text-align: left;
  letter-spacing: -0.01em;
}
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-50);
  color: var(--azul-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--t);
}
.faq-item[open] .faq-icon { background: var(--azul-2); color: white; transform: rotate(45deg); }
.faq-a {
  padding: 0 44px 22px 0;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.65;
  animation: fadeUp 0.3s ease both;
}

/* =========================================================
   CTA FINAL
   ========================================================= */
.cta-final {
  padding: 100px 0;
  background: linear-gradient(140deg, var(--azul-1) 0%, #1a2250 50%, #2a1660 100%);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(31, 181, 215, 0.2), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(95, 36, 255, 0.25), transparent 50%);
  pointer-events: none;
}
.cta-final-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  color: white;
}
.cta-final h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.cta-final p { font-size: 19px; color: rgba(255,255,255,0.75); margin-bottom: 36px; }
.cta-final .buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-final .btn-primary { background: white; color: var(--azul-1); }
.cta-final .btn-primary:hover { background: var(--azul-3); color: white; }
.cta-final .btn-ghost { border-color: rgba(255,255,255,0.3); color: white; }
.cta-final .btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: white; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: #0E1124;
  color: rgba(255,255,255,0.6);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand img { height: 30px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 280px; }
.footer h5 {
  font-size: 12px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color var(--t);
}
.footer ul a:hover { color: white; }
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid, .mia-grid { grid-template-columns: 1fr; gap: 40px; }
  .two-worlds { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px; padding: 40px 24px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .nav-links { display: none; }
  .nav-toggle {
    display: flex; width: 40px; height: 40px; border-radius: 8px;
    align-items: center; justify-content: center; color: var(--azul-1);
    background: var(--gray-50);
  }
  .nav-toggle:hover { background: var(--gray-100); }

   {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .products-grid, .reasons { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .logos-row { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .logos-row > *:nth-child(n+4) { display: none; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .nav-cta .btn-ghost { display: none; }
  .world-card { padding: 28px 24px; }
  .stat .num { font-size: 40px; }
  .cta-final .buttons { flex-direction: column; }
  .cta-final .btn { width: 100%; }
}

/* Animaciones de entrada al scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* === ESTILOS PARA CHAT ESTÁTICO EN PÁGINAS DE PRODUCTO === */
.chat-msg {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 85%;
  margin-bottom: 8px;
  animation: msgIn 0.3s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.user {
  background: #5F24FF;
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 6px;
}
.chat-msg.bot {
  background: #F1F3F7;
  color: #3C4355;
  border-bottom-left-radius: 6px;
}
.chat-msg .time {
  font-size: 11px;
  opacity: 0.5;
  margin-top: 4px;
  text-align: right;
}
.chat-msg.user .time {
  color: rgba(255,255,255,0.6);
}
.chat-msg.bot .time {
  color: #8B93A6;
}

/* === ISOTIPO FLOTANTE === */
.iso-float {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 80px;
  height: auto;
  opacity: 0.15;
  filter: blur(2px);
  animation: float 3s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

/* === ANIMACIÓN DE FLOAT === */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

/* === PRODUCT HERO GRID === */
.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

@media (max-width: 900px) {
  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .iso-float {
    top: -20px;
    right: 0;
    width: 60px;
  }
  .chat-card {
    margin-left: 0;
    max-width: 100%;
  }
}

/* ==================== FIX DESPLEGABLE PRODUCTOS ==================== */


.has-dropdown:hover .nav-link,
.has-dropdown:focus-within .nav-link {
  color: var(--azul-1);
  background: var(--gray-50);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}


/* Logo and CTA alignment in mobile */
.nav {
  height: 64px;
}
.nav-logo img {
  height: 28px !important;
  margin-right: 8px;
}
.nav-cta {
  gap: 8px;
}
.nav-cta .btn {
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
}

/* Mobile nav links open state - better alignment and responsive dropdown */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: white;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  gap: 2px;
  z-index: 60;
}

.nav-links.open .nav-link {
  padding: 14px 16px;
  font-size: 16px;
  border-radius: 12px;
}

.nav-links.open .has-dropdown { width: 100%; }
.nav-links.open .dropdown {
  position: static !important;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  display: none;
  min-width: auto;
  box-shadow: none;
  border: none;
  border-radius: 12px;
  padding: 16px;
  background: var(--gray-50);
  margin: 4px 0 0 0;
  width: 100%;
  box-sizing: border-box;
}
.nav-links.open .dropdown.open {
  display: block;
}

.nav-links.open .dropdown-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-links.open .dropdown-item {
  padding: 12px 16px;
  border-radius: 10px;
}

.nav-links.open .nav-cta-mobile {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Prevent overlapping with header buttons */
@media (max-width: 980px) {
  .nav-logo + .nav-links { margin-left: auto; }
}


.nav-logo .logo-mobile { display: none !important; }
@media (max-width: 980px) {
  .nav-logo .logo-desktop { display: none !important; }
  .nav-logo .logo-mobile { display: block !important; }
}

/* ==================== CLEAN MOBILE NAVBAR ==================== */
@media (max-width: 980px) {
  /* Header Wrapper */
  .nav {
    height: 64px;
    padding: 0 16px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  /* Logo */
  .nav-logo h1 { display: none; }
  .nav-logo img { height: 28px !important; width: auto; }
  
  /* CTA (now single button) */
  .nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .nav-cta .btn {
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
  }
  
  .nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--azul-1);
  }
  
  /* Mobile Menu Link Wrapper */
  .nav-links {
    display: none; /* hidden by default */
  }
  
  /* Mobile Menu Container (When open) */
  .nav-links.open {
    display: flex !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    background-color: white !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    z-index: 100 !important;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  
  /* Individual Links */
  .nav-links.open .nav-link {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 14px 12px !important;
    font-size: 16px !important;
    color: var(--azul-2) !important;
    text-align: left !important;
    border-bottom: 1px solid var(--gray-50);
  }
  
  /* The tricky "has-dropdown" wrapper */
  .nav-links.open .has-dropdown {
    width: 100% !important;
    display: block !important;
  }
  
  /* Dropdown content */
  .nav-links.open .dropdown {
    position: static !important;
    display: none !important; /* Hide natively, toggle via JS class 'open' */
    background: var(--gray-50) !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    padding: 12px !important;
    margin-top: 4px !important;
    border-radius: 8px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }
  
  /* Dropdown active state (via JS) */
  .nav-links.open .dropdown.open {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  
  .nav-links.open .dropdown-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  .nav-links.open .dropdown-item {
    display: block !important;
    padding: 12px !important;
    background: white !important;
    border-radius: 8px !important;
    text-align: left !important;
  }
  
  .nav-links.open .dropdown-item h4 {
    font-size: 14px !important;
    margin: 0 0 4px 0 !important;
  }
  
  .nav-links.open .dropdown-item p {
    font-size: 12px !important;
    margin: 0 !important;
    color: var(--gray-500) !important;
    line-height: 1.4 !important;
  }
  
  /* Desktop bridge hiding in mobile */
  .nav-links.open .nav-cta { display: none; }
}



  
  /* The Dropdown Container */
  .dropdown {
    position: absolute;
    top: 100%; /* Start exactly at the bottom of the navbar */
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0; /* Remove top margin to eliminate physical gap */
    padding-top: 16px; /* Add visual spacing inside the container instead */
    
    /* Make the top 16px transparent so it looks like a gap but acts like a bridge */
    background-clip: padding-box;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  /* Focus and hover rules */
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    opacity: 1;
    pointer-events: auto;
    display: block;
  }
  
  /* A secondary transparent bridge just in case the mouse moves too fast sideways */
  
}



  
  /* The Dropdown Container */
  .dropdown {
    position: absolute;
    top: 100%; /* Start exactly at the bottom of the navbar */
    left: 50%;
    transform: translateX(-50%);
    margin-top: -10px; /* Pull it slightly UP to overlap with the link */
    padding-top: 20px; /* Push content back down inside the container */
    
    background-clip: padding-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  /* Force display when hovering either the link OR the dropdown itself */
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown,
  .dropdown:hover {
    opacity: 1;
    pointer-events: auto;
    display: block;
  }
  
  /* OVERSIZED INVISIBLE BRIDGE */
  .has-dropdown::after {
    content: '';
    position: absolute;
    top: 50%;
    bottom: -50px; /* Stretch 50px completely covering any gap */
    left: -20px;
    right: -20px;
    z-index: 5; /* Lower than dropdown but covers the gap */
  }
  
  .dropdown {
    z-index: 50; /* Ensure dropdown content is above the bridge */
  }
}


/* ==================== DEFINITIVE DESKTOP FIX ==================== */
@media (min-width: 981px) {
  /* Hacemos que el item principal sea un bloque alto que junte todo */
  .has-dropdown {
    position: relative;
    padding-bottom: 24px; /* Extiende el área interactiva 24px hacia abajo */
    margin-bottom: -24px; /* Compensa gráficamente */
  }

  /* Dropdown por defecto oculto */
  .has-dropdown .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0; /* SIN ESPACIO BLANCO */
    padding-top: 10px; /* Separación visual en el fondo de la caja */
    background-clip: padding-box;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
  }

  /* Mostrar dropdown al hacer hover en el wrapper entero */
  .has-dropdown:hover .dropdown {
    display: block;
    opacity: 1;
  }
}
