/* ============================================================
   DELEGAFY — Sistema de diseño (HTML/CSS/JS puro)
   Basado en DESIGN.md
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --white: #ffffff;
  --gray-light: #f3f6fa;
  --bg-main: #ffffff;
  --deep-blue: #07184d;
  --charcoal: #1f2937;
  --electric-blue: #216bff;
  --cyan-tech: #22d3ee;
  --gradient: linear-gradient(135deg, #216bff 0%, #22d3ee 100%);

  --border: rgba(232, 237, 245, 0.8);
  --shadow-card: 0 4px 24px rgba(7, 24, 77, 0.06);
  --shadow-lg: 0 15px 50px rgba(7, 24, 77, 0.1);

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;

  --container: 1280px;
  --radius: 32px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--deep-blue); font-weight: 700; line-height: 1.15; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 64px 0; }
.section-tight { padding: 48px 0; }
.bg-gray { background: #f3f6fa; }
.text-center { text-align: center; }
.text-center .hero-badge { margin-left: auto; margin-right: auto; }
.section-title { font-size: clamp(1.4rem, 2.5vw, 2rem); }
.lead {
  font-size: 0.95rem;
  color: rgba(66, 70, 85, 0.8);
  line-height: 1.7;
}

/* ---------- Buttons (pill / píldora) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  border: 0;
  background-clip: padding-box;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
/* Shimmer overlay on hover */
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}
.btn:hover::after { left: 100%; }
/* Todo SVG dentro de un botón se centra con el texto (evita descuadres) */
.btn > svg { display: block; flex-shrink: 0; position: relative; z-index: 1; }
.btn > span { position: relative; z-index: 1; }
/* Degradado navy → azul (hero primario) */
.btn-gradient-dark {
  background: linear-gradient(to bottom, #07184d, #216bff);
  color: #fff;
  box-shadow: 0 4px 12px rgba(33, 107, 255, 0.2);
}
.btn-gradient-dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(33, 107, 255, 0.35);
}
/* Degradado azul → cian (CTA principal) */
.btn-gradient {
  background: linear-gradient(to bottom, #216bff, #22d3ee);
  color: #fff;
  box-shadow: 0 4px 12px rgba(33, 107, 255, 0.2);
}
.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.35);
}
/* Blanco con sombra + flecha (hero secundario) */
.btn-white {
  background: #fff;
  color: var(--deep-blue);
  box-shadow: 0 4px 16px rgba(7, 24, 77, 0.08);
  border: 1px solid rgba(194, 198, 216, 0.5);
}
.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(7, 24, 77, 0.14);
  border-color: rgba(33, 107, 255, 0.3);
}
.btn-white .arrow {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(33, 107, 255, 0.08);
  color: var(--electric-blue);
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
  position: relative; z-index: 1;
}
.btn-white .arrow svg { display: block; stroke: currentColor; }
.btn-white:hover .arrow { background: var(--electric-blue); color: #fff; transform: translateX(3px); }
/* Compat */
.btn-primary { background: var(--electric-blue); color:#fff; box-shadow: 0 4px 16px rgba(0,83,214,0.25); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,83,214,0.35); }
.btn-secondary { background: transparent; color: var(--electric-blue); border: 2px solid var(--electric-blue); padding: 14px 28px; }
.btn-secondary:hover {
  background: rgba(33, 107, 255, 0.06);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(33, 107, 255, 0.12);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 80px;
  background: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(232, 237, 245, 0.8);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, -webkit-backdrop-filter 0.4s ease, backdrop-filter 0.4s ease;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 12px rgba(7, 24, 77, 0.04);
  border-bottom-color: rgba(232, 237, 245, 0.3);
}
/* Fondo sólido cuando el menú móvil está abierto */
.navbar.menu-open {
  background: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--electric-blue); }
.nav-links a.active-link { color: var(--electric-blue); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
  /* Contenedor relativo para posicionar las 3 barras con precisión */
  position: relative;
  width: 40px;
  height: 40px;
}
.nav-toggle:hover { background: rgba(33, 107, 255, 0.08); }
.nav-toggle span {
  position: absolute;
  left: 8px;
  width: 24px;
  height: 2px;
  background: var(--deep-blue);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
/* Las 3 barras centradas verticalmente dentro del botón 40px */
.nav-toggle span:nth-child(1) { top: 11px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 27px; }
/* Animación X: las barras 1 y 3 rotan desde su posición real hasta cruzarse en el centro (top:19px) */
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-main);
  /* 120px arriba = 80px de navbar fija + 40px de aire */
  padding: 120px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, #216bff 0%, #22d3ee 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.grad-text {
  background: linear-gradient(135deg, #216bff 0%, #22d3ee 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p.lead { max-width: 576px; margin-bottom: 32px; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 17px; }

/* Hero badge (Figma) */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(2px);
  margin-bottom: 18px;
}
.hero-badge .badge-dot {
  width: 8px; height: 8px;
  background: var(--cyan-tech);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.3);
}
.hero-badge span {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero visual — diagrama de flujo con tarjetas conectadas */
.flow {
  position: relative;
  min-height: 500px;
}
.flow .connector {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.flow-card {
  position: absolute; z-index: 1;
  background: #ffffff;
  border: 1px solid rgba(232, 237, 245, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(6px);
  padding: 20px;
  min-width: 230px;
  animation: floaty 6s ease-in-out infinite;
}
.flow-card .fc-top { display: flex; gap: 12px; align-items: center; }
.flow-card .dot {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
  background: var(--gradient);
}
.flow-card.active .dot { animation: pulseGlow 2.4s ease-in-out infinite; }
.flow-card small { font-family: var(--font-ui); font-size: 11px; color: rgba(31,41,55,0.5); display:block; }
.flow-card strong { font-family: var(--font-head); font-size: 13.5px; color: var(--deep-blue); display:block; }
.flow-card .prog { height: 5px; border-radius: 999px; background: var(--gray-light); margin-top: 12px; overflow: hidden; }
.flow-card .prog i { display:block; height:100%; width: 72%; border-radius:999px; background: var(--gradient); }
.flow-card .ok { margin-left:auto; color:#10b981; }
.flow-card.c1 { top: 12px; left: 6px; animation-delay: 0s; }
.flow-card.c2 { top: 168px; right: 0; animation-delay: 1.2s; }
.flow-card.c3 { bottom: 8px; left: 40px; animation-delay: 2.4s; }

@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================================
   PROBLEM / SOLUTION
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); margin-bottom: 18px; }
.transform-card {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
}
.transform-card .glow {
  position:absolute; inset:0; border-radius: 26px; transform: rotate(3deg);
  background: linear-gradient(135deg, rgba(33,107,255,0.12), rgba(34,211,238,0.12));
}
.transform-card .inner {
  position: relative; background: var(--gray-light); border-radius: 26px; padding: 40px 32px; text-align:center;
}
.transform-card .circle {
  width: 80px; height: 80px; border-radius: 50%; background: var(--gradient);
  display: grid; place-items:center; margin: 0 auto 18px; color:#fff;
}

/* ============================================================
   CARDS (AI CLON Models / diferenciadores)
   ============================================================ */
.grid-3 { display: flex; flex-wrap: nowrap; justify-content: center; align-items: stretch; gap: 32px; position: relative; }
.grid-3::before {
  content: "";
  position: absolute;
  width: 100%; height: 300px;
  top: 0; left: 0;
  background: linear-gradient(to right, rgba(33, 107, 255, 0.05), rgba(34, 211, 238, 0.05), rgba(33, 107, 255, 0.05));
  border-radius: 999px;
  filter: blur(32px);
  pointer-events: none;
}
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { min-height: 220px;
  position: relative;
  /* Las 3 columnas reparten el ancho por igual, con tope de 389px */
  flex: 1 1 0;
  width: auto;
  max-width: 389px;
  background: #ffffff;
  border: 1px solid rgba(232, 237, 245, 0.9);
  border-radius: 48px;
  padding: 32px;
  box-shadow: 0 2px 16px rgba(7, 24, 77, 0.06);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(7, 24, 77, 0.1); }
/* Nota: antes había .card:nth-child(1/2/3) con padding-bottom 64/90px y margin-top 32px,
   que hacían las 3 tarjetas de distinto alto y dejaban huecos en blanco. Eliminado. */
.card .icon {
  width: 64px; height: 64px; border-radius: 32px;
  display:grid; place-items:center; color: var(--electric-blue);
  background: var(--gray-light);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}
.card:hover .icon { background: var(--gradient); color:#fff; }
.card h3 { font-size: 1.1rem; }
.card p { font-size: 0.88rem; color: var(--charcoal); line-height: 1.6; }

.dif { text-align:center; padding: 20px; }
.dif .icon {
  width: 54px; height:54px; border-radius:15px; margin: 0 auto 16px;
  display:grid; place-items:center; background: var(--gray-light); color: var(--electric-blue);
}
.dif h4 { font-size: 1rem; margin-bottom: 8px; }
.dif p { font-size: 0.88rem; color: rgba(31,41,55,0.6); }

/* ============================================================
   DARK SECTION (Clonar operación)
   ============================================================ */
.dark-block {
  background: linear-gradient(135deg, #07184d 0%, #216bff 100%);
  border-radius: 48px;
  padding: 56px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 48px;
  align-items: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}
.dark-block::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  right: -100px; top: -100px;
  background: rgba(34, 211, 238, 0.2);
  border-radius: 50%;
  filter: blur(50px);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.2;
}
.dark-block::after {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  left: -50px; bottom: -100px;
  background: #216bff;
  border-radius: 50%;
  filter: blur(50px);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.4;
}
.dark-block h2 { color:#fff; font-size: clamp(1.3rem,2.5vw,1.8rem); margin-bottom: 24px; }
.dark-list li { display: flex; gap: 14px; margin-bottom: 22px; }
.dark-list .tick {
  flex-shrink:0; width: 26px; height:26px; border-radius: 8px; background: rgba(34,211,238,0.18);
  display:grid; place-items:center; color: var(--cyan-tech);
}
.dark-list strong { font-family: var(--font-head); display:block; color:#fff; font-size: 0.98rem; }
.dark-list span { font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.dark-visual {
  background: linear-gradient(150deg, rgba(255,255,255,0.06), rgba(34,211,238,0.10));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  min-height: 260px;
  display:grid; place-items:center;
  padding: 30px; text-align:center;
}
.dark-visual .pulse {
  width: 92px; height:92px; border-radius:50%; background: var(--gradient);
  display:grid; place-items:center; color:#fff; margin-bottom:18px;
  animation: pulseGlow 2.4s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,211,238,0.4); }
  50% { box-shadow: 0 0 0 22px rgba(34,211,238,0); }
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard {
  max-width: 1024px; margin: 0 auto;
  background: #ffffff; border: 1px solid rgba(232, 237, 245, 0.9); border-radius: 40px;
  box-shadow: var(--shadow-card); padding: 40px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.dashboard::before {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  right: -100px; top: -200px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(34, 211, 238, 0));
  border-radius: 50%;
  filter: blur(32px);
  pointer-events: none;
}
.dash-head { display:flex; align-items:center; justify-content:space-between; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.dash-head .status { display:flex; align-items:center; gap:8px; font-family:var(--font-ui); font-size:12px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color: var(--deep-blue); }
.dot-live { width:10px; height:10px; border-radius:50%; background: var(--cyan-tech); box-shadow: 0 0 30px rgba(34, 211, 238, 0.3); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity:0.35; } }
.pill { padding:8px 16px; background: var(--gray-light); color: var(--charcoal); font-size:10px; font-weight:400; border-radius:999px; font-family:var(--font-ui); border: 1px solid rgba(232, 237, 245, 0.9); text-transform: uppercase; }
.dash-stats { display:grid; grid-template-columns: repeat(3,1fr); gap:16px; margin-bottom: 22px; }
.dash-stat { background: #f3f6fa; border-radius: 32px; border: 1px solid rgba(232, 237, 245, 0.9); padding:24px; text-align:left; }
.dash-stat .lbl { font-family: var(--font-ui); font-size:12px; font-weight: 500; color: var(--charcoal); margin-bottom:6px; }
.dash-stat .row { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.dash-stat .num { font-family: var(--font-head); font-weight:700; font-size:1.6rem; background: linear-gradient(135deg, #07184d, #216bff, #22d3ee); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.dash-stat .badge { font-family: var(--font-ui); font-size:10px; font-weight:700; padding:6px 10px; border-radius:16px; background: rgba(33, 107, 255, 0.1); color: var(--electric-blue); }
.dash-body { display:grid; grid-template-columns: 1.35fr 1fr; gap:16px; }
.dash-chart { background: #f3f6fa; border-radius:32px; border: 1px solid rgba(232, 237, 245, 0.9); padding:24px; }
.dash-panel { background: #f3f6fa; border-radius:32px; border: 1px solid rgba(232, 237, 245, 0.9); padding:24px; }
.dash-chart .caption, .dash-panel .caption { font-family: var(--font-ui); font-size:14px; font-weight: 600; color: var(--deep-blue); margin-bottom:14px; }
.bars { display:flex; align-items:flex-end; gap:12px; height:192px; }
.bars span { flex:1; border-radius:24px; transition: height 0.7s ease; }
.log-item { display:flex; align-items:center; gap:12px; padding:14px 16px; background:#fff; border-radius:24px; margin-bottom:12px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.log-item:last-child { margin-bottom: 0; }
.log-item .lg-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.log-item strong { font-size:0.9rem; color:var(--deep-blue); font-family:var(--font-body); font-weight:600; display:block; }
.log-item small { font-size:11px; color: rgba(31,41,55,0.5); }

/* ============================================================
   CTA banner
   ============================================================ */
/* Mismo ritmo vertical que .section (antes 120px: dejaba ~190px de hueco a cada lado) */
.cta-band { padding: 64px 0 72px; background: var(--bg-main); position: relative; }
.cta-band::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 700px; height: 700px;
  transform: translate(-50%, -50%);
  background: linear-gradient(to right, rgba(33, 107, 255, 0.1), rgba(34, 211, 238, 0.1));
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}
.cta-card {
  max-width: 768px;
  margin: 0 auto;
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(232, 237, 245, 0.9);
  border-radius: 48px;
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}
.cta-card h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); margin-bottom: 14px; }
.cta-card p { max-width: 560px; margin: 0 auto 24px; color: var(--charcoal); font-size: 0.92rem; }
/* Red de seguridad: si un .cta-card se coloca dentro de una sección normal
   (y no en su .cta-band), no debe quedar pegado al contenido anterior. */
.section > .container > .cta-card:not(:first-child) { margin-top: 64px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background:#f2f3ff; border-top:1px solid #e6e6f5; }
.footer-inner { padding: 72px 0 40px; }
.footer-grid {
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand img { height: 32px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.88rem; color: rgba(31,41,55,0.65); max-width: 280px; }
.footer-contact { margin-top: 20px; display: grid; gap: 10px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: rgba(31,41,55,0.65); }
.footer-contact svg { flex-shrink: 0; color: var(--electric-blue); }
.footer-contact a { color: rgba(31,41,55,0.75); transition: color 0.2s; }
.footer-contact a:hover { color: var(--electric-blue); }
.footer-col h4 { font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--deep-blue); margin-bottom: 18px; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 0.9rem; color: rgba(31,41,55,0.65); transition: color 0.2s; }
.footer-col a:hover { color: var(--electric-blue); }
.footer-bottom {
  margin-top: 48px; padding-top: 28px; border-top:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(31,41,55,0.5); }
.social { display:flex; gap:14px; }
.social a { color: rgba(31,41,55,0.4); transition: color 0.2s; }
.social a:hover { color: var(--electric-blue); }

/* ============================================================
   FORMS (contacto)
   ============================================================ */
.form-wrap { max-width: 640px; margin: 0 auto; }
.form-card {
  background:#fff; border:1px solid var(--border); border-radius: 24px;
  padding: 40px; box-shadow: var(--shadow-card);
}
.field { margin-bottom: 20px; }
.field label { display:block; font-family: var(--font-ui); font-size: 0.85rem; font-weight:600; color: var(--deep-blue); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width:100%; padding: 13px 16px; border:1.5px solid var(--border); border-radius: 12px;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--charcoal); background: var(--gray-light);
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline:none; border-color: var(--electric-blue); background:#fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.form-card .btn { width:100%; justify-content:center; margin-top: 8px; }

/* contacto layout */
.contact-grid { display:grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items:start; }
.contact-info h2 { font-size: clamp(1.6rem,3vw,2.4rem); margin-bottom: 18px; }
.contact-item { display:flex; gap:14px; margin-bottom: 24px; align-items:flex-start; }
.contact-item .ic { width:44px;height:44px;border-radius:12px;background:var(--gray-light);color:var(--electric-blue);display:grid;place-items:center;flex-shrink:0; }
.contact-item strong { display:block; font-family:var(--font-head); color:var(--deep-blue); font-size:0.95rem; }
.contact-item span { font-size:0.9rem; color: rgba(31,41,55,0.65); }

/* World map + offices */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.office-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.office-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(7, 24, 77, 0.08);
}
.office-flag { font-size: 2rem; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; }
.office-flag img { display: block; margin: 0 auto; }

.office-card h3 { font-size: 1.1rem; margin-bottom: 2px; }
.office-country { font-family: var(--font-ui); font-size: 0.8rem; color: var(--electric-blue); font-weight: 600; margin-bottom: 12px; }
.office-desc { font-size: 0.85rem; color: var(--charcoal); line-height: 1.5; margin-bottom: 16px; }
.office-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gray-light);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--deep-blue);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

@media (max-width: 960px) {
  .offices-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .offices-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   THANK YOU (gracias)
   ============================================================ */
.thanks {
  min-height: 100vh; display:grid; place-items:center; text-align:center;
  background: linear-gradient(160deg, #fff 0%, var(--gray-light) 100%);
  padding: 120px 24px 60px;
}
.thanks .check {
  width: 96px; height:96px; border-radius:50%; background: var(--gradient);
  display:grid; place-items:center; color:#fff; margin: 0 auto 28px;
  animation: pulseGlow 2.4s ease-in-out infinite;
}
.thanks h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.thanks p { max-width: 480px; margin: 0 auto 32px; color: rgba(31,41,55,0.7); font-size: 1.05rem; }

/* ============================================================
   REVEAL animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* CTA del menú móvil: oculto en escritorio */
.nav-mobile-cta { display: none; }

@media (max-width: 1024px) {
  .hero-grid { gap: 40px; }
  /* Las 3 tarjetas siguen en línea y encogen por igual (sin tarjeta huérfana) */
  .grid-3 { gap: 24px; }
  .grid-3 .card { min-height: 220px; max-width: none; padding: 28px; border-radius: 40px; }
  .dark-block { padding: 44px 36px; gap: 36px; }
}

@media (max-width: 960px) {
  .hero { padding: 110px 0 72px; }
  .hero-grid, .split, .contact-grid, .dark-block { grid-template-columns: 1fr; }
  .flow { display: none; }
  .dash-body { grid-template-columns: 1fr; }
  .grid-3 { flex-direction: column; align-items: center; }
  .grid-3 .card { flex: 0 0 auto; min-height: 0; width: 100%; max-width: 389px; padding: 28px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .split { gap: 40px; }
  .transform-card { max-width: 100%; }
  .dark-block { padding: 40px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  /* (Las reglas del menú móvil viven en el bloque @media max-width:1024px) */
  .section { padding: 56px 0; }
  .section-tight { padding: 40px 0; }
  .cta-band { padding: 56px 0 64px; }
  .hero { padding: 110px 0 56px; }
  .footer-inner { padding: 56px 0 32px; }
  .container { padding: 0 20px; }

  /* Botones a ancho completo para que respiren */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .hero p.lead { margin-bottom: 28px; }

  .form-row { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Dashboard más aireado */
  .dashboard { padding: 22px 18px; border-radius: 20px; }
  .dash-head { flex-wrap: wrap; gap: 12px; }
  .dash-stats { grid-template-columns: 1fr; gap: 12px; }
  .dash-stat { display: flex; align-items: center; justify-content: space-between; }
  .dash-stat .lbl { margin-bottom: 0; }

  /* CTA card con menos padding lateral */
  .cta-card { padding: 44px 26px; }

  .dark-block { padding: 34px 24px; }
  .dark-visual { min-height: 200px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 1.85rem; }
  .section-title { font-size: 1.5rem; }
}


/* ============================================================
   NAV DROPDOWN
   ============================================================ */
.has-dropdown { position: relative; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.has-dropdown > a::after {
  content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; opacity: 0.6;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  /* Alineado al borde izquierdo del padre; si se sale por la derecha usa right:0 */
  left: 0;
  transform: translateY(8px);
  min-width: 240px;
  /* Nunca más ancho que la pantalla menos márgenes */
  max-width: min(280px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: 0.22s ease;
  z-index: 200;
  /* Evitar que salga por la izquierda del viewport */
  right: auto;
}
/* Si el elemento padre está demasiado a la derecha, anclar al borde derecho */
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block; padding: 10px 14px; border-radius: 10px; font-size: 0.9rem;
  color: var(--charcoal); transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--gray-light); color: var(--electric-blue); }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(160deg, #ffffff 0%, #f4f7fc 100%);
  padding: 120px 0 56px;
  border-bottom: 1px solid var(--border);
}
.page-hero .hero-badge { justify-content: flex-start; }
.page-hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); max-width: 900px; margin-bottom: 16px; }
.page-hero p { font-size: 0.95rem; color: rgba(66,70,85,0.8); max-width: 720px; }
.page-hero .social-proof {
  margin-top: 26px; padding: 16px 20px; background: rgba(33,107,255,0.05);
  border-left: 3px solid var(--electric-blue); border-radius: 10px; font-style: italic;
  color: var(--deep-blue); max-width: 720px; font-size: 0.98rem;
}

/* ============================================================
   FEATURE / PILLAR ROWS
   ============================================================ */
.pillar {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
  padding: 28px; background: #fff; border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow-card); transition: transform 0.25s, box-shadow 0.25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar .ic {
  width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; color: #fff;
  background: var(--gradient);
}
.pillar h3 { font-size: 1.15rem; margin-bottom: 6px; }
.pillar .tagline { font-family: var(--font-head); color: var(--electric-blue); font-size: 0.9rem; margin-bottom: 10px; display: block; }
.pillar p { font-size: 0.92rem; color: rgba(31,41,55,0.72); margin-bottom: 8px; }
/* El último párrafo no arrastra margen: así el aire interior de la tarjeta
   queda igual arriba que abajo (afecta a Soluciones y Framework). */
.pillar p:last-child { margin-bottom: 0; }
.pillar .benefit { font-size: 0.88rem; color: var(--deep-blue); font-weight: 600; }
.pillars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* ============================================================
   COMPARISON TABLE (ROI)
   ============================================================ */
.roi-table { width: 100%; border-collapse: separate; border-spacing: 0; background:#fff; border:1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-card); }
.roi-table th, .roi-table td { padding: 18px 22px; text-align: left; font-size: 0.92rem; border-bottom: 1px solid var(--border); }
.roi-table thead th { font-family: var(--font-head); background: var(--gray-light); color: var(--deep-blue); font-size: 0.85rem; }
.roi-table thead th:last-child { background: linear-gradient(135deg, rgba(33,107,255,0.10), rgba(34,211,238,0.10)); color: var(--electric-blue); }
.roi-table td:first-child { font-weight: 600; color: var(--deep-blue); }
.roi-table td:last-child { color: var(--deep-blue); }
.roi-table tr:last-child td { border-bottom: none; }

/* ============================================================
   PAIN BULLETS
   ============================================================ */
.pain-list { display: grid; gap: 16px; }
.pain-item { display: flex; gap: 14px; padding: 20px 22px; background: var(--gray-light); border-radius: 14px; }
.pain-item .x { flex-shrink:0; width: 26px; height:26px; border-radius:8px; background: rgba(239,68,68,0.12); color:#ef4444; display:grid; place-items:center; }
.pain-item strong { display:block; color: var(--deep-blue); font-family: var(--font-head); font-size: 0.95rem; margin-bottom: 3px; }
.pain-item span { font-size: 0.9rem; color: rgba(31,41,55,0.7); }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 34px 28px;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.featured { border: 2px solid var(--electric-blue); position: relative; box-shadow: var(--shadow-lg); }
.price-card.featured .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gradient); color:#fff; font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; padding: 6px 16px; border-radius: 999px; }
.price-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.price-card .price { font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; color: var(--deep-blue); margin: 12px 0 4px; }
.price-card .price span { font-size: 0.82rem; font-weight: 500; color: rgba(66,70,85,0.6); }
.price-card .desc { font-size: 0.9rem; color: rgba(31,41,55,0.65); margin-bottom: 22px; }
.price-card ul { display: grid; gap: 12px; margin-bottom: 28px; flex: 1; }
.price-card li { display: flex; gap: 10px; font-size: 0.9rem; color: var(--charcoal); }
.price-card li svg { flex-shrink: 0; color: var(--electric-blue); }
.price-card .btn { width: 100%; justify-content: center; }

/* ============================================================
   TIMELINE (Framework)
   ============================================================ */
.timeline { max-width: 820px; margin: 0 auto; position: relative; }
.timeline::before { content:""; position:absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--electric-blue), var(--cyan-tech)); }
.tl-step { display: grid; grid-template-columns: 56px 1fr; gap: 22px; margin-bottom: 34px; position: relative; }
.tl-step .num { width: 56px; height: 56px; border-radius: 50%; background: var(--gradient); color:#fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; z-index: 1; box-shadow: 0 6px 16px rgba(33,107,255,0.3); }
.tl-step .body { background:#fff; border:1px solid var(--border); border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow-card); }
.tl-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.tl-step p { font-size: 0.92rem; color: rgba(31,41,55,0.7); }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background:#fff; border:1px solid var(--border); border-radius: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 24px; font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--deep-blue); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .chev { flex-shrink: 0; transition: transform 0.25s; color: var(--electric-blue); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 24px 22px; font-size: 0.94rem; color: rgba(31,41,55,0.72); }

/* ============================================================
   LEGAL / PROSE
   ============================================================ */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; margin: 34px 0 12px; }
.prose h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.prose p { font-size: 0.96rem; color: rgba(31,41,55,0.8); margin-bottom: 14px; line-height: 1.75; }
.prose ul { margin: 0 0 16px 20px; list-style: disc; }
.prose li { font-size: 0.96rem; color: rgba(31,41,55,0.8); margin-bottom: 8px; }
.prose a { color: var(--electric-blue); text-decoration: underline; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card { background:#fff; border:1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card); transition: transform 0.25s, box-shadow 0.25s; display:flex; flex-direction:column; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-card > a { display: block; width: 100%; line-height: 0; }
.blog-card .thumb { height: 180px; width: 100%; object-fit: cover; display: block; }
.blog-card .thumb.alt { background: linear-gradient(135deg, #07184d, #216bff); }
.blog-card .body { padding: 22px 24px; display:flex; flex-direction:column; flex:1; }
.blog-card .cat { font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--electric-blue); margin-bottom: 10px; }
.blog-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.blog-card p { font-size: 0.9rem; color: rgba(31,41,55,0.65); margin-bottom: 16px; flex:1; }
.blog-card .meta { font-size: 0.8rem; color: rgba(31,41,55,0.5); }

/* Blog article pages */
.article-page { padding-top: 120px; }
.article-container { max-width: 820px; }
.article-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--electric-blue); font-size: 0.86rem; font-weight: 600; }
.article-category { display: inline-flex; padding: 8px 13px; margin-bottom: 20px; border-radius: 999px; background: rgba(33,107,255,0.09); color: var(--electric-blue); font-family: var(--font-ui); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.article-page h1 { max-width: 780px; margin-bottom: 20px; font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.1; }
.article-dek { max-width: 720px; margin-bottom: 22px; color: rgba(31,41,55,0.72); font-size: 1.08rem; line-height: 1.72; }
.article-meta { margin-bottom: 36px; color: rgba(31,41,55,0.62); font-size: 0.86rem; line-height: 1.6; }
.article-hero-image { margin: 28px 0 52px; overflow: hidden; border-radius: 20px; box-shadow: var(--shadow-lg); }
.article-hero-image img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.article-content { color: rgba(31,41,55,0.82); }
.article-content > p:first-child { margin-top: 0; color: var(--deep-blue); font-size: 1.16rem; line-height: 1.65; }
.article-content h2 { margin: 52px 0 18px; color: var(--deep-blue); font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.3; }
.article-content h3 { margin: 36px 0 12px; color: var(--deep-blue); font-size: 1.13rem; line-height: 1.4; }
.article-content p, .article-content li { font-size: 1rem; line-height: 1.86; }
.article-content p { margin-bottom: 22px; }
.article-content ul, .article-content ol { margin: 0 0 26px 24px; }
.article-content li { margin-bottom: 8px; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content a { color: var(--electric-blue); text-decoration: underline; text-underline-offset: 3px; }
.article-content figure { margin: 44px 0 52px; overflow: hidden; border-radius: 16px; }
.article-content figure img { display: block; width: 100%; height: auto; }
.article-taxonomy { display: grid; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); }
.article-taxonomy > strong { color: var(--deep-blue); font-family: var(--font-head); font-size: 0.95rem; }
.article-taxonomy > div { display: flex; flex-wrap: wrap; gap: 10px; }
.article-tag { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: rgba(31,41,55,0.72); font-size: 0.78rem; line-height: 1.2; }
.article-cta { margin-top: 56px; padding: 38px 40px; border-radius: 20px; background: linear-gradient(135deg, #07184d, #1249aa); color: #fff; box-shadow: var(--shadow-lg); }
.article-cta > span { display: block; margin-bottom: 12px; color: #6de3ff; font-family: var(--font-ui); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.article-cta h2 { margin: 0 0 16px; color: #fff; font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.3; }
.article-cta p { max-width: 620px; margin: 0 0 26px; color: rgba(255,255,255,0.78); line-height: 1.7; }
.article-cta .btn { min-height: 48px; padding: 15px 25px; }
.article-related { margin-top: 72px; padding-top: 36px; border-top: 1px solid var(--border); }
.article-related > h2 { margin: 0 0 28px; color: var(--deep-blue); font-size: 1.45rem; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.related-card { display: flex; flex-direction: column; gap: 14px; min-height: 180px; padding: 26px; border: 1px solid var(--border); border-radius: 14px; background: #fff; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.related-card:hover { transform: translateY(-3px); border-color: var(--electric-blue); box-shadow: var(--shadow-card); }
.related-card span { color: var(--electric-blue); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.related-card strong { color: var(--deep-blue); line-height: 1.45; }
.related-card small { margin-top: auto; color: rgba(31,41,55,0.65); font-size: 0.84rem; line-height: 1.6; }
@media (max-width: 680px) {
  .article-page { padding-top: 92px; }
  .article-back { margin-bottom: 22px; }
  .article-category { margin-bottom: 16px; }
  .article-page h1 { font-size: clamp(1.8rem, 9vw, 2.5rem); }
  .article-dek { font-size: 1rem; }
  .article-meta { margin-bottom: 28px; }
  .article-hero-image { margin: 24px 0 36px; border-radius: 14px; }
  .article-content h2 { margin-top: 40px; }
  .article-content h3 { margin-top: 28px; }
  .article-content p, .article-content li { font-size: 0.97rem; line-height: 1.78; }
  .article-content figure { margin: 32px 0 38px; border-radius: 12px; }
  .article-taxonomy { margin-top: 40px; }
  .article-cta { margin-top: 40px; padding: 28px 22px; }
  .article-cta .btn { width: 100%; white-space: normal; text-align: center; }
  .article-related { margin-top: 52px; padding-top: 28px; }
  .related-grid { grid-template-columns: 1fr; gap: 16px; }
  .related-card { min-height: 0; padding: 20px; }
}

/* ============================================================
   DEMOS
   ============================================================ */
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.demo-card { background:#fff; border:1px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-card); transition: transform 0.25s, box-shadow 0.25s; }
.demo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.demo-card .ic { width: 52px; height:52px; border-radius: 14px; background: linear-gradient(135deg, rgba(33,107,255,0.1), rgba(34,211,238,0.1)); color: var(--electric-blue); display:grid; place-items:center; margin-bottom: 16px; }
.demo-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.demo-card p { font-size: 0.9rem; color: rgba(31,41,55,0.65); margin-bottom: 18px; }
.demo-embed { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); background: var(--gray-light); }
.demo-embed iframe { width: 100%; height: 640px; border: 0; display: block; }

/* section intro */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); margin-bottom: 12px; }
.section-head p { color: rgba(66,70,85,0.8); font-size: 0.92rem; }
.section-head.left { text-align: left; margin-left: 0; }

/* ============================================================
   RESPONSIVE (componentes nuevos)
   ============================================================ */
@media (max-width: 960px) {
  .pillars-grid, .pricing-grid, .blog-grid, .demo-grid { grid-template-columns: 1fr; }
  .roi-table { display: block; overflow-x: auto; }
}
@media (max-width: 720px) {
  .has-dropdown .dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    border: none; padding: 6px 0 6px 14px; min-width: 0; background: transparent;
  }
  .has-dropdown > a::after { display: none; }
  .demo-embed iframe { height: 520px; }
  .page-hero { padding: 110px 0 44px; }
}


/* ============================================================
   HONEYPOT (anti-spam, oculto)
   ============================================================ */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ============================================================
   NEWSLETTER (footer)
   ============================================================ */
.footer-news { margin-top: 22px; max-width: 300px; }
.footer-news label { display: block; font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600; color: var(--deep-blue); margin-bottom: 8px; }
.news-row { display: flex; gap: 8px; }
.news-row .btn { flex-shrink: 0; width: 46px; height: 46px; padding: 0; display: grid; place-items: center; border-radius: 12px; }
.news-row .btn svg { display: block; stroke: currentColor; }
.news-row input {
  flex: 1; min-width: 0; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-family: var(--font-body); font-size: 0.9rem; background: #fff;
}
.news-row input:focus { outline: none; border-color: var(--electric-blue); }

/* ============================================================
   POP-UP MODAL
   ============================================================ */
.dgf-popup {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.dgf-popup.show { display: flex; }
.dgf-popup-overlay {
  position: absolute; inset: 0; background: rgba(7, 24, 77, 0.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: dgfFade 0.25s ease;
}
.dgf-popup-card {
  position: relative; z-index: 1; width: 100%; max-width: 440px;
  background: linear-gradient(160deg, #ffffff 0%, #f4f7fc 100%);
  border: 1px solid var(--border); border-radius: 24px; padding: 38px 34px;
  box-shadow: 0 40px 80px rgba(7, 24, 77, 0.3); text-align: center; animation: dgfPop 0.3s ease;
}
@keyframes dgfFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dgfPop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.dgf-popup-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none; cursor: pointer;
  font-size: 1.8rem; line-height: 1; color: rgba(31,41,55,0.4); transition: color 0.2s;
}
.dgf-popup-close:hover { color: var(--deep-blue); }
.dgf-popup-badge {
  display: inline-block; font-family: var(--font-ui); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--electric-blue);
  background: rgba(33,107,255,0.08); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.dgf-popup-card h3 { font-size: 1.35rem; margin-bottom: 12px; line-height: 1.25; }
.dgf-popup-card > p { font-size: 0.94rem; color: rgba(31,41,55,0.7); margin-bottom: 22px; }
.dgf-popup-form { display: grid; gap: 12px; }
.dgf-popup-form input[type="text"], .dgf-popup-form input[type="email"] {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 12px;
  font-family: var(--font-body); font-size: 0.95rem; background: #fff;
}
.dgf-popup-form input:focus { outline: none; border-color: var(--electric-blue); }
.dgf-popup-form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.dgf-popup-mini { font-size: 0.75rem; color: rgba(31,41,55,0.5); margin-top: 14px; }
.dgf-popup-mini a { color: var(--electric-blue); }

/* ============================================================
   NAV — ajustes para 8 ítems + colapso antes
   ============================================================ */
@media (max-width: 1200px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.85rem; }
}
@media (max-width: 1024px) {
  .nav-inner {
    flex-wrap: nowrap;
    height: 80px;
    align-items: center;
  }
  .nav-logo { display: flex; align-items: center; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 80px;
    margin-left: auto;
  }

  /* ── Drawer móvil ────────────────────────────────────────────
     Panel fijo debajo del navbar, separado del header para que
     la sombra no quede cortada. Se anima con transform.
  ───────────────────────────────────────────────────────────── */
  .nav-links {
    /* Posición fija justo debajo del navbar (80px) */
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 99;

    /* Apariencia del drawer */
    background: #ffffff;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 16px 40px rgba(7, 24, 77, 0.14);
    border-top: 1px solid var(--border);

    /* Layout */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 28px;
    gap: 2px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;

    /* Oculto por defecto con slide hacia arriba */
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                visibility 0s linear 0.3s;
  }

  /* Estado abierto: slide hacia abajo */
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                visibility 0s linear 0s;
  }

  /* Overlay semitransparente detrás del drawer */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 80px 0 0 0;
    background: rgba(7, 24, 77, 0.35);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .nav-overlay.show {
    display: block;
    opacity: 1;
  }

  /* Links de navegación dentro del drawer */
  .nav-links a {
    font-size: 1rem;
    font-weight: 500;
    padding: 13px 16px;
    color: var(--charcoal);
    border-radius: 999px;
    transition: background 0.15s, color 0.15s;
    /* Eliminar el recuadro gris/azul rectangular por defecto en móviles al hacer click */
    -webkit-tap-highlight-color: transparent;
  }
  .nav-links a:hover {
    color: var(--electric-blue);
    background: rgba(33, 107, 255, 0.07);
  }
  .nav-links a:focus-visible {
    outline: 2px solid var(--electric-blue);
    outline-offset: 2px;
  }

  /* Botón CTA: respeta siempre la píldora del diseño */
  .nav-links a.btn {
    color: #fff !important;
    border-radius: 999px !important;
    padding: 14px 24px;
    margin-top: 4px;
    text-align: center;
    justify-content: center;
  }
  .nav-links a.btn:hover {
    color: #fff !important;
    background: inherit;
  }

  /* CTA móvil visible + separador superior */
  .nav-mobile-cta {
    display: flex !important;
    justify-content: center;
    margin-top: 16px;
    padding: 14px 24px;
    font-size: 0.95rem;
    border-radius: 999px !important;
  }
  /* Línea divisoria antes del CTA (no toca el border-radius del botón) */
  .nav-links .nav-mobile-cta-wrap {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 12px;
  }

  /* ── Submenú "Sectores" ──────────────────────────────────── */
  .has-dropdown .dropdown-menu {
    position: static;
    transform: none;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    min-width: 0;
    background: transparent;
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      visibility 0s linear 0.35s;
  }
  .has-dropdown.open-sub .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 600px;
    padding: 6px 0 10px 16px;
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      visibility 0s linear 0s;
  }
  /* Links del submenú: píldora igual que el resto */
  .has-dropdown .dropdown-menu a {
    font-size: 0.92rem;
    padding: 10px 16px;
    color: rgba(31,41,55,0.75);
    border-radius: 999px;
    white-space: normal;
    transition: background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
  }
  .has-dropdown .dropdown-menu a:hover {
    color: var(--electric-blue);
    background: rgba(33,107,255,0.07);
  }
  /* Flecha del enlace Sectores */
  .has-dropdown > a {
    padding: 13px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    -webkit-tap-highlight-color: transparent;
  }
  .has-dropdown > a::after {
    display: inline-block;
    opacity: 0.5;
    transition: transform 0.25s ease;
    flex-shrink: 0;
  }
  .has-dropdown.open-sub > a::after { transform: rotate(225deg); }
}


/* ============================================================
   THE CORE — componentes específicos
   ============================================================ */
.bg-lavender  { background: #faf8ff; }
.bg-lavender2 { background: #f2f3ff; }

/* Divisores punteados entre secciones */
.dotted-top    { border-top: 2px dotted rgba(33, 107, 255, 0.35); }
.dotted-bottom { border-bottom: 2px dotted rgba(33, 107, 255, 0.35); }

/* Hero centrado de The Core */
.core-hero { text-align: center; padding: 84px 0 72px; }
.core-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 900px; margin: 0 auto 20px; line-height: 1.15; }
.core-hero p { max-width: 680px; margin: 0 auto 30px; color: rgba(31, 41, 55, 0.7); font-size: 1.08rem; }

/* Binary Leadership */
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 940px; margin: 0 auto; }
.leader-card {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 34px; box-shadow: var(--shadow-card); text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.leader-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.leader-photo {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px;
  filter: grayscale(100%); transition: filter 0.35s ease-in-out; display: block;
}
.leader-card:hover .leader-photo { filter: grayscale(0%); }
.leader-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.leader-role { color: var(--electric-blue); font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; margin-bottom: 12px; display: block; }
.leader-card p { font-size: 0.92rem; color: rgba(31, 41, 55, 0.68); }

/* Ecosystem cards con icono coloreado */
.eco-card .ic { color: #83c8ff; background: #fff; box-shadow: var(--shadow-card); }
.eco-card.accent .ic { color: #fff; background: var(--gradient); }

/* ============================================================
   THE CORE — Estilos Figma (.thecore-*)
   ============================================================ */

/* Hero */
.thecore-hero {
  position: relative;
  padding: 120px 0 72px;
  text-align: center;
  background: var(--bg-main);
  overflow: hidden;
}
.thecore-hero-gradient {
  position: absolute;
  width: 100%; height: 620px;
  top: 0; left: 0;
  opacity: 0.2;
  background: radial-gradient(ellipse 89% 182% at 80% 20%, var(--cyan-tech) 0%, transparent 40%);
  pointer-events: none;
}
.thecore-hero-inner {
  position: relative; z-index: 1;
  max-width: 896px; margin: 0 auto;
}
.thecore-hero-inner h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 18px;
}
.thecore-hero-inner .lead {
  max-width: 672px; margin: 0 auto 24px;
  text-align: center;
  font-size: 0.95rem;
}

/* Binary Leadership */
.thecore-leadership { position: relative; }
.thecore-divider {
  position: absolute;
  left: 50%; top: 0;
  width: 1px; height: 100%;
  background: var(--border);
  transform: translateX(-50%);
  pointer-events: none;
}
.thecore-leaders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1232px;
  margin: 0 auto;
}
.thecore-leader-card {
  position: relative;
  padding: 32px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(7, 24, 77, 0.04);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.thecore-leader-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(7, 24, 77, 0.08);
}
.thecore-leader-img {
  width: 192px; height: 192px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--bg-main);
}
.thecore-leader-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.thecore-leader-info { text-align: center; }
.thecore-leader-info h3 {
  font-size: 1.25rem; margin-bottom: 4px;
}
.thecore-leader-role {
  font-family: var(--font-ui);
  font-size: 14px; font-weight: 500;
  color: #006877;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 12px;
}
.thecore-leader-info p {
  font-size: 0.9rem; color: var(--charcoal);
  line-height: 1.6;
}
.thecore-dot {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--cyan-tech);
  border-radius: 50%;
  right: 32px; top: 25px;
}

/* Ecosystem */
.thecore-ecosystem { background: #f2f3ff; }
.thecore-eco-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
}
.thecore-eco-title-block { max-width: 672px; }
.thecore-eco-title-block .section-title { text-align: left; }
.thecore-eco-status {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-ui);
  font-size: 14px; font-weight: 500;
  color: var(--charcoal);
}
.thecore-status-dot {
  width: 8px; height: 8px;
  background: var(--cyan-tech);
  border-radius: 50%;
}
.thecore-hubs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.thecore-hub-card {
  position: relative;
  padding: 32px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(7, 24, 77, 0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}
.thecore-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(7, 24, 77, 0.08);
}
.thecore-hub-card h3 {
  font-size: 1.1rem; margin: 12px 0 8px;
  line-height: 1.3;
}
.thecore-hub-card p {
  font-size: 0.88rem; color: var(--charcoal);
  line-height: 1.6;
}
.thecore-hub-icon {
  width: 48px; height: 48px;
  border-radius: 6px;
  display: grid; place-items: center;
}
.thecore-hub-icon.blue { background: rgba(33, 107, 255, 0.1); color: var(--electric-blue); }
.thecore-hub-icon.teal { background: rgba(0, 104, 119, 0.1); color: #006877; }
.thecore-hub-icon.orange { background: rgba(165, 58, 0, 0.1); color: #a53a00; }
.thecore-hub-icon.dark { background: rgba(25, 27, 36, 0.1); color: #191b24; }

/* Recognition Card */
.thecore-recognition-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 32px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(7, 24, 77, 0.04);
}
.thecore-recognition-img {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(194, 198, 216, 0.2);
}
.thecore-recognition-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.thecore-recognition-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 16px;
}
.thecore-award-badge {
  display: inline-block;
  padding: 3px 12px;
  background: #e7e7f4;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 600;
  color: var(--charcoal);
  width: fit-content;
}
.thecore-recognition-content h3 {
  font-size: 1.5rem; line-height: 1.2;
}
.thecore-recognition-content p {
  font-size: 0.92rem; color: var(--charcoal);
  line-height: 1.6;
}
.thecore-award-footer {
  display: flex; align-items: center; gap: 16px;
  margin-top: 8px;
}
.thecore-award-icon {
  width: 48px; height: 48px;
  background: #ecedf9;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--electric-blue);
}
.thecore-award-footer span {
  font-family: var(--font-ui);
  font-size: 14px; font-weight: 600;
  color: var(--deep-blue);
}

/* Responsive The Core */
@media (max-width: 960px) {
  .thecore-leaders { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .thecore-divider { display: none; }
  .thecore-hubs-grid { grid-template-columns: 1fr 1fr; }
  .thecore-eco-header { flex-direction: column; align-items: flex-start; gap: 24px; }
  .thecore-recognition-card { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .thecore-hero { padding: 110px 0 56px; }
  .thecore-hero-inner h1 { font-size: 1.8rem; }
  .thecore-hubs-grid { grid-template-columns: 1fr; }
}

/* Reconocimientos — bloque destacado */
.award-hero { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; max-width: 1000px; margin: 0 auto; }
.award-hero img { width: 100%; border-radius: 20px; box-shadow: var(--shadow-lg); }
.award-badge {
  display: inline-block; background: var(--electric-blue); color: #fff;
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 8px; margin-bottom: 16px;
}
.award-hero h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 14px; }
.award-hero p { color: rgba(31, 41, 55, 0.7); margin-bottom: 18px; }
.award-cert { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; color: var(--deep-blue); font-size: 0.9rem; }
.award-cert svg { color: var(--electric-blue); }

/* Galería de premios */
.awards-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.award-thumb {
  position: relative; background: transparent; border: none; border-radius: 16px;
  overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; box-shadow: none;
  transition: transform 0.25s;
}
.award-thumb:hover { transform: translateY(-4px); box-shadow: none; }
.award-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.35s; }
.award-thumb:hover img { transform: scale(1.05); }
.award-thumb .zoom {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 8px;
  background: rgba(7, 24, 77, 0.55); color: #fff; display: grid; place-items: center;
  opacity: 0; transition: opacity 0.25s;
}
.award-thumb:hover .zoom { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.show { display: flex; }
.lightbox-overlay { position: absolute; inset: 0; background: rgba(7, 24, 77, 0.82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox-img { position: relative; z-index: 1; max-width: min(920px, 92vw); max-height: 86vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox-btn {
  position: absolute; z-index: 2; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.9); color: var(--deep-blue); display: grid; place-items: center;
  transition: background 0.2s;
}
.lightbox-btn:hover { background: #fff; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-close { position: absolute; z-index: 2; top: 20px; right: 24px; background: none; border: none; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }

@media (max-width: 960px) {
  .leaders { grid-template-columns: 1fr; max-width: 440px; }
  .award-hero { grid-template-columns: 1fr; gap: 28px; }
  .awards-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .awards-gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .lightbox-btn { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; }
}


/* ============================================================
   COMPONENTES RICOS (sectoriales / deployments)
   Basado en el PDF de diseño oficial
   ============================================================ */

/* Badge de sector (gris) */
.sector-badge {
  display: inline-block; font-family: var(--font-ui); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: #6b7280;
  background: #f3f4f6; padding: 5px 10px; border-radius: 6px; margin-bottom: 14px;
}
.sector-badge.dark { background: #1f2937; color: #9ca3af; }
.sector-badge.blue { background: rgba(33,107,255,0.10); color: var(--electric-blue); }

/* Tarjeta de caso con métricas */
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.case-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 26px; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--deep-blue); }
.case-card p { font-size: 0.92rem; color: rgba(31,41,55,0.7); margin-bottom: 20px; }
.case-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--border); padding-top: 18px; }
.metric .num { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--electric-blue); line-height: 1; }
.metric .lbl { font-size: 0.78rem; color: rgba(31,41,55,0.55); margin-top: 5px; display: block; }

/* Sección oscura con chat (caso destacado) */
.dark-case {
  background: #0d1117; border-radius: 22px; padding: 44px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15); overflow: hidden;
}
.dark-case h3 { color: #f2f3ff; font-size: clamp(1.3rem, 2.4vw, 1.9rem); margin: 6px 0 14px; }
.dark-case p { color: #9ca3af; font-size: 0.95rem; margin-bottom: 22px; }
.dark-case .case-metrics { border-top-color: rgba(255,255,255,0.12); }
.dark-case .metric .num { color: #4b87ff; }
.dark-case .metric .lbl { color: rgba(255,255,255,0.55); }

/* Burbuja de chat / simulación */
.chat-sim {
  background: #ffffff; border-radius: 18px; padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
}
.chat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #eef1f6; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gradient); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-avatar svg { display: block; }
.chat-head strong { font-size: 0.85rem; color: var(--deep-blue); display: block; font-family: var(--font-head); line-height: 1.3; }
.chat-head small { font-size: 0.72rem; color: #10b981; display: inline-flex; align-items: center; gap: 5px; }
.chat-head small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #10b981; display: inline-block; }
.chat-body { display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 88%; padding: 10px 14px; font-size: 0.85rem; line-height: 1.45; }
.chat-msg.bot { background: #f3f5f9; color: #4b5563; border-radius: 4px 14px 14px 14px; align-self: flex-start; }
.chat-msg.user { background: var(--electric-blue); color: #fff; border-radius: 14px 4px 14px 14px; align-self: flex-end; }
.chat-action {
  margin-top: 10px; padding: 11px 14px; background: rgba(33,107,255,0.07);
  border-left: 3px solid var(--electric-blue); border-radius: 8px;
  font-size: 0.78rem; color: var(--deep-blue); line-height: 1.45;
}
.chat-action strong { color: var(--electric-blue); }
.chat-input {
  margin-top: 14px; display: flex; align-items: center; gap: 8px;
  background: #f3f5f9; border: 1px solid #e6eaf1; border-radius: 999px;
  padding: 5px 5px 5px 16px;
}
.chat-input span { flex: 1 1 auto; min-width: 0; font-size: 0.8rem; color: #9ca3af; }
.chat-input .send {
  flex: 0 0 34px;
  width: 34px; height: 34px; min-width: 34px; max-width: 34px;
  border-radius: 50%; background: var(--electric-blue);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; transition: background 0.2s ease;
}
.chat-input .send svg { display: block; width: 15px; height: 15px; }
.chat-input .send:hover { background: #1b5be0; }

/* Testimonios con foto B&N → color */
.testi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
.testi-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 28px; box-shadow: var(--shadow-card); position: relative;
}
.testi-card .quote-mark { font-family: Georgia, serif; font-size: 3.4rem; line-height: 0.6; color: #e5e7eb; height: 24px; display: block; }
.testi-text { font-size: 0.96rem; color: rgba(31,41,55,0.75); line-height: 1.6; margin-bottom: 20px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-photo {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  filter: grayscale(100%); transition: filter 0.3s ease;
}
.testi-card:hover .testi-photo { filter: grayscale(0%); }
/* Los avatares ilustrados ya usan la paleta de marca: el filtro de gris
   está pensado para fotografías y los dejaría apagados. */
.testi-photo[src$=".svg"] { filter: none; }
.testi-author strong { font-size: 0.92rem; color: var(--deep-blue); display: block; }
.testi-author span { font-size: 0.8rem; color: rgba(31,41,55,0.55); }

/* Logos de clientes (fila monocroma) */
.client-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; }
.client-logos img { height: 30px; width: auto; filter: grayscale(100%); opacity: 0.55; transition: opacity 0.25s, filter 0.25s; }
.client-logos img:hover { opacity: 1; filter: grayscale(0%); }

/* Comparativa manual vs Delegafy (tabla clínicas/servicios) */
.compare-table td:nth-child(2) { color: rgba(31,41,55,0.6); }
.compare-table td:last-child { color: var(--electric-blue); font-weight: 600; }

@media (max-width: 860px) {
  .case-grid, .dark-case, .testi-grid { grid-template-columns: 1fr; }
  .dark-case { padding: 32px 24px; gap: 28px; }
  .client-logos { gap: 26px; }
  .client-logos img { height: 24px; }
}


/* ============================================================
   TECH STACK — marquee "Potenciado por ingeniería real"
   ============================================================ */
.techstack { padding: 40px 0 44px; background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.techstack .container { display: flex; align-items: center; gap: 28px; }
.techstack .powered {
  flex-shrink: 0; font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(31,41,55,0.45);
  max-width: 120px; line-height: 1.4;
}
.marquee { position: relative; flex: 1; overflow: hidden; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, #fff 15%, transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, #fff 15%, transparent); }
.marquee-track {
  display: flex; width: max-content; align-items: center;
  animation: marqueeScroll 32s linear infinite; opacity: 0.55; transition: opacity 0.4s ease;
}
.marquee:hover .marquee-track { animation-play-state: paused; opacity: 1; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 10px; padding: 0 34px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--deep-blue);
  white-space: nowrap;
}
.marquee-item svg { display: block; color: var(--electric-blue); flex-shrink: 0; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

@media (max-width: 720px) {
  .techstack .container { flex-direction: column; gap: 16px; }
  .techstack .powered { max-width: none; text-align: center; }
  .marquee { width: 100%; }
  .marquee-item { padding: 0 22px; font-size: 0.92rem; }
}

/* ============================================================
   GALERÍA DE PREMIOS — estilo tarjeta con título (cybernise)
   ============================================================ */
.awards-caption { text-align: center; margin-top: 10px; font-size: 0.82rem; color: rgba(31,41,55,0.6); font-family: var(--font-ui); }
.award-thumb .award-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 12px 10px;
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600; color: #fff; text-align: center;
  background: linear-gradient(to top, rgba(7,24,77,0.85), transparent);
  opacity: 0; transition: opacity 0.25s ease; line-height: 1.3;
}
.award-thumb:hover .award-name { opacity: 1; }

/* Marquee con logos (imágenes) — variante para clientes.
   Fondo oscuro + logos normalizados a blanco monocromo:
   así los logos blancos, oscuros o de color se ven TODOS
   iguales (mismo color y tamaño), sin importar su original. */
.techstack-logos { background: var(--deep-blue); border-color: rgba(255,255,255,0.08); }
.techstack-logos .powered { color: rgba(255,255,255,0.5); }
.techstack-logos .marquee-track { opacity: 1; }
.techstack-logos .marquee::before { background: linear-gradient(to right, var(--deep-blue) 12%, transparent); }
.techstack-logos .marquee::after { background: linear-gradient(to left, var(--deep-blue) 12%, transparent); }
.marquee-logo {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; width: 150px; height: 60px; padding: 0 16px;
}
.marquee-logo img {
  max-height: 34px; max-width: 118px; width: auto; object-fit: contain;
  filter: brightness(0) invert(1); opacity: 0.72;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.techstack-logos .marquee:hover .marquee-logo img { opacity: 0.9; }
.marquee-logo:hover img { filter: none; opacity: 1; }
@media (max-width: 720px) {
  .marquee-logo { width: 120px; height: 52px; padding: 0 12px; }
  .marquee-logo img { max-height: 28px; max-width: 96px; }
}

/* ============================================================
   SECTOR PAGES — componentes ricos (identidad por sector)
   ============================================================ */
.sector-hero { padding: 120px 0 56px; }
.sector-hero .split { align-items: center; }
.sector-hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 16px; }
.sector-hero p.lead { margin-bottom: 26px; }
.sector-hero .hero-actions { gap: 14px; }

/* Tarjeta de estadística (hero) */
.stat-hero {
  background: #fff; border: 1px solid var(--border); border-radius: 22px;
  padding: 36px; box-shadow: var(--shadow-lg); text-align: center;
}
.stat-hero .big {
  font-family: var(--font-head); font-weight: 800; font-size: 3.6rem; line-height: 1;
  background: linear-gradient(100deg, #216bff, #22d3ee);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.stat-hero .cap { color: rgba(31,41,55,0.6); font-size: 0.96rem; margin-top: 12px; }
.stat-hero .live {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #10b981;
}
.stat-hero .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #10b981; }

/* Nota de integración en tarjetas de módulo */
.intg {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border);
  font-family: var(--font-ui); font-size: 0.76rem; color: var(--electric-blue); font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}

/* Banda de métricas destacadas */
.metrics-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 860px; margin: 0 auto; }
.metrics-band .metric { text-align: center; padding: 26px 18px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-card); }
.metrics-band .metric .num { font-size: 2.4rem; }
.metrics-band .metric .lbl { font-size: 0.85rem; margin-top: 6px; }

@media (max-width: 720px) {
  .metrics-band { grid-template-columns: 1fr; }
  .sector-hero { padding: 110px 0 44px; }
}






/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 250;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-card {
  width: 360px;
  max-width: calc(100vw - 48px);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(7, 24, 77, 0.12);
}
.cookie-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--deep-blue);
}
.cookie-header span {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
}
.cookie-text {
  font-size: 0.8rem;
  color: var(--charcoal);
  line-height: 1.6;
  margin-bottom: 16px;
}
.cookie-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.cookie-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cookie-btn:hover {
  transform: translateY(-1px);
}
.cookie-accept {
  background: linear-gradient(to bottom, #216bff, #22d3ee);
  color: #fff;
  box-shadow: 0 4px 12px rgba(33, 107, 255, 0.2);
}
.cookie-accept:hover {
  box-shadow: 0 6px 20px rgba(33, 107, 255, 0.3);
}
.cookie-necessary {
  background: var(--gray-light);
  color: var(--deep-blue);
  border: 1px solid var(--border);
}
.cookie-necessary:hover {
  background: #eef1f8;
}
.cookie-reject {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--border);
}
.cookie-reject:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}
.cookie-link {
  display: block;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--electric-blue);
  text-decoration: none;
}
.cookie-link:hover {
  text-decoration: underline;
}
@media (max-width: 480px) {
  .cookie-banner {
    bottom: 16px;
    left: 16px;
    right: 16px;
  }
  .cookie-card {
    width: 100%;
    max-width: 100%;
  }
}


/* ============================================================
   ACCESSIBILITY & AEO
   ============================================================ */
.skip-to-main {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px 20px;
  background: var(--electric-blue);
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 999;
  transition: top 0.2s;
}
.skip-to-main:focus {
  top: 12px;
}
details summary {
  list-style: none;
}
details summary::-webkit-details-marker {
  display: none;
}
details[open] summary {
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}


/* Blog load more */
.blog-hidden { display: none; }
.blog-hidden.blog-visible { display: grid; margin-top: 26px; }


/* Sector suggestion pills */
.sector-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #fff;
  border: 1px solid rgba(232, 237, 245, 0.9);
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--deep-blue);
  box-shadow: 0 2px 10px rgba(7, 24, 77, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}
.sector-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--electric-blue);
  transition: transform 0.3s ease, background 0.3s ease;
}
.sector-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(33, 107, 255, 0.15);
  border-color: var(--electric-blue);
  color: var(--electric-blue);
}
.sector-pill:hover .sector-pill-dot {
  background: var(--cyan-tech);
  transform: scale(1.3);
}
#sectorSuggestions a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(33, 107, 255, 0.15);
  border-color: var(--electric-blue);
  color: var(--electric-blue);
}

