/* ══════════════════════════════════════════════════════════════════════════════
   NiAnd Labs — Core Design System & Motion Engine
   High-Precision Engineering Studio · Fluid 60fps Animations
   ══════════════════════════════════════════════════════════════════════════════ */

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --font-d: 'Plus Jakarta Sans', 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-b: 'Inter', system-ui, -apple-system, sans-serif;
  --font-m: 'JetBrains Mono', ui-monospace, monospace;

  --max-w: 1280px;
  --hdr-h: 70px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ── Luminous Executive Theme (Primary / Default) ── */
:root,
[data-theme="light"] {
  --bg: #F8FAFC;
  --bg1: #FFFFFF;
  --bg2: #F1F5F9;
  --surface: #FFFFFF;
  --surface-s: #FFFFFF;
  --surface-hover: #F8FAFC;
  --fg: #0F172A;
  --fg2: #334155;
  --fg3: #475569;
  --fg4: #64748B;
  --accent: #4F46E5;
  --accent2: #6366F1;
  --accent3: #4338CA;
  --teal: #0D9488;
  --cyan: #0284C7;
  --rose: #E11D48;
  --magenta: #9333EA;
  --magenta-glow: rgba(147, 51, 234, 0.12);
  --indigo: #4F46E5;
  --border: rgba(15, 23, 42, 0.08);
  --border2: rgba(15, 23, 42, 0.16);
  --glow: rgba(79, 70, 229, 0.12);
  --card-sh: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
}

/* ── Refined Dark Slate Theme (Secondary / Opt-in) ── */
[data-theme="dark"] {
  --bg: #0B0F19;
  --bg1: #111827;
  --bg2: #1E293B;
  --surface: #111827;
  --surface-s: #1E293B;
  --surface-hover: #1E293B;
  --fg: #F8FAFC;
  --fg2: #E2E8F0;
  --fg3: #94A3B8;
  --fg4: #64748B;
  --accent: #818CF8;
  --accent2: #6366F1;
  --accent3: #4F46E5;
  --teal: #14B8A6;
  --cyan: #38BDF8;
  --rose: #FB7185;
  --magenta: #C084FC;
  --magenta-glow: rgba(192, 132, 252, 0.2);
  --indigo: #818CF8;
  --border: rgba(255, 255, 255, 0.09);
  --border2: rgba(255, 255, 255, 0.18);
  --glow: rgba(99, 102, 241, 0.25);
  --card-sh: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 24px);
}

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--accent); color: #fff; }

.ctr {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  position: relative;
}

/* ══════════════════════════════════════════════════════
   BACKGROUND FX: PARTICLES + SPOTLIGHT + MESH
   ══════════════════════════════════════════════════════ */
#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity .4s ease;
}
[data-theme="light"] #particleCanvas { opacity: 0.14; }

.spotlight {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity .35s;
  opacity: 0;
}
.spotlight.on { opacity: 1; }

.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: mesh-float 22s ease-in-out infinite alternate;
  will-change: transform;
}
.mesh-orb:nth-child(1) {
  width: 48vw; height: 48vw; max-width: 650px; max-height: 650px;
  top: -10%; left: -8%;
  background: rgba(109, 40, 217, 0.22);
}
.mesh-orb:nth-child(2) {
  width: 38vw; height: 38vw; max-width: 500px; max-height: 500px;
  bottom: -5%; right: -5%;
  background: rgba(20, 184, 166, 0.14);
  animation-delay: -7s;
}
.mesh-orb:nth-child(3) {
  width: 32vw; height: 32vw; max-width: 420px; max-height: 420px;
  top: 45%; left: 48%;
  background: rgba(99, 102, 241, 0.16);
  animation-delay: -14s;
}
.mesh-orb:nth-child(4) {
  width: 35vw; height: 35vw; max-width: 480px; max-height: 480px;
  top: 65%; right: 12%;
  background: rgba(217, 70, 239, 0.13);
  animation-delay: -9s;
}
@keyframes mesh-float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4vw, -3vw) scale(1.08); }
  100% { transform: translate(-3vw, 3vw) scale(0.95); }
}

/* ── Blueprint Grid Layer ── */
.blueprint-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, rgba(139, 92, 246, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 25%, transparent 80%);
  mask-image: radial-gradient(circle at 50% 30%, black 25%, transparent 80%);
}
[data-theme="light"] .blueprint-grid {
  background-image: 
    linear-gradient(to right, rgba(109, 40, 217, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(109, 40, 217, 0.06) 1px, transparent 1px);
}

/* ══════════════════════════════════════════════════════
   HEADER & TOPBAR
   ══════════════════════════════════════════════════════ */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--hdr-h);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
  transition: all .3s;
}
.hdr.scrolled {
  border-bottom-color: var(--border2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.hdr-inner,
.hdr-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo svg {
  width: 26px;
  height: 29px;
  transition: transform .3s var(--spring);
}
.logo:hover svg {
  transform: rotate(-8deg) scale(1.1);
}
.logo .lb {
  font-weight: 400;
  opacity: .6;
  margin-left: .15em;
}

.d-nav,
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 6px;
  position: relative;
}
.d-nav a,
.nav a,
.nl {
  font-family: var(--font-m);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg3);
  padding: 8px 16px;
  border-radius: 999px;
  position: relative;
  z-index: 2;
  transition: color .2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.d-nav a:hover,
.nav a:hover,
.nl:hover,
.d-nav a.on,
.nav a.on,
.nl.on {
  color: var(--fg);
}
.d-nav a.on,
.nav a.on,
.nl.on {
  font-weight: 600;
}
.nav-ind {
  position: absolute;
  top: 4px;
  bottom: 4px;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid var(--border2);
  border-radius: 999px;
  z-index: 1;
  transition: left .3s var(--ease), width .3s var(--ease);
  pointer-events: none;
}

.hdr-acts {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Studio Live Time & Status Badge */
.studio-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 500;
  color: var(--fg2);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  transition: all .2s;
  white-space: nowrap;
}
.studio-status-pill:hover {
  border-color: var(--teal);
  color: var(--fg);
}
.studio-status-pill .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  position: relative;
  flex-shrink: 0;
}
.studio-status-pill .live-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--teal);
  animation: radar-pulse 2s infinite ease-out;
}

.th-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.th-btn:hover {
  border-color: var(--accent);
  color: var(--fg);
  transform: rotate(15deg);
}
.th-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.th-btn svg.sun { display: none; }
.th-btn svg.moon { display: block; }
[data-theme="dark"] .th-btn svg.sun { display: block; }
[data-theme="dark"] .th-btn svg.moon { display: none; }

.hamb {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  gap: 5px;
}
.hamb span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--fg);
  transition: all .3s;
}
.hamb.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamb.open span:nth-child(2) { opacity: 0; }
.hamb.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mob-nav {
  position: fixed;
  top: var(--hdr-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 12px;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
}
.mob-nav.open { transform: translateX(0); }
.mob-nav a {
  font-size: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* ══════════════════════════════════════════════════════
   HERO & KINETIC TYPOGRAPHY ANIMATIONS
   ══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: auto;
  display: block;
  padding: clamp(28px, 4.5vh, 48px) 0 clamp(40px, 6vh, 64px);
  overflow: visible;
  scroll-margin-top: calc(var(--hdr-h) + 16px);
}

.hero .ctr {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* ══════════════════════════════════════════════════════
   HERO SPLIT COCKPIT (ALL-IN-ONE SINGLE VIEWPORT)
   ══════════════════════════════════════════════════════ */
.hero-split-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.08fr;
  gap: clamp(24px, 3.2vw, 44px);
  align-items: center;
  width: 100%;
}

@media (max-width: 1040px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.hero-left-pane {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
@media (max-width: 1040px) {
  .hero-left-pane {
    align-items: center;
    text-align: center;
  }
}

.hero-right-pane {
  position: relative;
  z-index: 3;
  width: 100%;
}

/* Backward compatibility fallback */
.hero-content {
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Eyebrow Pill with Rotating Conic Gradient */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent2);
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
  position: relative;
  background: var(--surface);
  overflow: hidden;
  animation: fadeInDown .7s var(--ease) both;
}
.hero-pill::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  padding: 1px;
  background: conic-gradient(from var(--angle), var(--accent), var(--teal), var(--cyan), var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotate-border 4s linear infinite;
}
@keyframes rotate-border { to { --angle: 360deg; } }

.hero-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  position: relative;
  flex-shrink: 0;
}
.hero-pill .dot::before,
.hero-pill .dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  animation: radar-pulse 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}
.hero-pill .dot::after {
  animation-delay: 1.2s;
}
@keyframes radar-pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  75% { transform: scale(2.8); opacity: 0; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* Kinetic Title Animations - Clean, crisp, no blurry text-shadow */
.hero h1 {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -.035em;
  margin-bottom: 20px;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .word {
  display: inline-block;
  animation: word-rise .85s var(--ease) both;
}
.hero h1 .line:nth-child(2) .word { animation-delay: .12s; }
.hero h1 .line:nth-child(3) .word { animation-delay: .24s; }
@keyframes word-rise {
  from { transform: translateY(115%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hero h1 .tg,
.hero-left-pane h1 .tg,
.hero h1 .tg-luxe,
.hero-left-pane h1 .tg-luxe {
  background: linear-gradient(135deg, #3730A3 0%, #4F46E5 28%, #0284C7 65%, #0D9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite alternate;
  font-weight: 800;
}

[data-theme="dark"] .hero h1 .tg,
[data-theme="dark"] .hero-left-pane h1 .tg,
[data-theme="dark"] .hero h1 .tg-luxe,
[data-theme="dark"] .hero-left-pane h1 .tg-luxe {
  background: linear-gradient(135deg, #FFFFFF 0%, #DDD6FE 30%, #A78BFA 60%, #38BDF8 85%, #2DD4BF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--fg2);
  max-width: 720px;
  line-height: 1.65;
  margin: 0 auto 28px;
  text-align: center;
  animation: fadeInUp .8s .35s var(--ease) both;
}

.hero-acts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 auto 30px;
  animation: fadeInUp .8s .45s var(--ease) both;
}

/* ── Hero Left Pane Specifics ── */
.hero-left-pane h1 {
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -.035em;
  margin-bottom: 14px;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 1040px) {
  .hero-left-pane h1 {
    text-align: center;
  }
}
.hero-left-pane h1 .line {
  display: block;
  overflow: hidden;
}
.hero-left-pane h1 .word {
  display: inline-block;
  animation: word-rise .85s var(--ease) both;
}
.hero-left-pane .hero-sub {
  font-size: clamp(14.5px, 1.1vw, 16px);
  color: var(--fg2);
  max-width: 580px;
  line-height: 1.6;
  margin: 0 0 20px;
  text-align: left;
  animation: fadeInUp .8s .35s var(--ease) both;
}
@media (max-width: 1040px) {
  .hero-left-pane .hero-sub {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}
.hero-left-pane .hero-acts {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 20px;
  animation: fadeInUp .8s .45s var(--ease) both;
}
@media (max-width: 1040px) {
  .hero-left-pane .hero-acts {
    justify-content: center;
  }
}

/* Dynamic Pill in Cockpit */
.hero-pill-dynamic {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: all .35s var(--ease);
  animation: fadeInDown .7s var(--ease) both;
}
.hero-pill-dynamic .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  position: relative;
  flex-shrink: 0;
}
.hero-pill-dynamic .dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  animation: radar-pulse 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}


/* ── Compact Trust Shelf ── */
.hero-trust-shelf {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 580px;
  animation: fadeInUp .8s .6s var(--ease) both;
}
@media (max-width: 1040px) {
  .hero-trust-shelf {
    justify-content: center;
  }
}
.trust-shelf-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--fg3);
}
.trust-shelf-item strong {
  color: var(--fg);
  font-weight: 700;
}
.trust-shelf-item .t-check {
  color: var(--teal);
  font-weight: 800;
}

/* ══════════════════════════════════════════════════════
   HERO SHOWCASE WINDOW (MACOS-STYLE CHROME)
   ══════════════════════════════════════════════════════ */
.hero-showcase-window {
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 45px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px var(--border);
  position: relative;
  transition: transform .25s ease-out, box-shadow .3s ease;
  animation: fadeInRight .8s .4s var(--ease) both;
}
[data-theme="dark"] .hero-showcase-window {
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.hero-showcase-window:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px -8px rgba(15, 23, 42, 0.18);
}
[data-theme="dark"] .hero-showcase-window:hover {
  box-shadow: 0 26px 65px -10px rgba(0, 0, 0, 0.6);
}

.hsw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  gap: 10px;
}
.hsw-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.hsw-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.hsw-dot-red { background: #FF5F56; border: 1px solid #E0443E; }
.hsw-dot-yellow { background: #FFBD2E; border: 1px solid #DEA123; }
.hsw-dot-green { background: #27C93F; border: 1px solid #1AAB29; }

/* ── Integrated 4-Dimension Tabs ── */
.hsw-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.hsw-tabs::-webkit-scrollbar { display: none; }
.hsw-tab {
  position: relative;
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  color: var(--fg3);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .2s ease;
  white-space: nowrap;
  overflow: hidden;
}
.hsw-tab:hover {
  color: var(--fg);
  background: var(--surface-hover);
}
.hsw-tab.active {
  color: var(--fg);
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
.hsw-tab[data-stage="software"].active { color: var(--accent); }
.hsw-tab[data-stage="ai"].active { color: var(--cyan); }
.hsw-tab[data-stage="legal"].active { color: var(--magenta); }
.hsw-tab[data-stage="synergy"].active { color: var(--teal); }

.hsw-tab .hsw-tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
}
.hsw-tab.active .hsw-tab-bar {
  animation: hswProgressFill 7s linear forwards;
}
.hsw-tab[data-stage="ai"].active .hsw-tab-bar { background: var(--cyan); }
.hsw-tab[data-stage="legal"].active .hsw-tab-bar { background: var(--magenta); }
.hsw-tab[data-stage="synergy"].active .hsw-tab-bar { background: var(--teal); }

@keyframes hswProgressFill {
  from { width: 0%; }
  to { width: 100%; }
}

.hsw-badge {
  font-family: var(--font-m);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--teal);
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.25);
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Spacious Stage Content Utilities ── */
.et-stage-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.et-stage-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.et-guarantee-pill {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 600;
  color: var(--magenta);
  background: rgba(217, 70, 239, 0.08);
  border: 1px solid rgba(217, 70, 239, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
}
.et-stage-bottom-guarantee {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-family: var(--font-m);
  font-size: 10.5px;
  color: var(--fg3);
  flex-wrap: wrap;
}
.et-chat-prompts-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════
   NIAND LUXE FLOATING TOOLTIP ENGINE
   ══════════════════════════════════════════════════════ */
.niand-tooltip {
  position: fixed;
  z-index: 999999;
  pointer-events: none;
  font-family: var(--font-m);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .01em;
  padding: 8px 14px;
  border-radius: 10px;
  max-width: 290px;
  word-wrap: break-word;
  opacity: 0;
  transform: translateY(4px) scale(0.97);
  transition: opacity .18s ease-out, transform .18s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(15, 23, 42, 0.95);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  will-change: opacity, transform, left, top;
}

[data-theme="dark"] .niand-tooltip {
  background: rgba(26, 30, 44, 0.96);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.niand-tooltip.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Tooltip Arrow Pointer */
.niand-tooltip-arrow {
  position: absolute;
  width: 8px;
  height: 8px;
  background: inherit;
  border: inherit;
  transform: rotate(45deg);
  pointer-events: none;
}
.niand-tooltip[data-pos="top"] .niand-tooltip-arrow {
  bottom: -5px;
  left: calc(50% - 4px);
  border-top: none;
  border-left: none;
}
.niand-tooltip[data-pos="bottom"] .niand-tooltip-arrow {
  top: -5px;
  left: calc(50% - 4px);
  border-bottom: none;
  border-right: none;
}
.niand-tooltip[data-pos="left"] .niand-tooltip-arrow {
  right: -5px;
  top: calc(50% - 4px);
  border-bottom: none;
  border-left: none;
}
.niand-tooltip[data-pos="right"] .niand-tooltip-arrow {
  left: -5px;
  top: calc(50% - 4px);
  border-top: none;
  border-right: none;
}

/* Subtle focus indicator on interactive tooltip items */
button[data-tooltip], a[data-tooltip], [role="button"][data-tooltip] {
  cursor: pointer;
}
span[data-tooltip], div[data-tooltip] {
  cursor: help;
}

/* Inline Technical & Legal Terms Glossary Styles (Software Consciente & Derecho Digital) */
.tech-term {
  display: inline;
  position: relative;
  cursor: help;
  text-decoration: underline dotted var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  font-weight: 600;
  transition: all .2s ease;
  border-radius: 4px;
  padding: 0 2px;
}
.tech-term:hover {
  color: var(--accent);
  background: rgba(139, 92, 246, 0.1);
  text-decoration-style: solid;
}
.tech-term.legal-term {
  text-decoration-color: var(--magenta);
}
.tech-term.legal-term:hover {
  color: var(--magenta);
  background: rgba(217, 70, 239, 0.1);
}
.tech-term.teal-term {
  text-decoration-color: var(--teal);
}
.tech-term.teal-term:hover {
  color: var(--teal);
  background: rgba(20, 184, 166, 0.1);
}
.tech-term.cyan-term {
  text-decoration-color: var(--cyan);
}
.tech-term.cyan-term:hover {
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
}

/* Button Shimmer Effect */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 12px;
  transition: all .25s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  opacity: 1 !important;
  visibility: visible !important;
  cursor: pointer;
  text-decoration: none;
}
.btn-fill {
  background: var(--accent);
  color: #FFFFFF !important;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}
.btn-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  transition: left .7s var(--ease);
}
.btn-fill:hover::before {
  left: 180%;
}
.btn-fill:hover {
  transform: translateY(-2px);
  background: var(--accent3);
  color: #FFFFFF !important;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}
[data-theme="light"] .btn-fill {
  background: #4F46E5;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.22);
}
[data-theme="light"] .btn-fill:hover {
  background: #4338CA;
  color: #FFFFFF !important;
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
}
[data-theme="dark"] .btn-fill {
  background: #6366F1;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
[data-theme="dark"] .btn-fill:hover {
  background: #4F46E5;
  color: #FFFFFF !important;
}
.btn-outline {
  border: 1.5px solid var(--border2);
  color: var(--fg) !important;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
  background: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--glow);
}

/* Button ripple click feedback */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(139, 92, 246, 0.2) 60%, transparent 80%);
  transform: scale(0);
  animation: btnRippleAnim 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}
@keyframes btnRippleAnim {
  to { transform: scale(2.6); opacity: 0; }
}

/* Trust metric row */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  animation: fadeInUp .8s .55s var(--ease) both;
}
.trust-stat {
  display: flex;
  flex-direction: column;
}
.trust-stat b {
  font-family: var(--font-d);
  font-size: 20px;
  font-weight: 800;
  color: var(--fg);
}
.trust-stat span {
  font-family: var(--font-m);
  font-size: 10.5px;
  color: var(--fg4);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════
   AMBIENT CYBER-AURORA VOLUMETRIC FIELD
   ══════════════════════════════════════════════════════ */
.hero-aurora {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95vw;
  height: 85vh;
  max-width: 1250px;
  max-height: 850px;
  background: 
    radial-gradient(circle at 35% 35%, rgba(139, 92, 246, 0.32) 0%, transparent 55%),
    radial-gradient(circle at 75% 55%, rgba(20, 184, 166, 0.26) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(217, 70, 239, 0.2) 0%, transparent 55%),
    radial-gradient(circle at 20% 70%, rgba(34, 211, 238, 0.22) 0%, transparent 50%);
  filter: blur(85px);
  pointer-events: none;
  z-index: 0;
  animation: auroraBreath 16s ease-in-out infinite alternate;
}
@keyframes auroraBreath {
  0% { transform: translate(-50%, -50%) scale(0.94) rotate(0deg); opacity: 0.75; }
  50% { transform: translate(-48%, -52%) scale(1.08) rotate(4deg); opacity: 1; }
  100% { transform: translate(-52%, -48%) scale(0.97) rotate(-3deg); opacity: 0.8; }
}

/* ══════════════════════════════════════════════════════
   NIAND EXPERIENCE THEATER (CENTRALIZED MULTIDIMENSIONAL SHOWCASE)
   A visual, business-clear interactive showcase anyone understands
   ══════════════════════════════════════════════════════ */
.experience-theater {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  justify-self: center;
  z-index: 3;
  transform: perspective(1200px) rotateX(1.8deg) translateY(0);
  transition: transform .25s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ── Floating Holographic HUD Badges ── */
.et-hud-badge {
  position: absolute;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  animation: hudFloat 6s ease-in-out infinite alternate;
}
.et-hud-speed {
  top: -16px;
  right: -12px;
  color: var(--teal);
  background: rgba(10, 24, 24, 0.88);
  border: 1px solid rgba(20, 184, 166, 0.4);
  box-shadow: 0 10px 30px rgba(20, 184, 166, 0.25);
}
.et-hud-legal {
  bottom: -18px;
  left: -14px;
  color: var(--magenta);
  background: rgba(26, 10, 28, 0.88);
  border: 1px solid rgba(217, 70, 239, 0.4);
  box-shadow: 0 10px 30px rgba(217, 70, 239, 0.25);
  animation-delay: -3s;
}

/* ── The Glass Card Vessel ── */
.et-card {
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--card-sh);
  position: relative;
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.et-card:hover {
  box-shadow: 0 12px 35px -8px rgba(15, 23, 42, 0.08);
  border-color: var(--border2);
}
.et-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  padding: 1px;
  background: conic-gradient(from var(--angle), transparent 35%, var(--accent) 55%, var(--teal) 75%, transparent 95%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotate-border 6s linear infinite;
  pointer-events: none;
  z-index: 2;
  opacity: 0.5;
}

.et-shine {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
  z-index: 6;
}

/* ── Top Navigation Tabs (Crystal Clear & Business-Focused) ── */
.et-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 7;
  gap: 8px;
}
.et-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.et-tabs::-webkit-scrollbar { display: none; }

.et-tab {
  font-family: var(--font-m);
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--fg3);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .25s ease;
  white-space: nowrap;
  flex: 1;
  justify-content: center;
}
.et-tab:hover {
  color: var(--fg);
  background: var(--surface-hover);
}
.et-tab.active {
  color: var(--accent);
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
.et-tab[data-stage="ai"].active {
  color: var(--cyan);
}
.et-tab[data-stage="legal"].active {
  color: var(--magenta);
}
.et-tab[data-stage="synergy"].active {
  color: var(--teal);
}

/* ── Theater Stages Container ── */
.et-stages {
  position: relative;
  min-height: 290px;
  overflow: hidden;
}
.et-stage {
  display: none;
  padding: 18px 20px;
  position: relative;
  z-index: 4;
}
.et-stage.active {
  display: block;
  animation: etStageFade .35s var(--ease) forwards;
}
@keyframes etStageFade {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ══════════════════════════════════════════════════
   STAGE 1: SOFTWARE SAAS & MOBILE APP SHOWCASE
   ══════════════════════════════════════════════════ */
.et-device-switcher {
  display: inline-flex;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 14px;
  gap: 3px;
}
.et-dev-btn {
  font-family: var(--font-m);
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--fg3);
  cursor: pointer;
  transition: all .2s;
}
.et-dev-btn:hover { color: var(--fg); }
.et-dev-btn.active {
  color: #FFF;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

/* Web SaaS Dashboard UI Preview */
.et-saas-dashboard {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}
.et-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.et-dash-title {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
}
.et-dash-badge {
  font-family: var(--font-m);
  font-size: 9.5px;
  color: var(--teal);
  background: rgba(13, 148, 136, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.et-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.et-metric-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 10px;
}
.et-m-label {
  font-family: var(--font-m);
  font-size: 9px;
  font-weight: 600;
  color: var(--fg4);
  display: block;
  margin-bottom: 3px;
  text-transform: uppercase;
}
.et-m-val {
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1.1;
  display: block;
}
.et-m-sub {
  font-family: var(--font-m);
  font-size: 9.5px;
  color: var(--teal);
  margin-top: 2px;
  display: block;
}
.et-dash-chart {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.et-chart-info {
  font-family: var(--font-m);
  font-size: 10.5px;
  color: var(--fg3);
}
.et-chart-info b { color: var(--fg); }
.et-chart-svg {
  width: 95px;
  height: 22px;
}

/* Mobile App iPhone Frame Preview */
.et-mobile-preview {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.et-phone-frame {
  width: 220px;
  background: var(--surface);
  border: 2px solid var(--border2);
  border-radius: 26px;
  padding: 10px 12px 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
.et-phone-notch {
  width: 65px;
  height: 6px;
  background: var(--fg4);
  border-radius: 999px;
  margin: 0 auto 10px;
  opacity: 0.4;
}
.et-phone-app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}
.et-phone-card {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(13, 148, 136, 0.1) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.et-phone-card span { font-size: 9px; color: var(--fg3); font-family: var(--font-m); }
.et-phone-card b { font-size: 14px; color: var(--fg); display: block; font-family: var(--font-d); margin-top: 2px; }
.et-phone-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.et-phone-act {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 2px;
  font-family: var(--font-m);
  font-size: 8.5px;
  text-align: center;
  color: var(--fg2);
}

/* ══════════════════════════════════════════════════
   STAGE 2: CORPORATE AI ASSISTANT CHAT
   ══════════════════════════════════════════════════ */
.et-chat-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  min-height: 185px;
  max-height: 185px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.et-chat-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.et-msg-user { justify-content: flex-end; }
.et-msg-user .et-msg-bubble {
  background: var(--accent);
  color: #FFF;
  border-radius: 12px 12px 2px 12px;
  font-size: 11.5px;
  max-width: 85%;
  padding: 7px 11px;
}
.et-msg-ai { justify-content: flex-start; }
.et-ai-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #FFF;
  font-family: var(--font-m);
  font-size: 9.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.et-msg-ai .et-msg-bubble {
  background: var(--bg1);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: 12px 12px 12px 2px;
  font-size: 11.5px;
  line-height: 1.5;
  max-width: 85%;
  padding: 7px 11px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
.et-typing-dots {
  display: inline-flex;
  gap: 4px;
  padding: 8px 12px !important;
}
.et-typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  animation: typingDot 1.4s infinite ease-in-out both;
}
.et-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.et-typing-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingDot {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

.et-chat-prompts-label {
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--fg4);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.et-chat-prompts {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.et-chat-prompts::-webkit-scrollbar { display: none; }
.et-prompt-pill {
  font-family: var(--font-m);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--cyan);
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
}
.et-prompt-pill:hover, .et-prompt-pill.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #FFF;
}

/* ══════════════════════════════════════════════════
   STAGE 3: EXECUTIVE LEGAL VAULT CERTIFICATE
   ══════════════════════════════════════════════════ */
.et-legal-vault {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}
.et-vault-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.et-vault-title {
  font-family: var(--font-d);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fg);
}
.et-vault-tag {
  font-family: var(--font-m);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--magenta);
  background: rgba(147, 51, 234, 0.08);
  border: 1px solid rgba(147, 51, 234, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
}
.et-cert-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.et-cert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: var(--font-m);
  font-size: 11px;
}
.et-cert-item span { color: var(--fg2); }
.et-cert-item strong { color: var(--teal); font-size: 10px; }

.et-vault-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.et-vault-resp {
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--fg3);
}
.et-vault-resp b { color: var(--magenta); }
.et-verify-btn {
  font-family: var(--font-m);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--teal);
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.et-verify-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #FFF;
}

/* ── Multi-Column Stage Layout & Legal Assurances ── */
.et-stage-grid {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 16px;
  align-items: stretch;
}
.et-legal-side-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}
.et-legal-side-card h5 {
  font-family: var(--font-d);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--magenta);
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.et-legal-side-card p {
  font-size: 11px;
  color: var(--fg2);
  line-height: 1.55;
  margin: 0 0 10px 0;
}
.et-legal-pill-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.et-legal-pill {
  font-family: var(--font-m);
  font-size: 9.5px;
  color: var(--fg2);
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ══════════════════════════════════════════════════
   STAGE 4: DUAL SYNERGY (TECH + LEGAL MATRIX)
   ══════════════════════════════════════════════════ */
.et-synergy-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.et-syn-col {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}
.et-syn-danger {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.03);
}
.et-syn-danger .et-syn-head {
  color: #DC2626;
  font-family: var(--font-d);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.et-syn-success {
  border-color: rgba(13, 148, 136, 0.35);
  background: rgba(13, 148, 136, 0.04);
}
.et-syn-success .et-syn-head {
  color: var(--teal);
  font-family: var(--font-d);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.et-syn-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.et-syn-item {
  font-family: var(--font-m);
  font-size: 10.5px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}
.et-syn-danger .et-syn-item { color: #B91C1C; }
.et-syn-success .et-syn-item { color: #0F766E; }

/* ── Cockpit Bottom Status Bar ── */
.et-bottombar {
  padding: 10px 14px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 7;
}
.et-status-txt {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-m);
  font-size: 10.5px;
  color: var(--fg3);
}
.et-live-beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: hudPulse 1.6s infinite alternate;
}
.et-city-tag {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 600;
  color: var(--fg4);
}

/* ══════════════════════════════════════════════════════
   MARQUEE
   ══════════════════════════════════════════════════════ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: relative;
  z-index: 1;
  background: var(--bg1);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
  will-change: transform;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-m);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg4);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
}
.marquee-item .sep {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .5;
}
@keyframes marquee-scroll { to { transform: translateX(-50%); } }

/* ══════════════════════════════════════════════════════
   SECTION SYSTEM & HEADINGS
   ══════════════════════════════════════════════════════ */
.sec {
  padding: clamp(70px, 9vw, 120px) 0;
  position: relative;
  z-index: 1;
}
.sec-head {
  max-width: 700px;
  margin-bottom: 48px;
}
.sec-head.cen {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.label {
  font-family: var(--font-m);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
.h2 {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 14px;
}
.sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--fg2);
  line-height: 1.65;
}
.h3 {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 8px;
}

/* ══════════════════════════════════════════════════════
   BENTO GRID (Interactive with mouse spotlight)
   ══════════════════════════════════════════════════════ */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.bento-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.bento-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity .4s;
  background: radial-gradient(450px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 65%);
  pointer-events: none;
}
.bento-item:hover::after { opacity: 1; }
.bento-item:hover {
  border-color: var(--border2);
  box-shadow: var(--card-sh), 0 0 35px rgba(139, 92, 246, 0.15);
}

.bento-item.span-12, .bento-item.span-full { grid-column: 1 / -1; }
.bento-item.span-4 { grid-column: span 1; }
.bento-item.span-6 { grid-column: span 1; }

.bento-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent2);
  margin-bottom: 18px;
  transition: transform .3s var(--spring);
}
.bento-item:hover .bento-icon {
  transform: scale(1.1) rotate(6deg);
}
.bento-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.bento-item p { font-size: 14.5px; color: var(--fg3); line-height: 1.6; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
}
.tag {
  font-family: var(--font-m);
  font-size: 10.5px;
  color: var(--fg4);
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 6px;
  transition: border-color .2s, color .2s;
}
.bento-item:hover .tag {
  border-color: var(--border2);
  color: var(--fg2);
}

/* ══════════════════════════════════════════════════════
   PROCESS ENGINE (Connected steps with glow)
   ══════════════════════════════════════════════════════ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
@media (min-width: 1101px) {
  .process-grid::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, 
      transparent 0%, 
      var(--accent) 25%, 
      var(--teal) 50%, 
      var(--cyan) 75%, 
      transparent 100%
    );
    background-size: 200% 100%;
    animation: flowLine 6s linear infinite;
    z-index: 0;
    opacity: 0.45;
    pointer-events: none;
  }
}
@keyframes flowLine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.p-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  transition: all .35s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.p-step:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 36px -10px var(--glow), 0 0 24px rgba(139, 92, 246, 0.2);
}
.p-time {
  font-family: var(--font-m);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--teal);
  background: rgba(20, 184, 166, 0.1);
  padding: 3px 10px;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 14px;
}
.p-code {
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.p-step h3 {
  font-family: var(--font-d);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}
.p-step p {
  font-size: 13.5px;
  color: var(--fg3);
  line-height: 1.55;
  margin-bottom: 14px;
  flex-grow: 1;
}
.p-deliverable {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--fg2);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ══════════════════════════════════════════════════════
   CASES / PORTAFOLIO
   ══════════════════════════════════════════════════════ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .35s var(--ease);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.case:hover {
  border-color: var(--border2);
  box-shadow: var(--card-sh), 0 0 35px rgba(20, 184, 166, 0.18);
}
.case-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.case-sector {
  font-family: var(--font-m);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.case-body .h3 { font-size: 18px; margin-bottom: 12px; }
.case-desc { font-size: 13.5px; color: var(--fg3); line-height: 1.6; margin-bottom: 18px; }
.case-kpi {
  margin-top: auto;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.2);
  padding: 10px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .2s;
}
.case:hover .case-kpi {
  background: rgba(20, 184, 166, 0.14);
}
.case-kpi span { font-family: var(--font-m); font-size: 11px; color: var(--fg4); }
.case-kpi strong { font-family: var(--font-d); font-size: 17px; color: var(--teal); }

.filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.f-btn {
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--fg4);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 999px;
  transition: all .2s;
}
.f-btn:hover, .f-btn.on {
  color: var(--fg);
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.12);
  box-shadow: 0 0 14px var(--glow);
}

/* ══════════════════════════════════════════════════════
   ESTIMATOR
   ══════════════════════════════════════════════════════ */
.est {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: start;
  box-shadow: var(--card-sh);
}
.calc-g { margin-bottom: 22px; }
.calc-g label {
  display: block;
  font-family: var(--font-m);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.calc-opts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.calc-opts.calc-opts-multiline {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 680px) {
  .calc-opts.calc-opts-multiline { grid-template-columns: 1fr; }
  .calc-opts { grid-template-columns: 1fr; }
}
.calc-o {
  position: relative;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg3);
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .2s ease;
  user-select: none;
}
.calc-o:hover {
  border-color: var(--accent);
  color: var(--fg);
  transform: translateY(-1px);
}
.calc-o.sel {
  border-color: var(--teal);
  background: rgba(45, 212, 191, 0.08);
  color: var(--fg);
  font-weight: 600;
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.16);
}
.calc-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border2);
  font-size: 11px;
  font-weight: 800;
  color: transparent;
  flex-shrink: 0;
  transition: all .2s ease;
  background: var(--surface-s);
}
.calc-o.sel .calc-check {
  border-color: var(--teal);
  background: var(--teal);
  color: #030712;
}

.est-res {
  background: var(--surface-s);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .3s ease;
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
  backdrop-filter: blur(12px);
}
.est-summary-header {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 600px) {
  .est-summary-header { grid-template-columns: 1fr; }
}
.est-m {
  display: flex;
  flex-direction: column;
}
.est-m span {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--fg4);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.est-m b {
  display: block;
  font-family: var(--font-d);
  font-size: 22px;
  color: var(--teal);
  margin-top: 4px;
  line-height: 1.25;
  animation: pulseValue .4s ease;
}
.est-discount-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(217, 70, 239, 0.12);
  border: 1px solid rgba(217, 70, 239, 0.35);
  color: var(--magenta);
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 600;
  animation: pulseValue 1.5s infinite alternate;
}
.est-breakdown {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.est-breakdown-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-m);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}
.est-badge-count {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.15);
  color: var(--teal);
  text-transform: none;
  font-weight: 600;
}
.est-items-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.est-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--fg2);
  line-height: 1.35;
}
.est-item-name {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.est-item-price {
  font-family: var(--font-m);
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  font-size: 12px;
}
.est-item-time {
  font-size: 11px;
  color: var(--fg4);
  font-family: var(--font-m);
  margin-left: 4px;
}
.est-item-row.subtotal {
  font-weight: 600;
  color: var(--fg);
  padding-top: 6px;
  border-top: 1px dashed var(--border);
}
.est-item-row.discount {
  color: var(--magenta);
  font-weight: 600;
}
.est-item-row.total {
  font-family: var(--font-m);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--teal);
  padding-top: 8px;
  border-top: 1.5px solid var(--border);
}
.est-deliverables {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.est-deliv-title {
  display: block;
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 700;
  color: var(--fg3);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.est-deliv-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.est-deliv-list li {
  font-size: 12px;
  color: var(--fg2);
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.est-deliv-list li span.chk {
  color: var(--teal);
  font-weight: 800;
  flex-shrink: 0;
}
@keyframes pulseValue {
  0% { transform: scale(0.92); opacity: 0.6; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

/* Number counter pop on finish */
.counter-pop {
  display: inline-block;
  animation: counterPopAnim 0.45s var(--spring) forwards;
}
@keyframes counterPopAnim {
  0% { transform: scale(1); }
  45% { transform: scale(1.16); color: var(--teal); text-shadow: 0 0 14px var(--teal); }
  100% { transform: scale(1); }
}

/* ══════════════════════════════════════════════════════
   CONTACT FORM & FOOTER
   ══════════════════════════════════════════════════════ */
.contact-box {
  background: var(--surface-s);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.c-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: var(--font-m);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--fg4);
}
.field input, .field textarea, .field select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--fg);
  font-family: var(--font-b);
  font-size: 14px;
  outline: none;
  transition: all .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--glow);
}
.ok-msg {
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid var(--teal);
  border-radius: 12px;
  padding: 14px;
  color: var(--teal);
  font-size: 13.5px;
  display: none;
  animation: fadeInDown .4s ease;
}
.ok-msg.show { display: block; }

.ftr {
  background: var(--bg1);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 40px;
}
.ftr-g {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 40px;
}
.ftr-col h4 {
  font-family: var(--font-m);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--fg4);
  margin-bottom: 14px;
}
.ftr-col a {
  display: block;
  font-size: 13.5px;
  color: var(--fg3);
  padding: 4px 0;
  transition: color .2s;
}
.ftr-col a:hover { color: var(--accent); }
.ftr-btm {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-m);
  font-size: 11.5px;
  color: var(--fg4);
}

/* ══════════════════════════════════════════════════════
   SCROLL REVEAL (.rv) SYSTEM
   ══════════════════════════════════════════════════════ */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.rv.vis {
  opacity: 1;
  transform: translateY(0);
}
.rv.d1 { transition-delay: .1s; }
.rv.d2 { transition-delay: .2s; }
.rv.d3 { transition-delay: .3s; }
.rv.d4 { transition-delay: .4s; }
.rv.d5 { transition-delay: .5s; }

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .rv {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-code {
    animation: none !important;
  }
}

/* ══════════════════════════════════════════════════════
   CORPORATE BENCHMARK MATRIX (Decision Table for CTOs)
   ══════════════════════════════════════════════════════ */
.matrix-wrap {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--border2);
  background: var(--surface);
  box-shadow: var(--card-sh);
  position: relative;
  margin-top: 24px;
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}
.matrix-table th,
.matrix-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.matrix-table th {
  font-family: var(--font-m);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg4);
  background: rgba(0, 0, 0, 0.25);
}
.matrix-table th.niand-col {
  color: var(--teal);
  background: rgba(20, 184, 166, 0.09);
  border-left: 1px solid rgba(20, 184, 166, 0.22);
  border-right: 1px solid rgba(20, 184, 166, 0.22);
}
.matrix-table td.niand-col {
  background: rgba(20, 184, 166, 0.04);
  border-left: 1px solid rgba(20, 184, 166, 0.18);
  border-right: 1px solid rgba(20, 184, 166, 0.18);
  font-weight: 600;
  color: var(--fg);
}
.matrix-table tr:last-child td {
  border-bottom: none;
}
.matrix-table tr:hover td {
  background: rgba(139, 92, 246, 0.04);
}
.matrix-table tr:hover td.niand-col {
  background: rgba(20, 184, 166, 0.09);
}
.matrix-dim {
  font-family: var(--font-d);
  font-weight: 700;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
}
.m-bad {
  color: var(--fg4);
  display: flex;
  align-items: center;
  gap: 8px;
}
.m-bad .x-mark {
  color: var(--rose);
  font-weight: 800;
}
.m-good {
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
}
.m-good .check-mark {
  color: var(--teal);
  font-weight: 800;
}

/* ══════════════════════════════════════════════════════
   SYSTEM TOPOLOGY BLUEPRINT (4 Architectural Layers)
   ══════════════════════════════════════════════════════ */
.topology-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  margin-top: 24px;
}
.topo-layer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 200px 1fr 180px;
  align-items: center;
  gap: 20px;
  position: relative;
  transition: all .3s var(--ease);
  transform-style: preserve-3d;
}
.topo-layer:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  transform: translateX(6px);
  box-shadow: 0 12px 30px -10px var(--glow);
}
.topo-meta {
  display: flex;
  flex-direction: column;
}
.topo-lvl {
  font-family: var(--font-m);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.topo-meta h3 {
  font-family: var(--font-d);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
}
.topo-desc {
  font-size: 13.5px;
  color: var(--fg3);
  line-height: 1.55;
}
.topo-kpi {
  text-align: right;
  font-family: var(--font-m);
}
.topo-kpi span {
  display: block;
  font-size: 10.5px;
  color: var(--fg4);
  text-transform: uppercase;
}
.topo-kpi strong {
  font-family: var(--font-d);
  font-size: 18px;
  color: var(--teal);
}

/* ══════════════════════════════════════════════════════
   ENTERPRISE SECURITY & COMPLIANCE SHIELD
   ══════════════════════════════════════════════════════ */
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.sec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all .35s var(--ease);
  transform-style: preserve-3d;
}
.sec-card:hover {
  border-color: var(--teal);
  box-shadow: 0 16px 36px -10px rgba(20, 184, 166, 0.25);
  transform: translateY(-4px);
}
.sec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-m);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--teal);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.25);
  padding: 3px 9px;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 12px;
}
.sec-card h3 {
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.sec-card p {
  font-size: 13px;
  color: var(--fg3);
  line-height: 1.55;
}

/* ══════════════════════════════════════════════════════
   DUAL BUSINESS LINE SELECTOR (Interactive Engine)
   ══════════════════════════════════════════════════════ */
.line-selector-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}
.line-selector {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  flex-wrap: wrap;
  justify-content: center;
}
.line-tab {
  font-family: var(--font-m);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg3);
  padding: 10px 22px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.line-tab:hover {
  color: var(--fg);
}
.line-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent3) 100%);
  box-shadow: 0 4px 20px var(--glow);
  border-color: rgba(255, 255, 255, 0.15);
}
.line-tab.active.tab-legal {
  background: linear-gradient(135deg, var(--teal) 0%, #0F766E 100%);
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.35);
}
.line-tab.active.tab-synergy {
  background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

/* ══════════════════════════════════════════════════════
   LEGAL & TALENT CATALOG CARDS (Bento Child Styles)
   ══════════════════════════════════════════════════════ */
.legal-card {
  border-color: rgba(217, 70, 239, 0.2);
}
.legal-card:hover {
  border-color: var(--magenta);
  box-shadow: var(--card-sh), 0 0 35px rgba(217, 70, 239, 0.2);
  transform: translateY(-4px);
}
.legal-tag {
  font-family: var(--font-m);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--magenta);
  background: rgba(217, 70, 239, 0.1);
  border: 1px solid rgba(217, 70, 239, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.legal-deliverable {
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--fg2);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 10px;
  margin: 14px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.45;
}
.legal-price-row {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.legal-price {
  font-family: var(--font-d);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  display: block;
}
.legal-usd {
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--teal);
  font-weight: 600;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
}

/* ══════════════════════════════════════════════════════
   FOUNDERS LEADERSHIP CARDS
   ══════════════════════════════════════════════════════ */
.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}
.founder-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: all .3s var(--ease);
  transform-style: preserve-3d;
}
.founder-card:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 40px -10px var(--glow);
  transform: translateY(-4px);
}
.founder-header {
  display: flex;
  align-items: center;
  gap: 16px;
}
.founder-avatar {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border2);
  flex-shrink: 0;
  color: var(--fg);
}
.founder-avatar svg {
  width: 26px;
  height: 26px;
}
.founder-role-badge {
  font-family: var(--font-m);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 4px;
}
.badge-legal {
  color: var(--magenta);
  background: rgba(217, 70, 239, 0.1);
  border: 1px solid rgba(217, 70, 239, 0.25);
}
.badge-tech {
  color: var(--teal);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.25);
}
.founder-name {
  font-family: var(--font-d);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
  line-height: 1.2;
}
.founder-title {
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--accent2);
  line-height: 1.5;
  margin: 0;
}
.founder-bio {
  font-size: 14px;
  color: var(--fg3);
  line-height: 1.65;
  margin: 0;
}
.founder-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.founder-tag {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--fg3);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  transition: all .2s;
}
.founder-card:hover .founder-tag {
  border-color: var(--border2);
  color: var(--fg);
}

/* ══════════════════════════════════════════════════════
   SYNERGY MULTIPLIER (Dual Shield)
   ══════════════════════════════════════════════════════ */
.synergy-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, rgba(20, 184, 166, 0.06) 100%);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px);
  position: relative;
  overflow: hidden;
  margin-top: 36px;
}
.synergy-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.synergy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}
.synergy-pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all .3s var(--ease);
  transform-style: preserve-3d;
}
.synergy-pillar:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -10px var(--glow);
}
.pillar-num {
  font-family: var(--font-d);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.synergy-pillar h4 {
  font-family: var(--font-d);
  font-size: 16.5px;
  font-weight: 700;
  margin: 0;
  color: var(--fg);
}
.synergy-pillar p {
  font-size: 13.5px;
  color: var(--fg3);
  line-height: 1.6;
  margin: 0;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero .ctr {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content {
    max-width: 100%;
  }
  .mission-control, .hero-code, .experience-theater {
    max-width: 100%;
    justify-self: center;
    transform: none !important;
    margin: 20px auto 0;
  }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-3 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .est, .contact-box { grid-template-columns: 1fr; }
  .ftr-g { grid-template-columns: 1fr 1fr; }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .topo-layer { grid-template-columns: 1fr; gap: 10px; }
  .topo-kpi { text-align: left; }
  .founders-grid { grid-template-columns: 1fr; }
  .synergy-grid { grid-template-columns: 1fr; }
}

@media (min-width: 769px) {
  .mob-nav { display: none !important; }
}

@media (max-width: 768px) {
  .d-nav, .nav { display: none !important; }
  .studio-status-pill { display: none; }
  .hamb { display: flex; }
  .bento { grid-template-columns: 1fr; }
  .bento-3 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .calc-opts { grid-template-columns: 1fr; }
  .ftr-g { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .line-selector { border-radius: 16px; width: 100%; }
  .line-tab { width: 100%; justify-content: center; }
  .hero-trust { gap: 16px; }
  .trust-stat { min-width: 130px; }
  .mc-hud-badge, .et-hud-badge { display: none !important; }
  .et-stage-grid { grid-template-columns: 1fr !important; }
  .et-synergy-matrix { grid-template-columns: 1fr !important; }
  .niand-chat-panel { width: calc(100vw - 24px); right: 12px; bottom: 80px; height: 500px; }
}

@media (max-width: 640px) {
  .hdr-acts .btn {
    display: inline-flex !important;
    padding: 7px 13px !important;
    font-size: 11.5px !important;
    border-radius: 8px !important;
    gap: 4px !important;
  }
  .hero-acts { flex-direction: column; width: 100%; }
  .hero-acts .btn { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════════════
   NIAND AI CHATBOT FLOATING WIDGET
   ══════════════════════════════════════════════════════ */
.niand-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: var(--font-b);
}

.niand-chat-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(20, 184, 166, 0.9));
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 12px 20px 12px 14px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.45), 0 0 20px rgba(20, 184, 166, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all .3s var(--ease);
  position: relative;
}

.niand-chat-trigger:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 40px rgba(139, 92, 246, 0.6), 0 0 30px rgba(20, 184, 166, 0.5);
}

.chat-trigger-beacon {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 10px #22C55E;
  animation: hudPulse 1.8s infinite alternate;
}

.chat-trigger-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-trigger-label {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .02em;
}

/* Chat Panel Modal */
.niand-chat-panel {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: min(420px, calc(100vw - 32px));
  height: 560px;
  max-height: calc(100vh - 110px);
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transition: all .3s var(--ease);
  z-index: 10000;
}

.niand-chat-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-panel-header {
  padding: 14px 18px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #FFF;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.chat-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22C55E;
  border: 2px solid var(--surface);
}

.chat-title {
  font-family: var(--font-d);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
}

.chat-subtitle {
  font-family: var(--font-m);
  font-size: 10.5px;
  color: var(--teal);
  margin: 0;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-head-btn {
  background: transparent;
  border: none;
  color: var(--fg3);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}

.chat-head-btn:hover {
  background: var(--surface-hover);
  color: var(--fg);
}

.chat-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 90%;
  animation: fadeInDown .25s var(--ease) both;
}

.chat-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg-bot {
  align-self: flex-start;
}

.chat-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #FFF;
  font-family: var(--font-m);
  font-weight: 800;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-msg-content {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-msg-user .chat-msg-content {
  background: var(--accent);
  color: #FFF;
  border-bottom-right-radius: 4px;
}

.chat-msg-bot .chat-msg-content {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--fg);
  border-bottom-left-radius: 4px;
}

.chat-msg-content p {
  margin: 0;
}

.chat-typing-bubble {
  display: flex;
  gap: 5px;
  padding: 12px 16px !important;
}

.chat-typing-bubble span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: typingDot 1.4s infinite ease-in-out both;
}
.chat-typing-bubble span:nth-child(1) { animation-delay: -0.32s; }
.chat-typing-bubble span:nth-child(2) { animation-delay: -0.16s; }

.chat-quick-prompts {
  padding: 8px 14px 4px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chat-quick-prompts::-webkit-scrollbar { display: none; }

.quick-chip {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--cyan);
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  flex-shrink: 0;
}
.quick-chip:hover {
  background: var(--cyan);
  color: #FFF;
}

.chat-panel-footer {
  padding: 10px 14px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-panel-footer input {
  flex: 1;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--fg);
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
}

.chat-panel-footer input:focus {
  border-color: var(--accent);
}

.chat-panel-footer button {
  background: var(--accent);
  color: #FFF;
  border: none;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
}

.chat-panel-footer button:hover:not(:disabled) {
  background: var(--accent2);
  transform: scale(1.05);
}

.chat-legal-microcopy {
  font-family: var(--font-m);
  font-size: 9.5px;
  color: var(--fg4);
  text-align: center;
  padding: 4px 12px 8px;
  background: var(--bg2);
}

/* ══════════════════════════════════════════════════════
   NAVBAR CLEAN TOOLS LINK
   ══════════════════════════════════════════════════════ */
.nav-tools-link {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  color: var(--accent) !important;
  font-weight: 600 !important;
  transition: opacity .2s;
}
.nav-tools-link:hover {
  opacity: 0.8;
}
.nav-ext-arrow {
  font-size: 11px;
  transition: transform .2s;
}
.nav-tools-link:hover .nav-ext-arrow {
  transform: translate(1px, -1px);
}
.badge-tools-pulse {
  display: none;
}

/* ══════════════════════════════════════════════════════
   HERRAMIENTAS.HTML — INTERACTIVE TOOLS SUITE STYLES
   ══════════════════════════════════════════════════════ */
.page-tools .tools-hero {
  padding: clamp(32px, 5vh, 54px) 0 30px;
  text-align: center;
  position: relative;
  z-index: 2;
  scroll-margin-top: calc(var(--hdr-h) + 16px);
}
.tools-hero-content {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tools-quota-bar {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  margin-top: 10px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}
.quota-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-m);
  font-size: 12.5px;
  color: var(--fg);
}
.quota-info b {
  color: var(--teal);
  font-weight: 700;
}
.quota-sub {
  font-size: 11px;
  color: var(--fg4);
}
.btn-reset-quota {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--fg2);
  font-family: var(--font-m);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}
.btn-reset-quota:hover {
  background: var(--surface-hover);
  color: var(--fg);
}

/* Tool Navigation Tabs */
.tools-workspace-section {
  padding: 20px 0 90px;
  position: relative;
  z-index: 3;
}
.tool-tabs-wrapper {
  margin-bottom: 24px;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}
.tool-tabs-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 900px) {
  .tool-tabs-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .tool-tabs-list {
    grid-template-columns: 1fr;
  }
}
.tool-tab-btn {
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: all .25s var(--spring);
  position: relative;
}
.tool-tab-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border);
  transform: translateY(-2px);
}
.tool-tab-btn.active {
  background: var(--surface);
  border-color: var(--border2);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.tool-tab-btn[data-tool="flujos"].active {
  border-color: rgba(2, 132, 199, 0.45);
  box-shadow: 0 6px 20px -2px rgba(2, 132, 199, 0.2);
}
.tool-tab-btn[data-tool="auto"].active {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 6px 20px -2px rgba(245, 158, 11, 0.2);
}
.tool-tab-btn[data-tool="docugen"].active {
  border-color: rgba(147, 51, 234, 0.45);
  box-shadow: 0 6px 20px -2px rgba(147, 51, 234, 0.2);
}
.tool-tab-btn[data-tool="riskaudit"].active {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 6px 20px -2px rgba(16, 185, 129, 0.2);
}
.tool-tab-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: transform .25s var(--spring);
}
.tool-tab-btn:hover .tool-tab-icon {
  transform: scale(1.1);
}
.tool-tab-btn[data-tool="flujos"].active .tool-tab-icon {
  background: rgba(2, 132, 199, 0.12);
  border-color: rgba(2, 132, 199, 0.3);
}
.tool-tab-btn[data-tool="auto"].active .tool-tab-icon {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
}
.tool-tab-btn[data-tool="docugen"].active .tool-tab-icon {
  background: rgba(147, 51, 234, 0.12);
  border-color: rgba(147, 51, 234, 0.3);
}
.tool-tab-btn[data-tool="riskaudit"].active .tool-tab-icon {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}
.tool-tab-text {
  flex: 1;
  min-width: 0;
}
.tool-tab-text b {
  display: block;
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
}
.tool-tab-text small {
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--fg3);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quota-badge {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 700;
  color: var(--teal);
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.25);
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: .02em;
}
.quota-badge.empty {
  color: #DC2626;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

/* Tool Panes */
.tool-pane {
  display: none;
  animation: fadeInDown .3s var(--ease) both;
}
.tool-pane.active {
  display: block;
}
.tool-box-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--card-sh);
}
.tool-box-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.tool-box-title {
  font-family: var(--font-d);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}
.tool-box-subtitle {
  font-size: 13.5px;
  color: var(--fg3);
  max-width: 65ch;
  line-height: 1.5;
}
.tool-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tool-select-wrap label {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--fg4);
  text-transform: uppercase;
}
.tool-select {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--font-b);
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
}
.tool-select:focus {
  border-color: var(--accent);
}

/* Flow Canvas Styles */
.flow-canvas-container {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}
.flow-canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
}
.flow-engine-tag {
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--teal);
  background: rgba(13, 148, 136, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}
.flow-canvas-desc {
  font-size: 12px;
  color: var(--fg3);
  margin-bottom: 20px;
}
.flow-nodes-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.flow-step-node {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  transition: all .25s ease;
}
.flow-step-node.active {
  border-color: var(--teal);
  background: rgba(13, 148, 136, 0.08);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.12);
}
.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg2);
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 700;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.flow-step-node.active .step-num {
  background: var(--teal);
  color: #FFF;
}
.step-info {
  flex: 1;
}
.step-name {
  font-family: var(--font-d);
  font-size: 13.5px;
  color: var(--fg);
  display: block;
}
.step-detail {
  font-size: 11.5px;
  color: var(--fg3);
}
.step-status {
  font-family: var(--font-m);
  font-size: 10.5px;
  color: var(--fg4);
}
.step-status.running {
  color: var(--cyan);
  font-weight: 600;
}
.step-status.success {
  color: var(--teal);
  font-weight: 700;
}
.flow-connector-line {
  width: 2px;
  height: 14px;
  background: var(--border);
  margin-left: 27px;
  position: relative;
}
.flow-connector-line.active {
  background: var(--teal);
}

/* Automation Builder Grid */
.auto-builder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.auto-step-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-badge {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .06em;
}
.auto-label {
  font-family: var(--font-m);
  font-size: 11.5px;
  color: var(--fg2);
}
.auto-hint {
  font-size: 11px;
  color: var(--fg4);
  font-style: italic;
  margin-top: auto;
}
.auto-output-wrapper {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.auto-output-header {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--fg4);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.terminal-log-pre {
  font-family: var(--font-m);
  font-size: 11.5px;
  color: #047857;
  background: transparent;
  margin: 0;
  white-space: pre-wrap;
  max-height: 180px;
  overflow-y: auto;
  line-height: 1.45;
}

/* LLM Studio Grid */
.llm-controls-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 20px;
}
.llm-preset-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.llm-preset-bar label {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--fg4);
}
.llm-textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--fg);
  font-family: var(--font-b);
  font-size: 13px;
  padding: 12px;
  outline: none;
  resize: vertical;
  line-height: 1.5;
}
.llm-textarea:focus {
  border-color: var(--accent);
}
.llm-out-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--fg4);
  margin-bottom: 8px;
}
.llm-badge {
  color: var(--teal);
  background: rgba(13, 148, 136, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}
.llm-result-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  min-height: 230px;
  max-height: 380px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg);
}
.llm-code-block {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  font-family: var(--font-m);
  font-size: 11.5px;
  color: #047857;
  margin: 10px 0;
  overflow-x: auto;
}
.llm-loading-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  font-family: var(--font-m);
  font-size: 12px;
}
.llm-meta-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-m);
  font-size: 11.5px;
  color: var(--fg3);
  background: var(--bg2);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* Legal Scanner Form */
.scanner-questions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sc-field-full {
  grid-column: 1 / -1;
}
.sc-field label {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}
.sc-hint {
  font-size: 11px;
  color: var(--fg4);
}
.tool-input {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--font-b);
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 10px;
  outline: none;
}
.tool-input:focus {
  border-color: var(--accent);
}

/* Legal Scanner Result Card */
.sc-result-card {
  margin-top: 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  animation: fadeInDown .35s var(--ease) both;
}
.sc-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.sc-badge {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}
.badge-danger { background: rgba(239, 68, 68, 0.1); color: #DC2626; border: 1px solid rgba(239, 68, 68, 0.25); }
.badge-warning { background: rgba(234, 179, 8, 0.1); color: #B45309; border: 1px solid rgba(234, 179, 8, 0.25); }
.badge-success { background: rgba(13, 148, 136, 0.1); color: var(--teal); border: 1px solid rgba(13, 148, 136, 0.25); }

.sc-res-title {
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
}
.sc-res-money {
  text-align: right;
}
.sc-money-lbl {
  display: block;
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--fg4);
}
.sc-money-val {
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 800;
  color: #DC2626;
}
.sc-findings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.sc-finding-item {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  align-items: flex-start;
}
.sc-f-tag {
  font-family: var(--font-m);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.sc-tag-crtico { background: rgba(239, 68, 68, 0.15); color: #DC2626; }
.sc-tag-alto { background: rgba(249, 115, 22, 0.15); color: #C2410C; }
.sc-tag-medio, .sc-tag-moderado { background: rgba(234, 179, 8, 0.15); color: #B45309; }
.sc-tag-severopropiedadintelectual { background: rgba(147, 51, 234, 0.15); color: var(--magenta); }
.sc-f-body b {
  display: block;
  font-size: 12.5px;
  color: var(--fg);
  margin-bottom: 2px;
}
.sc-f-body p {
  font-size: 11.5px;
  color: var(--fg3);
  margin: 0;
}
.sc-signature-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.sc-sig-info span {
  display: block;
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--fg4);
}
.sc-sig-info b {
  color: var(--magenta);
  font-size: 13px;
}
.sc-sig-info small {
  display: block;
  color: var(--fg4);
  font-size: 10px;
}

/* Quota Exhausted Modal */
.quota-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .3s var(--ease);
  padding: 20px;
}
.quota-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}
.quota-modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15);
  transform: scale(0.95);
  transition: transform .3s var(--ease);
}
.quota-modal-backdrop.active .quota-modal-box {
  transform: scale(1);
}
.quota-modal-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.quota-modal-title {
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}
.quota-modal-desc {
  font-size: 13px;
  color: var(--fg3);
  line-height: 1.6;
  margin-bottom: 20px;
}
.btn-text-close {
  background: transparent;
  border: none;
  color: var(--fg4);
  font-family: var(--font-m);
  font-size: 12px;
  cursor: pointer;
  margin-top: 10px;
}
.btn-text-close:hover {
  color: var(--fg);
}

/* Toast */
.niand-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: var(--fg);
  color: var(--bg1);
  border: 1px solid var(--border);
  font-family: var(--font-m);
  font-size: 12.5px;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  z-index: 10001;
  opacity: 0;
  transition: all .25s var(--ease);
  pointer-events: none;
}
.niand-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive Tools Suite */
@media (max-width: 1024px) {
  .tool-tabs-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .llm-controls-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .tool-tabs-list {
    grid-template-columns: 1fr;
  }
  .auto-builder-grid {
    grid-template-columns: 1fr;
  }
  .scanner-questions-grid {
    grid-template-columns: 1fr;
  }
  .tool-box-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .sc-result-head {
    flex-direction: column;
  }
  .sc-res-money {
    text-align: left;
  }
  .sc-signature-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .tools-quota-bar {
    flex-direction: column;
    border-radius: 16px;
    width: 100%;
  }
  .tool-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .tool-conv-box {
    flex-direction: column !important;
    text-align: center;
    align-items: center !important;
  }
}

/* ══════════════════════════════════════════════════════
   ADVANCED VISUAL TOOLS SUITE ENHANCEMENTS
   ══════════════════════════════════════════════════════ */
.tool-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.tool-kpi-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all .2s ease;
}
.tool-kpi-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}
.tool-kpi-val {
  font-family: var(--font-d);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tool-kpi-val .trend {
  font-family: var(--font-m);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.trend-up { background: rgba(13, 148, 136, 0.12); color: var(--teal); }
.trend-blue { background: rgba(2, 132, 199, 0.12); color: var(--cyan); }
.trend-purple { background: rgba(147, 51, 234, 0.12); color: var(--magenta); }
.tool-kpi-lbl {
  font-size: 11.5px;
  color: var(--fg3);
}

/* Architecture Archetypes Grid */
.tool-archetypes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.archetype-card {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  transition: all .2s ease;
}
.archetype-card:hover {
  border-color: var(--teal);
  background: var(--surface-hover);
}
.archetype-card.active {
  border-color: var(--teal);
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.12);
}
.arch-icon {
  font-size: 20px;
  margin-bottom: 6px;
  display: inline-block;
}
.arch-title {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2px;
}
.arch-stack {
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--fg3);
}

/* Conversion Banner Inside Each Tool */
.tool-conversion-banner {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.06) 0%, rgba(13, 148, 136, 0.08) 100%);
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: 16px;
  padding: 20px 24px;
}
.tool-conv-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.tool-conv-text h4 {
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}
.tool-conv-text p {
  font-size: 13px;
  color: var(--fg3);
  margin: 0;
  max-width: 60ch;
  line-height: 1.5;
}
.tool-conv-actions {
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   SECCIÓN: MISIÓN, VISIÓN & TE ACOMPAÑAMOS (HUMAN-FIRST)
   ══════════════════════════════════════════════════════ */
.mission-vision-section {
  padding: 50px 0 60px;
  position: relative;
  z-index: 2;
}
.mv-intro-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}
.mv-intro-head h2 {
  font-family: var(--font-d);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}
.mv-intro-head p {
  font-size: 14.5px;
  color: var(--fg3);
  line-height: 1.6;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
.mv-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--card-sh);
  position: relative;
  overflow: hidden;
  transition: all .25s var(--ease);
}
.mv-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.08);
}
.mv-card-mision {
  border-top: 4px solid var(--accent);
}
.mv-card-vision {
  border-top: 4px solid var(--teal);
}
.mv-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: inline-block;
}
.mv-title {
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mv-tag {
  font-family: var(--font-m);
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.mv-tag-mision { background: rgba(79, 70, 229, 0.1); color: var(--accent); }
.mv-tag-vision { background: rgba(13, 148, 136, 0.1); color: var(--teal); }
.mv-desc {
  font-size: 14px;
  color: var(--fg2);
  line-height: 1.65;
  margin-bottom: 16px;
}
.mv-highlight-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mv-highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg3);
}
.mv-highlight-item span {
  color: var(--teal);
  font-weight: bold;
}

/* 4 Pilares de Acompañamiento */
.acomp-section-title {
  text-align: center;
  margin-bottom: 24px;
}
.acomp-section-title h3 {
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
}
.acomp-section-title p {
  font-size: 13.5px;
  color: var(--fg3);
}
.acomp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.acomp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 18px;
  transition: all .2s ease;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.acomp-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  background: var(--surface-hover);
}
.acomp-icon {
  font-size: 26px;
  margin-bottom: 10px;
  display: inline-block;
}
.acomp-title {
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
}
.acomp-desc {
  font-size: 12.5px;
  color: var(--fg3);
  line-height: 1.55;
  margin: 0;
}

/* Visual Humanized Tool Cards */
.friendly-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.friendly-choice-card {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  text-align: left;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.friendly-choice-card:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-2px);
}
.friendly-choice-card.active {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.12);
}
.friendly-choice-icon {
  font-size: 24px;
}
.friendly-choice-title {
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
}
.friendly-choice-sub {
  font-size: 11.5px;
  color: var(--fg3);
  line-height: 1.4;
}

/* Friendly Result Card */
.friendly-result-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-top: 18px;
}
.friendly-step-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}
.friendly-step-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  transition: all .2s;
}
.friendly-step-item.done {
  border-color: var(--teal);
  background: rgba(13, 148, 136, 0.05);
}
.friendly-step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  flex-shrink: 0;
}
.friendly-step-text b {
  display: block;
  font-size: 13.5px;
  color: var(--fg);
}
.friendly-step-text span {
  font-size: 12px;
  color: var(--fg3);
}

/* Semáforo Visual Component */
.semaforo-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 18px;
}
.semaforo-banner.green {
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid var(--teal);
  color: var(--teal);
}
.semaforo-banner.yellow {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid #CA8A04;
  color: #B45309;
}
.semaforo-banner.red {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #EF4444;
  color: #DC2626;
}
.semaforo-icon {
  font-size: 32px;
}
.semaforo-title {
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}
.semaforo-desc {
  font-size: 12.5px;
  line-height: 1.45;
  margin: 0;
}

/* ══════════════════════════════════════════════════════
   WORLD-CLASS BENCHMARK SUITE: VISUAL DEVICES & LIVE DEMOS
   ══════════════════════════════════════════════════════ */

/* Dual Column Layout for Interactive Tools */
.tool-dual-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
  margin-top: 20px;
}

@media (max-width: 960px) {
  .tool-dual-layout {
    grid-template-columns: 1fr;
  }
}

/* ── Live Device Showcase Mockup Frame ── */
.live-device-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  transition: all .3s var(--ease);
}
.live-device-card:hover {
  box-shadow: 0 24px 50px -10px rgba(79, 70, 229, 0.12);
  border-color: rgba(79, 70, 229, 0.3);
}

.device-chrome-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.device-chrome-dots {
  display: flex;
  gap: 6px;
}
.device-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.device-dot.red { background: #FF5F56; }
.device-dot.yellow { background: #FFBD2E; }
.device-dot.green { background: #27C93F; }

.device-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--teal);
  background: rgba(13, 148, 136, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.device-live-badge .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: beacon-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Phone Mockup Screen */
.phone-mockup-inner {
  max-width: 320px;
  margin: 0 auto;
  background: var(--bg);
  border: 2px solid var(--border2);
  border-radius: 36px;
  padding: 16px 14px 20px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
  position: relative;
}
.phone-island {
  width: 80px;
  height: 18px;
  background: var(--fg);
  border-radius: 12px;
  margin: 0 auto 14px;
}
.phone-screen-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.phone-widget-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* Store Mockup Screen */
.store-mockup-item {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
}
.store-item-img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(13, 148, 136, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.store-item-details b {
  display: block;
  font-size: 13.5px;
  color: var(--fg);
}
.store-item-details span {
  font-size: 12px;
  color: var(--teal);
  font-weight: 700;
}

/* CRM Dashboard Mockup */
.dash-mini-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.dash-mini-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.dash-mini-box span {
  font-size: 11px;
  color: var(--fg4);
  display: block;
  margin-bottom: 4px;
}
.dash-mini-box b {
  font-size: 16px;
  color: var(--fg);
}

/* ── Live Notification Feed Simulator ── */
.notif-sim-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  min-height: 230px;
}
.notif-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  animation: notif-slide-in 0.4s var(--spring) forwards;
  transition: all .25s ease;
}
.notif-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.notif-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.notif-item-body {
  flex: 1;
}
.notif-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}
.notif-sender {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
}
.notif-time {
  font-size: 11px;
  color: var(--fg4);
  font-family: var(--font-m);
}
.notif-msg {
  font-size: 12.5px;
  color: var(--fg2);
  line-height: 1.45;
  margin: 0;
}

@keyframes notif-slide-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Interactive Semáforo Toggle Buttons (Benchmark Experience) ── */
.quiz-field-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 14px;
  transition: border-color .2s;
}
.quiz-field-group:focus-within,
.quiz-field-group:hover {
  border-color: var(--border2);
}
.quiz-field-label {
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  display: block;
  margin-bottom: 4px;
}
.quiz-field-hint {
  font-size: 12px;
  color: var(--fg4);
  display: block;
  margin-bottom: 12px;
}
.quiz-tiles-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quiz-tile-btn {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  color: var(--fg2);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.quiz-tile-btn:hover {
  border-color: var(--fg4);
  transform: translateY(-1px);
}
.quiz-tile-btn.active.green {
  background: rgba(13, 148, 136, 0.12);
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.15);
}
.quiz-tile-btn.active.yellow {
  background: rgba(234, 179, 8, 0.12);
  border-color: #CA8A04;
  color: #B45309;
  box-shadow: 0 2px 8px rgba(202, 138, 4, 0.15);
}
.quiz-tile-btn.active.red {
  background: rgba(239, 68, 68, 0.12);
  border-color: #EF4444;
  color: #DC2626;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

/* ── Realtime Dynamic Gauge Score ── */
.gauge-score-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--card-sh);
  position: relative;
  overflow: hidden;
}
.gauge-meter-wrapper {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gauge-meter-wrapper svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.gauge-meter-wrapper circle {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s var(--spring), stroke 0.4s ease;
}
.gauge-meter-bg {
  stroke: var(--border);
}
.gauge-meter-progress {
  stroke-dasharray: 283;
  stroke-dashoffset: 40;
}
.gauge-center-text {
  position: absolute;
  text-align: center;
}
.gauge-score-num {
  font-family: var(--font-d);
  font-size: 28px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
}
.gauge-score-lbl {
  font-size: 10.5px;
  color: var(--fg4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
}

@media (max-width: 900px) {
  .mission-vision-grid {
    grid-template-columns: 1fr;
  }
  .acomp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .acomp-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════
   NIAND TOOLSTUDIO 2026: ADVANCED INTERACTIVE TOOLS SUITE
   ══════════════════════════════════════════════════════ */

/* ── TOOL 1: NIAND FLOW STUDIO (Interactive Node Architecture) ── */
.flow-studio-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flow-studio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
}

.flow-presets-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.flow-presets-label {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--fg4);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-right: 4px;
}

.flow-preset-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg2);
  font-family: var(--font-b);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.flow-preset-btn:hover {
  border-color: var(--teal);
  color: var(--fg);
  transform: translateY(-1px);
}

.flow-preset-btn.active {
  background: rgba(13, 148, 136, 0.12);
  border-color: var(--teal);
  color: var(--teal);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.15);
}

.flow-toggles-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.flow-toggle-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-m);
  font-size: 11.5px;
  color: var(--fg3);
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 20px;
  transition: all .2s;
  user-select: none;
}

.flow-toggle-item input[type="checkbox"] {
  accent-color: var(--teal);
  cursor: pointer;
}

.flow-toggle-item:hover {
  border-color: var(--border2);
  color: var(--fg);
}

.flow-toggle-item.checked {
  border-color: rgba(13, 148, 136, 0.35);
  background: rgba(13, 148, 136, 0.08);
  color: var(--teal);
  font-weight: 600;
}

/* Flow Canvas Interactive Arena */
.flow-canvas-viewport {
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.04) 0%, transparent 70%), var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 24px 16px;
  min-height: 420px;
  overflow-x: auto;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .flow-canvas-viewport {
  background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.08) 0%, transparent 75%), #0A0D14;
  border-color: rgba(255, 255, 255, 0.08);
}

.flow-svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.flow-cable-path {
  fill: none;
  stroke: var(--border2);
  stroke-width: 2.5px;
  stroke-dasharray: 6 6;
  transition: stroke 0.3s, stroke-dashoffset 0.3s;
  filter: drop-shadow(0 0 4px rgba(2, 132, 199, 0.2));
}

.flow-cable-path.active {
  stroke: #0284C7;
  stroke-dasharray: 8 6;
  animation: cable-flow 1.5s linear infinite;
  filter: drop-shadow(0 0 6px rgba(2, 132, 199, 0.45));
}

[data-theme="dark"] .flow-cable-path.active {
  stroke: #38BDF8;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

@keyframes cable-flow {
  from { stroke-dashoffset: 28; }
  to { stroke-dashoffset: 0; }
}

.flow-packet-particle {
  fill: #38BDF8;
  filter: drop-shadow(0 0 8px #38BDF8) drop-shadow(0 0 14px #0284C7);
  transition: opacity .2s;
}

.flow-nodes-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  align-items: center;
}

.flow-node-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-column-header {
  font-family: var(--font-m);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--fg4);
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: center;
  padding-bottom: 4px;
}

.flow-node-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all .25s var(--spring);
  position: relative;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.flow-node-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--teal);
  box-shadow: 0 10px 25px -4px rgba(13, 148, 136, 0.2);
}

.flow-node-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2), 0 10px 25px -4px rgba(79, 70, 229, 0.25);
}

.flow-node-card.disabled {
  opacity: 0.35;
  filter: grayscale(0.9);
  pointer-events: none;
}

/* Hardware / Graph Connection Ports */
.flow-port {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border2);
  transition: all .25s var(--spring);
  z-index: 5;
  pointer-events: none;
}

.flow-port.port-left {
  left: -5px;
}

.flow-port.port-right {
  right: -5px;
}

.flow-node-card:hover .flow-port,
.flow-node-card.selected .flow-port {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}

.flow-node-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.flow-node-icon {
  font-size: 20px;
}

.flow-node-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}

.flow-node-card.pulse .flow-node-dot {
  animation: beacon-ping 1s infinite;
}

.flow-node-title {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  display: block;
  margin-bottom: 2px;
}

.flow-node-tech {
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--fg3);
  display: block;
}

.flow-node-kpi {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-m);
  font-size: 9.5px;
  color: var(--fg4);
}

.flow-node-kpi b {
  color: var(--teal);
}

/* Flow Inspector & Blueprint Drawer */
.flow-bottom-cockpit {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .flow-bottom-cockpit {
    grid-template-columns: 1fr;
  }
}

.flow-inspector-card {
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flow-inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.flow-inspector-title {
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* macOS Window Code Box for Blueprint */
.code-window-box {
  background: #0D1117;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.code-window-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #161B22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 14px;
}

.code-window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-window-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.code-window-title {
  font-family: var(--font-m);
  font-size: 10.5px;
  color: #8B949E;
  letter-spacing: .02em;
}

.copy-blueprint-mini-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #C9D1D9;
  font-family: var(--font-m);
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.copy-blueprint-mini-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFF;
}

.flow-spec-code {
  margin: 0;
  padding: 14px 16px;
  font-family: var(--font-m);
  font-size: 11px;
  color: #7EE787;
  max-height: 155px;
  overflow-y: auto;
  line-height: 1.55;
  background: #0D1117;
}

/* ── TOOL 2: NIAND AUTOMATOR (Make/Zapier-style Visual Pipeline) ── */
.automator-pipeline-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.automator-stages-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

@media (max-width: 850px) {
  .automator-stages-grid {
    grid-template-columns: 1fr;
  }
}

.automator-stage-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  position: relative;
  transition: all .25s var(--ease);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.automator-stage-box.active {
  border-color: var(--teal);
  background: rgba(13, 148, 136, 0.05);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2), 0 10px 25px -4px rgba(13, 148, 136, 0.15);
}

.automator-stage-box.completed {
  border-color: #10B981;
}

.stage-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .stage-progress-track {
  background: rgba(255, 255, 255, 0.08);
}

.stage-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0284C7, #10B981);
  transition: width .35s ease-out;
}

.stage-role-tag {
  font-family: var(--font-m);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 8px;
}

.tag-trigger { background: rgba(2, 132, 199, 0.12); color: var(--cyan); }
.tag-ai { background: rgba(147, 51, 234, 0.12); color: var(--magenta); }
.tag-legal { background: rgba(13, 148, 136, 0.12); color: var(--teal); }

.stage-title {
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}

.stage-desc {
  font-size: 12px;
  color: var(--fg3);
  line-height: 1.4;
  margin-bottom: 12px;
}

.stage-connector-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 20px;
  font-weight: bold;
  transition: transform .2s;
}

.stage-connector-arrow.pulsing {
  animation: arrow-pulse 0.8s infinite alternate ease-in-out;
}

@keyframes arrow-pulse {
  from { transform: scale(1); color: var(--cyan); }
  to { transform: scale(1.3); color: var(--teal); }
}

@media (max-width: 850px) {
  .stage-connector-arrow {
    transform: rotate(90deg);
    padding: 6px 0;
  }
}

.automator-console-wrap {
  background: #090D16;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  font-family: var(--font-m);
  color: #F8FAFC;
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.5);
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111827;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: #94A3B8;
}

.term-actions-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.term-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #C9D1D9;
  font-family: var(--font-m);
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s;
}

.term-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFF;
}

.console-screen {
  padding: 14px 16px;
  font-size: 11.5px;
  line-height: 1.6;
  min-height: 130px;
  max-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.console-line-info { color: #38BDF8; }
.console-line-ai { color: #C084FC; }
.console-line-legal { color: #34D399; font-weight: 600; }

.roi-metrics-shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 700px) {
  .roi-metrics-shelf {
    grid-template-columns: 1fr;
  }
}

.roi-metric-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.roi-stat-num {
  font-family: var(--font-d);
  font-size: 20px;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 2px;
}

.roi-stat-lbl {
  font-family: var(--font-m);
  font-size: 10.5px;
  color: var(--fg4);
}

/* ── TOOL 3: NIAND DOCUGEN (Generador Real de Documentos Legales) ── */
.docugen-layout {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 960px) {
  .docugen-layout {
    grid-template-columns: 1fr;
  }
}

.docugen-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Quick Fill Preset Buttons */
.docugen-presets-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}

.doc-preset-lbl {
  font-family: var(--font-m);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--fg4);
  text-transform: uppercase;
  margin-right: 4px;
}

.doc-preset-btn {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--fg2);
  font-family: var(--font-b);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 16px;
  cursor: pointer;
  transition: all .2s;
}

.doc-preset-btn:hover {
  background: rgba(147, 51, 234, 0.1);
  border-color: var(--magenta);
  color: var(--fg);
}

.docugen-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.docugen-field label {
  font-family: var(--font-d);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg);
}

.docugen-input, .docugen-select {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--font-b);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  outline: none;
  transition: border-color .2s;
}

.docugen-input:focus, .docugen-select:focus {
  border-color: var(--accent);
}

.docugen-paper-viewer {
  background: #FCFCFB;
  color: #1C1917;
  border: 1.5px solid #E7E5E4;
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: 0 14px 40px -8px rgba(0, 0, 0, 0.12);
  min-height: 500px;
  position: relative;
  font-family: 'Times New Roman', Times, serif;
}

[data-theme="dark"] .docugen-paper-viewer {
  background: #151821;
  color: #F1F5F9;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 45px -8px rgba(0, 0, 0, 0.7);
  font-family: var(--font-b);
}

.docugen-watermark {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--teal);
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .06em;
}

.docugen-doc-title {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #E7E5E4;
  letter-spacing: .02em;
}

[data-theme="dark"] .docugen-doc-title {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.docugen-doc-body {
  font-size: 13px;
  line-height: 1.75;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.docugen-clause {
  margin-bottom: 14px;
}

.docugen-clause b {
  color: #0F172A;
}

[data-theme="dark"] .docugen-clause b {
  color: #38BDF8;
}

.docugen-clause-tag {
  font-family: var(--font-m);
  font-size: 9px;
  color: var(--magenta);
  background: rgba(147, 51, 234, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}

/* Formal Signatures Grid */
.docugen-signatures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed #D6D3D1;
}

[data-theme="dark"] .docugen-signatures-grid {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.docugen-sign-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11.5px;
}

.docugen-sign-line {
  height: 1px;
  background: #A8A29E;
  margin-bottom: 8px;
}

[data-theme="dark"] .docugen-sign-line {
  background: #475569;
}

.docugen-paper-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .docugen-paper-actions {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* ── TOOL 4: NIAND RISKAUDIT (Auditor Preventivo & Calculadora Laboral 2026) ── */
.riskaudit-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 960px) {
  .riskaudit-layout {
    grid-template-columns: 1fr;
  }
}

.riskaudit-financial-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1.5px solid rgba(239, 68, 68, 0.25);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  margin-bottom: 16px;
}

.riskaudit-money-badge {
  font-family: var(--font-d);
  font-size: 28px;
  font-weight: 800;
  color: #DC2626;
  display: block;
  margin: 6px 0;
  transition: color .3s;
}

.riskaudit-matrix-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.riskaudit-matrix-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg2);
  border-radius: 8px;
  font-size: 12px;
  border: 1px solid var(--border);
}

.matrix-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.matrix-status-dot.red { background: #EF4444; }
.matrix-status-dot.yellow { background: #F59E0B; }
.matrix-status-dot.green { background: #10B981; }

/* ══════════════════════════════════════════════════════════════════════════════
   HERO COCKPIT: COMPACT VISUAL BEFORE & AFTER SHOWCASE (HIGH-PERFORMANCE UI/UX)
   Sleek single-window architecture, balanced height (~370px), zero clutter.
   ══════════════════════════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════════════════════
   HERO SHOWCASE: BEFORE → AFTER TRANSFORMATION VISUAL
   Clean, large, immediately understandable at a glance
   ══════════════════════════════════════════════════════════════════════════════ */

.hero-showcase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 16px 48px -12px rgba(15, 23, 42, 0.1), 0 0 0 1px var(--border);
  overflow: hidden;
  animation: fadeInRight .8s .2s var(--ease) both;
}

[data-theme="dark"] .hero-showcase {
  box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ── Tab Bar ── */
.hs-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.hs-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all .25s ease;
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg3);
  flex: 1;
  justify-content: center;
}

.hs-tab:hover {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border);
}

.hs-tab.active {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.hs-tab-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #FFF;
  flex-shrink: 0;
}

/* ── Stage: Before → Arrow → After ── */
.hs-stage {
  display: grid;
  grid-template-columns: 1fr 60px 1.3fr;
  gap: 0;
  padding: 24px 20px;
  align-items: stretch;
  min-height: 260px;
}

@media (max-width: 680px) {
  .hs-stage {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 16px;
    min-height: auto;
  }
}

/* ── Cards (Before & After) ── */
.hs-card {
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: all .4s var(--ease);
}

.hs-before {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06), rgba(239, 68, 68, 0.02));
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.hs-after {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.06), rgba(13, 148, 136, 0.02));
  border: 1px solid rgba(13, 148, 136, 0.2);
}

/* Labels */
.hs-card-label {
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 999px;
  align-self: flex-start;
}

.hs-label-before {
  color: #DC2626;
  background: rgba(239, 68, 68, 0.1);
}

.hs-label-after {
  color: var(--teal);
  background: rgba(13, 148, 136, 0.1);
}

/* Before: Big Tool Icon */
.hs-card-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  transition: all .4s var(--ease);
}

.hs-card-icon svg {
  width: 100%;
  height: 100%;
}

/* Before: Problem Text */
.hs-card-problem {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.12);
  border-radius: 10px;
  width: 100%;
}

.hs-problem-icon {
  flex-shrink: 0;
  font-size: 16px;
}

.hs-card-problem span:last-child {
  font-size: 13px;
  line-height: 1.45;
  color: #991B1B;
  font-weight: 500;
}

[data-theme="dark"] .hs-card-problem span:last-child {
  color: #FCA5A5;
}

/* ── Arrow between Before/After ── */
.hs-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
}

.hs-arrow-line {
  width: 3px;
  height: 50px;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.3), var(--teal));
  border-radius: 4px;
  position: relative;
}

.hs-arrow-pulse {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
  position: relative;
  animation: arrowPulse 2.5s ease-in-out infinite;
}

.hs-arrow-pulse::after {
  content: '→';
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

@keyframes arrowPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3); }
  50% { transform: scale(1.1); box-shadow: 0 6px 24px rgba(13, 148, 136, 0.45); }
}

.hs-arrow-label {
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .hs-arrow {
    flex-direction: row;
    gap: 10px;
  }
  .hs-arrow-line {
    width: 50px;
    height: 3px;
  }
}

/* ── After: Dashboard Mockup ── */
.hs-card-mockup {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.hs-mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.hs-mockup-dots {
  display: flex;
  gap: 4px;
}

.hs-mockup-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.hs-mockup-dots span:nth-child(1) { background: #EF4444; }
.hs-mockup-dots span:nth-child(2) { background: #F59E0B; }
.hs-mockup-dots span:nth-child(3) { background: #10B981; }

.hs-mockup-url {
  font-family: var(--font-m);
  font-size: 9.5px;
  color: var(--fg4);
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.hs-mockup-body {
  display: flex;
  min-height: 130px;
}

.hs-mockup-sidebar {
  width: 36px;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hs-sb-item {
  width: 100%;
  height: 20px;
  border-radius: 4px;
  background: var(--border);
  transition: all .3s ease;
}

.hs-sb-item.active {
  background: var(--teal);
  opacity: 0.7;
}

.hs-mockup-content {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hs-mc-topbar {
  height: 8px;
  width: 60%;
  border-radius: 4px;
  background: var(--border);
}

.hs-mc-cards {
  display: flex;
  gap: 6px;
}

.hs-mc-card {
  flex: 1;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.hs-mc-card.c1 {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(13, 148, 136, 0.05));
  border-color: rgba(13, 148, 136, 0.2);
}

.hs-mc-card.c2 {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(79, 70, 229, 0.05));
  border-color: rgba(79, 70, 229, 0.2);
}

.hs-mc-card.c3 {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.15), rgba(217, 70, 239, 0.05));
  border-color: rgba(217, 70, 239, 0.2);
}

.hs-mc-chart {
  flex: 1;
  border-radius: 6px;
  overflow: hidden;
}

.hs-mc-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* After: Benefit Text */
.hs-card-benefit {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(13, 148, 136, 0.06);
  border: 1px solid rgba(13, 148, 136, 0.15);
  border-radius: 10px;
  width: 100%;
}

.hs-benefit-icon {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--teal);
  font-weight: 800;
  width: 20px;
  height: 20px;
  background: rgba(13, 148, 136, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hs-card-benefit span:last-child {
  font-size: 13px;
  line-height: 1.45;
  color: #065F46;
  font-weight: 500;
}

[data-theme="dark"] .hs-card-benefit span:last-child {
  color: #6EE7B7;
}

/* ── Progress Dots ── */
.hs-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.hs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border2);
  border: none;
  cursor: pointer;
  transition: all .3s ease;
  padding: 0;
}

.hs-dot:hover {
  background: var(--fg3);
}

.hs-dot.active {
  width: 24px;
  border-radius: 999px;
  background: var(--teal);
}


/* ══════════════════════════════════════════════════════════════════════════════
   NUEVA SECCIÓN: SECTOR SALUD & TRANSFORMACIÓN CLÍNICA
   ══════════════════════════════════════════════════════════════════════════════ */
.health-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(13, 148, 136, 0.05) 50%, var(--bg) 100%);
  padding: clamp(60px, 8vw, 100px) 0;
}

.health-banner-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px;
}

.health-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.25);
  color: var(--teal);
  font-family: var(--font-m);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Estación de trabajo clínica interactiva */
.health-workstation {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 20px 50px -12px rgba(13, 148, 136, 0.12), 0 0 0 1px var(--border);
  margin-bottom: 44px;
  position: relative;
  overflow: hidden;
}

.health-ws-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.health-ws-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 800;
  color: var(--fg);
}

.health-api-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.health-api-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--fg3);
}

.health-api-chip.online {
  color: var(--teal);
  background: rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.25);
}

/* Simulador interactivo de flujo clínico de 5 pasos */
.health-flow-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 24px;
  position: relative;
}

@media (max-width: 960px) {
  .health-flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .health-flow-steps {
    grid-template-columns: 1fr;
  }
}

.health-step-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  transition: all .25s ease;
  position: relative;
}

.health-step-card:hover,
.health-step-card.active {
  background: var(--surface);
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(13, 148, 136, 0.15);
}

.health-step-num {
  font-family: var(--font-m);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--teal);
  display: block;
  margin-bottom: 4px;
}

.health-step-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 4px;
}

.health-step-detail {
  font-size: 11px;
  color: var(--fg3);
  line-height: 1.4;
  margin: 0;
}

/* 4 Pilares del Sector Salud */
.health-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 860px) {
  .health-pillars-grid {
    grid-template-columns: 1fr;
  }
}

.health-pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 28px);
  transition: all .3s var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.health-pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--border2);
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.08);
}

.health-pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.25);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.health-pillar-tag {
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.health-pillar-title {
  font-family: var(--font-d);
  font-size: 19px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 10px;
  line-height: 1.3;
}

.health-pillar-desc {
  font-size: 14px;
  color: var(--fg2);
  line-height: 1.6;
  margin-bottom: 16px;
}

.health-contrast-box {
  background: var(--bg2);
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.health-contrast-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--fg3);
  margin-bottom: 6px;
}

.health-contrast-item:last-child {
  margin-bottom: 0;
}

.health-contrast-item.bad {
  color: #EF4444;
}

.health-contrast-item.good {
  color: var(--teal);
  font-weight: 600;
}

.health-features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.health-feature-pill {
  font-family: var(--font-m);
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--bg2);
  color: var(--fg3);
  border: 1px solid var(--border);
}

/* Cinta de métricas del Sector Salud */
.health-metrics-shelf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .health-metrics-shelf {
    grid-template-columns: repeat(2, 1fr);
  }
}

.health-metric-stat {
  font-family: var(--font-d);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--teal);
  display: block;
  line-height: 1.1;
  margin-bottom: 6px;
}

.health-metric-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg2);
  line-height: 1.35;
}

.health-metric-sub {
  font-size: 11px;
  color: var(--fg4);
  display: block;
  margin-top: 3px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   ENHANCED SECTION BANNERS (BANNERS LLAMATIVOS Y HUMANIZADOS)
   ══════════════════════════════════════════════════════════════════════════════ */
.sec-head.cen {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 44px;
}

.sec-head .label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--accent);
  margin-bottom: 14px;
}

.sec-head .h2 {
  font-family: var(--font-d);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--fg);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.sec-head .sub {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--fg3);
  line-height: 1.65;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════════════════════
   HERO 3-SLIDE BANNER (UNIFIED, LIGHT-FIRST, DISRUPTIVE & PREMIUM UI/UX)
   ══════════════════════════════════════════════════════════════════════════════ */
.hero-slider-section {
  position: relative;
  padding-top: clamp(28px, 4.5vh, 48px);
  padding-bottom: clamp(40px, 6vh, 64px);
  overflow: visible;
}

/* Slide Switcher Navigation Bar */
.hero-slider-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 26px;
  position: relative;
  z-index: 10;
}

.hero-nav-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  text-align: left;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.hero-nav-tab:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -4px rgba(15, 23, 42, 0.08);
}

.hero-nav-tab.active {
  border-color: var(--accent);
  box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.15), 0 0 0 1px var(--accent);
  background: var(--surface);
}

[data-theme="dark"] .hero-nav-tab.active {
  box-shadow: 0 8px 24px -4px rgba(139, 92, 246, 0.3), 0 0 0 1px var(--accent);
}

.hero-nav-tab .tab-index {
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 700;
  color: var(--fg4);
  letter-spacing: .08em;
}

.hero-nav-tab.active .tab-index {
  color: var(--accent);
}

.hero-nav-tab .tab-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-nav-tab .tab-title {
  font-family: var(--font-d);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.25;
}

.hero-nav-tab .tab-sub {
  font-size: 12px;
  color: var(--fg3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-nav-tab .tab-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
}

.hero-nav-tab.active .tab-progress {
  background: rgba(99, 102, 241, 0.15);
}

.hero-nav-tab.active .tab-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.08s linear;
}

/* Stage & Slides */
.hero-slider-stage {
  position: relative;
  min-height: 460px;
}

.hero-slide {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s cubic-bezier(0.16, 1, 0.3, 1), transform .45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.hero-slide-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
}

.hero-slide-text {
  text-align: left;
}

/* ══════════════════════════════════════════════════
   HERO PERSPECTIVE SWITCHER (GERENTES VS DIRECTORES TECH/LEGAL)
   ══════════════════════════════════════════════════ */
.hero-lens-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.hero-lens-label {
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 700;
  color: var(--fg4);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hero-lens-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.hero-lens-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--fg3);
  font-family: var(--font-m);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.hero-lens-btn:hover {
  color: var(--fg);
}
.hero-lens-btn.active {
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
[data-theme="dark"] .hero-lens-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-lens-pane {
  display: none;
  animation: heroLensFade 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-lens-pane.active {
  display: block;
}
@keyframes heroLensFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Interactive Transformation Engine (Cockpit) */
.engine-toggle-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg1);
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
}
.engine-state-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 999px;
  padding: 3px;
  gap: 4px;
}
.engine-state-btn {
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--fg3);
}
.engine-state-btn.active.bad {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.engine-state-btn.active.good {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.engine-pipeline-nodes {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.engine-node-card {
  display: flex;
  flex-direction: column;
  padding: 10px 13px;
  border-radius: 12px;
  background: var(--bg1);
  border: 1px solid var(--border);
  transition: all 0.22s ease;
  cursor: pointer;
  user-select: none;
}
.engine-node-card:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateX(2px);
}
.engine-node-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.engine-node-num {
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 800;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.engine-node-info {
  flex: 1;
}
.engine-node-title {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.engine-node-expand-icon {
  font-size: 10px;
  color: var(--fg4);
  transition: transform 0.2s ease;
}
.engine-node-card.expanded .engine-node-expand-icon {
  transform: rotate(180deg);
  color: var(--accent);
}
.engine-node-sub {
  font-size: 11.5px;
  color: var(--fg3);
  line-height: 1.35;
}
.engine-node-pill {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.engine-node-pill.manual {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.engine-node-pill.auto {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.engine-node-drawer {
  display: none;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg2);
  border: 1px dashed var(--border);
  font-size: 11px;
  color: var(--fg2);
  line-height: 1.45;
}
.engine-node-card.expanded .engine-node-drawer {
  display: block;
  animation: heroLensFade 0.22s ease-out;
}
.engine-drawer-badge {
  font-family: var(--font-m);
  font-weight: 700;
  color: var(--accent);
  margin-right: 4px;
}

/* ══════════════════════════════════════════════════
   HERO CENTERED MASTERPIECE
   ══════════════════════════════════════════════════ */
.hero-center-wrap {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 10px 0 20px;
}

.hero-lens-wrap-center {
  justify-content: center;
  margin: 0 auto 24px auto;
}

.hero-pill-center {
  margin: 0 auto 20px auto;
  display: inline-flex;
}

.hero-title-center {
  text-align: center !important;
  font-size: clamp(34px, 4.8vw, 58px) !important;
  line-height: 1.14 !important;
  letter-spacing: -.03em !important;
  max-width: 980px;
  margin: 0 auto 22px auto !important;
}

.hero-sub-center {
  text-align: center !important;
  max-width: 840px !important;
  margin: 0 auto 34px auto !important;
  font-size: clamp(16px, 1.4vw, 18.5px) !important;
  line-height: 1.68 !important;
  color: var(--fg2) !important;
}

.hero-acts-center {
  display: flex;
  justify-content: center !important;
  align-items: center;
  margin: 0 auto 44px auto !important;
  gap: 14px !important;
  flex-wrap: wrap;
}

.hero-wa-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-family: var(--font-m);
  font-size: 13px;
  font-weight: 600;
  color: #16A34A;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hero-wa-pill:hover {
  background: rgba(34, 197, 94, 0.16);
  border-color: #16A34A;
  transform: translateY(-1px);
}

/* 4-Pillar Grid: Implacable, balanced, structured */
.hero-center-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  margin-top: 6px;
  text-align: left;
}

.hero-pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 18px;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .hero-pillar-card {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px -10px rgba(99, 102, 241, 0.16);
}

.hero-pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.hero-pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.hero-pillar-tag {
  font-family: var(--font-m);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--fg3);
  background: var(--bg2);
  border: 1px solid var(--border);
}

.hero-pillar-title {
  font-family: var(--font-d);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
  line-height: 1.25;
}

.hero-pillar-subtitle {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg4);
  line-height: 1.2;
}

.hero-pillar-desc {
  font-size: 12.5px;
  color: var(--fg3);
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 992px) {
  .hero-center-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --hdr-h: 62px;
  }
  .hero,
  .hero-slider-section {
    padding-top: 24px;
    padding-bottom: 38px;
  }
  .hero-lens-wrap-center {
    margin: 0 auto 16px auto;
  }
  .hero-title-center {
    font-size: clamp(28px, 6.5vw, 42px) !important;
    line-height: 1.18 !important;
    margin-bottom: 16px !important;
  }
  .hero-sub-center {
    font-size: 15px !important;
    line-height: 1.58 !important;
    margin-bottom: 24px !important;
  }
  .hero-acts-center {
    margin-bottom: 32px !important;
  }
}

@media (max-width: 600px) {
  .hero-center-pillars {
    grid-template-columns: 1fr;
  }
  .hero-lens-switch {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    border-radius: 16px;
    padding: 4px;
    gap: 4px;
  }
  .hero-lens-btn {
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
    white-space: normal;
    text-align: center;
    border-radius: 12px;
    font-size: 11px;
  }
  .hero-acts-center {
    flex-direction: column;
    width: 100%;
    gap: 10px !important;
  }
  .hero-acts-center .btn,
  .hero-acts-center .hero-wa-pill {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-pillar-card {
    padding: 18px 16px;
  }
}

.hero-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.hero-arrow-btn:hover {
  background: var(--accent);
  color: #FFF;
  border-color: var(--accent);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .hero-slide-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .hero-slider-nav {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   FOUNDERS PHOTOS, LINKEDIN & TEAM SUPPORT STYLES
   ══════════════════════════════════════════════════════════════════════════════ */
.founder-photo {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--border2);
  flex-shrink: 0;
  box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.1);
  background: var(--bg2);
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder-linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 8px;
  background: rgba(10, 102, 194, 0.08);
  border: 1px solid rgba(10, 102, 194, 0.25);
  color: #0A66C2;
  font-family: var(--font-m);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
  width: fit-content;
  margin-top: 4px;
}

.founder-linkedin-link:hover {
  background: #0A66C2;
  color: #FFF;
  transform: translateY(-1px);
}

[data-theme="dark"] .founder-linkedin-link {
  background: rgba(10, 102, 194, 0.2);
  border-color: rgba(10, 102, 194, 0.4);
  color: #38BDF8;
}

[data-theme="dark"] .founder-linkedin-link:hover {
  background: #0284C7;
  color: #FFF;
}

.founders-team-banner {
  margin-top: 28px;
  padding: 22px 28px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.04);
}

.team-banner-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(13, 148, 136, 0.12));
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.team-banner-content {
  flex: 1;
}

.team-banner-title {
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 4px 0;
}

.team-banner-desc {
  font-size: 13.5px;
  color: var(--fg3);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 680px) {
  .founders-team-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }
}

/* ══════════════════════════════════════════════════════
   WIDGET ASISTENTE VIRTUAL CHATBOT FLOTANTE (MINIMALISTA)
   ══════════════════════════════════════════════════════ */
#niandChatWidget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  font-family: var(--font-b);
}

/* ══════════════════════════════════════════════════════
   ASISTENTE VIRTUAL CORPORATIVO (LUXURY UI/UX CHATBOT)
   ══════════════════════════════════════════════════════ */

/* Botón Burbuja Flotante de Alta Gama */
.chat-bubble-btn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4338CA 0%, #6366F1 50%, #0D9488 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -4px rgba(99, 102, 241, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.25);
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99999;
  user-select: none;
}
.chat-bubble-btn:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 16px 38px -4px rgba(99, 102, 241, 0.65), 0 0 0 2px rgba(99, 102, 241, 0.4);
}
.chat-bubble-btn:active {
  transform: scale(0.94);
}

.chat-bubble-orb {
  position: relative;
  width: 28px;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-bubble-logo {
  width: 28px;
  height: 31px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.chat-bubble-close {
  position: absolute;
  width: 24px;
  height: 24px;
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Estado abierto en botón flotante */
body.chat-is-open .chat-bubble-btn {
  background: linear-gradient(135deg, #1E1B4B, #312E81);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15);
}
body.chat-is-open .chat-bubble-logo {
  opacity: 0;
  transform: rotate(90deg) scale(0.7);
}
body.chat-is-open .chat-bubble-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Indicador de pulso en vivo */
.chat-status-pulse {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10B981;
  border: 2.5px solid var(--surface);
  box-shadow: 0 0 8px #10B981;
}
.chat-status-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #10B981;
  opacity: 0.8;
  animation: chatPulseRing 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}
@keyframes chatPulseRing {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Floating badge text (desktop) */
.chat-floating-badge {
  position: absolute;
  right: calc(100% + 14px);
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--fg);
  font-family: var(--font-m);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.25s ease;
}
.chat-bubble-btn:hover .chat-floating-badge {
  opacity: 1;
  transform: translateX(0);
}
body.chat-is-open .chat-floating-badge {
  display: none;
}

/* ══════════════════════════════════════════════════
   VENTANA DE CHAT (PRO UI/UX GLASSMORPHIC)
   ══════════════════════════════════════════════════ */
.chat-window {
  position: fixed;
  bottom: 98px;
  right: 26px;
  width: 420px;
  max-width: calc(100vw - 32px);
  height: 620px;
  max-height: calc(100vh - 120px);
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 100000;
}
[data-theme="light"] .chat-window {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.2);
}
.chat-window.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Cabecera del Chat */
.chat-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.14), rgba(20, 184, 166, 0.08));
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(20, 184, 166, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}
.chat-avatar-svg {
  width: 22px;
  height: 24px;
}
.chat-header-live-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid var(--surface);
  box-shadow: 0 0 6px #10B981;
}

.chat-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-title {
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1.2;
}
.chat-badge-dual {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 700;
  color: var(--teal);
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.3);
  padding: 2px 7px;
  border-radius: 999px;
}
.chat-subtitle {
  font-size: 11px;
  color: var(--fg3);
  margin-top: 2px;
  line-height: 1.35;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.chat-icon-btn {
  background: none;
  border: none;
  color: var(--fg3);
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.chat-icon-btn:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .chat-icon-btn:hover {
  background: rgba(15, 23, 42, 0.08);
}

/* Área de Mensajes */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar {
  width: 5px;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

/* Burbujas de Mensaje */
.chat-msg {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  max-width: 88%;
  padding: 15px 18px;
  font-size: 13.5px;
  line-height: 1.62;
  word-break: break-word;
  animation: fadeInMsg 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg p {
  margin: 0 0 8px 0;
  line-height: 1.6;
}
.chat-msg p:last-child {
  margin-bottom: 0;
}

/* Mensaje Bot */
.chat-msg-bot {
  align-self: flex-start !important;
  background: rgba(30, 41, 59, 0.72);
  color: var(--fg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px 20px 20px 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .chat-msg-bot {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #0F172A;
}

.chat-msg-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-m);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.author-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 6px var(--teal);
}

.chat-welcome-list {
  margin: 8px 0 12px 0;
  padding-left: 0;
  list-style: none;
}
.chat-welcome-list li {
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg2);
}
.chat-welcome-list li:last-child {
  margin-bottom: 0;
}
.chat-welcome-list li strong {
  color: var(--fg);
  font-weight: 700;
}

/* Mensaje Usuario */
.chat-msg-user {
  align-self: flex-end !important;
  background: linear-gradient(135deg, #4338CA, #6366F1);
  color: #FFFFFF !important;
  border-radius: 20px 20px 6px 20px;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}
.chat-msg-user p {
  color: #FFFFFF !important;
  margin: 0;
}

/* Chips de consultas frecuentes */
.chat-chips-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}
.chat-chip {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.35;
  font-family: inherit;
}
.chat-chip:hover {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

/* Botones de acción interactivos dentro de respuestas */
.chat-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.chat-action-btn:hover {
  background: var(--accent);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

/* Indicador de escritura fluido */
.chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 18px;
}
.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: chatTypingDot 1.4s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

/* Aviso de Privacidad */
.chat-privacy-notice {
  padding: 8px 16px;
  font-size: 11px;
  color: var(--fg4);
  text-align: center;
  border-top: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
}
.chat-privacy-notice a {
  color: var(--teal);
  text-decoration: underline;
}

/* Barra de Entrada de Mensaje */
.chat-input-bar {
  padding: 12px 16px 16px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-input-wrapper {
  flex: 1;
  position: relative;
}
.chat-input-bar input {
  width: 100%;
  background: var(--bg1);
  border: 1px solid var(--border2);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 13.5px;
  color: var(--fg);
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}
.chat-input-bar input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.chat-input-bar button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.chat-input-bar button:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.5);
}
.chat-input-bar button:active {
  transform: scale(0.94);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE CHATBOT (100% ADAPTADO A MÓVILES)
   ══════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .chat-bubble-btn {
    bottom: 18px;
    right: 18px;
    width: 56px;
    height: 56px;
  }
  body.chat-is-open .chat-bubble-btn {
    display: none !important;
  }
  .chat-floating-badge {
    display: none !important;
  }

  .chat-window {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    bottom: 0;
    right: 0;
    border-radius: 0;
    border: none;
    transform: translateY(100%);
    box-shadow: none;
    z-index: 1000000;
  }
  .chat-window.is-open {
    transform: translateY(0);
  }

  .chat-header {
    padding: 12px 16px;
    padding-top: max(14px, env(safe-area-inset-top));
  }
  .chat-header-avatar {
    width: 38px;
    height: 38px;
  }
  .chat-avatar-svg {
    width: 20px;
    height: 22px;
  }
  .chat-title {
    font-size: 14.5px;
  }
  .chat-subtitle {
    font-size: 11px;
  }

  .chat-messages {
    padding: 16px 14px;
    gap: 12px;
  }
  .chat-msg {
    max-width: 95%;
    padding: 12px 15px;
    font-size: 13px;
  }
  .chat-chip {
    padding: 6px 12px;
    font-size: 11.5px;
  }

  .chat-input-bar {
    padding: 10px 14px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .chat-input-bar input {
    font-size: 16px !important; /* Evita zoom automático en Safari iOS */
    padding: 11px 16px;
  }
  .chat-input-bar button {
    width: 44px;
    height: 44px;
  }
}


/* ══════════════════════════════════════════════════════
   HERRAMIENTAS & DEMOS INTERACTIVAS HUB STYLES
   ══════════════════════════════════════════════════════ */
.tools-hub-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.tool-hub-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg2);
  font-family: var(--font-m);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tool-hub-tab:hover {
  color: var(--fg);
  border-color: var(--border2);
  transform: translateY(-1px);
}
.tool-hub-tab.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(13, 148, 136, 0.15));
  border-color: var(--accent);
  color: var(--fg);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
}
.tool-view-panel {
  display: none;
  animation: fadeInTool 0.3s ease-out;
}
.tool-view-panel.active {
  display: block;
}
@keyframes fadeInTool {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Express Diagnostic Interactive Widget */
.express-diag-card {
  max-width: 840px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}
.diag-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.diag-step-pill {
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  background: rgba(20, 184, 166, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(20, 184, 166, 0.25);
}
.diag-q-title {
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}
.diag-q-sub {
  font-size: 13.5px;
  color: var(--fg3);
  margin-bottom: 20px;
}
.diag-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.diag-opt-btn {
  background: var(--bg1);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.diag-opt-btn:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-2px);
}
.diag-opt-btn.selected {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 0 1px var(--accent);
}
.diag-opt-icon,
.diag-opt-emoji {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent);
  margin-bottom: 6px;
  font-size: 18px;
}
.diag-opt-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
}
.diag-opt-desc {
  font-size: 12px;
  color: var(--fg3);
  line-height: 1.4;
}

/* Result box */
.diag-result-card {
  display: none;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(13, 148, 136, 0.08));
  border: 1.5px solid var(--teal);
  border-radius: 16px;
  padding: 24px;
  margin-top: 20px;
  animation: fadeInTool 0.3s ease-out;
}
.diag-result-card.active {
  display: block;
}

/* Flow Simulator comparison */
.flow-sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .flow-sim-grid {
    grid-template-columns: 1fr;
  }
}
.flow-col-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}
.flow-col-card.bad {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.03) 0%, var(--surface) 100%);
}
.flow-col-card.good {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, var(--surface) 100%);
}
.flow-step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.flow-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg1);
}
/* ══════════════════════════════════════════════════
   STREAMLINED ESTIMATOR STYLES
   ══════════════════════════════════════════════════ */
.est-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 960px) {
  .est-grid {
    grid-template-columns: 1fr;
  }
}

.est-config {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--card-sh);
}

.est-res {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--card-sh);
  position: sticky;
  top: 96px;
}

.btn-sm {
  padding: 8px 16px !important;
  font-size: 12.5px !important;
  border-radius: 999px !important;
  gap: 6px !important;
}

.calc-lines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.calc-opts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.est-group {
  margin-bottom: 22px;
}
.est-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.est-label {
  font-family: var(--font-m);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fg2);
  letter-spacing: 0.05em;
}
.est-link-btn {
  background: none;
  border: none;
  font-family: var(--font-m);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color 0.2s;
}
.est-link-btn:hover {
  color: var(--teal);
}

.calc-o {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 15px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.calc-o:hover {
  border-color: var(--accent) !important;
  background: var(--surface) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.calc-o.sel {
  border-color: var(--teal) !important;
  background: rgba(13, 148, 136, 0.09) !important;
  box-shadow: 0 0 0 1px var(--teal), 0 4px 16px -4px rgba(13, 148, 136, 0.2) !important;
}
.calc-o strong,
.calc-o .calc-title {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  display: block;
  transition: color 0.2s;
}
.calc-o.sel strong,
.calc-o.sel .calc-title {
  color: var(--teal) !important;
}
.calc-o span:not(.calc-title),
.calc-o .calc-desc {
  font-size: 11.5px;
  color: var(--fg3);
  line-height: 1.4;
  display: block;
}
.calc-o.sel span:not(.calc-title),
.calc-o.sel .calc-desc {
  color: var(--fg2) !important;
}

.est-summary-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 480px) {
  .est-summary-header {
    grid-template-columns: 1fr;
  }
}
.est-m span {
  font-family: var(--font-m);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fg4);
  display: block;
  margin-bottom: 4px;
}
.est-m b {
  font-family: var(--font-d);
  font-size: 20px;
  font-weight: 800;
  color: var(--fg);
  display: block;
}

.est-discount-tag {
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  background: rgba(13, 148, 136, 0.12);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: 999px;
  padding: 3px 10px;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
}

.est-breakdown {
  margin-top: 18px;
}
.est-breakdown-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-d);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}
.est-badge-count {
  font-family: var(--font-m);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg2);
  color: var(--fg3);
  border: 1px solid var(--border);
}

.est-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
}
.est-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--fg2);
}
.est-item-row.subtotal,
.est-item-row.total {
  font-weight: 800;
  border-top: 1px solid var(--border);
  border-bottom: none;
  padding-top: 10px;
}
.est-item-row.discount {
  color: var(--teal);
}

.est-deliverables {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.est-deliv-title {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  display: block;
  margin-bottom: 8px;
}
.est-deliv-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.est-deliv-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--fg3);
  line-height: 1.4;
}
.est-deliv-list li .chk {
  color: var(--teal);
  font-weight: 800;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   EXPANDED FOUNDERS LEADERSHIP STYLES
   ══════════════════════════════════════════════════ */
.founder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(24px, 3.2vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--card-sh);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.founder-card:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
  box-shadow: 0 20px 44px -12px rgba(0, 0, 0, 0.15);
}
.founder-photo-box {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
  background: var(--bg2);
  box-shadow: 0 8px 22px -6px rgba(0,0,0,0.25);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
[data-theme="light"] .founder-photo-box {
  border-color: rgba(0, 0, 0, 0.09);
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.1);
}
.founder-card:hover .founder-photo-box {
  transform: scale(1.04);
  border-color: var(--accent);
}
.founder-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.founder-expertise-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 16px;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.founder-expertise-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--fg2);
  line-height: 1.45;
}
.founder-trust-kpi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px dashed var(--border);
  border-radius: 10px;
  font-size: 12px;
  color: var(--fg3);
  font-family: var(--font-m);
}

/* ══════════════════════════════════════════════════
   CONTACT GRID & FORM STYLES
   ══════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-info-col {
  display: flex;
  flex-direction: column;
}
.contact-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--accent);
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 16px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: var(--card-sh);
}
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}
.contact-form-grid .full-width {
  grid-column: 1 / -1;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-family: var(--font-m);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg3);
}
.form-input,
.form-select,
.form-textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--fg);
  font-family: var(--font-b);
  font-size: 14px;
  outline: none;
  transition: all .2s ease;
  width: 100%;
  box-sizing: border-box;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: var(--surface);
}
.consent-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--fg3);
  line-height: 1.5;
  cursor: pointer;
}
.consent-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--teal);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.form-ok-msg {
  grid-column: 1 / -1;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid var(--teal);
  border-radius: 12px;
  padding: 14px;
  color: var(--fg);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════
   FOOTER STYLES
   ══════════════════════════════════════════════════ */
.ftr-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 40px;
}
@media (max-width: 860px) {
  .ftr-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}
@media (max-width: 540px) {
  .ftr-grid {
    grid-template-columns: 1fr;
  }
}
.ftr-brand {
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════════════════
   PRO ASYMMETRICAL BENTO GRID SYSTEM
   ══════════════════════════════════════════════════ */
.bento-pro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.bento-wide-card {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: center;
}
.bento-col-4 {
  grid-column: span 4;
}
@media (max-width: 992px) {
  .bento-wide-card {
    grid-template-columns: 1fr;
  }
  .bento-col-4 {
    grid-column: span 6;
  }
}
@media (max-width: 768px) {
  .bento-pro {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bento-wide-card,
  .bento-col-4 {
    grid-column: span 1;
  }
}

/* ══════════════════════════════════════════════════
   PRO HEALTH SHOWCASE SPLIT
   ══════════════════════════════════════════════════ */
.health-showcase-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  margin-top: 36px;
  align-items: center;
}
@media (max-width: 960px) {
  .health-showcase-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ══════════════════════════════════════════════════
   TRANSFORMACIÓN DIGITAL 360° RIBBON & STEPPER
   ══════════════════════════════════════════════════ */
.transform-cycle-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 18px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 999px;
  margin: 0 auto 24px auto;
  max-width: 960px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}

.transform-cycle-tag {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  padding-right: 6px;
  border-right: 1px solid rgba(99, 102, 241, 0.25);
}

.transform-step-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--font-m);
  color: var(--fg2);
  transition: all 0.2s ease;
}

.transform-step-chip:hover {
  color: var(--fg);
  transform: translateY(-1px);
}

.transform-step-num {
  font-weight: 800;
  color: var(--accent);
  font-size: 9.5px;
  background: rgba(99, 102, 241, 0.14);
  padding: 1px 6px;
  border-radius: 999px;
}

.transform-step-arrow {
  color: var(--fg4);
  font-size: 10px;
}

/* Hover transitions on cards for supreme visual polish */
.hero-pillar-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.hero-pillar-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(99, 102, 241, 0.45) !important;
  box-shadow: 0 16px 36px -10px rgba(99, 102, 241, 0.22) !important;
}

.bento-item {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.bento-item:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.38) !important;
  box-shadow: 0 20px 42px -12px rgba(15, 23, 42, 0.35) !important;
}

.founder-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.founder-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px -12px rgba(99, 102, 241, 0.18) !important;
}

/* ══════════════════════════════════════════════════
   ECOSISTEMA DE SOFTWARE & REPOSITORIOS PÚBLICOS
   ══════════════════════════════════════════════════ */
.repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.repo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.repo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.repo-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 16px 40px -12px rgba(99, 102, 241, 0.22);
}

.repo-card:hover::before {
  opacity: 1;
}

.repo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.repo-category-tag {
  font-family: var(--font-m);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid;
}

.repo-live-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-m);
  font-size: 10.5px;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
}

.repo-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
  animation: liveDotPulse 2s infinite;
}

@keyframes liveDotPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.repo-card-title {
  font-family: var(--font-d);
  font-size: 17.5px;
  font-weight: 800;
  color: var(--fg);
  margin: 0 0 4px 0;
  line-height: 1.25;
}

.repo-slug {
  font-family: var(--font-m);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 10px;
  display: inline-block;
  opacity: 0.9;
}

.repo-desc {
  font-size: 13.5px;
  color: var(--fg2);
  line-height: 1.55;
  margin: 0 0 16px 0;
  flex: 1;
}

.repo-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--fg4);
  font-family: var(--font-m);
}

.repo-actions-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.repo-btn-demo {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #FFFFFF;
  font-weight: 700;
  font-size: 12.5px;
  padding: 9px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.repo-btn-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}

.repo-btn-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  color: var(--fg2);
  font-weight: 600;
  font-size: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

#repos-ecosistema {
  scroll-margin-top: 84px;
}

.repos-sec-head {
  margin-bottom: 22px !important;
}

.github-banner-card {
  margin-top: 0;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.github-banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal), #EC4899);
}

.github-banner-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 14px 38px -6px rgba(99, 102, 241, 0.18);
}

.github-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(20, 184, 166, 0.12));
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.github-banner-card:hover .github-banner-icon {
  transform: scale(1.08) rotate(3deg);
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #FFFFFF;
}

.github-banner-title {
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.github-banner-desc {
  font-size: 13.5px;
  color: var(--fg2);
  margin: 4px 0 0 0;
  line-height: 1.55;
  max-width: 680px;
}

.github-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #FFFFFF !important;
  font-family: var(--font-m);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: all 0.22s ease;
  white-space: nowrap;
}

.github-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
  color: #FFFFFF !important;
}

.github-banner-btn:active {
  transform: translateY(0);
}

