/* =========================================================================
   DIGITAL ENERGY ADVANCE — Diseño Corporativo de Autor (Fondo Claro)
   Dos Divisiones Independientes:
   1) Ingeniería y Tecnología (Principal)
   2) Marketing y Crecimiento (Acceso Directo)
   Optimizado para Desktop, Tablet y Móvil
   ========================================================================= */
:root {
  --white: #FFFFFF;
  --surface: #F8FAFC;
  --surface-2: #F1F5F9;
  --navy: #0B192C;
  --navy-soft: #142640;
  --ink: #0F172A;
  --body: #334155;
  --muted: #64748B;
  --border: #E2E8F0;
  --border-2: #CBD5E1;

  /* Paleta Corporativa Sobria — Ingeniería y Tecnología */
  --tech: #0369A1;
  --tech-2: #0284C7;
  --tech-soft: #F0F9FF;
  --tech-border: #BAE6FD;

  /* Paleta Corporativa Sobria — Marketing y Crecimiento */
  --mkt: #C2410C;
  --mkt-2: #D97706;
  --mkt-soft: #FFF7ED;
  --mkt-border: #FED7AA;

  --wa: #16A34A;
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;

  --shadow-xs: 0 1px 3px rgba(11, 25, 44, 0.04);
  --shadow-sm: 0 6px 20px -6px rgba(11, 25, 44, 0.07);
  --shadow-md: 0 16px 38px -12px rgba(11, 25, 44, 0.12);
  --shadow-lg: 0 28px 60px -18px rgba(11, 25, 44, 0.18);

  --font-display: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 126px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--tech-2); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ======================== BARRA SUPERIOR DE ACCESO (SIN PALABRA MÓDULO) ======================== */
.division-topbar {
  background: var(--navy);
  color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.division-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 6px 0;
}
.topbar-loc {
  font-size: 11.5px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.topbar-loc .pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65);
  animation: pulseLive 2.2s infinite;
}
@keyframes pulseLive {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.division-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.div-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #CBD5E1;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}
.div-btn:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }
.div-btn .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.div-btn.tech-btn .dot { background: #38BDF8; }
.div-btn.mkt-btn .dot { background: #FB923C; }

.div-btn.active-tech {
  background: #FFFFFF;
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.div-btn.active-tech .dot { background: var(--tech); }

.div-btn.active-mkt {
  background: #FFFFFF;
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.div-btn.active-mkt .dot { background: var(--mkt); }

.div-btn.cta-mkt-idle {
  background: linear-gradient(90deg, #C2410C, #D97706);
  color: #FFFFFF;
}
.div-btn.cta-mkt-idle:hover { filter: brightness(1.08); }
.div-btn.cta-mkt-idle .dot { background: #FEF3C7; }

.div-btn.cta-tech-idle {
  background: linear-gradient(90deg, #0369A1, #0284C7);
  color: #FFFFFF;
}
.div-btn.cta-tech-idle .dot { background: #E0F2FE; }

/* ======================== HEADER PRINCIPAL ======================== */
.site-header {
  position: sticky;
  top: 48px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand-iso {
  width: 42px;
  height: 42px;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.brand:hover .brand-iso { transform: scale(1.06) rotate(-2deg); }
.brand-wordmark {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--body);
}
.nav-links a {
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--tech);
  transition: width 0.25s ease;
}
body.mode-mkt .nav-links a::after { background: var(--mkt); }
.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  background: #FFFFFF;
  color: var(--navy);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }

.mobile-drawer {
  display: none;
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  padding: 16px 24px 22px;
  box-shadow: var(--shadow-md);
}
.mobile-drawer.open { display: block; }
.mobile-drawer a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}
.mobile-drawer-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

/* ======================== BOTONES DE PRECISIÓN ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 19px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }

.btn-tech { background: var(--tech); color: #FFFFFF; box-shadow: 0 8px 18px -6px rgba(3, 105, 161, 0.45); }
.btn-tech:hover { background: #075985; box-shadow: 0 12px 24px -6px rgba(3, 105, 161, 0.55); }

.btn-mkt { background: var(--mkt); color: #FFFFFF; box-shadow: 0 8px 18px -6px rgba(194, 65, 12, 0.45); }
.btn-mkt:hover { background: #9A3412; box-shadow: 0 12px 24px -6px rgba(194, 65, 12, 0.55); }

.btn-navy { background: var(--navy); color: #FFFFFF; }
.btn-navy:hover { background: var(--navy-soft); box-shadow: var(--shadow-sm); }

.btn-outline { background: #FFFFFF; border-color: var(--border-2); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); background: var(--surface); }

.btn-wa { background: var(--wa); color: #FFFFFF; }
.btn-wa:hover { background: #15803D; box-shadow: 0 8px 20px -6px rgba(22, 163, 74, 0.45); }

.btn-sm { padding: 8px 14px; font-size: 12px; }

/* ======================== TRANSICIÓN DE PÁGINAS ======================== */
.page-view { display: block; animation: viewEnter 0.42s cubic-bezier(0.2, 0.8, 0.2, 1); }
.page-view[hidden] { display: none !important; }
@keyframes viewEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======================== HERO EDITORIAL CON PROFUNDIDAD Y ANIMACIÓN ======================== */
.hero-stage {
  position: relative;
  padding: 58px 0 64px;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-bottom: 1px solid var(--border);
}
.hero-ambient-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.07;
  pointer-events: none;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.65;
}
.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow-badge.tech { background: var(--tech-soft); color: var(--tech); border: 1px solid var(--tech-border); }
.eyebrow-badge.mkt { background: var(--mkt-soft); color: var(--mkt); border: 1px solid var(--mkt-border); }

.hero-stage h1 {
  font-size: clamp(25px, 2.85vw, 36px);
  font-weight: 800;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 10px;
}
.hero-stage h1 .accent-tech { color: var(--tech); }
.hero-stage h1 .accent-mkt { color: var(--mkt); }

.hero-subheadline {
  font-family: var(--font-display);
  font-size: clamp(14.5px, 1.35vw, 17px);
  font-weight: 600;
  color: var(--navy-soft);
  margin-bottom: 14px;
  line-height: 1.4;
}
.hero-desc {
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.66;
  max-width: 580px;
  margin-bottom: 24px;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.hm-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-xs);
}
.hm-val {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--tech);
  line-height: 1.15;
}
.hm-val.mkt { color: var(--mkt); }
.hm-lbl {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.35;
}

/* Escenario Visual Derecho del Hero (Fotografía Real + Tarjetas Flotantes Animadas) */
.hero-visual-stage {
  position: relative;
  padding: 12px 0;
}
.visual-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  background: var(--navy);
}
.visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.visual-frame:hover img { transform: scale(1.04); }
.visual-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,25,44,0.06) 0%, rgba(11,25,44,0.48) 100%);
  pointer-events: none;
}
.visual-caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  max-width: 56%;
  z-index: 2;
  color: #FFFFFF;
}
.visual-caption strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  display: block;
}
.visual-caption span {
  font-size: 11px;
  color: #E2E8F0;
  display: block;
  line-height: 1.35;
}

.float-badge {
  position: absolute;
  z-index: 4;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 15px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
}
.float-badge.top-left {
  top: -8px;
  left: -18px;
  animation: floatCardA 5.5s ease-in-out infinite;
}
.float-badge.bottom-right {
  bottom: -18px;
  right: -12px;
  animation: floatCardB 6.2s ease-in-out infinite;
}
@keyframes floatCardA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes floatCardB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.fb-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fb-icon.tech { background: var(--tech-soft); color: var(--tech); }
.fb-icon.mkt { background: var(--mkt-soft); color: var(--mkt); }
.fb-icon svg { width: 18px; height: 18px; }
.float-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12.5px;
  color: var(--navy);
  line-height: 1.2;
}
.float-badge span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

/* ======================== BANDA EJECUTIVA DE RENTABILIDAD (PROFUNDIDAD VISUAL) ======================== */
.impact-band {
  background: linear-gradient(135deg, #0B192C 0%, #13253E 100%);
  color: #FFFFFF;
  padding: 52px 0;
  position: relative;
  overflow: hidden;
}
.impact-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.impact-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.impact-head h2 {
  color: #FFFFFF;
  font-size: clamp(20px, 2.2vw, 27px);
  max-width: 620px;
}
.impact-head p {
  color: #CBD5E1;
  font-size: 13.8px;
  max-width: 440px;
}
.impact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.impact-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid #38BDF8;
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.impact-card.mkt-accent { border-top-color: #FB923C; }
.impact-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.09); }
.impact-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #7DD3FC;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}
.impact-card.mkt-accent .impact-num { color: #FDBA74; }
.impact-card h3 { color: #FFFFFF; font-size: 15px; margin-bottom: 7px; }
.impact-card p { color: #CBD5E1; font-size: 13px; line-height: 1.55; }

/* ======================== SECCIONES Y TARJETAS CON FOTOGRAFÍA REAL ======================== */
.section {
  padding: 72px 0;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.section-soft { background: var(--surface); }

.section-header {
  max-width: 720px;
  margin-bottom: 40px;
}
.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.sec-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tech);
  margin-bottom: 8px;
}
.sec-eyebrow.mkt { color: var(--mkt); }
.section-header h2 {
  font-size: clamp(21px, 2.3vw, 29px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}
.section-header p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.62;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* Tarjeta Industrial con Fotografía Real + Efecto Zoom */
.photo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.photo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--tech-border);
}
.photo-card.mkt-card:hover { border-color: var(--mkt-border); }

.photo-card-media {
  position: relative;
  height: 168px;
  overflow: hidden;
  background: var(--navy);
}
.photo-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}
.photo-card:hover .photo-card-media img { transform: scale(1.07); }
.photo-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,25,44,0.05) 0%, rgba(11,25,44,0.62) 100%);
}
.media-badge {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
}
.media-badge.priority { background: var(--tech); color: #FFFFFF; }
.media-badge.mkt { background: var(--mkt); color: #FFFFFF; }

.photo-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.photo-card-body h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.photo-card-body p {
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.58;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
}
.chip {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--navy);
  border: 1px solid var(--border);
}

/* Tarjeta de Servicio Elegante (con icono arquitectónico) */
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--mkt-border);
}
.srv-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  background: var(--mkt-soft);
  color: var(--mkt);
  border: 1px solid var(--mkt-border);
}
.srv-icon.tech { background: var(--tech-soft); color: var(--tech); border-color: var(--tech-border); }
.srv-icon svg { width: 21px; height: 21px; }
.service-card h3 { font-size: 16px; margin-bottom: 7px; }
.service-card p { font-size: 13.5px; color: var(--body); line-height: 1.58; }

/* Bloque Secundario Compacto: Comercios, Gastronomía, Web Apps, Aplicaciones */
.secondary-panel {
  margin-top: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.secondary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.secondary-head h3 { font-size: 16.5px; }
.secondary-head span { font-size: 12.5px; color: var(--muted); }
.secondary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sec-mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 15px;
  transition: border-color 0.2s, background 0.2s;
}
.sec-mini-card:hover { background: var(--white); border-color: var(--tech-border); }
.sec-mini-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 4px;
}
.sec-mini-card p { font-size: 12.2px; color: var(--muted); line-height: 1.48; }

/* ======================== CONSOLA INTERACTIVA DE DIAGNÓSTICO IA ======================== */
.ai-workbench {
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.ai-wb-top {
  background: var(--navy);
  color: #FFFFFF;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.ai-wb-top h3 { color: #FFFFFF; font-size: 16px; }
.ai-wb-top p { color: #94A3B8; font-size: 12.5px; margin-top: 2px; }
.ai-badge-live {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  color: #7DD3FC;
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.ai-badge-live.mkt {
  background: rgba(251, 146, 60, 0.16);
  color: #FDBA74;
  border-color: rgba(251, 146, 60, 0.38);
}

.ai-wb-body { padding: 26px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ai-chip {
  font-size: 12px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s ease;
}
.ai-chip:hover { background: var(--tech-soft); border-color: var(--tech); color: var(--tech); }
.ai-chip.mkt:hover { background: var(--mkt-soft); border-color: var(--mkt); color: var(--mkt); }

.ai-controls {
  display: grid;
  grid-template-columns: 230px 1fr auto;
  gap: 12px;
  align-items: stretch;
}
.ai-select, .ai-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.8px;
  transition: border-color 0.2s, background 0.2s;
}
.ai-select:focus, .ai-input:focus {
  outline: none;
  border-color: var(--tech);
  background: var(--white);
}
.ai-input { min-height: 54px; resize: vertical; }

.ai-output {
  margin-top: 22px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--tech);
  display: none;
}
.ai-output.mkt { border-left-color: var(--mkt); }
.ai-output.visible { display: block; animation: viewEnter 0.35s ease; }

.ai-output-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 12px;
}
.ai-out-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px 16px;
}
.ai-out-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12.5px;
  color: var(--navy);
  margin-bottom: 6px;
}
.ai-out-card p { font-size: 13px; color: var(--body); line-height: 1.55; }

.ai-output-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ======================== CASO DE ÉXITO VEKTRA (LAYOUT EDITORIAL SPLIT) ======================== */
.case-split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 32px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-md);
}
.case-split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--navy);
}
.case-split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-overlay-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 25, 44, 0.88);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}
.case-kpis-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.ck-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.ck-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12.5px;
  color: var(--navy);
  margin-bottom: 3px;
}
.ck-item span { font-size: 12px; color: var(--muted); line-height: 1.4; display: block; }

/* ======================== CASOS DE ÉXITO MARKETING (FOTOS REALES) ======================== */
.creator-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.creator-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.creator-img {
  position: relative;
  height: 255px;
  overflow: hidden;
  background: var(--surface-2);
}
.creator-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}
.creator-card:hover .creator-img img { transform: scale(1.05); }
.creator-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--navy);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.creator-body { padding: 20px 22px 22px; }
.creator-body .niche {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mkt);
}
.creator-body h3 { font-size: 17.5px; margin: 5px 0 8px; }
.creator-body p { font-size: 13.5px; color: var(--body); line-height: 1.56; }

/* ======================== EQUIPO (FOTOS CORREGIDAS Y ENCUADRADAS) ======================== */
.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.founder-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.founder-photo {
  width: 112px;
  height: 112px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--navy);
  flex-shrink: 0;
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
}
.founder-card .role-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tech);
  margin-bottom: 4px;
}
.founder-card .role-tag.mkt { color: var(--mkt); }
.founder-card h3 { font-size: 17px; }
.founder-card .subtitle { font-size: 12.5px; font-weight: 600; color: var(--navy-soft); margin-top: 2px; }
.founder-card p { font-size: 13px; color: var(--muted); margin-top: 7px; line-height: 1.5; }

.member-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.member-photo {
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid var(--tech);
  background: var(--surface-2);
}
.member-photo.mkt { border-color: var(--mkt); }
.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.member-photo .zoom-circle { transform: scale(1.18); object-position: center 24%; }
.member-photo .zoom-soft { transform: scale(1.22); object-position: center 20%; }

.member-card h4 { font-size: 15.5px; }
.member-card .m-role {
  font-size: 12px;
  font-weight: 700;
  color: var(--tech);
  margin-top: 4px;
}
.member-card .m-role.mkt { color: var(--mkt); }
.member-card p { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.48; }

/* ======================== FORMULARIOS Y CONTACTO ======================== */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
}
.contact-panel {
  background: var(--navy);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-md);
}
.contact-panel h3 { color: #FFFFFF; font-size: 20px; margin-bottom: 10px; }
.contact-panel > p { color: #CBD5E1; font-size: 13.5px; line-height: 1.6; margin-bottom: 22px; }
.channel-stack { display: grid; gap: 11px; }
.channel-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s;
}
a.channel-card:hover { background: rgba(255, 255, 255, 0.12); }
.channel-card small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94A3B8;
}
.channel-card strong { font-size: 13.5px; color: #FFFFFF; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 5px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--tech);
  background: var(--white);
}
.field textarea { min-height: 96px; resize: vertical; }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.form-msg { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13px; display: none; }
.form-msg.ok { display: block; background: #DCFCE7; border: 1px solid #86EFAC; color: #166534; }
.form-msg.err { display: block; background: #FEE2E2; border: 1px solid #FCA5A5; color: #991B1B; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ======================== FOOTER Y WHATSAPP ======================== */
.site-footer {
  background: var(--navy);
  color: #CBD5E1;
  padding: 46px 0 26px;
  font-size: 13px;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #94A3B8;
}

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 17px;
  border-radius: 999px;
  background: var(--wa);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 12px 28px -6px rgba(22, 163, 74, 0.55);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 20px; height: 20px; }

/* ======================== ANIMACIONES DE ENTRADA AL SCROLL ======================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.06s; }
.reveal.d2 { transition-delay: 0.12s; }
.reveal.d3 { transition-delay: 0.18s; }
.reveal.d4 { transition-delay: 0.24s; }

/* ======================== RESPONSIVE (TABLET & CELULAR) ======================== */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-layout, .case-split, .contact-layout, .ai-controls, .ai-output-grid {
    grid-template-columns: 1fr;
  }
  .impact-grid, .grid-4, .secondary-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .float-badge.top-left { left: 8px; top: 8px; }
  .float-badge.bottom-right { right: 8px; bottom: 8px; }
}
@media (max-width: 720px) {
  .topbar-loc { display: none; }
  .division-topbar-inner { justify-content: center; }
  .division-switch { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .div-btn { justify-content: center; padding: 8px 10px; font-size: 11.5px; }
  .nav-actions { display: none; }
  .founders-grid, .grid-3, .grid-2, .grid-4, .impact-grid, .secondary-grid, .hero-metrics, .form-row, .form-actions, .case-kpis-mini {
    grid-template-columns: 1fr;
  }
  .founder-card { grid-template-columns: 1fr; text-align: center; }
  .founder-photo { margin: 0 auto; }
  .wa-float span { display: none; }
  .wa-float { padding: 13px; }
  .section { padding: 52px 0; }
  .hero-stage { padding: 38px 0 46px; }
  .float-badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
