/* ============================================================
   SOPLAI — Redesign
   Primary: #002358 (deep navy) · Secondary: #009ea1 (teal)
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  /* Brand */
  --primary:       #002358;
  --primary-dark:  #001640;
  --primary-light: #003580;
  --secondary:     #009ea1;
  --secondary-dark:#007b7e;
  --secondary-light:#00c5c9;
  --secondary-glow: rgba(0,158,161,0.18);

  /* Neutrals */
  --white:   #ffffff;
  --gray-50: #f4f7fb;
  --gray-100:#e8edf5;
  --gray-200:#cdd5e0;
  --gray-400:#8a97ab;
  --gray-600:#4a5568;
  --gray-800:#1a2535;
  --black:   #000d1a;

  /* Semantic */
  --bg:      var(--white);
  --surface: var(--white);
  --surface-alt: var(--gray-50);
  --ink:     #0d1b2a;
  --ink-2:   #374151;
  --ink-3:   #6b7280;
  --line:    #e2e8f0;

  /* Status */
  --green:  #10b981;
  --amber:  #f59e0b;
  --red:    #ef4444;

  /* Tinted fills */
  --teal-10: rgba(0,158,161,0.08);
  --teal-20: rgba(0,158,161,0.18);
  --navy-10: rgba(0,35,88,0.08);

  /* Gradients */
  --grad-brand:   linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --grad-teal:    linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-light) 100%);
  --grad-dark:    linear-gradient(160deg, var(--primary-dark) 0%, #002f6c 100%);
  --grad-subtle:  linear-gradient(135deg, #f4f7fb 0%, #e8f4f8 100%);

  /* Typography */
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-sans:    'Poppins', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --sp-1:  8px;  --sp-2: 16px;  --sp-3: 24px;  --sp-4: 32px;
  --sp-5: 40px;  --sp-6: 48px;  --sp-8: 64px;  --sp-10:80px;
  --sp-12:96px;

  /* Radii */
  --r-sm: 6px;  --r-md: 10px;  --r-lg: 16px;
  --r-xl: 20px; --r-2xl:28px;  --r-full: 9999px;

  /* Shadows */
  --shadow-teal: 0 8px 32px rgba(0,158,161,0.22);
  --shadow-navy: 0 8px 32px rgba(0,35,88,0.18);
  --shadow-sm:   0 2px 8px rgba(13,27,42,0.07);
  --shadow-md:   0 8px 28px rgba(13,27,42,0.10);
  --shadow-lg:   0 20px 48px rgba(13,27,42,0.14);

  /* Transitions */
  --t-fast:   150ms ease;
  --t-normal: 260ms ease;
  --t-slow:   420ms ease;

  /* Focus */
  --focus-ring: 0 0 0 3px rgba(0,158,161,0.4);

  /* Z-index */
  --z-nav:   100;
  --z-modal: 200;
  --z-toast: 300;
}

/* Dark theme */
[data-theme="dark"] {
  --bg:        #0a1628;
  --surface:   #0f1e35;
  --surface-alt: #162540;
  --ink:       #e8edf5;
  --ink-2:     #a8b4c4;
  --ink-3:     #6b7a8d;
  --line:      #1e2f45;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
  --shadow-md: 0 8px 28px rgba(0,0,0,0.45);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.55);
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background var(--t-normal), color var(--t-normal);
}
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { color: inherit; }

/* Apply display font to all headings + key numeric elements */
h1, h2, h3, h4, h5, h6,
.logo span,
.stat-num,
.roi-num strong,
.servicio-pricing-value,
.dash-kpi-value {
  font-family: var(--font-display);
}

/* Skip link */
.skip-link {
  position: absolute; top: -48px; left: 50%;
  transform: translateX(-50%);
  background: var(--secondary); color: var(--white);
  padding: 10px 22px; border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 700; font-size: 14px; text-decoration: none;
  z-index: var(--z-modal); transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-sm); }

/* ---- Utilities ---- */
.mono { font-family: var(--font-mono); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.section { padding: var(--sp-12) var(--sp-4); max-width: 1280px; margin: 0 auto; }

/* ============================================================
   TYPOGRAPHY TOKENS
   ============================================================ */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: var(--sp-2);
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--secondary);
  border-radius: 1px;
  flex-shrink: 0;
}
.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: var(--sp-2);
  max-width: 820px;
}
.section-lead {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 680px;
  margin-bottom: 52px;
  line-height: 1.65;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t-normal), background var(--t-fast), color var(--t-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  /* Default: teal fill */
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(0,158,161,0.28);
}
.btn:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}
.btn:active { transform: translateY(0); }
.btn:focus-visible { box-shadow: var(--focus-ring); }

.btn-primary {
  background: var(--primary);
  box-shadow: 0 4px 18px rgba(0,35,88,0.28);
}
.btn-primary:hover { background: var(--primary-light); box-shadow: var(--shadow-navy); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: white; transform: translateY(-2px); }

.btn-ghost-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: none;
}
.btn-ghost-dark:hover { background: var(--primary); color: white; transform: translateY(-2px); }

.btn-lg { padding: 16px 40px; font-size: 17px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* Ripple */
.btn .ripple-effect {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  transform: scale(0);
  animation: ripple 0.5s linear;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t-normal), background var(--t-normal), border-color var(--t-normal);
}
[data-theme="dark"] .nav {
  background: rgba(10,22,40,0.92);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--sp-4); height: 80px;
}

.logo {
  font-weight: 800; font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--primary);
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
[data-theme="dark"] .logo { color: var(--white); }
.logo-img { height: 75px; width: auto; display: block; }
.logo-img-footer { height: 100px; width: auto; display: block; }

.logo-mark {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: var(--grad-brand);
  flex-shrink: 0;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.logo-mark::before, .logo-mark::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,0.9);
  border-radius: 1px;
}
.logo-mark::before { left: 8px; top: 9px; width: 12px; height: 2px; }
.logo-mark::after  { left: 8px; top: 15px; width: 18px; height: 2px; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link {
  font-size: 15px; font-weight: 500;
  color: var(--ink-2); text-decoration: none;
  padding: 6px 2px; position: relative;
  transition: color var(--t-fast);
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--secondary);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-normal);
  border-radius: 1px;
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-controls {
  display: flex; align-items: center; gap: var(--sp-2);
}
.lang-btn {
  font-size: 13px; font-weight: 700;
  color: var(--ink-2); text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.lang-btn:hover {
  color: var(--primary); border-color: var(--primary);
  background: var(--navy-10);
}
.theme-btn {
  width: 40px; height: 40px;
  border: none; border-radius: var(--r-md);
  background: var(--surface-alt);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background var(--t-fast), transform var(--t-fast);
}
.theme-btn:hover { background: var(--line); transform: rotate(12deg); }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="dark"]  .icon-moon { display: none; }

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center; align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer; padding: 8px;
  border-radius: var(--r-md);
  transition: background var(--t-fast);
}
.menu-btn:hover { background: var(--surface-alt); }
.menu-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 1px;
  transition: transform var(--t-normal), opacity var(--t-normal);
  transform-origin: center;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none; flex-direction: column; gap: 4px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.nav-drawer.open { display: flex; }
.nav-drawer .nav-link {
  padding: 12px var(--sp-2); border-radius: var(--r-md); font-size: 15px;
}
.nav-drawer .nav-link:hover { background: var(--surface-alt); }
.nav-drawer .btn { margin-top: var(--sp-1); }

/* ============================================================
   HERO  —  asymmetric split layout, light background
   ============================================================ */
.hero-wrap {
  background: var(--white);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* Fine dot grid */
.hero-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,35,88,0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
/* Teal glow — upper right */
.hero-wrap::after {
  content: '';
  position: absolute;
  top: -15%; right: -8%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,158,161,0.12) 0%, transparent 62%);
  pointer-events: none;
}

/* ---- Split grid ---- */
.hero {
  padding: 100px var(--sp-4) 96px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--sp-8);
  align-items: center;
}

/* Left column */
.hero-content { max-width: 640px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px;
  background: rgba(0,35,88,0.06);
  border: 1px solid rgba(0,35,88,0.15);
  color: var(--primary);
  border-radius: var(--r-full);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.hero-eyebrow::before { display: none; }
.hero-eyebrow .eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--secondary); flex-shrink: 0;
  animation: livePulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--primary);
  margin: 0 0 var(--sp-3);
}
.hero h1 .accent {
  color: var(--secondary);
  position: relative;
  display: inline-block;
}
.hero h1 .accent::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), transparent);
  border-radius: 2px;
  opacity: 0.45;
}
@media (forced-colors: active) { .hero h1 .accent { color: currentColor; } }

.hero-lead {
  font-size: 18px;
  color: var(--ink-2);
  margin: 0 0 var(--sp-5);
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* ---- Right column: floating metrics panel ---- */
.hero-visual {
  position: relative;
  z-index: 1;
}
.hero-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: var(--sp-4);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,158,161,0.1);
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line);
}
.panel-title { font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; }
.panel-live {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--secondary); font-weight: 700;
}
.panel-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--secondary);
  animation: livePulse 2s ease-in-out infinite;
}

.panel-metrics { display: flex; flex-direction: column; gap: 14px; }
.panel-metric {
  background: var(--surface-alt);
  border-radius: var(--r-md);
  padding: 14px 16px;
  border: 1px solid var(--line);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.panel-metric:hover { background: var(--teal-10); border-color: rgba(0,158,161,0.25); }
.panel-metric-top {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 8px;
}
.panel-metric-val {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.panel-metric-val.positive { color: var(--secondary); }
.panel-metric-val.negative { color: #059669; }
.panel-metric-label { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.panel-metric-bar {
  height: 4px; background: var(--gray-100);
  border-radius: 2px; overflow: hidden;
}
.panel-metric-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--grad-teal);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.panel-metric-sub {
  margin-top: 6px; font-size: 11px;
  color: var(--ink-3); font-family: var(--font-mono);
}

.panel-footer {
  margin-top: var(--sp-3);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.panel-footer-label { font-size: 11px; color: var(--ink-3); }
.panel-footer-val {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  color: var(--secondary);
}

/* ---- Stats strip ---- */
.hero-stats-bar {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  padding: 36px var(--sp-4);
  position: relative; z-index: 1;
}
.hero-stats {
  max-width: 960px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.stat {
  text-align: center; padding: var(--sp-2);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-size: 42px; font-weight: 800; line-height: 1;
  color: var(--primary); letter-spacing: -0.04em;
}
.stat-num .num-suffix { font-size: 22px; color: var(--secondary); font-family: var(--font-display); }
.stat-label { margin-top: 8px; font-size: 13px; color: var(--ink-3); font-weight: 500; }

/* ============================================================
   PROBLEM
   ============================================================ */
.problema-section { background: var(--bg); }
.problemas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--sp-3);
}
.problema-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  position: relative;
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
  overflow: hidden;
}
.problema-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--secondary);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform var(--t-normal);
}
.problema-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}
.problema-card:hover::before { transform: scaleY(1); }

.problema-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--teal-10);
  color: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
  margin-bottom: var(--sp-2);
  border: 1px solid rgba(0,158,161,0.2);
}
.problema-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.problema-card p  { color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.problema-card .cost {
  margin-top: var(--sp-2);
  display: inline-block;
  font-size: 12px;
  color: var(--secondary-dark);
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 4px 10px;
  background: var(--teal-10);
  border-radius: var(--r-full);
  border: 1px solid rgba(0,158,161,0.2);
}

/* ============================================================
   SERVICES  —  light section with clip-path accent edges
   ============================================================ */
.servicios-section {
  background: var(--gray-50);
  position: relative;
  padding: 0;
  clip-path: polygon(0 52px, 100% 0, 100% calc(100% - 52px), 0 100%);
  margin: -1px 0;
}
.servicios-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--sp-12) + 40px) var(--sp-4) calc(var(--sp-12) + 40px);
}

.servicios-section .section-eyebrow { color: var(--secondary); }
.servicios-section .section-title { color: var(--ink); }
.servicios-section .section-lead  { color: var(--ink-2); }

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--sp-3);
}
.servicio-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-4);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t-normal), box-shadow var(--t-normal), background var(--t-normal);
}
.servicio-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--secondary);
  opacity: 0.6;
  transition: opacity var(--t-normal), height var(--t-normal);
}
.servicio-card:hover {
  transform: translateY(-6px);
  background: var(--white);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0,158,161,0.3);
}
.servicio-card:hover::before { opacity: 1; height: 4px; }

.servicio-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--grad-teal);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  margin-bottom: var(--sp-3);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,158,161,0.3);
}
.servicio-card h3     { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--primary); }
.servicio-card .tagline { font-size: 13px; color: var(--ink-3); margin-bottom: var(--sp-3); font-weight: 500; }
.servicio-card ul     { list-style: none; margin-bottom: var(--sp-4); flex: 1; }
.servicio-card ul li  {
  padding: 6px 0 6px 22px;
  font-size: 14px; color: var(--ink-2);
  position: relative; line-height: 1.5;
}
.servicio-card ul li::before {
  content: '';
  position: absolute; left: 0; top: 13px;
  width: 10px; height: 4px;
  border-left: 2px solid var(--secondary);
  border-bottom: 2px solid var(--secondary);
  transform: rotate(-45deg);
}
.servicio-pricing {
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.servicio-pricing-label { font-size: 11px; color: var(--ink-3); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.servicio-pricing-value { font-size: 20px; font-weight: 800; color: var(--secondary); margin-top: 4px; font-family: var(--font-mono); }
.servicio-pricing-detail { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

/* Kit tools */
.kit-internas {
  background: rgba(0,158,161,0.08);
  border: 1px solid rgba(0,158,161,0.25);
  border-radius: var(--r-2xl);
  padding: var(--sp-6) var(--sp-6);
  margin-top: var(--sp-6);
  position: relative; overflow: hidden;
}
.kit-internas::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0,158,161,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.kit-internas h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; color: var(--primary); position: relative; }
.kit-internas p  { font-size: 15px; color: var(--ink-2); margin-bottom: var(--sp-4); max-width: 580px; position: relative; }
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; position: relative; }
.tool-chip {
  padding: 12px 10px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 12px; font-weight: 600;
  text-align: center; color: var(--ink-2);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  cursor: default;
}
.tool-chip:hover {
  background: var(--teal-10);
  border-color: var(--secondary);
  transform: translateY(-2px);
  color: var(--secondary-dark);
}
.tool-chip .tool-num { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--secondary); font-weight: 700; margin-bottom: 4px; }

/* ============================================================
   METHODOLOGY
   ============================================================ */
.fases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  position: relative;
}
/* Connecting line */
.fases::before {
  content: '';
  position: absolute;
  top: 30px; left: 48px; right: 48px; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.25;
  z-index: 0;
}
.fase {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-3);
  position: relative; z-index: 1;
  transition: transform var(--t-normal), box-shadow var(--t-normal);
}
.fase:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.fase-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-brand); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px;
  margin-bottom: var(--sp-2);
}
.fase h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.fase p  { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.fase-time {
  margin-top: var(--sp-2);
  font-size: 12px; font-weight: 700;
  color: var(--secondary); font-family: var(--font-mono);
}

/* Dashboard preview */
.dashboard-preview {
  margin-top: var(--sp-8);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: var(--sp-4);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line);
}
.dash-title { font-weight: 700; font-size: 14px; color: var(--ink); }
.dash-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); margin-right: 6px;
}
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.dash-kpi {
  background: var(--surface-alt);
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--line);
}
.dash-kpi-label {
  font-size: 11px; font-weight: 700;
  color: var(--ink-3); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 6px;
}
.dash-kpi-value {
  font-size: 24px; font-weight: 800;
  color: var(--primary); letter-spacing: -0.03em;
}
.dash-kpi-delta {
  font-size: 11px; color: var(--green);
  font-weight: 600; margin-top: 4px;
  font-family: var(--font-mono);
}
.dash-rows { display: flex; flex-direction: column; gap: 2px; }
.dash-row {
  display: grid;
  grid-template-columns: 1fr 60px 52px 90px;
  gap: var(--sp-2);
  align-items: center;
  padding: 10px var(--sp-2);
  border-radius: var(--r-md);
  font-size: 13px;
  transition: background var(--t-fast);
}
.dash-row:hover { background: var(--surface-alt); }
.dash-row .name { font-weight: 600; color: var(--ink); }
.dash-row .val  { text-align: right; font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 8px; border-radius: var(--r-full);
  font-size: 10px; font-weight: 700;
  font-family: var(--font-mono); letter-spacing: 0.04em;
}
.badge-a { background: rgba(0,158,161,0.12); color: var(--secondary-dark); }
.badge-c { background: rgba(239,68,68,0.1); color: var(--red); }

/* ============================================================
   ROI
   ============================================================ */
.roi {
  background: var(--grad-teal);
  color: white;
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  position: relative; overflow: hidden;
}
.roi::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.roi h2 {
  font-size: clamp(26px, 4vw, 42px); font-weight: 800;
  margin-bottom: var(--sp-2); color: white;
}
.roi-lead {
  font-size: 17px; color: rgba(255,255,255,0.85);
  max-width: 640px; line-height: 1.65;
  margin-bottom: var(--sp-6);
}
.roi-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.roi-num {
  padding: var(--sp-3) var(--sp-4);
  border-left: 1px solid rgba(255,255,255,0.2);
}
.roi-num:first-child { border-left: none; }
.roi-num strong {
  display: block;
  font-size: clamp(32px, 4vw, 52px); font-weight: 800;
  color: white; letter-spacing: -0.04em; line-height: 1;
  margin-bottom: 8px;
}
.roi-num span { font-size: 13px; color: rgba(255,255,255,0.75); font-weight: 500; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonios {
  padding: var(--sp-12) var(--sp-4);
  background: var(--bg);
}
.testimonio {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  position: relative; overflow: hidden;
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
}
.testimonio::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-brand);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  opacity: 0;
  transition: opacity var(--t-normal);
}
.testimonio:hover {
  box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent;
}
.testimonio:hover::before { opacity: 1; }

.testimonio-quote {
  font-size: 16px; line-height: 1.7; color: var(--ink);
  margin-bottom: var(--sp-3); font-style: italic;
  position: relative; padding-left: 18px;
}
.testimonio-quote::before {
  content: '\201C';
  position: absolute; top: -12px; left: -2px;
  font-size: 56px; color: var(--secondary);
  font-family: var(--font-sans); font-weight: 800;
  line-height: 1; font-style: normal; opacity: 0.6;
}
.testimonio-author { display: flex; align-items: center; gap: 14px; }
.testimonio-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-brand); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.testimonio-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.testimonio-role { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ============================================================
   ABOUT  —  split layout
   ============================================================ */
.sobre-section { background: var(--surface-alt); }
.sobre-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--sp-8); align-items: center;
}
.sobre-text h2  { font-size: clamp(26px, 4vw, 42px); font-weight: 800; margin-bottom: var(--sp-3); letter-spacing: -0.025em; }
.sobre-text p   { font-size: 16px; line-height: 1.8; color: var(--ink-2); margin-bottom: var(--sp-3); }
.sobre-text p strong { color: var(--primary); }
[data-theme="dark"] .sobre-text p strong { color: var(--secondary-light); }
.sobre-firma { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 2px solid var(--secondary); display: inline-block; }
.sobre-firma-name { font-weight: 700; font-size: 17px; color: var(--primary); }
[data-theme="dark"] .sobre-firma-name { color: var(--secondary-light); }
.sobre-firma-role { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

.sobre-card {
  background: var(--primary);
  border-radius: var(--r-2xl);
  padding: var(--sp-5);
  box-shadow: var(--shadow-navy);
  position: relative; overflow: hidden;
}
.sobre-card::before {
  content: '';
  position: absolute; bottom: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(0,158,161,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.sobre-card h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--secondary);
  margin-bottom: var(--sp-3);
}
.sobre-list { list-style: none; }
.sobre-list li {
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between;
  font-size: 14px; align-items: center; gap: var(--sp-2);
  color: rgba(255,255,255,0.65);
}
.sobre-list li:last-child { border-bottom: none; }
.sobre-list li strong { color: var(--white); font-weight: 700; flex-shrink: 0; }

/* ============================================================
   CONTACT  —  dark navy
   ============================================================ */
.cta-bottom {
  background: var(--primary-dark);
  padding: calc(var(--sp-12) + 40px) var(--sp-4);
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 52px, 100% 0, 100% 100%, 0 100%);
  margin-top: -1px;
}
/* Dot pattern overlay */
.cta-bottom::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,158,161,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.cta-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-8); align-items: start;
  position: relative; z-index: 1;
}
.cta-text .section-eyebrow { color: var(--secondary-light); }
.cta-text h2 {
  font-size: clamp(26px, 4vw, 46px); font-weight: 800;
  letter-spacing: -0.025em; margin-bottom: var(--sp-2);
  color: var(--white);
}
.cta-text p { font-size: 17px; color: rgba(255,255,255,0.65); line-height: 1.65; margin-bottom: var(--sp-4); }
.cta-direct { display: flex; flex-direction: column; gap: var(--sp-2); }
.cta-link-row { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255,255,255,0.6); }
.cta-link-row a { color: var(--secondary-light); font-weight: 600; text-decoration: none; }
.cta-link-row a:hover { color: white; text-decoration: underline; }

/* Form card */
.contact-form-card {
  background: var(--white);
  border-radius: var(--r-2xl);
  padding: var(--sp-5);
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
}
[data-theme="dark"] .contact-form-card { background: var(--surface); }
.contact-form-card h3 { font-size: 19px; font-weight: 700; margin-bottom: var(--sp-3); color: var(--ink); }

.form-group { margin-bottom: var(--sp-2); }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; letter-spacing: 0.02em; }
.form-group label .req { color: var(--secondary); margin-left: 2px; }
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-alt);
  color: var(--ink); font-size: 14px; font-family: var(--font-sans);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  -webkit-appearance: none; appearance: none;
}
.form-control:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(0,158,161,0.15); background: var(--white); }
[data-theme="dark"] .form-control:focus { background: var(--surface); }
.form-control::placeholder { color: var(--gray-400); }
.form-control.error   { border-color: var(--red); }
.form-control.success { border-color: var(--green); }
textarea.form-control { min-height: 80px; resize: vertical; }
select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

.field-error { display: none; font-size: 12px; color: var(--red); margin-top: 5px; font-weight: 600; }
.field-error.visible { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.form-submit-wrap { margin-top: var(--sp-3); }
.form-note { font-size: 12px; color: var(--ink-3); margin-top: var(--sp-1); text-align: center; }
.form-note a { color: var(--secondary); text-decoration: none; }
.form-note a:hover { text-decoration: underline; }

.form-success-msg {
  display: none; text-align: center; padding: var(--sp-3);
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--r-md); color: var(--green); font-weight: 600;
  font-size: 14px; margin-top: var(--sp-3);
}
.form-success-msg.visible { display: block; }
.form-error-msg {
  display: none; text-align: center; padding: var(--sp-2);
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--r-md); color: var(--red); font-size: 13px; margin-top: var(--sp-2);
}
.form-error-msg.visible { display: block; }

.btn-loading { pointer-events: none; opacity: 0.75; }
.btn-loading .btn-text { visibility: hidden; }
.btn-loading .btn-spinner { display: block; }
.btn-spinner {
  display: none; position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  color: white;
  padding: var(--sp-8) var(--sp-4) var(--sp-3);
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-6);
}
.footer-brand .logo { color: white; margin-bottom: var(--sp-2); }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 14px; max-width: 280px; line-height: 1.7; }
.footer h5 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--secondary); margin-bottom: var(--sp-2);
}
.footer a {
  display: block; color: rgba(255,255,255,0.55);
  text-decoration: none; padding: 5px 0; font-size: 14px;
  transition: color var(--t-fast);
}
.footer a:hover { color: var(--secondary-light); }
.footer-bottom {
  max-width: 1280px; margin: var(--sp-6) auto 0;
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--sp-2);
  color: rgba(255,255,255,0.3); font-size: 13px;
}

/* ============================================================
   TESTIMONIALS CAROUSEL
   ============================================================ */
.testimonios-carousel {
  max-width: 1280px; margin: 0 auto;
  position: relative;
  user-select: none;
}
.carousel-viewport {
  overflow: hidden;
  border-radius: var(--r-lg);
  cursor: grab;
}
.carousel-viewport:active { cursor: grabbing; }

.carousel-track {
  display: flex;
  width: 300%;
  will-change: transform;
}
.carousel-page {
  flex: 0 0 calc(100% / 3);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 767px) {
  .carousel-track { width: 900%; gap: 0; }
  /* Flatten pages so each testimonio is a direct flex child of the track */
  .carousel-page  { display: contents; }
  .testimonios-carousel .testimonio { flex: 0 0 calc(100% / 9); padding-left: var(--sp-3); padding-right: var(--sp-3); }
}

.carousel-controls {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-2); margin-top: var(--sp-4);
}
.carousel-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink);
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.carousel-btn:hover {
  background: var(--secondary); color: white; border-color: var(--secondary);
  transform: scale(1.08);
}
.carousel-dots {
  display: flex; align-items: center; gap: 6px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  transition: background var(--t-normal), width var(--t-normal), border-radius var(--t-normal);
  padding: 0;
}
.carousel-dot.active {
  background: var(--secondary);
  width: 24px;
  border-radius: 4px;
}
.carousel-dot:focus-visible { box-shadow: var(--focus-ring); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--primary);
  color: white; padding: 14px 20px;
  border-radius: var(--r-lg); font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,35,88,0.35);
  z-index: var(--z-toast);
  animation: toastSlide 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  max-width: 320px; display: flex; align-items: center; gap: 10px;
  border-left: 4px solid var(--secondary);
}
.toast.hide { animation: toastHide 0.3s ease forwards; }
.toast-icon { font-size: 18px; flex-shrink: 0; }

/* ============================================================
   DARK MODE — component overrides for light-redesigned sections
   ============================================================ */

/* Hero */
[data-theme="dark"] .hero-wrap {
  background: var(--grad-dark);
  border-bottom: none;
}
[data-theme="dark"] .hero-wrap::before {
  background-image: radial-gradient(rgba(0,158,161,0.15) 1px, transparent 1px);
}
[data-theme="dark"] .hero h1 { color: var(--white); }
[data-theme="dark"] .hero-eyebrow {
  background: rgba(0,158,161,0.13);
  border-color: rgba(0,158,161,0.3);
  color: var(--secondary-light);
}
[data-theme="dark"] .hero-lead { color: rgba(255,255,255,0.65); }

[data-theme="dark"] .hero-panel {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 24px 64px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,158,161,0.15);
}
[data-theme="dark"] .panel-header { border-bottom-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .panel-title  { color: rgba(255,255,255,0.5); }
[data-theme="dark"] .panel-metric {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.07);
}
[data-theme="dark"] .panel-metric-label { color: rgba(255,255,255,0.45); }
[data-theme="dark"] .panel-metric-bar   { background: rgba(255,255,255,0.08); }
[data-theme="dark"] .panel-metric-sub   { color: rgba(255,255,255,0.3); }
[data-theme="dark"] .panel-footer       { border-top-color: rgba(255,255,255,0.07); }
[data-theme="dark"] .panel-footer-label { color: rgba(255,255,255,0.3); }

[data-theme="dark"] .hero-stats-bar {
  background: rgba(0,158,161,0.1);
  border-top-color: rgba(0,158,161,0.2);
}
[data-theme="dark"] .stat-num   { color: var(--white); }
[data-theme="dark"] .stat-label { color: rgba(255,255,255,0.5); }
[data-theme="dark"] .stat       { border-right-color: rgba(0,158,161,0.2); }

/* Services */
[data-theme="dark"] .servicios-section { background: var(--primary-dark); }
[data-theme="dark"] .servicios-section .section-title { color: var(--white); }
[data-theme="dark"] .servicios-section .section-lead  { color: rgba(255,255,255,0.6); }

[data-theme="dark"] .servicio-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  box-shadow: none;
}
[data-theme="dark"] .servicio-card:hover {
  background: rgba(255,255,255,0.08);
  box-shadow: 0 20px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,158,161,0.3);
}
[data-theme="dark"] .servicio-card h3       { color: var(--white); }
[data-theme="dark"] .servicio-card .tagline { color: rgba(255,255,255,0.45); }
[data-theme="dark"] .servicio-card ul li    { color: rgba(255,255,255,0.7); }
[data-theme="dark"] .servicio-pricing       { border-top-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .servicio-pricing-label { color: rgba(255,255,255,0.4); }
[data-theme="dark"] .servicio-pricing-detail{ color: rgba(255,255,255,0.35); }

[data-theme="dark"] .kit-internas h3 { color: var(--white); }
[data-theme="dark"] .kit-internas p  { color: rgba(255,255,255,0.55); }
[data-theme="dark"] .tool-chip {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
}

/* ============================================================
   BRAND VISUAL — SoplaAI_info with brain glow effect
   ============================================================ */
.brand-visual-wrap {
  padding: var(--sp-6) var(--sp-4);
  background: var(--gray-50);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brand-visual-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.brand-visual-img {
  display: block;
  width: 100%;
  border-radius: var(--r-2xl);
  box-shadow: 0 24px 64px rgba(0,35,88,0.12), 0 0 0 1px rgba(0,158,161,0.12);
}

/* ── Glow overlay — brain is at ~57% left, ~37% top ──────── */
.brand-visual-glow {
  position: absolute;
  left: 57%;
  top: 37%;
  transform: translate(-50%, -50%);
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle,
    rgba(255, 210, 80,  0.45) 0%,   /* gold hot center */
    rgba(0,   230, 240, 0.60) 20%,  /* cyan mid */
    rgba(0,   197, 201, 0.35) 45%,
    rgba(0,   158, 161, 0.12) 65%,
    transparent 75%
  );
  animation: brainPulse 2.5s ease-in-out infinite;
  mix-blend-mode: screen;
  filter: blur(2px);
}

/* Inner gold-white hot core */
.brand-visual-glow::before {
  content: '';
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 255, 220, 0.95) 0%,   /* warm white */
    rgba(255, 215, 80,  0.70) 35%,  /* gold */
    rgba(160, 245, 255, 0.40) 65%,
    transparent 80%
  );
  animation: brainCore 2.5s ease-in-out infinite 0.6s;
  filter: blur(1px);
}

/* Expanding shockwave ring — gold tinted */
.brand-visual-glow::after {
  content: '';
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle,
    transparent 40%,
    rgba(255, 200, 60,  0.18) 48%,
    rgba(0,   210, 220, 0.22) 55%,
    transparent 68%
  );
  animation: brainRing 3s ease-out infinite;
}

@keyframes brainPulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.92); }
  50%       { opacity: 1;    transform: translate(-50%, -50%) scale(1.22); }
}

@keyframes brainCore {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50%       { opacity: 1;   transform: scale(1.15); }
}

@keyframes brainRing {
  0%   { opacity: 0;   transform: translate(-50%, -50%) scale(0.6); }
  20%  { opacity: 1; }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(1.8); }
}

[data-theme="dark"] .brand-visual-wrap {
  background: var(--primary-dark);
  border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .brand-visual-img {
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,158,161,0.2);
}
