/*
  TotallERP Premium Experience Layer
  Loaded after styles.css so the original site remains the stable base.
*/

:root {
  --container: 1240px;
  --premium-navy-950: #06142f;
  --premium-navy-900: #081a3b;
  --premium-navy-800: #0c2754;
  --premium-blue: #3274f6;
  --premium-blue-soft: #e9f1ff;
  --premium-green: #22c55e;
  --premium-green-bright: #58e58b;
  --premium-purple: #7c4dff;
  --premium-orange: #ff8a3d;
  --premium-surface: #ffffff;
  --premium-soft: #f5f7fb;
  --premium-line: rgba(23, 43, 77, 0.1);
  --premium-shadow: 0 24px 70px rgba(8, 28, 66, 0.14);
  --premium-shadow-strong: 0 34px 100px rgba(4, 18, 46, 0.28);
  --premium-radius-sm: 14px;
  --premium-radius: 22px;
  --premium-radius-lg: 32px;
  --pointer-x: 50vw;
  --pointer-y: 30vh;
}

html {
  scroll-padding-top: 98px;
}

body.premium-site {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(47, 102, 237, 0.055), transparent 24rem),
    radial-gradient(circle at 87% 54%, rgba(22, 169, 75, 0.045), transparent 28rem),
    var(--premium-soft);
}

body.premium-site::selection {
  color: #fff;
  background: var(--premium-blue);
}

body.premium-site main {
  position: relative;
  z-index: 1;
}

.scroll-progress {
  position: fixed;
  z-index: 2400;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--premium-blue), #46a7ff 48%, var(--premium-green-bright));
  box-shadow: 0 0 18px rgba(66, 153, 255, 0.75);
  transform-origin: left center;
}

.pointer-aura {
  position: fixed;
  z-index: 0;
  left: var(--pointer-x);
  top: var(--pointer-y);
  width: 440px;
  height: 440px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.22;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(70, 146, 255, 0.18), rgba(70, 146, 255, 0) 68%);
  filter: blur(10px);
  transition: opacity 0.3s ease;
}

@media (pointer: coarse) {
  .pointer-aura { display: none; }
}

/* Header */
.site-header {
  top: 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  transition: padding 0.28s ease;
}

.site-header .nav-wrap {
  height: 72px;
  padding: 0 18px;
  gap: 22px;
  border: 1px solid rgba(222, 231, 244, 0.88);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 44px rgba(7, 27, 67, 0.1);
  backdrop-filter: blur(18px) saturate(140%);
  transition: height 0.28s ease, border-radius 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.site-header.is-scrolled {
  padding: 6px 0;
}

.site-header.is-scrolled .nav-wrap {
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(7, 27, 67, 0.14);
}

.brand {
  width: 164px;
}

.brand img {
  width: 164px;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #dce7f6;
  border-radius: 999px;
  color: #33506f;
  background: #f8fbff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-chip i {
  color: var(--premium-blue);
}

.main-nav {
  gap: 24px;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  color: #526178;
  font-size: 13px;
  font-weight: 750;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, var(--premium-blue), var(--premium-green));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.main-nav a.is-active {
  color: var(--premium-blue);
}

.nav-actions {
  gap: 14px;
}

.login-link {
  font-weight: 750;
}

.btn {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  isolation: isolate;
}

.btn::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(110deg, transparent 15%, rgba(255,255,255,0.34) 45%, transparent 70%);
  transform: translateX(-125%);
  transition: transform 0.55s ease;
}

.btn:hover::before {
  transform: translateX(125%);
}

.btn-primary {
  border-color: rgba(27, 196, 90, 0.3);
  background: linear-gradient(135deg, #18a94a, #22c963);
  box-shadow: 0 12px 30px rgba(24, 169, 74, 0.26);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #119841, #1dbb59);
  box-shadow: 0 18px 38px rgba(24, 169, 74, 0.32);
}

.btn-purple {
  background: linear-gradient(135deg, #6f3cf1, #8b55ff);
}

/* Hero */
.hero-premium {
  min-height: 790px;
  padding: 104px 0 108px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 22%, rgba(67, 130, 255, 0.34), transparent 32rem),
    radial-gradient(circle at 86% 72%, rgba(35, 211, 115, 0.2), transparent 30rem),
    linear-gradient(135deg, #06142f 0%, #08204a 50%, #0a3653 100%);
  isolation: isolate;
}

.hero-premium::after {
  position: absolute;
  z-index: -1;
  right: -10%;
  bottom: -34%;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 76px rgba(255,255,255,0.025),
    0 0 0 152px rgba(255,255,255,0.018),
    0 0 0 228px rgba(255,255,255,0.012);
}

.hero-network,
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-network {
  z-index: -2;
  opacity: 0.48;
}

.hero-grid-pattern {
  z-index: -3;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0,0,0,0.8) 55%, transparent 100%);
}

.hero-premium .hero-glow {
  z-index: -2;
  opacity: 0.28;
  filter: blur(110px);
}

.hero-premium .hero-glow-a {
  background: #286cff;
}

.hero-premium .hero-glow-b {
  background: #24d76b;
}

.hero-premium .hero-grid {
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 64px;
}

.hero-premium .hero-copy {
  position: relative;
  z-index: 3;
}

.hero-premium .eyebrow-pill {
  margin-bottom: 24px;
  border-color: rgba(255,255,255,0.18);
  color: #dceaff;
  background: rgba(255,255,255,0.085);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 10px 30px rgba(0,0,0,0.12);
  backdrop-filter: blur(12px);
}

.hero-premium .eyebrow-pill i {
  color: var(--premium-green-bright);
}

.hero-premium h1 {
  max-width: 650px;
  color: #fff;
  font-size: clamp(48px, 5vw, 68px);
  line-height: 0.99;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-premium h1 span {
  color: transparent;
  background: linear-gradient(90deg, #72a7ff 0%, #53dc95 92%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-premium .hero-text {
  max-width: 620px;
  margin: 26px 0 20px;
  color: rgba(231, 239, 252, 0.78);
  font-size: 18px;
  line-height: 1.75;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 30px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(240, 246, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
}

.hero-proof i {
  color: var(--premium-green-bright);
  font-size: 12px;
}

.hero-premium .hero-actions {
  gap: 12px;
}

.hero-premium .hero-actions .btn {
  min-height: 58px;
  border-radius: 14px;
}

.hero-premium .hero-actions .btn:first-child {
  width: 294px;
}

.hero-premium .hero-actions .btn:nth-child(2) {
  width: 226px;
}

.hero-premium .btn-outline {
  border-color: rgba(255,255,255,0.58);
  color: #fff;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
}

.hero-premium .btn-outline:hover {
  border-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.13);
}

.hero-premium .trust-row {
  gap: 0;
  margin-top: 38px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 17px;
  background: rgba(255,255,255,0.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(13px);
}

.hero-premium .trust-item {
  flex: 1 1 0;
  min-width: 0;
  padding: 13px 14px;
  border-right-color: rgba(255,255,255,0.1);
  color: rgba(219, 231, 248, 0.67);
}

.hero-premium .trust-item strong {
  color: #fff;
}

.hero-premium .trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255,255,255,0.1);
}

.hero-premium .trust-icon.blue { color: #7cb0ff; }
.hero-premium .trust-icon.green { color: #5be590; }
.hero-premium .trust-icon.purple { color: #c2a4ff; }

.hero-visual {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.dashboard-scene {
  position: relative;
  width: min(690px, 100%);
  min-height: 560px;
  margin-left: auto;
  padding: 48px 28px 66px;
  transform-style: preserve-3d;
  will-change: transform;
}

.scene-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(133, 182, 255, 0.2);
  border-radius: 50%;
}

.scene-orbit-one {
  inset: 8% 3% 10% 5%;
  animation: orbit-spin 24s linear infinite;
}

.scene-orbit-two {
  top: 22%;
  right: 12%;
  bottom: 22%;
  left: 13%;
  border-style: dashed;
  animation: orbit-spin-reverse 17s linear infinite;
}

.scene-orbit-one::before,
.scene-orbit-two::before {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 3px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  content: "";
  background: var(--premium-blue);
  box-shadow: 0 0 18px rgba(91, 157, 255, 0.95);
}

.scene-orbit-one::before { top: 12%; left: 7%; }
.scene-orbit-two::before { right: 3%; bottom: 12%; background: var(--premium-green); }

.dashboard-shell {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.56);
  border-radius: 25px;
  background: #fff;
  box-shadow:
    0 48px 100px rgba(0, 9, 29, 0.48),
    0 0 0 1px rgba(255,255,255,0.22),
    inset 0 1px 0 rgba(255,255,255,0.9);
  transform: translateZ(20px) rotateY(-1.6deg) rotateX(1deg);
}

.dashboard-chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  height: 54px;
  padding: 0 16px;
  border-bottom: 1px solid #edf1f6;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.chrome-dots {
  display: flex;
  gap: 6px;
}

.chrome-dots span,
.demo-window-dots span,
.module-ui-top > div span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff6b66;
}

.chrome-dots span:nth-child(2),
.demo-window-dots span:nth-child(2),
.module-ui-top > div span:nth-child(2) { background: #ffbd44; }
.chrome-dots span:nth-child(3),
.demo-window-dots span:nth-child(3),
.module-ui-top > div span:nth-child(3) { background: #43c65f; }

.dashboard-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 7px 12px;
  border: 1px solid #e7edf5;
  border-radius: 9px;
  color: #6d7888;
  background: #fff;
  font-size: 11px;
  white-space: nowrap;
}

.dashboard-address i { color: var(--premium-green); }
.dashboard-address strong { color: #24324a; }
.dashboard-address span { overflow: hidden; text-overflow: ellipsis; }

.dashboard-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #15964a;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-live i {
  font-size: 7px;
  animation: live-pulse 1.8s ease-in-out infinite;
}

.dashboard-crop {
  position: relative;
  height: 386px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.dashboard-crop img {
  width: 116%;
  max-width: none;
  margin: -3.8% 0 0 -8%;
  filter: saturate(0.98) contrast(1.02);
}

.dashboard-crop::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 74px;
  content: "";
  background: linear-gradient(to top, #fff 8%, rgba(255,255,255,0.76) 50%, transparent);
}

.dashboard-period {
  position: absolute;
  z-index: 4;
  top: 49%;
  right: 8%;
  padding: 6px 12px;
  border: 1px solid #d7e7ff;
  border-radius: 10px;
  color: #245ed4;
  background: #edf5ff;
  box-shadow: 0 5px 14px rgba(36, 94, 212, 0.09);
  font-size: 10px;
  font-weight: 800;
}

.dashboard-demo-label {
  position: absolute;
  z-index: 4;
  top: 15px;
  left: 17px;
  padding: 6px 10px;
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 999px;
  color: #43658b;
  background: rgba(255,255,255,0.88);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.dashboard-sheen {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.32) 43%, transparent 60%);
  transform: translateX(-120%);
  animation: dashboard-sheen 7s ease-in-out infinite 2s;
}

.dashboard-dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border-top: 1px solid #edf1f6;
  background: #edf1f6;
}

.dashboard-dock span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 55px;
  color: #54647a;
  background: #fff;
  font-size: 10px;
  font-weight: 780;
}

.dashboard-dock i { color: var(--premium-blue); }
.dashboard-dock span:nth-child(2) i { color: var(--premium-green); }
.dashboard-dock span:nth-child(3) i { color: var(--premium-orange); }
.dashboard-dock span:nth-child(4) i { color: var(--premium-purple); }

.floating-kpi,
.floating-notification {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255,255,255,0.88);
  border-radius: 16px;
  color: #17243a;
  background: rgba(255,255,255,0.93);
  box-shadow: 0 18px 45px rgba(2, 17, 46, 0.26);
  backdrop-filter: blur(15px) saturate(130%);
  transform: translateZ(52px);
}

.floating-kpi {
  min-width: 166px;
  padding: 12px 14px;
}

.floating-kpi-sales {
  top: 12px;
  left: -10px;
  animation: float-card 5.5s ease-in-out infinite;
}

.floating-kpi-cloud {
  top: 115px;
  right: -18px;
  animation: float-card 6.2s ease-in-out infinite reverse;
}

.floating-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
}

.floating-icon.green { color: #159c49; background: #e8fbef; }
.floating-icon.blue { color: #2d69e6; background: #eaf2ff; }

.floating-kpi small,
.floating-kpi strong,
.floating-kpi em,
.floating-notification strong,
.floating-notification small {
  display: block;
}

.floating-kpi small {
  color: #738095;
  font-size: 9px;
  font-weight: 760;
}

.floating-kpi strong {
  margin: 1px 0;
  font-size: 17px;
  line-height: 1.1;
}

.floating-kpi em {
  color: #17a44f;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.floating-notification {
  bottom: 6px;
  left: 46px;
  min-width: 238px;
  padding: 13px 16px;
  animation: float-card 6.8s ease-in-out infinite 0.8s;
}

.notification-check {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #149748;
  background: #def9e8;
}

.floating-notification strong { font-size: 12px; }
.floating-notification small { color: #79869a; font-size: 9px; }

/* Continuous process ribbon */
.operations-marquee {
  position: relative;
  z-index: 4;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #d8e8ff;
  background: #06142f;
}

.operations-marquee::before,
.operations-marquee::after {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  width: 120px;
  content: "";
  pointer-events: none;
}

.operations-marquee::before { left: 0; background: linear-gradient(90deg, #06142f, transparent); }
.operations-marquee::after { right: 0; background: linear-gradient(-90deg, #06142f, transparent); }

.marquee-track {
  display: flex;
  width: max-content;
  animation: premium-marquee 34s linear infinite;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 34px;
  min-width: max-content;
  padding: 17px 17px;
}

.marquee-group span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(220, 233, 251, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-group span::after {
  width: 4px;
  height: 4px;
  margin-left: 26px;
  border-radius: 50%;
  content: "";
  background: var(--premium-green-bright);
  box-shadow: 0 0 10px rgba(88,229,139,0.75);
}

.marquee-group i { color: #6ca2ff; }

/* Shared section and heading upgrades */
.section {
  position: relative;
  padding: 108px 0;
}

.section-heading {
  position: relative;
  z-index: 2;
  max-width: 790px;
  margin-right: auto;
  margin-bottom: 52px;
  margin-left: auto;
}

.section-heading .kicker,
.visual-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin: 0 0 15px;
  padding: 7px 11px;
  border: 1px solid rgba(47, 102, 237, 0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.74);
  box-shadow: 0 8px 24px rgba(12, 39, 84, 0.06);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.section-heading.centered .kicker {
  margin-right: auto;
  margin-left: auto;
}

.section-heading h2 {
  color: #111f36;
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.section-heading > p:last-child {
  max-width: 690px;
  margin-right: auto;
  margin-left: auto;
  color: #6d798c;
  font-size: 16px;
  line-height: 1.75;
}

.info-card,
.feature-card,
.module-card,
.cost-card,
.compare-card,
.price-card,
.stat-card,
.testimonial {
  border: 1px solid rgba(21, 48, 88, 0.09);
  border-radius: var(--premium-radius);
  box-shadow: 0 16px 44px rgba(15, 42, 82, 0.075);
}

/* Problem */
.section-problem {
  overflow: hidden;
  background:
    radial-gradient(circle at 9% 23%, rgba(47, 102, 237, 0.08), transparent 26rem),
    radial-gradient(circle at 92% 77%, rgba(122, 53, 238, 0.06), transparent 22rem),
    #f7f9fd;
}

.section-problem::after {
  position: absolute;
  right: -170px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border: 1px dashed rgba(47,102,237,0.16);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 60px rgba(47,102,237,0.02), 0 0 0 120px rgba(47,102,237,0.014);
}

.problem-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.problem-grid .info-card {
  position: relative;
  grid-column: span 4;
  min-height: 225px;
  overflow: hidden;
  padding: 30px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.problem-grid .info-card:nth-child(4),
.problem-grid .info-card:nth-child(5) {
  grid-column: span 6;
}

.problem-grid .info-card::before {
  position: absolute;
  top: -52px;
  right: -42px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(47,102,237,0.12), transparent 70%);
  transition: transform 0.32s ease;
}

.problem-grid .info-card::after {
  position: absolute;
  right: 22px;
  bottom: 12px;
  color: rgba(30, 63, 111, 0.045);
  content: counter(problem-card, decimal-leading-zero);
  counter-increment: problem-card;
  font-size: 76px;
  font-weight: 950;
  line-height: 1;
}

.problem-grid { counter-reset: problem-card; }

.problem-grid .info-card:hover {
  border-color: rgba(47,102,237,0.22);
  box-shadow: 0 26px 65px rgba(15, 42, 82, 0.13);
  transform: translateY(-8px);
}

.problem-grid .info-card:hover::before { transform: scale(1.3); }

.info-card .mini-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 25px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}

.info-card h3 {
  position: relative;
  z-index: 2;
  margin-bottom: 9px;
  font-size: 19px;
}

.info-card p {
  position: relative;
  z-index: 2;
  max-width: 410px;
  color: #6d798b;
  font-size: 14px;
  line-height: 1.72;
}

/* Cost */
.cost-section {
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 79, 106, 0.16), transparent 24rem),
    radial-gradient(circle at 82% 76%, rgba(52, 119, 255, 0.22), transparent 27rem),
    linear-gradient(135deg, #07152f, #0b2147 60%, #103253);
}

.cost-section::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.22;
  background-image: radial-gradient(circle, rgba(255,255,255,0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to right, black, transparent 74%);
}

.cost-section .section-heading h2 { color: #fff; }
.cost-section .section-heading > p:last-child { color: rgba(227,236,250,0.7); }
.cost-section .kicker { border-color: rgba(255,255,255,0.14); background: rgba(255,255,255,0.075); }

.cost-grid {
  position: relative;
  z-index: 2;
  gap: 22px;
}

.cost-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  padding: 34px;
  border-color: rgba(255,255,255,0.12);
  color: #fff;
  background: rgba(255,255,255,0.075) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 25px 70px rgba(0,0,0,0.17);
  backdrop-filter: blur(15px);
  transition: transform 0.28s ease, background 0.28s ease;
}

.cost-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, #ff5f7b, #ff9a62);
}

.cost-card.cream::before { background: linear-gradient(90deg, #ffbc48, #ffe08b); }
.cost-card.slate::before { background: linear-gradient(90deg, #4e8cff, #65e59b); }
.cost-card:hover { transform: translateY(-8px); background: rgba(255,255,255,0.105) !important; }

.cost-card > strong {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(46px, 5vw, 64px);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-shadow: 0 12px 30px rgba(0,0,0,0.16);
}

.cost-card .statement {
  max-width: 340px;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.cost-card h3 {
  color: #fff;
  font-size: 21px;
}

.cost-card p {
  max-width: 310px;
  color: rgba(225,235,249,0.68);
  font-size: 14px;
  line-height: 1.7;
}

/* Solution + integration map */
.solution-section {
  background: #fff;
}

.solution-grid {
  gap: 22px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 185px;
  padding: 29px;
  background: linear-gradient(145deg, #fff, #fbfcff);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.feature-card::after {
  position: absolute;
  top: 16px;
  right: 20px;
  color: rgba(31, 65, 113, 0.055);
  content: counter(solution-card, decimal-leading-zero);
  counter-increment: solution-card;
  font-size: 54px;
  font-weight: 950;
}

.solution-grid { counter-reset: solution-card; }

.feature-card:hover {
  border-color: rgba(47,102,237,0.2);
  box-shadow: 0 28px 64px rgba(13, 40, 84, 0.13);
  transform: translateY(-7px);
}

.feature-card .mini-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.feature-card h3 {
  margin-top: 3px;
  font-size: 18px;
}

.feature-card p {
  color: #6d798b;
  line-height: 1.68;
}

.integration-map {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
  align-items: center;
  gap: 48px;
  margin-top: 64px;
  padding: 46px 48px;
  overflow: hidden;
  border: 1px solid #dfe8f5;
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 20%, rgba(47,102,237,0.11), transparent 22rem),
    radial-gradient(circle at 66% 90%, rgba(22,169,75,0.08), transparent 18rem),
    linear-gradient(145deg, #f8fbff, #fff);
  box-shadow: var(--premium-shadow);
}

.integration-copy h3 {
  margin: 0 0 14px;
  color: #11213a;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.integration-copy > p {
  margin: 0;
  color: #6b778a;
  line-height: 1.75;
}

.integration-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.integration-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid #e1e9f4;
  border-radius: 999px;
  color: #50617a;
  background: rgba(255,255,255,0.86);
  font-size: 11px;
  font-weight: 750;
}

.integration-proof i { color: var(--premium-green); }

.flow-diagram {
  position: relative;
  min-height: 430px;
}

.flow-diagram svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flow-line {
  fill: none;
  stroke: url(#flowGradient);
  stroke-width: 2;
  stroke-dasharray: 8 8;
  opacity: 0.44;
  animation: flow-dash 12s linear infinite;
}

.flow-pulse {
  fill: #fff;
  stroke: var(--premium-blue);
  stroke-width: 3;
  filter: drop-shadow(0 0 5px rgba(47,102,237,0.8));
}

.pulse-one { animation: pulse-route-one 4.5s linear infinite; }
.pulse-two { animation: pulse-route-two 5.2s linear infinite 0.8s; }
.pulse-three { animation: pulse-route-three 5.6s linear infinite 1.7s; }

.flow-core,
.flow-node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 75, 137, 0.12);
  background: rgba(255,255,255,0.93);
  box-shadow: 0 14px 34px rgba(13, 42, 86, 0.12);
  backdrop-filter: blur(12px);
}

.flow-core {
  top: 50%;
  left: 50%;
  width: 148px;
  height: 148px;
  flex-direction: column;
  border-radius: 34px;
  transform: translate(-50%, -50%);
}

.flow-core > span {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 9px;
  place-items: center;
  overflow: hidden;
  padding: 7px;
  border: 1px solid rgba(21,48,88,0.08);
  border-radius: 17px;
  color: #fff;
  background: #fff;
  box-shadow: 0 12px 26px rgba(47,102,237,0.18);
}

.flow-core > span img { width: 100%; height: 100%; object-fit: contain; }

.flow-core strong { color: #15253e; font-size: 17px; }
.flow-core small { color: #7b8798; font-size: 9px; }

.flow-node {
  width: 122px;
  height: 62px;
  gap: 9px;
  border-radius: 17px;
  color: #314760;
  font-size: 12px;
  font-weight: 820;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.flow-node:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(13,42,86,0.17); }
.flow-node i { color: var(--premium-blue); }
.flow-node-right-top i { color: var(--premium-orange); }
.flow-node-left-mid i, .flow-node-right-bottom i { color: var(--premium-green); }
.flow-node-left-bottom i { color: var(--premium-orange); }

.flow-node-top { top: 0; left: 50%; transform: translateX(-50%); }
.flow-node-top:hover { transform: translate(-50%, -4px); }
.flow-node-left-top { top: 62px; left: 0; }
.flow-node-right-top { top: 62px; right: 0; }
.flow-node-left-mid { top: 50%; left: 0; transform: translateY(-50%); }
.flow-node-right-mid { top: 50%; right: 0; transform: translateY(-50%); }
.flow-node-left-mid:hover, .flow-node-right-mid:hover { transform: translateY(calc(-50% - 4px)); }
.flow-node-left-bottom { bottom: 22px; left: 0; }
.flow-node-right-bottom { right: 0; bottom: 22px; }

/* Interactive control center */
.control-center-section {
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 10% 20%, rgba(66, 119, 255, 0.28), transparent 28rem),
    radial-gradient(circle at 90% 72%, rgba(31, 211, 112, 0.17), transparent 25rem),
    linear-gradient(135deg, #06142f, #0a2149 58%, #0a354f);
}

.control-center-section::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.control-orb {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  pointer-events: none;
}

.control-orb-one {
  top: -190px;
  left: -150px;
  width: 480px;
  height: 480px;
  box-shadow: 0 0 0 70px rgba(255,255,255,0.017), 0 0 0 140px rgba(255,255,255,0.011);
}

.control-orb-two {
  right: -180px;
  bottom: -220px;
  width: 540px;
  height: 540px;
  box-shadow: 0 0 0 90px rgba(255,255,255,0.015);
}

.control-center-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(330px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 60px;
}

.light-label {
  border-color: rgba(255,255,255,0.15);
  color: #cfe2ff;
  background: rgba(255,255,255,0.07);
  box-shadow: none;
}

.control-copy h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(42px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.control-copy > p:not(.demo-disclaimer) {
  max-width: 510px;
  color: rgba(224,235,251,0.72);
  font-size: 16px;
  line-height: 1.75;
}

.control-tabs {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.control-tab {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 15px;
  color: #d7e4f6;
  background: rgba(255,255,255,0.045);
  text-align: left;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.control-tab > i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #82afff;
  background: rgba(65, 126, 241, 0.15);
}

.control-tab span,
.control-tab strong,
.control-tab small { display: block; }
.control-tab strong { font-size: 13px; }
.control-tab small { color: rgba(211,225,246,0.54); font-size: 10px; }

.control-tab:hover {
  border-color: rgba(121,172,255,0.35);
  background: rgba(255,255,255,0.075);
  transform: translateX(4px);
}

.control-tab.is-active {
  border-color: rgba(108, 163, 255, 0.46);
  color: #fff;
  background: linear-gradient(90deg, rgba(55,112,234,0.25), rgba(42,202,104,0.08));
  box-shadow: inset 3px 0 0 #5a93ff, 0 14px 30px rgba(0,0,0,0.12);
}

.control-tab.is-active > i {
  color: #fff;
  background: linear-gradient(135deg, #3f7df4, #25bd67);
  box-shadow: 0 10px 24px rgba(49,112,235,0.3);
}

.demo-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 17px;
  color: rgba(211,225,246,0.5);
  font-size: 10px;
  line-height: 1.55;
}

.demo-disclaimer i { margin-top: 3px; }

.control-demo {
  min-width: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.demo-window {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 27px;
  background: #f7f9fd;
  box-shadow: 0 48px 110px rgba(0,0,0,0.43), inset 0 1px 0 rgba(255,255,255,0.86);
  transform: translateZ(20px);
}

.demo-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 17px;
  border-bottom: 1px solid #e4e9f1;
  color: #65748a;
  background: #fff;
  font-size: 10px;
}

.demo-window-dots { display: flex; gap: 5px; }
.demo-breadcrumb { justify-self: center; }
.demo-breadcrumb i { margin-right: 5px; color: var(--premium-green); }
.demo-breadcrumb b { color: #25354d; }
.demo-sync { color: #148d45; font-weight: 800; }
.demo-sync i { margin-right: 5px; }

.demo-body {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  min-height: 545px;
}

.demo-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-right: 1px solid #e7ebf2;
  color: #8a96a8;
  background: #fff;
}

.demo-sidebar > i,
.demo-brand-mark {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 11px;
  font-size: 13px;
}

.demo-brand-mark {
  margin-bottom: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--premium-blue), var(--premium-green));
  box-shadow: 0 9px 22px rgba(47,102,237,0.23);
}

.demo-sidebar > i.is-active {
  color: var(--premium-blue);
  background: #edf3ff;
}

.demo-sidebar > i:last-child { margin-top: auto; }

.demo-main {
  min-width: 0;
  padding: 22px;
  color: #15233a;
}

.demo-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
}

.demo-heading span,
.demo-card-head span {
  display: block;
  margin-bottom: 3px;
  color: #8190a4;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.demo-heading h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.demo-avatar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-avatar > span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 11px;
  color: #2458be;
  background: #dfebff;
  font-size: 10px;
  font-weight: 900;
}

.demo-avatar strong,
.demo-avatar small { display: block; }
.demo-avatar strong { color: #26374f; font-size: 9px; }
.demo-avatar small { color: #8b97a9; font-size: 8px; }

.demo-kpi-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 11px;
}

.demo-kpi {
  position: relative;
  min-width: 0;
  padding: 15px;
  overflow: hidden;
  border: 1px solid #e2e8f1;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(17, 48, 90, 0.055);
}

.demo-kpi > i {
  position: absolute;
  top: 14px;
  right: 13px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  color: #3373e8;
  background: #eaf2ff;
  font-size: 12px;
}

.demo-kpi-alert > i { color: #e47325; background: #fff0e5; }
.demo-kpi-primary > i { color: #159b48; background: #e9faef; }

.demo-kpi span,
.demo-kpi strong,
.demo-kpi small { display: block; }
.demo-kpi span { padding-right: 30px; color: #78869a; font-size: 8px; font-weight: 760; }
.demo-kpi strong { margin: 7px 0 4px; font-size: 23px; line-height: 1; letter-spacing: -0.035em; }
.demo-kpi small { overflow: hidden; color: #8d99aa; font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }

.demo-analytics {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(185px, 0.75fr);
  gap: 11px;
  margin-top: 11px;
}

.demo-chart-card,
.demo-activity-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid #e2e8f1;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(17, 48, 90, 0.05);
}

.demo-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.demo-card-head strong { display: block; color: #26374d; font-size: 9px; }
.demo-card-head button {
  padding: 6px 8px;
  border: 1px solid #e5ebf3;
  border-radius: 8px;
  color: #718096;
  background: #fafbfd;
  font-size: 7px;
}

.demo-chart-area {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  height: 178px;
  margin-top: 12px;
}

.demo-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #9aa5b4;
  font-size: 6px;
}

.demo-bars {
  display: grid;
  grid-template-columns: repeat(10, minmax(7px, 1fr));
  align-items: end;
  gap: 6px;
  padding: 7px 6px 0;
  border-bottom: 1px solid #edf1f6;
  background-image: linear-gradient(#edf1f6 1px, transparent 1px);
  background-size: 100% 25%;
}

.demo-bar {
  height: var(--bar);
  min-height: 8%;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(to top, #4b83ef, #76a7ff);
  box-shadow: 0 6px 12px rgba(67,119,228,0.14);
  transform-origin: bottom;
  transition: height 0.52s cubic-bezier(.2,.7,.2,1), background 0.25s ease;
}

.demo-bar:nth-child(7) {
  background: linear-gradient(to top, #1aac55, #57df89);
}

.activity-list {
  display: grid;
  gap: 13px;
  margin-top: 17px;
}

.activity-list > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.activity-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  font-size: 10px;
}

.activity-green { color: #148d45; background: #e6f9ec; }
.activity-blue { color: #2767de; background: #eaf2ff; }
.activity-orange { color: #d76c22; background: #fff0e6; }

.activity-list p,
.activity-list strong,
.activity-list small { display: block; margin: 0; }
.activity-list strong { overflow: hidden; max-width: 120px; color: #314158; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.activity-list small { color: #929dac; font-size: 7px; }

.demo-main,
.module-preview-copy,
.module-preview-ui {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.demo-window.is-updating .demo-main,
.module-preview.is-updating .module-preview-copy,
.module-preview.is-updating .module-preview-ui {
  opacity: 0.58;
  transform: translateY(3px);
}

/* Modules */
.modules-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 13% 20%, rgba(35, 197, 94, 0.07), transparent 23rem),
    radial-gradient(circle at 88% 70%, rgba(47, 102, 237, 0.08), transparent 25rem),
    #f6f8fc;
}

.modules-grid {
  gap: 18px;
}

.module-card {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  padding: 26px;
  cursor: pointer;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease, background 0.26s ease;
}

.module-card::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--premium-blue), var(--premium-green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.module-card::after {
  position: absolute;
  top: -38px;
  right: -38px;
  width: 115px;
  height: 115px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(47,102,237,0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.module-card:hover,
.module-card.is-selected {
  border-color: rgba(47,102,237,0.24);
  background: #fff;
  box-shadow: 0 26px 62px rgba(14, 43, 87, 0.13);
  transform: translateY(-7px);
}

.module-card:hover::before,
.module-card.is-selected::before { transform: scaleX(1); }
.module-card:hover::after,
.module-card.is-selected::after { opacity: 1; transform: scale(1.25); }

.module-card:focus-visible {
  outline: 3px solid rgba(47,102,237,0.3);
  outline-offset: 4px;
}

.module-card .mini-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 21px;
  border-radius: 15px;
}

.module-card h3 { position: relative; z-index: 2; font-size: 17px; }
.module-card p { position: relative; z-index: 2; color: #6d798c; line-height: 1.65; }
.module-card .more-pill { z-index: 3; }

.module-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(470px, 1.25fr);
  align-items: center;
  gap: 46px;
  margin-top: 34px;
  padding: 42px 44px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 29px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 20%, rgba(79,142,255,0.28), transparent 23rem),
    radial-gradient(circle at 15% 90%, rgba(38,213,112,0.18), transparent 18rem),
    linear-gradient(135deg, #071631, #0b2855);
  box-shadow: var(--premium-shadow-strong);
}

.module-preview-copy .visual-label {
  border-color: rgba(255,255,255,0.14);
  color: #d5e5ff;
  background: rgba(255,255,255,0.07);
}

.module-preview-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0 15px;
}

.module-preview-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, #3576f3, #22c55e);
  box-shadow: 0 14px 35px rgba(47,102,237,0.32);
  font-size: 20px;
}

.module-preview-heading small {
  display: block;
  color: rgba(213,228,248,0.48);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.module-preview-heading h3 {
  margin: 2px 0 0;
  color: #fff;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.module-preview-copy > p:not(.module-preview-hint) {
  max-width: 430px;
  color: rgba(224,235,250,0.72);
  line-height: 1.72;
}

.module-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.module-preview-tags span {
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 999px;
  color: #dce9fb;
  background: rgba(255,255,255,0.06);
  font-size: 10px;
  font-weight: 720;
}

.module-preview-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 22px 0 0;
  color: rgba(207,222,244,0.45);
  font-size: 10px;
}

.module-preview-ui {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 22px;
  background: #f7f9fd;
  box-shadow: 0 30px 75px rgba(0,0,0,0.35);
}

.module-ui-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 15px;
  border-bottom: 1px solid #e4e9f1;
  color: #53637a;
  background: #fff;
  font-size: 10px;
}

.module-ui-top > div { display: flex; gap: 5px; }
.module-ui-top > div span { width: 8px; height: 8px; }
.module-ui-top strong { justify-self: center; color: #283950; }

.module-ui-body {
  display: grid;
  grid-template-columns: 48px 1fr;
  min-height: 350px;
}

.module-ui-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 17px 9px;
  border-right: 1px solid #e3e8f0;
  background: #fff;
}

.module-ui-sidebar span {
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: #edf2f8;
}

.module-ui-sidebar span:first-child { background: #dfebff; box-shadow: inset 3px 0 0 var(--premium-blue); }

.module-ui-main { padding: 19px; }

.module-ui-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.module-ui-kpis > span {
  padding: 12px;
  border: 1px solid #e3e8f1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16,43,82,0.045);
}

.module-ui-kpis small,
.module-ui-kpis b { display: block; }
.module-ui-kpis small { color: #8490a2; font-size: 7px; }
.module-ui-kpis b { margin-top: 4px; color: #22344d; font-size: 18px; }

.module-ui-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 9px;
  height: 155px;
  margin-top: 14px;
  padding: 18px 13px 10px;
  border: 1px solid #e3e8f1;
  border-radius: 14px;
  background:
    linear-gradient(#eef2f6 1px, transparent 1px),
    #fff;
  background-size: 100% 25%;
}

.module-ui-chart span {
  height: var(--module-bar);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(to top, #4b82ed, #83aeff);
  transition: height 0.5s ease;
}

.module-ui-chart span:nth-child(6) { background: linear-gradient(to top, #16a94b, #58dd87); }

.module-ui-list {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.module-ui-list span {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e7ecf3 0 36%, #f4f6f9 36% 100%);
}

.module-button-wrap { margin-top: 30px; }

/* Human photography mosaic */
.industry-section {
  background: #fff;
}

.industry-mosaic {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr 0.88fr;
  grid-template-rows: 270px 270px;
  gap: 18px;
}

.industry-card {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  background: #0d203d;
  box-shadow: 0 20px 55px rgba(8,31,69,0.14);
  transform-style: preserve-3d;
  transition: box-shadow 0.28s ease;
  will-change: transform;
}

.industry-card-retail { grid-row: 1 / 3; }
.industry-card-pos { grid-column: 2 / 4; }

.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1), filter 0.4s ease;
}

.industry-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(4,16,39,0.92) 0%, rgba(4,16,39,0.34) 46%, transparent 78%);
  transition: background 0.35s ease;
}

.industry-card:hover {
  box-shadow: 0 32px 75px rgba(8,31,69,0.22);
}

.industry-card:hover img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.055);
}

.industry-card figcaption {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 26px;
  color: #fff;
  transform: translateZ(24px);
}

.industry-card figcaption > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #8fb8ff;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.industry-card:nth-child(3) figcaption > span,
.industry-card:nth-child(4) figcaption > span { color: #74e39b; }

.industry-card h3 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.industry-card p {
  max-width: 390px;
  margin: 0;
  color: rgba(231,239,251,0.7);
  font-size: 12px;
  line-height: 1.55;
}

.industry-card-retail h3 { font-size: 31px; }

/* TotallIA */
.ai-section {
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 15% 22%, rgba(129, 68, 255, 0.31), transparent 25rem),
    radial-gradient(circle at 90% 78%, rgba(45, 125, 255, 0.23), transparent 26rem),
    linear-gradient(135deg, #110d2e, #1a1745 55%, #172958);
}

.ai-section::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.2;
  background-image: radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px);
  background-size: 27px 27px;
  mask-image: linear-gradient(90deg, black 0%, transparent 75%);
}

.ai-grid {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 0.85fr) minmax(520px, 1.15fr);
  gap: 64px;
}

.ai-section .purple-pill {
  border-color: rgba(255,255,255,0.15);
  color: #e3d8ff;
  background: rgba(255,255,255,0.07);
  box-shadow: none;
}

.ai-copy h2 { color: #fff; }
.ai-copy h2 span {
  color: transparent;
  background: linear-gradient(90deg, #8aa8ff, #c08aff);
  -webkit-background-clip: text;
  background-clip: text;
}

.ai-copy > p:not(.eyebrow-pill) {
  color: rgba(226,231,248,0.72);
  line-height: 1.75;
}

.ai-copy > p strong { color: #fff; }

.purple-checks li {
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  color: rgba(224,231,247,0.72);
  background: rgba(255,255,255,0.045);
}

.purple-checks li > i {
  color: #cbb9ff;
  background: rgba(132,78,255,0.22);
}

.purple-checks strong { color: #fff; }

.ai-experience {
  position: relative;
  min-height: 730px;
  padding: 22px 0 34px 64px;
  transform-style: preserve-3d;
  will-change: transform;
}

.ai-person-frame {
  position: absolute;
  top: 0;
  right: 0;
  width: 47%;
  height: auto;
  aspect-ratio: 552 / 700;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 40px 90px rgba(0,0,0,0.42);
  transform: translateZ(12px);
}

.ai-person-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(13,20,56,0.58), transparent 40%);
  pointer-events: none;
}

.ai-person-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.ai-person-meta {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 15px;
  color: #fff;
  background: rgba(10,17,48,0.52);
  backdrop-filter: blur(14px);
}

.online-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border: 2px solid rgba(255,255,255,0.75);
  border-radius: 50%;
  background: #41dc79;
  box-shadow: 0 0 14px rgba(65,220,121,0.8);
}

.ai-person-meta strong,
.ai-person-meta small { display: block; }
.ai-person-meta strong { font-size: 11px; }
.ai-person-meta small { color: rgba(234,240,250,0.66); font-size: 8px; }

.ai-chat-card {
  position: absolute;
  z-index: 4;
  top: 118px;
  left: 0;
  width: 60%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.76);
  border-radius: 23px;
  color: #17253c;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 30px 75px rgba(3,9,30,0.34);
  backdrop-filter: blur(18px) saturate(130%);
  transform: translateZ(50px);
}

.ai-chat-card header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 15px 17px;
  border-bottom: 1px solid #e7ebf2;
}

.ai-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #4e62ff, #8e4cff);
  font-weight: 900;
}

.ai-chat-card header strong,
.ai-chat-card header small { display: block; }
.ai-chat-card header strong { font-size: 11px; }
.ai-chat-card header small { color: #8290a2; font-size: 8px; }
.ai-chat-card header small i { color: #23bd59; font-size: 6px; }
.ai-chat-card header > i { color: #20b85a; font-size: 22px; }

.ai-messages {
  display: flex;
  min-height: 278px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 17px;
  background:
    radial-gradient(circle at 90% 20%, rgba(101,80,255,0.08), transparent 12rem),
    #f7f9fc;
}

.message,
.message-status { animation: ai-msg-in 0.42s cubic-bezier(0.2, 0.8, 0.3, 1) both; }

@keyframes ai-msg-in {
  from { opacity: 0; transform: translateY(9px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.message-typing { display: flex; align-items: center; padding: 13px; }
.message-typing .typing-dots i { width: 4px; height: 4px; }

.message-file {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #dbe3f0;
  border-radius: 9px;
  background: #f4f7fd;
}

.message-file i { color: #d64545; font-size: 13px; }
.message-file strong { display: block; color: #23364f; font-size: 9px; }
.message-file small { color: #8391a6; font-size: 7.5px; }

.ai-composer .is-typing { color: #33445c; }
.ai-composer .is-typing::after {
  display: inline-block;
  width: 1px;
  height: 9px;
  margin-left: 2px;
  content: "";
  background: #4d68ef;
  vertical-align: -1px;
  animation: ai-caret 0.9s steps(1) infinite;
}

@keyframes ai-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.message {
  width: fit-content;
  max-width: 88%;
  margin: 0 0 12px;
  padding: 11px 13px;
  border-radius: 13px;
  font-size: 10px;
  line-height: 1.55;
}

.message-client {
  margin-left: auto;
  border-bottom-right-radius: 4px;
  color: #fff;
  background: linear-gradient(135deg, #3877ef, #6a5bf1);
  box-shadow: 0 8px 18px rgba(55,104,224,0.2);
}

.message-ai {
  border: 1px solid #e2e8f1;
  border-bottom-left-radius: 4px;
  color: #4e5e73;
  background: #fff;
  box-shadow: 0 8px 18px rgba(28,53,88,0.06);
}

.message-ai b { color: #243650; }

.typing-dots {
  display: inline-flex;
  gap: 2px;
  margin-right: 5px;
}

.typing-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #7a55ef;
  animation: typing-dot 1.2s ease-in-out infinite;
}

.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }

.message-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #278b4b;
  background: #e9f9ef;
  font-size: 8px;
  font-weight: 750;
}

.ai-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 15px;
  border-top: 1px solid #e4e9f1;
  color: #a0a9b7;
  background: #fff;
  font-size: 9px;
}

.ai-composer i {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #4d68ef, #7950eb);
}

.ai-floating-badge {
  position: absolute;
  z-index: 5;
  right: 7px;
  bottom: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.62);
  border-radius: 15px;
  color: #1a2940;
  background: rgba(255,255,255,0.93);
  box-shadow: 0 20px 46px rgba(0,0,0,0.27);
  transform: translateZ(58px);
  animation: float-card 5.8s ease-in-out infinite;
}

.ai-floating-badge > i {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 11px;
  color: #7148ef;
  background: #eee8ff;
}

.ai-floating-badge strong,
.ai-floating-badge small { display: block; }
.ai-floating-badge strong { font-size: 10px; }
.ai-floating-badge small { color: #7e8a9b; font-size: 7.5px; }

/* Comparison */
.comparison-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(47,102,237,0.07), transparent 28rem),
    #f7f9fc;
}

.comparison-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: -22px 0 36px;
}

.comparison-points > span {
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  padding: 14px;
  border: 1px solid #e2e8f1;
  border-radius: 15px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 12px 28px rgba(13,42,84,0.055);
}

.comparison-points i {
  grid-row: 1 / 3;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: var(--premium-blue);
  background: #eaf2ff;
}

.comparison-points > span:nth-child(even) i { color: #159748; background: #e8f9ee; }
.comparison-points strong { color: #26374e; font-size: 11px; }
.comparison-points small { color: #8490a1; font-size: 8px; }

.comparison-grid { gap: 22px; }

.compare-card {
  overflow: hidden;
  background: #fff;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.compare-card:hover { transform: translateY(-7px); box-shadow: 0 28px 65px rgba(14,43,87,0.14); }
.compare-card.featured { border-color: rgba(47,102,237,0.32); box-shadow: 0 22px 55px rgba(47,102,237,0.13); transform: translateY(-10px); }
.compare-card.featured:hover { transform: translateY(-15px); }

.compare-head {
  min-height: 132px;
  padding: 26px;
}

.compare-head.dark { background: linear-gradient(135deg, #101d35, #1b2f50); }
.compare-head.blue-head { background: linear-gradient(135deg, #265edc, #3485f7); }
.compare-head-icon { top: 24px; right: 24px; font-size: 38px; opacity: 0.16; }
.compare-card ul { padding: 28px; }
.compare-card li { line-height: 1.62; }

/* Timeline */
.implementation-section {
  overflow: hidden;
  background: #fff;
}

.timeline {
  gap: 20px;
}

.timeline-line {
  overflow: hidden;
  height: 3px;
  border-radius: 999px;
  background: #dce4ef;
}

.timeline-line-progress {
  display: block;
  width: var(--timeline-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--premium-blue), var(--premium-green));
  box-shadow: 0 0 14px rgba(47,102,237,0.45);
  transition: width 0.12s linear;
}

.step-dot {
  width: 56px;
  height: 56px;
  border: 5px solid #fff;
  box-shadow: 0 10px 24px rgba(47,102,237,0.22), 0 0 0 1px rgba(47,102,237,0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.step.is-active .step-dot {
  box-shadow: 0 12px 30px rgba(47,102,237,0.32), 0 0 0 7px rgba(47,102,237,0.08);
  transform: scale(1.08);
}

.step-card {
  min-height: 188px;
  padding: 24px 18px;
  border: 1px solid #e4eaf2;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(16,44,84,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step:hover .step-card,
.step.is-active .step-card {
  box-shadow: 0 24px 52px rgba(16,44,84,0.12);
  transform: translateY(-6px);
}

.step h3 { font-size: 17px; }
.step p { line-height: 1.6; }

/* Pricing + conversation configurator */
.pricing-section {
  background:
    radial-gradient(circle at 12% 16%, rgba(47,102,237,0.08), transparent 23rem),
    radial-gradient(circle at 88% 82%, rgba(22,169,75,0.07), transparent 25rem),
    #f6f8fc;
}

.pricing-grid {
  width: 100%;
  max-width: 900px;
  min-width: 0;
  gap: 24px;
}

.price-card {
  min-width: 0;
  min-height: 470px;
  padding: 44px 34px 29px;
  background: rgba(255,255,255,0.9) !important;
  box-shadow: 0 24px 65px rgba(15,43,84,0.1);
  backdrop-filter: blur(14px);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.price-card:hover { transform: translateY(-8px); box-shadow: 0 34px 80px rgba(15,43,84,0.15); }
.price-card.subscription { border: 1.5px solid rgba(47,102,237,0.55); }
.price-card.implementation { border: 1.5px solid rgba(22,169,75,0.25); }

.price-icon {
  width: 56px;
  height: 56px;
  border-radius: 17px;
  background: #edf3ff;
}

.price-icon.green { background: #e9faef; }
.price-card h3 { font-size: 31px; }
.price strong { font-size: 58px; }

.quote-builder {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(470px, 1.18fr);
  gap: 48px;
  margin-top: 54px;
  padding: 44px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 29px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 15%, rgba(68,129,255,0.27), transparent 22rem),
    radial-gradient(circle at 92% 90%, rgba(39,213,111,0.17), transparent 19rem),
    linear-gradient(135deg, #071630, #0b2955);
  box-shadow: var(--premium-shadow-strong);
}

.quote-builder-copy h3 {
  margin: 17px 0 14px;
  color: #fff;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.quote-builder-copy > p {
  color: rgba(223,234,250,0.7);
  line-height: 1.72;
}

.quote-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.quote-summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 999px;
  color: #dce9fb;
  background: rgba(255,255,255,0.06);
  font-size: 10px;
}

.quote-summary i { color: #7baaff; }

.quote-builder-controls {
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 22px;
  background: rgba(255,255,255,0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
  backdrop-filter: blur(15px);
}

.range-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #e5effd;
  font-size: 12px;
  font-weight: 750;
}

.range-label output {
  display: grid;
  min-width: 48px;
  height: 39px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 11px;
  color: #fff;
  background: rgba(255,255,255,0.1);
  font-size: 15px;
  font-weight: 900;
}

.quote-range {
  width: 100%;
  height: 6px;
  margin: 22px 0 8px;
  border-radius: 999px;
  appearance: none;
  background: linear-gradient(90deg, var(--premium-blue) var(--range-progress, 9%), rgba(255,255,255,0.18) var(--range-progress, 9%));
  outline: none;
}

.quote-range::-webkit-slider-thumb {
  width: 21px;
  height: 21px;
  border: 4px solid #fff;
  border-radius: 50%;
  appearance: none;
  cursor: grab;
  background: var(--premium-blue);
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
}

.quote-range::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: 4px solid #fff;
  border-radius: 50%;
  cursor: grab;
  background: var(--premium-blue);
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
}

.range-scale {
  display: flex;
  justify-content: space-between;
  color: rgba(220,232,249,0.45);
  font-size: 8px;
}

.quote-needs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 23px 0;
  padding: 0;
  border: 0;
}

.quote-needs legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: #e3edfb;
  font-size: 11px;
  font-weight: 750;
}

.quote-needs button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 12px;
  color: rgba(225,235,249,0.72);
  background: rgba(255,255,255,0.045);
  font-size: 10px;
  font-weight: 720;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.quote-needs button:hover,
.quote-needs button.is-active {
  border-color: rgba(104,161,255,0.5);
  color: #fff;
  background: rgba(67,124,237,0.2);
}

.quote-needs button i { color: #78a9ff; }

.quote-needs-multi { grid-template-columns: 1fr 1fr; }

.quote-needs-multi legend small {
  margin-left: 6px;
  color: #8fa1bb;
  font-size: 11px;
  font-weight: 600;
}

.quote-needs-multi button {
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  text-align: left;
}

.quote-needs-multi button > i {
  flex: none;
  margin-top: 2px;
  font-size: 14px;
}

.quote-needs-multi button span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.quote-needs-multi button strong { font-size: 13px; line-height: 1.25; }

.quote-needs-multi button small {
  color: #7a8ba4;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  text-wrap: pretty;
}

.quote-needs-multi button.is-active small { color: #46618c; }

.modules-custom-note {
  max-width: 720px;
  margin: 22px auto 0;
  color: #55637a;
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}

.modules-custom-note strong { color: #14243c; }
.modules-custom-note i { margin-right: 6px; color: var(--premium-blue); }

/* Trust / testimonials */
.trust-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 9% 25%, rgba(33,197,94,0.1), transparent 26rem),
    radial-gradient(circle at 90% 75%, rgba(47,102,237,0.08), transparent 27rem),
    linear-gradient(180deg, #f0fff5, #f7fbff);
}

.stats-grid { gap: 18px; }

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 175px;
  padding: 29px 18px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card::after {
  position: absolute;
  right: -36px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(47,102,237,0.1), transparent 70%);
}

.stat-card:hover { transform: translateY(-6px); box-shadow: 0 24px 58px rgba(14,43,87,0.12); }
.stat-card > strong { display: block; font-size: clamp(32px, 3.4vw, 42px); line-height: 1.02; }

.testimonials-grid { gap: 20px; }

.testimonial {
  min-width: 0;
  padding: 27px;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial:hover { transform: translateY(-6px); box-shadow: 0 25px 60px rgba(14,43,87,0.12); }
.testimonial blockquote { color: #536276; line-height: 1.7; }

.testimonial-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.testimonial-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #dce5f1;
  border-radius: 12px;
  color: #36516f;
  background: #fff;
  box-shadow: 0 10px 25px rgba(14,43,87,0.08);
}

.testimonial-controls span { color: #728095; font-size: 11px; }
.testimonial-controls b { color: #263950; }

/* Final CTA */
.final-cta {
  position: relative;
  overflow: hidden;
  padding: 102px 0 96px;
  background:
    radial-gradient(circle at 14% 25%, rgba(74,135,255,0.35), transparent 26rem),
    radial-gradient(circle at 88% 72%, rgba(42,218,114,0.22), transparent 25rem),
    linear-gradient(135deg, #06142f, #0b2855 64%, #0a3b51);
}

.cta-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.cta-orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 50%;
}

.cta-orbit-one {
  top: -180px;
  left: -140px;
  width: 440px;
  height: 440px;
  box-shadow: 0 0 0 68px rgba(255,255,255,0.016), 0 0 0 136px rgba(255,255,255,0.01);
}

.cta-orbit-two {
  right: -160px;
  bottom: -190px;
  width: 470px;
  height: 470px;
  box-shadow: 0 0 0 80px rgba(255,255,255,0.014);
}

.final-cta .container { position: relative; z-index: 2; }
.final-cta h2 { font-size: clamp(48px, 5.5vw, 68px); }
.final-cta > .container > p:not(.cta-pill) { line-height: 1.7; }
.final-actions .btn { min-height: 60px; border-radius: 14px; }

/* Footer and floating controls */
.site-footer {
  padding-top: 52px;
  background: #050d1e;
}

.footer-top { border-bottom-color: rgba(255,255,255,0.09); }

.floating-whatsapp {
  position: fixed;
  z-index: 900;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 7px 8px 7px 17px;
  border: 1px solid rgba(255,255,255,0.48);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #17a849, #24c964);
  box-shadow: 0 18px 45px rgba(18,151,68,0.34);
  font-size: 11px;
  font-weight: 800;
  transform: translateY(0);
  transition: transform 0.23s ease, box-shadow 0.23s ease;
}

.floating-whatsapp i {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #19a84b;
  background: #fff;
  font-size: 20px;
}

.floating-whatsapp:hover { color: #fff; box-shadow: 0 24px 55px rgba(18,151,68,0.42); transform: translateY(-4px); }

.back-to-top {
  position: fixed;
  z-index: 890;
  right: 28px;
  bottom: 88px;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 13px;
  color: #29435f;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 14px 35px rgba(8,30,68,0.17);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  backdrop-filter: blur(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.modal-panel {
  border: 1px solid rgba(255,255,255,0.74);
  border-radius: 22px;
  box-shadow: 0 40px 110px rgba(0,0,0,0.36);
}

/* Reveal polish */
.reveal {
  transform: translateY(24px) scale(0.99);
  transition: opacity 0.68s ease, transform 0.68s cubic-bezier(.2,.72,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.visible {
  transform: translateY(0) scale(1);
}

/* Motion */
@keyframes premium-marquee {
  to { transform: translateX(-50%); }
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes orbit-spin-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes live-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.18); }
}

@keyframes float-card {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes dashboard-sheen {
  0%, 55% { transform: translateX(-125%); }
  78%, 100% { transform: translateX(125%); }
}

@keyframes flow-dash {
  to { stroke-dashoffset: -120; }
}

@keyframes pulse-route-one {
  0% { cx: 300px; cy: 215px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { cx: 98px; cy: 116px; opacity: 0; }
}

@keyframes pulse-route-two {
  0% { cx: 300px; cy: 215px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { cx: 502px; cy: 320px; opacity: 0; }
}

@keyframes pulse-route-three {
  0% { cx: 300px; cy: 215px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { cx: 300px; cy: 84px; opacity: 0; }
}

@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* Responsive */
@media (max-width: 1180px) {
  .brand-chip { display: none; }
  .hero-premium .hero-grid { gap: 38px; }
  .dashboard-scene { padding-right: 12px; padding-left: 12px; }
  .floating-kpi-cloud { right: -5px; }
  .integration-map { grid-template-columns: 0.8fr 1.2fr; gap: 28px; padding: 40px 34px; }
  .control-center-grid { gap: 38px; }
  .ai-grid { gap: 40px; }
}

@media (max-width: 1040px) {
  .site-header .nav-wrap { gap: 15px; }
  .hero-premium { padding-top: 82px; }
  .hero-premium .hero-grid,
  .control-center-grid,
  .ai-grid {
    grid-template-columns: 1fr;
  }

  .hero-premium .hero-copy,
  .control-copy,
  .ai-copy {
    text-align: center;
  }

  .hero-premium h1,
  .hero-premium .hero-text,
  .control-copy > p:not(.demo-disclaimer),
  .ai-copy > p {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-proof,
  .hero-actions,
  .hero-premium .trust-row,
  .integration-proof,
  .quote-summary {
    justify-content: center;
  }

  .dashboard-scene {
    width: min(760px, 100%);
    margin: 12px auto 0;
  }

  .integration-map {
    grid-template-columns: 1fr;
  }

  .integration-copy { text-align: center; }
  .flow-diagram { width: min(650px, 100%); margin: auto; }

  .control-tabs {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
  }

  .control-tab:hover { transform: translateY(-3px); }
  .demo-disclaimer { justify-content: center; }
  .control-demo { width: min(820px, 100%); margin: auto; }

  .module-preview,
  .quote-builder {
    grid-template-columns: 1fr;
  }

  .module-preview-copy,
  .quote-builder-copy { text-align: center; }
  .module-preview-heading { justify-content: center; }
  .module-preview-copy > p { margin-right: auto; margin-left: auto; }
  .module-preview-tags { justify-content: center; }
  .module-preview-hint { justify-content: center; }

  .industry-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 340px 280px 280px;
  }

  .industry-card-retail { grid-column: 1; grid-row: 1 / 3; }
  .industry-card-pos { grid-column: 2; grid-row: 1; }
  .industry-card-warehouse { grid-column: 2; grid-row: 2; }
  .industry-card-manufacturing { grid-column: 1 / 3; grid-row: 3; }

  .ai-copy { max-width: 780px; margin: auto; }
  .purple-checks { max-width: 720px; margin-right: auto; margin-left: auto; text-align: left; }
  .ai-experience { width: min(760px, 100%); margin: auto; }

  .comparison-points { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .site-header { padding: 7px 0; }
  .site-header .nav-wrap { border-radius: 16px; }
  .main-nav {
    top: 78px;
    border-radius: 16px;
    box-shadow: 0 28px 70px rgba(8,31,70,0.2);
  }
  .main-nav a { padding: 13px 12px; }
  .main-nav a::after { right: 12px; left: 12px; }

  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid .info-card,
  .problem-grid .info-card:nth-child(4),
  .problem-grid .info-card:nth-child(5) { grid-column: auto; }
  .problem-grid .info-card:last-child { grid-column: 1 / 3; }

  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline-line { display: none; }

  .comparison-grid { grid-template-columns: 1fr; max-width: 760px; margin: auto; }
  .compare-card.featured { transform: none; }
  .compare-card.featured:hover { transform: translateY(-7px); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, minmax(300px, 82vw)); overflow-x: auto; scroll-snap-type: x mandatory; padding: 5px 3px 22px; scrollbar-width: none; }
  .testimonials-grid::-webkit-scrollbar { display: none; }
  .testimonial { scroll-snap-align: center; }
  .testimonial-controls { display: flex; }
}

@media (max-width: 760px) {
  :root { --premium-radius: 18px; --premium-radius-lg: 24px; }
  html { scroll-padding-top: 84px; }
  .container { width: min(100% - 30px, var(--container)); }
  .site-header .container { width: calc(100% - 22px); }
  .site-header .nav-wrap { height: 64px; padding: 0 13px; }
  .site-header.is-scrolled .nav-wrap { height: 60px; }
  .brand, .brand img { width: 142px; }
  .main-nav { top: 70px; left: 11px; right: 11px; }

  .hero-premium { min-height: auto; padding: 70px 0 76px; }
  .hero-premium h1 { font-size: 45px; }
  .hero-premium .hero-text { font-size: 16px; }
  .hero-proof { gap: 9px 13px; }
  .hero-proof span { font-size: 10px; }
  .hero-premium .hero-actions { flex-direction: column; }
  .hero-premium .hero-actions .btn { width: 100% !important; }
  .hero-premium .trust-row { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-premium .trust-item { display: grid; justify-items: center; gap: 7px; padding: 12px 6px; border-right: 1px solid rgba(255,255,255,0.1); text-align: center; }
  .hero-premium .trust-item:last-child { border-right: 0; }
  .hero-premium .trust-icon { width: 34px; height: 34px; }

  .dashboard-scene { min-height: 460px; padding: 36px 0 64px; }
  .dashboard-shell { border-radius: 19px; }
  .dashboard-chrome { height: 45px; padding: 0 11px; }
  .dashboard-address span { display: none; }
  .dashboard-crop { height: 300px; }
  .dashboard-dock span { min-height: 48px; font-size: 8px; }
  .floating-kpi { min-width: 145px; padding: 9px 10px; }
  .floating-kpi-sales { top: 3px; left: -3px; }
  .floating-kpi-cloud { top: 84px; right: -3px; }
  .floating-kpi strong { font-size: 14px; }
  .floating-notification { bottom: 8px; left: 16px; min-width: 205px; padding: 10px 12px; }

  .operations-marquee::before,
  .operations-marquee::after { width: 48px; }

  .section { padding: 82px 0; }
  .section-heading { margin-bottom: 38px; }
  .section-heading h2 { font-size: 38px; }
  .section-heading > p:last-child { font-size: 14px; }

  .problem-grid { grid-template-columns: 1fr; }
  .problem-grid .info-card:last-child { grid-column: auto; }
  .problem-grid .info-card { min-height: auto; }

  .cost-grid { grid-template-columns: 1fr; }
  .cost-card { min-height: 260px; }

  .solution-grid { grid-template-columns: 1fr; }
  .integration-map { margin-top: 45px; padding: 31px 22px; }
  .integration-copy h3 { font-size: 31px; }
  .flow-diagram { min-height: 340px; transform: scale(0.92); }

  .control-tabs { grid-template-columns: 1fr; }
  .control-copy h2 { font-size: 43px; }
  .demo-body { grid-template-columns: 43px 1fr; min-height: auto; }
  .demo-sidebar { padding: 10px 5px; }
  .demo-sidebar > i, .demo-brand-mark { width: 31px; height: 31px; }
  .demo-main { padding: 14px; }
  .demo-avatar { display: none; }
  .demo-kpi-grid { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .demo-kpi:first-child { grid-column: 1 / 3; }
  .demo-analytics { grid-template-columns: 1fr; }
  .demo-chart-area { height: 150px; }

  .modules-grid { grid-template-columns: 1fr; }
  .module-card { min-height: auto; }
  .module-preview { padding: 30px 22px; }
  .module-preview-ui { border-radius: 17px; }
  .module-ui-body { min-height: 285px; }
  .module-ui-main { padding: 13px; }
  .module-ui-kpis { gap: 6px; }
  .module-ui-kpis > span { padding: 9px; }
  .module-ui-chart { height: 125px; gap: 6px; }

  .industry-mosaic { display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(4, 320px); }
  .industry-card-retail,
  .industry-card-pos,
  .industry-card-warehouse,
  .industry-card-manufacturing { grid-column: 1; grid-row: auto; }
  .industry-card-retail h3 { font-size: 26px; }

  .ai-experience { min-height: 680px; padding-left: 0; }
  .ai-person-frame { width: 54%; }
  .ai-chat-card { top: 130px; width: 66%; }
  .ai-floating-badge { right: 0; bottom: 6px; }

  .comparison-points { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 58px 1fr; align-items: start; gap: 12px; text-align: left; }
  .step-dot { margin: 0; }
  .step-card { min-height: auto; }

  .pricing-grid, .stats-grid { grid-template-columns: 1fr; }
  .quote-builder { padding: 31px 22px; }
  .quote-builder-copy h3 { font-size: 31px; }
  .quote-needs { grid-template-columns: 1fr; }

  .final-cta { padding: 82px 0; }
  .final-cta h2 { font-size: 46px; }
  .final-actions .btn { width: 100%; min-width: 0; }

  .floating-whatsapp span { display: none; }
  .floating-whatsapp { right: 15px; bottom: 15px; min-height: 52px; padding: 6px; }
  .floating-whatsapp i { width: 40px; height: 40px; }
  .back-to-top { right: 20px; bottom: 78px; }
}

@media (max-width: 520px) {
  .hero-premium h1 { font-size: 39px; }
  .price-card { padding: 40px 24px 26px; }
  .price { min-width: 0; flex-wrap: wrap; row-gap: 2px; }
  .price strong { max-width: 100%; font-size: clamp(42px, 14vw, 52px); letter-spacing: -1.5px; }
  .price span { flex: 0 1 auto; }
  .hero-premium .trust-item span { font-size: 9px; }
  .dashboard-scene { min-height: 402px; }
  .dashboard-crop { height: 245px; }
  .dashboard-dock span { gap: 4px; font-size: 7px; }
  .floating-kpi-cloud { display: none; }
  .floating-notification { left: 8px; }
  .dashboard-period { top: 48%; }
  .flow-diagram { width: 118%; margin-left: -9%; transform: scale(0.82); }
  .demo-topbar { grid-template-columns: auto 1fr; }
  .demo-sync { display: none; }
  .demo-breadcrumb { justify-self: end; }
  .demo-kpi strong { font-size: 20px; }
  .module-ui-sidebar { display: none; }
  .module-ui-body { grid-template-columns: 1fr; }
  .ai-experience { min-height: 640px; }
  .ai-person-frame { width: 62%; }
  .ai-chat-card { top: 150px; width: 92%; }
  .ai-messages { min-height: 235px; }
  .ai-floating-badge { display: none; }
  .quote-builder-controls { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-orbit-one,
  .scene-orbit-two,
  .dashboard-sheen,
  .floating-kpi,
  .floating-notification,
  .ai-floating-badge,
  .typing-dots i,
  .marquee-track,
  .dashboard-live i,
  .flow-line,
  .flow-pulse {
    animation: none !important;
  }

  .pointer-aura { display: none; }
  .industry-card img,
  .module-card,
  .info-card,
  .feature-card,
  .compare-card,
  .price-card,
  .stat-card,
  .testimonial,
  .control-tab,
  .btn {
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================
   Polish v2 — ajustes solicitados por el cliente
   ========================================================== */
.hero-premium h1 {
  max-width: 610px;
  font-size: clamp(43px, 4.25vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.048em;
}

.hero-premium .hero-text {
  max-width: 590px;
}

.cost-card.slate {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 84px;
  background:
    radial-gradient(circle at 86% 16%, rgba(90, 255, 170, 0.18), transparent 11rem),
    linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.055)) !important;
  border-color: rgba(97, 229, 155, 0.28);
}

.cost-card .statement {
  display: block;
  max-width: 290px;
  margin: 6px auto 0;
  color: #ffffff;
  font-size: clamp(25px, 2.1vw, 31px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  text-shadow: 0 16px 32px rgba(0,0,0,0.32);
}

.cost-card.slate p {
  margin: 14px auto 0;
  color: #e8f4ff;
  font-weight: 650;
}

.cost-card.slate::after {
  position: absolute;
  top: 30px;
  right: auto;
  bottom: auto;
  left: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  color: #6ff0a7;
  content: "\f0e7";
  background: rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
  transform: translateX(-50%);
  font-family: "Font Awesome 6 Free";
  font-size: 18px;
  font-weight: 900;
}

.comparison-grid-upgraded {
  align-items: stretch;
}

.compare-card-matrix {
  position: relative;
  border: 1px solid #dfe8f5;
  border-radius: 26px;
  box-shadow: 0 20px 52px rgba(10, 37, 78, 0.08);
}

.compare-card-matrix::after {
  position: absolute;
  right: 22px;
  top: 118px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #e2eafa;
  border-radius: 50%;
  color: var(--premium-blue);
  content: "VS";
  background: #fff;
  box-shadow: 0 12px 26px rgba(12, 39, 84, 0.1);
  font-size: 10px;
  font-weight: 950;
}

.compare-card-matrix .compare-head {
  position: relative;
  min-height: 124px;
  padding: 26px 28px 25px;
}

.compare-card-matrix .compare-head small {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.7);
  font-size: 10px;
  letter-spacing: .08em;
}

.compare-card-matrix .compare-head h3 {
  margin-top: 10px;
}

.compare-matrix {
  display: grid;
  gap: 10px;
  padding: 25px 22px 26px;
}

.matrix-title,
.matrix-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 10px;
  align-items: stretch;
}

.matrix-title span,
.matrix-title strong {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.matrix-title span {
  color: #718096;
  background: #eef3f9;
}

.matrix-title strong {
  color: #fff;
  background: linear-gradient(135deg, var(--premium-blue), #19b95a);
}

.matrix-row span,
.matrix-row strong {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 13px 14px;
  border-radius: 15px;
  font-size: 12px;
  line-height: 1.35;
}

.matrix-row span {
  color: #718096;
  background: #f5f7fb;
}

.matrix-row span i {
  flex: 0 0 auto;
  color: #a2adbd;
}

.matrix-row strong {
  color: #263950;
  background: linear-gradient(145deg, #ffffff, #f1fbf5);
  box-shadow: inset 0 0 0 1px rgba(22, 169, 75, 0.14);
}

.matrix-row strong i {
  flex: 0 0 auto;
  color: #19a64f;
}

.quote-builder-upgraded {
  grid-template-columns: minmax(0, .88fr) minmax(470px, 1.12fr);
  gap: 42px;
  padding: 48px;
  border: 1px solid rgba(255,255,255,.2);
  background:
    radial-gradient(circle at 9% 13%, rgba(93, 153, 255, .33), transparent 20rem),
    radial-gradient(circle at 88% 86%, rgba(36, 214, 112, .2), transparent 23rem),
    linear-gradient(135deg, #07152d, #0a2e61 58%, #0b493e);
}

.quote-builder-upgraded::before {
  position: absolute;
  inset: auto 46% -120px -90px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 54px rgba(255,255,255,.018), 0 0 0 108px rgba(255,255,255,.012);
}

.quote-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0 0;
}

.quote-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: #edf6ff;
  background: rgba(255,255,255,.065);
  font-size: 10px;
  font-weight: 850;
}

.quote-benefits i { color: #69e49a; }

.quote-form-card {
  position: relative;
  padding: 27px;
  border: 1px solid rgba(255,255,255,.72);
  color: #263950;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(244,248,255,.94));
  box-shadow: 0 30px 80px rgba(0,0,0,.24);
  backdrop-filter: blur(20px);
}

.quote-form-card::after {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(47,102,237,.16), transparent 70%);
}

.quote-form-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.quote-form-head > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--premium-blue), #24c963);
  box-shadow: 0 14px 30px rgba(47,102,237,.22);
}

.quote-form-head small,
.quote-form-head strong { display: block; }
.quote-form-head small { color: #7d8999; font-size: 10px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.quote-form-head strong { color: #24364e; font-size: 18px; }

.quote-form-card .range-label {
  color: #2a3d56;
  font-size: 13px;
}

.quote-form-card .range-label output {
  border-color: #d9e3f0;
  color: #fff;
  background: linear-gradient(135deg, #1f5bd7, #24bf61);
}

.quote-form-card .quote-range {
  height: 8px;
  background: linear-gradient(90deg, var(--premium-blue) var(--range-progress, 9%), #dce5f2 var(--range-progress, 9%));
}

.quote-form-card .range-scale { color: #8a96a7; font-size: 9px; }

.quote-form-card .quote-needs legend {
  color: #2f4058;
  font-size: 12px;
}

.quote-form-card .quote-needs button {
  border-color: #dfe7f2;
  color: #3d516c;
  background: #fff;
  box-shadow: 0 8px 18px rgba(12,39,84,.045);
}

.quote-form-card .quote-needs button:hover,
.quote-form-card .quote-needs button.is-active {
  border-color: rgba(47,102,237,.45);
  color: #103b7f;
  background: #edf4ff;
  box-shadow: 0 12px 24px rgba(47,102,237,.12);
}

.quote-preview-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: -2px 0 18px;
  padding: 13px 14px;
  border: 1px solid #dce8f7;
  border-radius: 16px;
  color: #465d78;
  background: #f6fbff;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.45;
}

.quote-preview-card i {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #20b857;
  font-size: 18px;
}

.testimonials-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  grid-template-columns: none !important;
  gap: 20px;
  margin-top: 42px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 6px 3px 28px;
  scroll-padding-inline: 3px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar { display: none; }

.testimonials-slider .testimonial {
  scroll-snap-align: start;
  min-height: 335px;
  padding: 24px;
  border: 1px solid rgba(211, 224, 241, .9);
  border-radius: 25px;
  background:
    radial-gradient(circle at 84% 10%, rgba(47,102,237,.08), transparent 9rem),
    rgba(255,255,255,.92);
  box-shadow: 0 18px 45px rgba(14,43,87,.08);
}

.testimonial-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.testimonial-photo {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 22px;
  box-shadow: 0 14px 28px rgba(14,43,87,.14);
}

.testimonial-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: #1d55c8;
  background: #edf4ff;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.testimonial-badge.green { color: #168546; background: #e9f9ef; }
.testimonial-badge.purple { color: #6f42d7; background: #f0eafd; }

.testimonials-slider .testimonial blockquote {
  min-height: 132px;
  margin-bottom: 20px;
  color: #46576d;
  font-size: 14px;
  line-height: 1.72;
}

.testimonials-slider .person {
  padding-top: 16px;
  border-top: 1px solid #e7edf6;
}

.testimonials-slider .person strong { font-size: 14px; }
.testimonials-slider .person small { font-size: 11px; }

.testimonial-controls-upgraded {
  display: flex;
  margin-top: 4px;
}

.testimonial-controls-upgraded span {
  min-width: 70px;
  text-align: center;
}

.site-footer {
  color: #42536a;
  background: #ffffff !important;
  box-shadow: inset 0 1px 0 #e5edf7;
}

.footer-top {
  border-bottom-color: #e5edf7 !important;
}

.footer-logo {
  background: #fff;
  box-shadow: 0 12px 30px rgba(12, 39, 84, .08);
}

.footer-links button,
.footer-links a {
  color: #283a50 !important;
  font-weight: 800;
}

.footer-links button:hover,
.footer-links a:hover {
  color: var(--premium-blue) !important;
}

.footer-bottom p {
  color: #536378;
}

.socials button {
  color: #263950;
  background: #f1f6fd;
}
.socials button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--premium-blue), #20bd5c);
}

@media (max-width: 1180px) {
  .testimonials-slider { grid-auto-columns: minmax(300px, 82vw); }
}

@media (max-width: 980px) {
  .compare-card-matrix::after { top: 112px; }
  .testimonials-slider { grid-template-columns: none !important; }
}

@media (max-width: 760px) {
  .hero-premium h1 { font-size: 38px; line-height: 1.06; }
  .cost-card.slate::after { top: 24px; width: 40px; height: 40px; font-size: 16px; }
  .matrix-title,
  .matrix-row { grid-template-columns: 1fr; }
  .matrix-title { gap: 6px; }
  .matrix-row { gap: 6px; }
  .matrix-row span,
  .matrix-row strong { min-height: 48px; }
  .quote-builder-upgraded { padding: 31px 22px; }
  .quote-form-card { padding: 20px; }
  .quote-benefits { justify-content: center; }
  .testimonials-slider { grid-auto-columns: minmax(285px, 86vw); }
  .testimonials-slider .testimonial { min-height: auto; }
  .testimonials-slider .testimonial blockquote { min-height: 0; }
}

@media (max-width: 520px) {
  .hero-premium h1 { font-size: 34px; letter-spacing: -0.035em; }
  .cost-card .statement { font-size: 27px; }
  .quote-form-head strong { font-size: 16px; }
}

/* ---- TotallIA: métricas de apoyo ---- */
.ai-side-stats {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  width: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ai-side-stats > div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  backdrop-filter: blur(14px);
}

.ai-side-stats i {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #4d68ef, #7950eb);
  font-size: 13px;
}

.ai-side-stats strong,
.ai-side-stats small { display: block; }
.ai-side-stats strong { font-size: 12px; line-height: 1.25; }
.ai-side-stats small { color: rgba(226,234,248,0.66); font-size: 9.5px; line-height: 1.3; }

/* ---- Precios: refuerzo de conversión ---- */
.price-card.is-recommended {
  border: 1.5px solid rgba(47,102,237,0.6);
  box-shadow: 0 32px 74px rgba(20,54,120,0.16);
}

.price-ribbon {
  position: absolute;
  top: 0;
  right: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 8px;
  border-radius: 0 0 12px 12px;
  color: #fff;
  background: linear-gradient(135deg, #2f66ed, #6a4fef);
  box-shadow: 0 12px 26px rgba(47,102,237,0.3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.price-ribbon i { font-size: 9px; }

.price-hint {
  margin: -6px 0 18px;
  color: #5b6b83;
  font-size: 13.5px;
  line-height: 1.6;
  text-wrap: pretty;
}

.price-hint strong { color: #14243c; }

.pricing-reassurance {
  display: flex;
  max-width: 900px;
  margin: 22px auto 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pricing-reassurance span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid #dde5f2;
  border-radius: 999px;
  color: #33455f;
  background: #fff;
  box-shadow: 0 8px 20px rgba(16,44,88,0.05);
  font-size: 13px;
  font-weight: 650;
}

.pricing-reassurance i { color: var(--premium-green); font-size: 12px; }

/* ---- Ajustes móviles generales ---- */
@media (max-width: 900px) {
  .ai-experience {
    position: static;
    display: grid;
    min-height: 0;
    gap: 16px;
    padding: 0;
  }
  .ai-chat-card,
  .ai-side-stats {
    position: static;
    width: 100%;
    transform: none;
  }
  .ai-person-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    order: 1;
    transform: none;
  }
  .ai-person-frame img { object-position: center 16%; }
  .ai-chat-card { order: 2; }
  .ai-messages { min-height: 240px; }
  .ai-side-stats {
    order: 3;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1300px) and (min-width: 901px) {
  .ai-experience { min-height: 800px; }
  .ai-chat-card { top: 92px; width: 68%; }
  .ai-person-frame { width: 44%; }
  .ai-side-stats { gap: 8px; }
  .ai-side-stats > div { padding: 9px 11px; }
}

@media (max-width: 760px) {
  .quote-needs-multi { grid-template-columns: 1fr; }
  .pricing-reassurance span { font-size: 12px; padding: 9px 13px; }
  .price-ribbon { right: 18px; font-size: 10px; }
  .price-hint { font-size: 12.5px; }
  .modules-custom-note { font-size: 13.5px; }
  .cost-card.slate { padding-top: 74px; }
  .stat-card > strong { font-size: clamp(30px, 9vw, 38px); }
}

@media (max-width: 560px) {
  .ai-side-stats { grid-template-columns: 1fr; }
  .ai-person-frame { aspect-ratio: 4 / 3; }
  .flow-node { width: 104px; height: 56px; font-size: 12px; }
  .flow-core > span { width: 48px; height: 48px; }
  .demo-kpi strong { font-size: 17px; }
  .pricing-reassurance { gap: 8px; }
  .pricing-reassurance span { width: 100%; justify-content: center; }
}

/* ==========================================================
   Polish v3 — hero más limpio, costo en claro, módulos y móvil
   ========================================================== */

/* ---- Hero ---- */
.hero-premium { padding-top: 122px; }

.hero-premium .hero-visual { justify-self: stretch; width: 100%; }

.hero-premium h1 {
  max-width: 560px;
  font-size: clamp(38px, 3.5vw, 50px);
}

.hero-premium .hero-text {
  max-width: 520px;
  margin: 20px 0 18px;
  font-size: 17px;
}

.hero-premium .trust-row.trust-row-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  padding: 0;
  border: 0;
  background: none;
}

.trust-row-compact .trust-item {
  display: inline-flex;
  width: auto;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 15px;
  background: rgba(255,255,255,0.05);
  text-align: left;
}

.trust-row-compact .trust-item span {
  display: block;
  color: rgba(226,235,250,0.62);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}

.trust-row-compact .trust-item strong { display: block; color: #fff; font-size: 15px; }
.trust-row-compact .trust-item small { display: block; color: rgba(226,235,250,0.6); font-size: 12px; }

.trust-row-compact .trust-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 11px;
  font-size: 14px;
}

.hero-proof { flex-wrap: wrap; gap: 10px 20px; }
.hero-proof span { white-space: nowrap; }

@media (min-width: 1250px) {
  .hero-proof { flex-wrap: nowrap; gap: 24px; }
}

.dashboard-crop { height: auto; }

.dashboard-crop img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  filter: none;
  transform: none;
}

.floating-kpi-sales { top: 54px; left: -14px; }
.dashboard-scene { min-height: 0; padding: 62px 34px 54px; }

/* ---- MacBook con el ERP ---- */
.laptop-mock { position: relative; width: 100%; }

.laptop-screen {
  position: relative;
  overflow: hidden;
  padding-top: 17px;
  border: 9px solid #1b2740;
  border-bottom-width: 10px;
  border-radius: 16px 16px 5px 5px;
  background: #1b2740;
  box-shadow: 0 34px 70px rgba(3, 12, 32, 0.5);
}

.laptop-screen .dashboard-crop { border-radius: 4px; }
.laptop-screen .dashboard-crop::after { display: none; }
.laptop-screen { container-type: inline-size; }

/* Panel del hero (HTML real, escala con el ancho) */
.hp-panel {
  display: grid;
  aspect-ratio: 16 / 10;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 4px;
  background: #f6f8fc;
  font-size: clamp(5.6px, 1.94cqw, 11.5px);
  line-height: 1.25;
}

.hp-top {
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr auto;
  gap: 1em;
  height: 3em;
  padding: 0 1.2em;
  border-bottom: 1px solid #e6ecf5;
  background: #fff;
}

.hp-dots { display: flex; gap: 0.4em; }
.hp-dots i { width: 0.7em; height: 0.7em; border-radius: 50%; background: #ff5f57; }
.hp-dots i:nth-child(2) { background: #ffbd44; }
.hp-dots i:nth-child(3) { background: #43c65f; }

.hp-url {
  justify-self: center;
  padding: 0.4em 1.2em;
  border-radius: 999px;
  color: #64748b;
  background: #f2f5fa;
  font-size: 0.8em;
  font-weight: 650;
}

.hp-url i { margin-right: 0.4em; color: #16a94b; font-size: 0.85em; }
.hp-url b { color: #1c2c46; }
.hp-sync { color: #16a94b; font-size: 0.8em; font-weight: 800; white-space: nowrap; }
.hp-sync i { margin-right: 0.3em; }

.hp-body {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.9em;
  padding: 1.2em;
  min-height: 0;
}

.hp-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.hp-head small { display: block; color: #94a3b8; font-size: 0.7em; font-weight: 800; letter-spacing: 0.1em; }
.hp-head strong { display: block; margin-top: 0.15em; color: #101f36; font-size: 1.4em; letter-spacing: -0.02em; }

.hp-user {
  display: grid;
  width: 2.4em;
  height: 2.4em;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.8em;
  color: #2f66ed;
  background: #e7effe;
  font-size: 0.8em;
  font-weight: 800;
}

.hp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7em; }

.hp-kpis article {
  min-width: 0;
  padding: 0.9em;
  border: 1px solid #e7edf6;
  border-radius: 1em;
  background: #fff;
  box-shadow: 0 0.4em 1.2em rgba(16, 42, 86, 0.04);
}

.hp-kpis small,
.hp-kpis b,
.hp-kpis em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-kpis small { color: #8797ac; font-size: 0.7em; font-weight: 700; }
.hp-kpis b { margin: 0.3em 0 0.2em; color: #101f36; font-size: 1.5em; letter-spacing: -0.04em; }
.hp-kpis em { color: #9aa8bb; font-size: 0.65em; font-style: normal; }
.hp-kpis article:first-child em { color: #16a94b; font-weight: 750; }

.hp-lower { display: grid; min-height: 0; grid-template-columns: 1.55fr 1fr; gap: 0.7em; }

.hp-chart,
.hp-feed {
  min-height: 0;
  padding: 1em;
  border: 1px solid #e7edf6;
  border-radius: 1em;
  background: #fff;
  box-shadow: 0 0.4em 1.2em rgba(16, 42, 86, 0.04);
}

.hp-chart { display: grid; grid-template-rows: auto 1fr; }

.hp-chart header small,
.hp-feed header small { display: block; color: #94a3b8; font-size: 0.65em; font-weight: 800; letter-spacing: 0.1em; }
.hp-chart header strong,
.hp-feed header strong { display: block; margin-top: 0.1em; color: #17253c; font-size: 0.9em; }

.hp-bars {
  display: grid;
  min-height: 0;
  margin-top: 0.9em;
  align-items: end;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.4em;
}

.hp-bars span {
  height: var(--b);
  border-radius: 0.3em 0.3em 0.1em 0.1em;
  background: linear-gradient(to top, #5f8ef5, #a9c4fb);
}

.hp-bars .hp-bar-peak { background: linear-gradient(to top, #12a24f, #4fd98a); }

.hp-feed > div { display: flex; align-items: center; gap: 0.6em; margin-top: 0.85em; }

.hp-dot {
  display: grid;
  width: 1.7em;
  height: 1.7em;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.6em;
  font-size: 0.75em;
}

.hp-dot-green { color: #12a24f; background: #e6f8ee; }
.hp-dot-blue { color: #2f66ed; background: #e7effe; }
.hp-dot-orange { color: #e07a1f; background: #fdf1e3; }

.hp-feed p { min-width: 0; margin: 0; }
.hp-feed b { display: block; overflow: hidden; color: #1b2b45; font-size: 0.75em; text-overflow: ellipsis; white-space: nowrap; }
.hp-feed small { display: block; color: #96a3b7; font-size: 0.65em; }

.laptop-camera {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #46536b;
  transform: translateX(-50%);
}

.laptop-base {
  position: relative;
  left: -4%;
  width: 108%;
  height: 13px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #cdd7e6, #93a2b9 70%, #6f7d94);
  box-shadow: 0 16px 26px rgba(3, 12, 32, 0.4);
}

.laptop-base span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 92px;
  height: 5px;
  border-radius: 0 0 7px 7px;
  background: rgba(20, 32, 55, 0.22);
  transform: translateX(-50%);
}

.laptop-screen .dashboard-chrome { border-radius: 8px 8px 0 0; }

.hero-float-pill {
  position: absolute;
  z-index: 6;
  top: 8px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(12, 24, 52, 0.72);
  box-shadow: 0 16px 34px rgba(3, 10, 28, 0.4);
  backdrop-filter: blur(12px);
  font-size: 12px;
}

.hero-float-pill i { color: #4bdc8a; font-size: 12px; }
.hero-float-pill strong { color: #fff; }
.hero-float-pill span { color: rgba(226,235,250,0.76); font-weight: 600; }

.hero-float-sync {
  position: absolute;
  z-index: 6;
  top: 44%;
  right: -14px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 15px;
  color: #17253c;
  background: #fff;
  box-shadow: 0 22px 46px rgba(3, 10, 28, 0.32);
}

.hero-float-sync strong { display: block; font-size: 12.5px; }
.hero-float-sync small { display: block; color: #7b899d; font-size: 10.5px; }

.floating-notification {
  right: auto;
  bottom: 26px;
  left: 6px;
  z-index: 6;
}

.dashboard-demo-label {
  position: absolute;
  top: 16px;
  left: 4px;
  display: block;
  color: rgba(214,228,248,0.5);
  background: none;
  box-shadow: none;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- Costo de no actuar: modo claro y minimalista ---- */
.cost-section {
  color: #16233a;
  background: linear-gradient(180deg, #f8fafd 0%, #eef3fb 100%);
}

.cost-section::before { display: none; }
.cost-section .section-heading h2 { color: #111f36; }
.cost-section .section-heading > p:last-child { color: #5b6a80; }
.cost-section .kicker {
  border-color: #f5d6dc;
  color: #d63b52;
  background: #fff;
}

.cost-grid { gap: 16px; }

.cost-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 22px 22px 24px;
  border: 1px solid #e3eaf5 !important;
  border-radius: 18px;
  color: #16233a;
  background: #fff !important;
  box-shadow: 0 10px 26px rgba(15,42,86,0.05);
  backdrop-filter: none;
  text-align: left;
}

.cost-card::before { height: 3px; }
.cost-card:hover { transform: translateY(-4px); background: #fff !important; box-shadow: 0 20px 44px rgba(15,42,86,0.09); }

.cost-card > strong,
.cost-card > strong:not(.statement) {
  margin-bottom: 2px;
  font-size: clamp(26px, 2.1vw, 31px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: none;
}

.cost-card h3 { color: #17253c; font-size: 15px; letter-spacing: -0.01em; }

.cost-card p {
  max-width: 320px;
  margin-top: 7px;
  color: #66748a;
  font-size: 13px;
  line-height: 1.6;
  text-wrap: pretty;
}

.cost-card.slate {
  justify-content: flex-start;
  padding-top: 22px !important;
  border-color: #dde8f8 !important;
  background: #fff !important;
}

.cost-card.slate p { color: #66748a; font-weight: 500; }

.cost-card .statement,
.cost-card > strong.statement {
  max-width: 250px;
  margin: 0;
  color: #0f1d33;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.24;
  letter-spacing: -0.02em;
  text-shadow: none;
}

.cost-card.slate::after { display: none; }

/* ---- Módulos: botón arriba y vista previa simplificada ---- */
.module-button-top { margin: 0 0 26px; }

.module-preview-metrics {
  align-self: center;
  padding: 24px 26px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}

.module-preview-metrics > strong {
  display: block;
  margin-bottom: 16px;
  color: rgba(214,229,250,0.62);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.module-metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.module-metric-row > span {
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 15px;
  background: rgba(255,255,255,0.05);
}

.module-metric-row small,
.module-metric-row b { display: block; }
.module-metric-row small { color: rgba(210,225,247,0.6); font-size: 10.5px; font-weight: 650; }
.module-metric-row b { margin-top: 6px; color: #fff; font-size: 26px; letter-spacing: -0.03em; }

.module-metric-bars {
  display: grid;
  height: 62px;
  margin-top: 16px;
  align-items: end;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.module-metric-bars span {
  height: var(--module-bar);
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(to top, rgba(120,169,255,0.85), rgba(120,169,255,0.28));
  transition: height 0.4s ease;
}

.module-metric-bars span:nth-child(6) { background: linear-gradient(to top, #37d178, #7ceaa8); }

.module-preview { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* ---- Operación real: etiquetas en un solo color ---- */
.industry-card figcaption > span {
  border-color: rgba(88, 226, 148, 0.34);
  color: #9df3c0;
  background: rgba(16, 86, 52, 0.42);
}

.industry-card figcaption > span i { color: #7ceaa8; }

/* ---- Móvil ---- */
@media (max-width: 900px) {
  .hero-premium h1 { font-size: clamp(32px, 7vw, 42px); }
  .hero-premium .hero-text { font-size: 15.5px; }
  .modules-section .section-heading > p:last-child strong { display: block; margin-top: 5px; }
  .module-preview { grid-template-columns: 1fr; }
  .module-preview-metrics { width: 100%; padding: 20px; }
  .floating-kpi-sales { top: 20px; left: 0; }
  .floating-notification { bottom: 22px; left: 0; }
  .hero-float-pill { top: 4px; right: 6px; padding: 8px 12px; font-size: 11px; }
  .hero-float-sync { display: none; }
  .hero-proof { flex-wrap: wrap; gap: 10px 18px; }
  .trust-row-compact .trust-item { padding: 11px 14px; gap: 10px; }
  .dashboard-scene { padding: 52px 16px 40px; }
}

@media (max-width: 760px) {
  .cost-card { padding: 20px 18px 22px; }
  .cost-card > strong:not(.statement) { font-size: 28px; }
  .cost-card p { font-size: 12.5px; }
  .cost-card .statement { font-size: 19px; }
  .cost-card.slate { padding-top: 20px !important; }

  .flow-diagram {
    display: grid;
    width: 100%;
    min-height: 0;
    margin: 0;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    transform: none;
  }
  .flow-diagram svg { display: none; }
  .flow-core,
  .flow-node {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    height: auto;
    transform: none;
  }
  .flow-core {
    grid-column: 1 / -1;
    padding: 18px;
    border-radius: 20px;
    background: #fff;
  }
  .flow-core:hover,
  .flow-node:hover { transform: none; }
  .flow-node {
    min-height: 58px;
    padding: 12px 10px;
    border-radius: 15px;
    font-size: 13px;
  }
  .integration-map { gap: 26px; }

  .trust-row-compact .trust-item { padding: 8px 12px; }
  .trust-row-compact .trust-item span { font-size: 11.5px; }
}

@media (max-width: 560px) {
  .module-metric-row { grid-template-columns: 1fr; }
  .module-metric-row > span { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; }
  .module-metric-row b { margin-top: 0; font-size: 20px; }
  .module-metric-bars { height: 52px; }
  .cost-card > strong:not(.statement) { font-size: 26px; }
  .flow-node { font-size: 12px; }
}

/* V2 mobile quote safety */
@media (max-width: 1180px) {
  .quote-builder-upgraded {
    grid-template-columns: 1fr !important;
  }
  .quote-builder-upgraded .quote-builder-copy {
    text-align: center;
  }
  .quote-builder-upgraded .quote-builder-copy > p {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
  }
  .quote-builder-upgraded .quote-benefits,
  .quote-builder-upgraded .quote-summary {
    justify-content: center;
  }
  .quote-form-card {
    width: 100%;
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  .quote-builder-upgraded {
    overflow: hidden;
  }
  .quote-form-card {
    max-width: 100%;
  }
  .quote-builder-upgraded .quote-builder-copy {
    text-align: left;
  }
  .quote-builder-upgraded .quote-benefits,
  .quote-builder-upgraded .quote-summary {
    justify-content: flex-start;
  }
  .quote-form-card .quote-needs button {
    width: 100%;
  }
}

/* ==========================================================
   TotallIA v4 — tres columnas con conversación en vivo
   ========================================================== */
.ai-grid-v3 {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.94fr) minmax(0, 0.6fr);
  gap: 30px;
}

.ai-grid-v3 .ai-copy { max-width: none; }
.ai-grid-v3 .ai-copy > p:not(.ai-copy-note) { margin-bottom: 24px; }

.ai-feature-list {
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.ai-feature-list li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 15px;
  background: rgba(255,255,255,0.045);
}

.ai-feature-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #5b5bf0, #8248ef);
  box-shadow: 0 10px 22px rgba(96, 76, 240, 0.32);
  font-size: 15px;
}

.ai-feature-list strong { display: block; color: #fff; font-size: 15px; letter-spacing: -0.01em; }
.ai-feature-list small { display: block; margin-top: 3px; color: rgba(220,230,248,0.6); font-size: 13px; line-height: 1.45; }

.ai-copy-note {
  margin: 16px 0 0;
  color: rgba(214,226,246,0.5);
  font-size: 12.5px;
}

.ai-copy-note i { margin-right: 6px; color: #6fe3a4; }

.ai-chat-col .ai-chat-card {
  position: static;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;
  color: #e8eefb;
  background: #111b34;
  box-shadow: 0 34px 70px rgba(3, 10, 30, 0.45);
  backdrop-filter: none;
  transform: none;
}

.ai-chat-col .ai-chat-card header {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: #131e3a;
}

.ai-chat-col .ai-chat-card header strong { color: #fff; font-size: 14px; }
.ai-chat-col .ai-chat-card header small { color: rgba(214,226,246,0.55); font-size: 11px; }
.ai-chat-col .ai-chat-card header > i { font-size: 24px; }
.ai-chat-col .ai-avatar { border-radius: 12px; font-size: 14px; }

.ai-chat-col .ai-messages {
  min-height: 330px;
  padding: 18px;
  background:
    radial-gradient(circle at 88% 12%, rgba(112, 88, 255, 0.14), transparent 14rem),
    #0c1428;
}

.ai-chat-col .message { max-width: 86%; font-size: 12.5px; line-height: 1.5; }

.ai-chat-col .message-client {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #5b5bf0, #7d47ef);
  box-shadow: 0 10px 22px rgba(83, 70, 230, 0.28);
}

.ai-chat-col .message-ai {
  border: 1px solid rgba(255,255,255,0.07);
  color: #ccd8ef;
  background: #1a2440;
  box-shadow: none;
}

.ai-chat-col .message-ai b { color: #fff; }

.ai-chat-col .message-file {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
}

.ai-chat-col .message-file i { color: #ff8a8a; }
.ai-chat-col .message-file strong { color: #fff; font-size: 10.5px; }
.ai-chat-col .message-file small { color: rgba(214,226,246,0.55); font-size: 9px; }

.ai-chat-col .message-status {
  color: #6fe3a4;
  background: rgba(35, 189, 105, 0.13);
  font-size: 9.5px;
}

.ai-chat-col .typing-dots i { background: #a48bff; }

.ai-chat-col .ai-composer {
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #131e3a;
  font-size: 12px;
}

.ai-composer-clip { color: rgba(214,226,246,0.45); font-size: 15px; }

.ai-chat-col .ai-composer > span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(214,226,246,0.5);
  background: #0c1428;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-chat-col .ai-composer .is-typing { color: #eaf0fb; }
.ai-chat-col .ai-composer > i:last-child { width: 34px; height: 34px; flex: 0 0 auto; font-size: 13px; }

.ai-chat-foot {
  margin: 0;
  padding: 0 16px 15px;
  color: rgba(214,226,246,0.45);
  background: #131e3a;
  font-size: 11px;
}

.ai-chat-foot i { margin-right: 6px; color: #6fe3a4; }
.ai-chat-foot b { color: #a48bff; }

.ai-side-col { display: grid; gap: 12px; }

.ai-side-col .ai-person-frame {
  position: relative;
  top: auto;
  right: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6.6;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  transform: none;
}

.ai-side-col .ai-person-frame img { object-position: center top; }

.ai-side-col .ai-side-stats {
  position: static;
  width: 100%;
  grid-template-columns: 1fr;
  gap: 10px;
}

.ai-side-col .ai-side-stats > div { padding: 13px 15px; border-radius: 15px; }
.ai-side-col .ai-side-stats i { width: 34px; height: 34px; border-radius: 11px; font-size: 14px; }
.ai-side-col .ai-side-stats strong { font-size: 13px; }
.ai-side-col .ai-side-stats small { font-size: 11px; }

@media (max-width: 1180px) {
  .ai-grid-v3 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 26px;
  }
  .ai-grid-v3 .ai-copy { grid-column: 1 / -1; }
  .ai-side-col { grid-template-columns: 1fr 1fr; align-items: start; gap: 12px; }
  .ai-side-col .ai-person-frame { aspect-ratio: 5 / 6; }
}

@media (max-width: 860px) {
  .ai-grid-v3 { grid-template-columns: 1fr; }
  .ai-side-col { grid-template-columns: 1fr; }
  .ai-side-col .ai-person-frame { aspect-ratio: 16 / 10; }
  .ai-side-col .ai-person-frame img { object-position: center 14%; }
  .ai-chat-col .ai-messages { min-height: 300px; }
  .ai-feature-list small { font-size: 12.5px; }
}

/* ==========================================================
   CORRECCIONES SOLICITADAS — revisión Total ERP
   ========================================================== */

/* ---- 1a. Orden: en escritorio la conversación va al centro y Laura a la derecha.
        En móvil/tablet Laura aparece ANTES del ejemplo de conversación. ---- */
.ai-grid-v3 .ai-copy { order: 1; }
.ai-grid-v3 .ai-chat-col { order: 2; }
.ai-grid-v3 .ai-side-col { order: 3; }

@media (max-width: 1180px) {
  .ai-grid-v3 .ai-side-col { order: 2; }
  .ai-grid-v3 .ai-chat-col { order: 3; }
}

/* ---- 1b. Retrato de Laura: encuadre correcto (se cortaban los ojos) ---- */
.ai-side-col .ai-person-frame {
  aspect-ratio: 5 / 6.2;
  overflow: hidden;
}
.ai-side-col .ai-person-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

@media (max-width: 1180px) {
  .ai-side-col { grid-template-columns: 1fr 1fr; }
  .ai-side-col .ai-person-frame { aspect-ratio: 5 / 5.4; }
  .ai-side-col .ai-person-frame img { object-position: 50% 20%; }
}

@media (max-width: 860px) {
  .ai-side-col { grid-template-columns: 1fr; }
  .ai-side-col .ai-person-frame {
    aspect-ratio: 4 / 3.9;
    max-width: 420px;
    margin: 0 auto;
  }
  .ai-side-col .ai-person-frame img { object-position: 50% 16%; }
}

/* ---- 1c. Menos púrpura: la tarjeta de conversación pasa a blanco
        sobre el fondo púrpura, y el CTA principal se invierte. ---- */
.ai-chat-col .ai-chat-card {
  border: 1px solid rgba(255,255,255,0.55);
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(8, 6, 40, 0.42);
}

.ai-chat-col .ai-chat-card header {
  border-bottom: 1px solid #e9edf6;
  background: #f6f8fd;
}
.ai-chat-col .ai-chat-card header strong { color: #16213a; }
.ai-chat-col .ai-chat-card header small { color: #6b7891; }
.ai-chat-col .ai-chat-card header small i { color: #16a94b; }
.ai-chat-col .ai-chat-card header > i { color: #16a94b; }

.ai-chat-col .ai-messages {
  background:
    radial-gradient(circle at 88% 10%, rgba(91, 91, 240, 0.07), transparent 13rem),
    #f4f6fb;
}

.ai-chat-col .message-client {
  color: #fff;
  background: linear-gradient(135deg, #5b5bf0, #7d47ef);
}

.ai-chat-col .message-ai {
  border: 1px solid #e4e9f3;
  color: #3a4761;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(20, 33, 66, 0.06);
}
.ai-chat-col .message-ai b { color: #16213a; }

.ai-chat-col .message-file {
  border-color: #e4e9f3;
  background: #f7f9fd;
}
.ai-chat-col .message-file i { color: #e5484d; }
.ai-chat-col .message-file strong { color: #16213a; }
.ai-chat-col .message-file small { color: #77839a; }

.ai-chat-col .message-status {
  color: #12924a;
  background: rgba(22, 169, 75, 0.12);
}

.ai-chat-col .typing-dots i { background: #7d47ef; }

.ai-chat-col .ai-composer {
  border-top: 1px solid #e9edf6;
  background: #f6f8fd;
}
.ai-chat-col .ai-composer > span {
  color: #8c98ad;
  background: #ffffff;
  border: 1px solid #e4e9f3;
}
.ai-chat-col .ai-composer .is-typing { color: #16213a; }
.ai-chat-col .ai-composer-clip { color: #97a3b8; }
.ai-chat-col .ai-composer > i:last-child {
  color: #fff;
  background: linear-gradient(135deg, #5b5bf0, #7d47ef);
}

.ai-chat-col .ai-chat-foot {
  color: #6b7891;
  background: #f6f8fd;
}
.ai-chat-col .ai-chat-foot i { color: #16a94b; }
.ai-chat-col .ai-chat-foot b { color: #6a3fe0; }

/* Botón principal de TotallIA en blanco sobre fondo púrpura */
.btn-ia-white {
  color: #4a2bd6;
  background: #ffffff;
  border: 1px solid #ffffff;
  box-shadow: 0 16px 34px rgba(6, 5, 40, 0.32);
}
.btn-ia-white:hover {
  color: #35209c;
  background: #f2f0ff;
  transform: translateY(-2px);
}
.btn-ia-white i { color: inherit; }

/* Iconos de la lista con paleta variada (menos monotonía púrpura) */
.ai-feature-icon.icon-purple { background: linear-gradient(135deg, #6f5bf5, #9a4bef); box-shadow: 0 10px 22px rgba(112, 82, 240, 0.34); }
.ai-feature-icon.icon-green  { background: linear-gradient(135deg, #16a94b, #35d07a); box-shadow: 0 10px 22px rgba(22, 169, 75, 0.30); }
.ai-feature-icon.icon-blue   { background: linear-gradient(135deg, #2f66ed, #4aa3ff); box-shadow: 0 10px 22px rgba(47, 102, 237, 0.30); }

/* Tarjetas laterales con más aire y separación del fondo */
.ai-side-col .ai-side-stats > div {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
}
.ai-side-col .ai-side-stats > div:nth-child(1) i { background: linear-gradient(135deg, #16a94b, #35d07a); }
.ai-side-col .ai-side-stats > div:nth-child(2) i { background: linear-gradient(135deg, #2f66ed, #4aa3ff); }
.ai-side-col .ai-side-stats > div:nth-child(3) i { background: linear-gradient(135deg, #6f5bf5, #9a4bef); }

/* ---- 1d. Scroll: se elimina el desplazamiento raro de textos y tarjetas ---- */
.reveal {
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal.visible { transform: none; }

@media (max-width: 1024px) {
  .reveal {
    transform: none !important;
    transition: opacity 0.35s ease;
    transition-delay: 0ms !important;
  }
  .ai-section .reveal,
  .ai-section .reveal.visible { transform: none !important; }
}

/* ---- 3. Diagrama en formato CICLO también en móvil ---- */
@media (max-width: 760px) {
  .flow-diagram {
    position: relative;
    display: block;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    min-height: 0;
    transform: none;
  }
  .flow-diagram svg { display: none; }

  /* Anillo punteado que comunica la idea de ciclo */
  .flow-diagram::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 74%;
    height: 74%;
    content: "";
    border: 2px dashed rgba(47, 102, 237, 0.38);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: cycle-ring-spin 34s linear infinite;
  }
  .flow-diagram::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 74%;
    height: 74%;
    content: "";
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(22,169,75,0.16), rgba(47,102,237,0.05) 45%, transparent 60%);
    mask: radial-gradient(circle, transparent 47%, #000 48%, #000 52%, transparent 53%);
    -webkit-mask: radial-gradient(circle, transparent 47%, #000 48%, #000 52%, transparent 53%);
    transform: translate(-50%, -50%);
    animation: cycle-ring-spin 9s linear infinite;
    pointer-events: none;
  }

  .flow-core,
  .flow-node {
    position: absolute;
    top: 50%;
    left: 50%;
  }

  .flow-core {
    width: 104px;
    height: 104px;
    padding: 0;
    border-radius: 26px;
    background: #fff;
    transform: translate(-50%, -50%);
  }
  .flow-core > span { width: 42px; height: 42px; margin-bottom: 6px; border-radius: 13px; }
  .flow-core strong { font-size: 14px; }
  .flow-core small { font-size: 8px; }

  .flow-node {
    display: flex;
    width: 84px;
    height: 60px;
    flex-direction: column;
    gap: 4px;
    padding: 6px 4px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(13, 42, 86, 0.14);
    font-size: 10.5px;
    line-height: 1.15;
    text-align: center;
  }
  .flow-node i { font-size: 15px; }
  .flow-node span { display: block; }

  .flow-core:hover,
  .flow-node:hover { transform: translate(-50%, -50%); }

  /* Posiciones sobre la circunferencia (7 nodos, R = 37%) */
  .flow-node[data-cycle="1"] { left: 50%;   top: 13%;   transform: translate(-50%, -50%); }
  .flow-node[data-cycle="2"] { left: 78.9%; top: 26.9%; transform: translate(-50%, -50%); }
  .flow-node[data-cycle="3"] { left: 86.1%; top: 58.2%; transform: translate(-50%, -50%); }
  .flow-node[data-cycle="4"] { left: 66.1%; top: 83.3%; transform: translate(-50%, -50%); }
  .flow-node[data-cycle="5"] { left: 33.9%; top: 83.3%; transform: translate(-50%, -50%); }
  .flow-node[data-cycle="6"] { left: 13.9%; top: 58.2%; transform: translate(-50%, -50%); }
  .flow-node[data-cycle="7"] { left: 21.1%; top: 26.9%; transform: translate(-50%, -50%); }

  .flow-node[data-cycle="1"]:hover,
  .flow-node[data-cycle="2"]:hover,
  .flow-node[data-cycle="3"]:hover,
  .flow-node[data-cycle="4"]:hover,
  .flow-node[data-cycle="5"]:hover,
  .flow-node[data-cycle="6"]:hover,
  .flow-node[data-cycle="7"]:hover { transform: translate(-50%, -50%); }

  .integration-map { gap: 24px; padding: 30px 18px; }
  .integration-copy h3 { font-size: 27px; }
}

@media (max-width: 400px) {
  .flow-node { width: 76px; height: 56px; font-size: 9.5px; }
  .flow-node i { font-size: 14px; }
  .flow-core { width: 92px; height: 92px; }
}

@keyframes cycle-ring-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ---- 7. Botón inferior para desplegar todos los módulos ---- */
.module-button-bottom {
  display: grid;
  gap: 18px;
  justify-items: center;
}
.module-button-bottom .btn { max-width: 420px; }

.more-pill[data-open-modules] {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.more-pill[data-open-modules]:hover { transform: translateY(-2px); }

/* ---- Ajustes finos de las correcciones ---- */

/* Marco de Laura: base blanca limpia y etiqueta en blanco (contraste con el púrpura) */
.ai-side-col .ai-person-frame {
  border: 1px solid rgba(255,255,255,0.55);
  background: #fff;
}
.ai-side-col .ai-person-frame::after {
  background: linear-gradient(to top, rgba(255,255,255,0.96), rgba(255,255,255,0.55) 16%, transparent 34%);
}
.ai-side-col .ai-person-meta {
  border: 1px solid rgba(20,30,60,0.08);
  color: #16213a;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 10px 26px rgba(10, 14, 44, 0.16);
}
.ai-side-col .ai-person-meta strong { font-size: 13px; }
.ai-side-col .ai-person-meta small { color: #6b7891; font-size: 10.5px; }

/* Clip del compositor sin caja púrpura */
.ai-chat-col .ai-composer-clip {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none !important;
  box-shadow: none;
}

/* Ciclo móvil: un poco más de aire entre nodos */
@media (max-width: 760px) {
  .flow-node { width: 80px; height: 58px; }
  .flow-node[data-cycle="1"] { left: 50%;   top: 12%; }
  .flow-node[data-cycle="2"] { left: 79.7%; top: 26.3%; }
  .flow-node[data-cycle="3"] { left: 87.1%; top: 58.5%; }
  .flow-node[data-cycle="4"] { left: 66.5%; top: 84.2%; }
  .flow-node[data-cycle="5"] { left: 33.5%; top: 84.2%; }
  .flow-node[data-cycle="6"] { left: 12.9%; top: 58.5%; }
  .flow-node[data-cycle="7"] { left: 20.3%; top: 26.3%; }
  .flow-diagram::before,
  .flow-diagram::after { width: 76%; height: 76%; }
}

@media (max-width: 420px) {
  .flow-node { width: 74px; height: 55px; font-size: 9.5px; }
  .flow-node i { font-size: 14px; }
  .flow-core { width: 94px; height: 94px; }
  .flow-core strong { font-size: 13px; }
  .flow-node[data-cycle="1"] { left: 50%;   top: 13%; }
  .flow-node[data-cycle="2"] { left: 78.2%; top: 27.1%; }
  .flow-node[data-cycle="3"] { left: 85.1%; top: 58.2%; }
  .flow-node[data-cycle="4"] { left: 65.6%; top: 82.5%; }
  .flow-node[data-cycle="5"] { left: 34.4%; top: 82.5%; }
  .flow-node[data-cycle="6"] { left: 14.9%; top: 58.2%; }
  .flow-node[data-cycle="7"] { left: 21.8%; top: 27.1%; }
  .flow-diagram::before,
  .flow-diagram::after { width: 72%; height: 72%; }
}

/* ==========================================================
   CORRECCIONES v2
   ========================================================== */

/* ----------------------------------------------------------
   1. HERO — paleta sólida, sin mezcla "tutti frutti"
   ---------------------------------------------------------- */
.hero-premium {
  background:
    radial-gradient(circle at 22% 18%, rgba(47, 102, 237, 0.30), transparent 34rem),
    linear-gradient(160deg, #071634 0%, #0a2350 46%, #0d2f68 100%);
}

.hero-premium .hero-glow-a { background: #2f66ed; }
.hero-premium .hero-glow-b { background: #1e4fbd; }
.hero-premium .hero-glow { opacity: 0.2; filter: blur(130px); }
.hero-premium .hero-network { opacity: 0.3; }
.hero-premium .hero-grid-pattern { opacity: 0.16; }

.hero-premium h1 span {
  color: #6fa4ff;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-premium .hero-text { color: rgba(219, 231, 250, 0.86); }

.hero-premium .eyebrow-pill {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.09);
}

.hero-proof span { color: rgba(219, 231, 250, 0.9); }
.hero-proof i { color: #35d07a; }

/* Indicadores de confianza: legibles, no diminutos */
.hero-premium .trust-row {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.07);
}
.hero-premium .trust-item { color: rgba(222, 233, 250, 0.8); }
.hero-premium .trust-item strong { font-size: 17px; letter-spacing: -0.01em; }
.hero-premium .trust-item small { font-size: 12px; }
.hero-premium .trust-icon.blue { color: #7cb0ff; background: rgba(47,102,237,0.24); }
.hero-premium .trust-icon.green { color: #5be590; background: rgba(22,169,75,0.22); }
.hero-premium .trust-icon.purple { color: #a8c4ff; background: rgba(255,255,255,0.12); }

@media (max-width: 900px) {
  .hero-premium .trust-row.trust-row-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
  }
  .hero-premium .trust-row.trust-row-compact .trust-item {
    width: auto;
    border: 0;
    border-radius: 0;
    background: none;
  }
  .hero-premium .trust-row-compact .trust-item {
    justify-content: flex-start;
    padding: 14px 15px;
    border-right: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    gap: 11px;
  }
  .hero-premium .trust-row-compact .trust-item:nth-child(2n) { border-right: 0; }
  .hero-premium .trust-row-compact .trust-item:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }
  .hero-premium .trust-item strong { font-size: 16px; }
  .hero-premium .trust-item small { font-size: 12.5px; }
  .hero-premium .trust-icon { width: 34px; height: 34px; font-size: 14px; }
  .hero-proof span { font-size: 13px; }
}

@media (max-width: 560px) {
  .hero-premium h1 { font-size: 34px; }
  .hero-premium .hero-text { font-size: 15.5px; }
  .hero-premium .eyebrow-pill { font-size: 12px; }
}

/* ----------------------------------------------------------
   2. COMPARATIVA — tabla VS clara en móvil y escritorio
   ---------------------------------------------------------- */
.vs-block {
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid #e2eaf6;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--premium-shadow);
}

.vs-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid #e9eff8;
  background: #f6f9fe;
}

.vs-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #e2eaf6;
  border-radius: 13px;
  color: #4d5f79;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.vs-tab i { font-size: 14px; opacity: 0.7; }
.vs-tab:hover { border-color: #c9dbf6; transform: translateY(-1px); }

.vs-tab.is-active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #2f66ed, #1d4fd0);
  box-shadow: 0 12px 26px rgba(29, 79, 208, 0.28);
}
.vs-tab.is-active i { opacity: 1; }

.vs-table { padding: 6px 0 0; }

.vs-thead,
.vs-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.72fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  padding: 0 18px;
}

.vs-thead {
  padding-top: 16px;
  padding-bottom: 12px;
}

.vs-th {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.vs-th-criteria {
  color: #8494ab;
  background: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.vs-th-other {
  color: #64748b;
  background: #f1f4f9;
}
.vs-th-other i { color: #98a5b8; }

.vs-th-totall {
  color: #fff;
  background: linear-gradient(135deg, #16a94b, #12924a);
  box-shadow: 0 10px 22px rgba(18, 146, 74, 0.25);
}
.vs-th-totall i { color: #fff; }

.vs-row {
  padding-top: 8px;
  padding-bottom: 8px;
}
.vs-row + .vs-row { border-top: 1px solid #eef3fa; }

.vs-criteria {
  display: inline-flex;
  align-items: center;
  padding: 12px 0;
  color: #16213a;
  font-size: 13.5px;
  font-weight: 850;
  line-height: 1.3;
}

.vs-cell {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 13.5px;
  line-height: 1.4;
}

.vs-cell i {
  margin-top: 2px;
  flex: 0 0 auto;
  font-size: 12px;
}

.vs-cell b { font-weight: 750; }

.vs-cell-other {
  border-color: #edf1f7;
  color: #7c8899;
  background: #f7f9fc;
}
.vs-cell-other i { color: #c0546a; }

.vs-cell-totall {
  border-color: #d3f0de;
  color: #11351f;
  background: #f1fbf5;
}
.vs-cell-totall i { color: #16a94b; }
.vs-cell-totall b { font-weight: 850; }

.vs-foot {
  margin: 0;
  padding: 16px 18px 20px;
  color: #8b97a9;
  font-size: 12.5px;
}
.vs-foot i { margin-right: 6px; color: var(--premium-blue); }

@media (max-width: 900px) {
  .vs-tabs { grid-template-columns: 1fr; gap: 7px; }
  .vs-tab { justify-content: flex-start; min-height: 46px; }
}

@media (max-width: 760px) {
  .vs-block { margin-top: 30px; border-radius: 22px; }

  .vs-thead {
    grid-template-columns: 1fr 1fr;
    padding: 14px 14px 10px;
    gap: 8px;
  }
  .vs-th-criteria { display: none; }
  .vs-th { padding: 10px 12px; font-size: 12px; }

  .vs-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 14px 14px;
  }
  .vs-criteria {
    grid-column: 1 / -1;
    padding: 0 0 2px;
    color: #5b6a82;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }
  .vs-cell { padding: 11px 12px; font-size: 12.5px; }
  .vs-foot { padding: 12px 14px 18px; font-size: 11.5px; }
}

/* ----------------------------------------------------------
   3. TotallIA — la conversación se queda dentro de la tarjeta
   ---------------------------------------------------------- */
.ai-chat-col .ai-messages {
  height: clamp(300px, 44vh, 380px);
  min-height: 0;
  max-height: none;
  justify-content: flex-start;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

.ai-chat-col .ai-messages > *:first-child { margin-top: auto; }
.ai-chat-col .ai-messages::-webkit-scrollbar { width: 5px; }
.ai-chat-col .ai-messages::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(90, 110, 145, 0.22);
}
.ai-chat-col .ai-messages::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 860px) {
  .ai-chat-col .ai-messages { height: 330px; }
  .ai-chat-col .ai-chat-card { max-width: 100%; }
  .ai-chat-col .message { max-width: 82%; }
}

/* ----------------------------------------------------------
   4. Realce al desplazar a la vista demostrativa / módulo
   ---------------------------------------------------------- */
.control-demo,
#module-preview { scroll-margin-top: 96px; }

.control-demo.is-highlighted .demo-window,
#module-preview.is-highlighted {
  animation: focus-pulse 1.2s ease;
}

@keyframes focus-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47, 102, 237, 0.45); }
  55%  { box-shadow: 0 0 0 12px rgba(47, 102, 237, 0.06); }
  100% { box-shadow: 0 0 0 0 rgba(47, 102, 237, 0); }
}

/* ----------------------------------------------------------
   5. PIE DE PÁGINA — estructura completa
   ---------------------------------------------------------- */
.site-footer {
  padding: 64px 0 0;
  color: #4a5b73;
  background: #ffffff !important;
  box-shadow: inset 0 1px 0 #e5edf7;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 46px;
  padding-bottom: 44px;
  border-bottom: 1px solid #e6edf7;
  align-items: start;
}

.footer-brand .footer-logo {
  display: inline-block;
  width: 178px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}
.footer-brand .footer-logo img { display: block; width: 100%; height: auto; }

.footer-about {
  margin: 16px 0 18px;
  max-width: 380px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-badges li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid #e4ebf6;
  border-radius: 999px;
  color: #3d4f68;
  background: #f7fafe;
  font-size: 11.5px;
  font-weight: 800;
}
.footer-badges i { color: var(--premium-blue); font-size: 11px; }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col h3 {
  margin: 0 0 4px;
  color: #16213a;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col > a {
  padding: 0;
  border: 0;
  color: #5b6c85 !important;
  background: none;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  transition: color 0.18s ease;
}
.footer-col > a:hover { color: var(--premium-blue) !important; }

.footer-contact > a {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer-contact > a i {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: var(--premium-blue);
  background: #eef4ff;
  font-size: 13px;
}

.footer-contact > a span { display: block; min-width: 0; }
.footer-contact strong { display: block; color: #16213a; font-size: 13.5px; font-weight: 800; }
.footer-contact small { display: block; color: #8b97a9; font-size: 11.5px; }
.footer-contact > a:hover strong { color: var(--premium-blue); }

.footer-wa {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
  padding: 12px 16px !important;
  border-radius: 12px;
  color: #fff !important;
  background: linear-gradient(135deg, #20bd5c, #16a94b);
  box-shadow: 0 12px 26px rgba(22, 169, 75, 0.24);
  font-size: 13.5px !important;
  font-weight: 800 !important;
  justify-content: center;
}
.footer-wa:hover { color: #fff !important; transform: translateY(-2px); }
.footer-wa i { font-size: 17px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 30px;
}

.footer-bottom p {
  margin: 0;
  color: #7c8899;
  font-size: 13px;
}

.footer-legal {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-legal button {
  padding: 0;
  border: 0;
  color: #5b6c85 !important;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
}
.footer-legal button:hover { color: var(--premium-blue) !important; }
.footer-legal span { color: #cbd5e3; }

.socials { display: flex; gap: 10px; }
.socials button {
  width: 38px;
  height: 38px;
  border: 1px solid #e4ebf6;
  border-radius: 11px;
  color: #465a75;
  background: #f6f9fe;
}
.socials button:hover {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--premium-blue), #20bd5c);
}

@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 34px 30px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
  .footer-contact h3 { grid-column: 1 / -1; }
  .footer-wa { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .site-footer { padding-top: 46px; }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 32px;
  }
  .footer-about { max-width: none; font-size: 13.5px; }
  .footer-contact { grid-template-columns: 1fr; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 0 26px;
  }
  .footer-legal { flex-wrap: wrap; }
}

/* Ajustes finos del pie de página */
.footer-brand .socials { margin-top: 18px; }

.footer-contact > a.footer-wa {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 8px;
  padding: 13px 18px !important;
  border-radius: 12px;
  color: #fff !important;
  background: linear-gradient(135deg, #20bd5c, #16a94b) !important;
  box-shadow: 0 12px 26px rgba(22, 169, 75, 0.24);
  font-size: 13.5px !important;
  font-weight: 850 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.footer-contact > a.footer-wa i {
  width: auto;
  height: auto;
  border-radius: 0;
  color: #fff;
  background: none;
  font-size: 17px;
}
.footer-contact > a.footer-wa:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(22, 169, 75, 0.3);
}

/* Espacio para que el botón flotante de WhatsApp no tape el pie */
.footer-bottom { padding-bottom: 46px; }
@media (max-width: 620px) { .footer-bottom { padding-bottom: 92px; } }

/* Contraste de la columna "otros sistemas" */
.vs-cell-other { color: #6b7787; }
.vs-cell-other b { font-weight: 700; }

/* Alineación final del pie: enlaces legales lejos del botón flotante */
.footer-bottom {
  justify-content: flex-start;
  gap: 10px 30px;
}
.footer-legal { margin-right: auto; }
@media (min-width: 621px) {
  .footer-bottom p { order: 1; }
  .footer-legal { order: 2; }
}

/* Indicadores del hero en móvil: sin quiebres de línea */
@media (max-width: 900px) {
  .hero-premium .trust-row.trust-row-compact .trust-item small,
  .hero-premium .trust-row.trust-row-compact .trust-item span { font-size: 11.5px; }
  .hero-premium .trust-row.trust-row-compact .trust-item small { white-space: nowrap; }
  .hero-premium .trust-row.trust-row-compact .trust-item strong { font-size: 15.5px; }
}

/* ==========================================================
   HERO v3 — rediseño según referencia
   ========================================================== */
.hero-premium {
  min-height: 0;
  padding: 92px 0 96px;
  background:
    radial-gradient(ellipse 60% 55% at 74% 46%, rgba(27, 74, 168, 0.42), transparent 70%),
    radial-gradient(ellipse 55% 45% at 10% 12%, rgba(20, 55, 130, 0.35), transparent 70%),
    linear-gradient(165deg, #04101f 0%, #061630 52%, #061c3c 100%);
}

.hero-premium::after { display: none; }
.hero-premium .hero-glow { display: none; }
.hero-premium .hero-network { opacity: 0.22; }
.hero-premium .hero-grid-pattern { opacity: 0.1; }

.hero-premium .hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
  align-items: center;
  column-gap: 54px;
  row-gap: 32px;
}

.hero-premium .hero-copy { grid-column: 1; grid-row: 1; text-align: left; }
.hero-premium .hero-visual { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.hero-premium .trust-row.trust-row-compact { grid-column: 1; grid-row: 2; }
.hero-seal { display: none; }

/* Pill */
.hero-premium .eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 11px 20px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  color: rgba(228, 238, 252, 0.86);
  background: rgba(255,255,255,0.04);
  font-size: 15px;
  font-weight: 600;
}
.hero-premium .eyebrow-pill i { color: #3ecf78; font-size: 16px; }
.hero-premium .eyebrow-pill strong { color: #3ecf78; font-weight: 800; }

/* Titular */
.hero-premium h1 {
  margin: 0 0 22px;
  max-width: 13ch;
  color: #fff;
  font-size: clamp(38px, 4vw, 60px);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.hero-premium h1 span {
  display: block;
  color: #3ecf78;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-premium .hero-text {
  max-width: 46ch;
  margin: 0 0 30px;
  color: rgba(206, 221, 243, 0.78);
  font-size: 17px;
  line-height: 1.62;
}

/* Ventajas con iconos circulares y separadores */
.hero-premium .hero-proof {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0 0 32px;
}

.hero-premium .hero-proof span {
  display: flex;
  min-width: 0;
  flex: 1 1 0;
  align-items: center;
  gap: 13px;
  padding: 2px 20px;
  border-left: 1px solid rgba(255,255,255,0.1);
  color: rgba(219, 231, 250, 0.9);
  font-size: 14px;
  font-weight: 600;
}
.hero-premium .hero-proof span:first-child { padding-left: 0; border-left: 0; }

.hero-premium .hero-proof i {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: #b6cdf2;
  background: rgba(255,255,255,0.04);
  font-size: 16px;
}
.hero-premium .hero-proof b { font-weight: 600; line-height: 1.35; }

/* Botones */
.hero-premium .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}

.hero-premium .hero-actions .btn {
  min-height: 62px;
  border-radius: 14px;
  font-size: 15.5px;
  font-weight: 800;
}

.hero-premium .hero-actions .btn:first-child {
  gap: 12px;
  padding: 0 24px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #2bb35c, #1b9a4c);
  box-shadow: 0 18px 38px rgba(20, 130, 66, 0.32);
}
.hero-premium .hero-actions .btn:first-child:hover {
  background: linear-gradient(135deg, #31c465, #1ea854);
  transform: translateY(-2px);
}
.hero-premium .btn-arrow { margin-left: 6px; opacity: 0.85; font-size: 13px; }

.hero-premium .hero-actions .btn-outline {
  gap: 11px;
  padding: 0 24px;
  border: 1px solid rgba(255,255,255,0.16);
  color: #eaf1fb;
  background: rgba(255,255,255,0.045);
}
.hero-premium .hero-actions .btn-outline:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.09);
  transform: translateY(-2px);
}

/* Indicadores de confianza como tarjetas independientes */
.hero-premium .trust-row.trust-row-compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 640px;
  margin: 8px 0 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-premium .trust-row.trust-row-compact .trust-item {
  display: flex;
  width: auto;
  align-items: center;
  gap: 13px;
  padding: 16px 17px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 16px;
  background: rgba(255,255,255,0.045);
  text-align: left;
}

.hero-premium .trust-row.trust-row-compact .trust-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 13px;
  font-size: 16px;
}
.hero-premium .trust-row.trust-row-compact .trust-icon.blue { color: #7cb0ff; background: rgba(47,102,237,0.2); }
.hero-premium .trust-row.trust-row-compact .trust-icon.green { color: #4fe08c; background: rgba(22,169,75,0.2); }
.hero-premium .trust-row.trust-row-compact .trust-icon.purple { color: #a8c4ff; background: rgba(255,255,255,0.1); }

.hero-premium .trust-row.trust-row-compact .trust-item strong {
  display: block;
  color: #fff;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.hero-premium .trust-row.trust-row-compact .trust-item small {
  display: block;
  margin-top: 2px;
  color: rgba(200, 215, 240, 0.62);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.hero-premium .trust-row.trust-row-compact .trust-item span { font-size: inherit; }

/* Sello inferior (solo móvil) */
.hero-seal {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  color: rgba(196, 212, 238, 0.62);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}
.hero-seal i { margin-right: 7px; color: rgba(196, 212, 238, 0.62); }

/* ---------------- Tablet ---------------- */
@media (max-width: 1080px) {
  .hero-premium .hero-grid {
    grid-template-columns: 1fr;
    row-gap: 34px;
    justify-items: center;
  }
  .hero-premium .hero-copy {
    grid-column: 1;
    grid-row: 1;
    max-width: 640px;
    text-align: center;
  }
  .hero-premium .hero-visual { grid-column: 1; grid-row: 2; justify-self: center; }
  .hero-premium .trust-row.trust-row-compact { grid-column: 1; grid-row: 3; }
  .hero-premium h1 { max-width: none; margin-inline: auto; }
  .hero-premium .hero-text { margin-inline: auto; }
  .hero-premium .hero-proof { justify-content: center; }
  .hero-premium .hero-actions { justify-content: center; }
  .hero-seal { display: block; grid-row: 4; }
}

/* ---------------- Móvil ---------------- */
@media (max-width: 780px) {
  .hero-premium { padding: 56px 0 68px; }
  .hero-premium .hero-grid { row-gap: 26px; }
  .hero-premium .eyebrow-pill { margin-bottom: 20px; padding: 10px 17px; font-size: 13.5px; }
  .hero-premium .eyebrow-pill i { font-size: 14px; }
  .hero-premium h1 { font-size: 35px; line-height: 1.09; }
  .hero-premium .hero-text { margin-bottom: 26px; font-size: 15.5px; line-height: 1.6; }

  .hero-premium .hero-proof { display: none; }

  .hero-premium .hero-actions { flex-direction: column; gap: 12px; width: 100%; }
  .hero-premium .hero-actions .btn {
    width: 100% !important;
    min-height: 58px;
    font-size: 15px;
  }
  .hero-premium .hero-actions .btn:first-child { justify-content: center; }
  .hero-premium .btn-arrow { margin-left: auto; }

  .hero-premium .trust-row.trust-row-compact {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    max-width: none;
  }
  .hero-premium .trust-row.trust-row-compact .trust-item { padding: 14px 16px; }
  .hero-premium .trust-row.trust-row-compact .trust-item strong { font-size: 18px; }
  .hero-premium .trust-row.trust-row-compact .trust-item small { font-size: 12.5px; }
  .hero-seal { font-size: 12.5px; }
}

@media (max-width: 480px) {
  .hero-premium h1 { font-size: 31px; }
}

/* El chat nunca desborda: sin barra de desplazamiento visible */
.ai-chat-col .ai-messages {
  overflow: hidden;
  height: clamp(290px, 42vh, 360px);
}
@media (max-width: 860px) { .ai-chat-col .ai-messages { height: 320px; } }

/* Ajuste de proporciones del hero */
.hero-premium .hero-grid { grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); column-gap: 48px; }
.hero-premium h1 { max-width: none; font-size: clamp(36px, 3.45vw, 51px); }
.hero-premium .hero-text { max-width: 44ch; font-size: 16.5px; }

.hero-premium .hero-actions .btn {
  padding: 0 22px;
  font-size: 15px;
  white-space: nowrap;
}
.hero-premium .hero-actions .btn > span { white-space: nowrap; }
.hero-premium .hero-proof span { padding: 2px 16px; font-size: 13.5px; }
.hero-premium .hero-proof i { width: 44px; height: 44px; font-size: 15px; }

@media (max-width: 1080px) {
  .hero-premium .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .hero-premium .hero-actions .btn { white-space: normal; }
}

/* El texto largo del compositor ya no ensancha la columna del chat */
.ai-grid-v3 > * { min-width: 0; }
.ai-grid-v3 { grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.94fr) minmax(0, 0.6fr); }

@media (max-width: 1180px) {
  .ai-grid-v3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .ai-grid-v3 { grid-template-columns: minmax(0, 1fr); }
}

.ai-chat-col .ai-chat-card { max-width: 100%; overflow: hidden; }
.ai-chat-col .ai-composer { min-width: 0; }
.ai-chat-col .ai-composer > span { max-width: 100%; }
.ai-chat-col .message { overflow-wrap: anywhere; }

/* Sin desbordes en pantallas muy angostas (320 px) */
.hero-premium .hero-grid > * { min-width: 0; }

@media (max-width: 1080px) {
  .hero-premium .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 400px) {
  .hero-premium .dashboard-scene { padding: 44px 4px 34px; }
  .hero-premium .eyebrow-pill {
    padding: 9px 14px;
    font-size: 12.5px;
    line-height: 1.35;
    text-align: center;
  }
  .hero-premium .hero-actions .btn { padding: 0 16px; font-size: 14px; }
}

@media (max-width: 340px) {
  .hero-premium h1 { font-size: 28px; }
  .hero-premium .dashboard-scene { padding: 40px 0 30px; }
}

/* ==========================================================
   Hero — botones y bloque inferior (ajuste final)
   ========================================================== */

/* Se anulan los anchos fijos antiguos que sacaban los iconos del botón */
.hero-premium .hero-actions .btn,
.hero-premium .hero-actions .btn:first-child,
.hero-premium .hero-actions .btn:nth-child(2) {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
}

.hero-premium .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  margin: 0;
}

.hero-premium .hero-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 60px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-premium .hero-actions .btn i { flex: 0 0 auto; font-size: 16px; }
.hero-premium .hero-actions .btn > span { flex: 0 1 auto; }

/* Primario: verde sólido de marca */
.hero-premium .hero-actions .btn:first-child {
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  background: linear-gradient(180deg, #34ab5e 0%, #1f8f4c 100%);
  box-shadow: 0 16px 34px rgba(20, 122, 63, 0.34), inset 0 1px 0 rgba(255,255,255,0.16);
}
.hero-premium .hero-actions .btn:first-child:hover {
  background: linear-gradient(180deg, #3cba68 0%, #239c54 100%);
  box-shadow: 0 20px 40px rgba(20, 122, 63, 0.42), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.hero-premium .btn-arrow {
  margin-left: 4px;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
}

/* Secundario: tarjeta azul marino */
.hero-premium .hero-actions .btn-outline {
  border: 1px solid rgba(255,255,255,0.14);
  color: #eef3fb;
  background: #101f3d;
  box-shadow: 0 14px 30px rgba(3, 10, 26, 0.4);
  backdrop-filter: none;
}
.hero-premium .hero-actions .btn-outline i { color: #9fbdf0; }
.hero-premium .hero-actions .btn-outline:hover {
  border-color: rgba(255,255,255,0.28);
  color: #fff;
  background: #16294d;
  transform: translateY(-2px);
}

/* Iconos circulares de las ventajas: un poco más de contraste */
.hero-premium .hero-proof i {
  border-color: rgba(255,255,255,0.16);
  color: #9fbdf0;
  background: rgba(255,255,255,0.055);
}
.hero-premium .hero-proof b { color: #eaf1fb; font-weight: 700; }

/* ---------------- Indicadores y sello en móvil ---------------- */
@media (max-width: 900px) {
  .hero-premium .trust-row.trust-row-compact {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 11px !important;
    width: 100%;
    max-width: 460px;
    margin: 4px auto 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
  .hero-premium .trust-row.trust-row-compact .trust-item {
    display: flex !important;
    width: auto !important;
    align-items: center;
    justify-content: flex-start;
    gap: 13px;
    padding: 15px 17px !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 15px !important;
    background: rgba(255,255,255,0.05) !important;
    text-align: left !important;
  }
  .hero-premium .trust-row.trust-row-compact .trust-item strong { font-size: 18px; }
  .hero-premium .trust-row.trust-row-compact .trust-item small { font-size: 12.5px; }
}

/* Sello: centrado y separado con una línea sutil */
.hero-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 460px;
  margin: 20px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.09);
  color: rgba(200, 216, 242, 0.66);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}
.hero-seal i { margin: 0; color: rgba(200, 216, 242, 0.55); font-size: 13px; }
.hero-seal span { font-size: 14px; }

@media (max-width: 780px) {
  .hero-premium .hero-actions .btn {
    width: 100% !important;
    justify-content: center;
    white-space: normal;
  }
  .hero-premium .btn-arrow { margin-left: 6px; }
  .hero-seal { font-size: 12.5px; }
}

/* El sello sólo se muestra en tablet y móvil (como en la referencia) */
@media (min-width: 1081px) { .hero-seal { display: none; } }

/* ==========================================================
   AJUSTES v5
   ========================================================== */

/* ---- 1. Indicadores del hero más compactos ---- */
.hero-premium .trust-row.trust-row-compact {
  gap: 10px;
  max-width: 560px;
}
.hero-premium .trust-row.trust-row-compact .trust-item {
  gap: 11px;
  padding: 12px 14px;
  border-radius: 14px;
}
.hero-premium .trust-row.trust-row-compact .trust-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 13px;
}
.hero-premium .trust-row.trust-row-compact .trust-item strong { font-size: 15.5px; }
.hero-premium .trust-row.trust-row-compact .trust-item small { font-size: 11.5px; }

@media (max-width: 900px) {
  .hero-premium .trust-row.trust-row-compact {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    max-width: 420px;
  }
  .hero-premium .trust-row.trust-row-compact .trust-item {
    gap: 9px;
    padding: 10px 11px !important;
    border-radius: 12px !important;
  }
  .hero-premium .trust-row.trust-row-compact .trust-item:last-child { grid-column: 1 / -1; }
  .hero-premium .trust-row.trust-row-compact .trust-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 12px;
  }
  .hero-premium .trust-row.trust-row-compact .trust-item strong { font-size: 14px; }
  .hero-premium .trust-row.trust-row-compact .trust-item small { font-size: 10.5px; }
}

@media (max-width: 360px) {
  .hero-premium .trust-row.trust-row-compact .trust-item { padding: 9px 10px !important; }
  .hero-premium .trust-row.trust-row-compact .trust-item strong { font-size: 13px; }
  .hero-premium .trust-row.trust-row-compact .trust-item small { font-size: 10px; }
}

/* ---- 2. Ciclo animado en móvil ---- */
.flow-cycle { display: none; }

.cycle-ring {
  fill: none;
  stroke: rgba(47, 102, 237, 0.26);
  stroke-width: 2;
  stroke-dasharray: 7 9;
}

.cycle-trail {
  fill: none;
  stroke: url(#cycleGradient);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 82 571.5;
  stroke-dashoffset: 82;
  opacity: 0.6;
}

.cycle-dot {
  fill: #fff;
  stroke: var(--premium-blue);
  stroke-width: 3;
  filter: drop-shadow(0 0 6px rgba(47,102,237,0.85));
}

.cycle-halo {
  fill: rgba(47, 102, 237, 0.16);
  animation: cycle-halo-beat 2s ease-in-out infinite;
}

@keyframes cycle-halo-beat {
  0%, 100% { opacity: 0.25; }
  45% { opacity: 0.75; }
}

@media (max-width: 760px) {
  .flow-diagram { isolation: isolate; }

  /* El anillo decorativo se sustituye por el SVG animado, debajo de las tarjetas */
  .flow-diagram::before,
  .flow-diagram::after { display: none; }

  .flow-cycle {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .flow-core,
  .flow-node { z-index: 2; }

  /* Realce cuando la señal llega al módulo */
  .flow-node {
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
  }
  .flow-node.is-signal {
    border-color: rgba(47, 102, 237, 0.45);
    box-shadow: 0 0 0 3px rgba(47, 102, 237, 0.12), 0 14px 28px rgba(13, 42, 86, 0.2);
  }
  .flow-node.is-signal i { color: var(--premium-green); }
}

@media (max-width: 420px) {
  .flow-cycle { transform: scale(0.97); transform-origin: center; }
}

@media (prefers-reduced-motion: reduce) {
  .cycle-trail, .cycle-halo { animation: none; }
}

/* ---- 3. Módulos: tarjetas apiladas en móvil ---- */
.module-button-after { margin-top: 26px; }
.module-button-after .btn { min-width: min(360px, 100%); }
.module-button-bottom .modules-custom-note { margin-top: 0; }

@media (max-width: 760px) {
  .modules-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 8px;
  }

  .modules-grid .module-card {
    position: sticky;
    top: calc(78px + var(--stack-i, 0) * 8px);
    min-height: 0;
    border: 1px solid #e4ebf6;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(13, 42, 86, 0.12);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }

  .modules-grid .module-card.is-stacked {
    transform: scale(calc(1 - var(--stack-i, 0) * 0.012));
    box-shadow: 0 10px 22px rgba(13, 42, 86, 0.1);
  }

  .modules-grid .module-card.is-selected {
    border-color: rgba(47, 102, 237, 0.4);
    box-shadow: 0 20px 44px rgba(13, 42, 86, 0.18);
  }

  .modules-grid .module-card .more-pill { position: static; display: inline-flex; margin-top: 12px; }
}

/* ---- 4. TotallIA: lista de ventajas alineada en móvil ---- */
@media (max-width: 1180px) {
  .ai-grid-v3 .ai-copy { text-align: center; }
  .ai-feature-list { max-width: 560px; margin-inline: auto; }
  .ai-feature-list li {
    align-items: flex-start;
    padding: 14px 16px;
    text-align: left;
  }
  .ai-feature-icon { margin-top: 1px; }
  .ai-feature-list strong { line-height: 1.3; }
}

@media (max-width: 860px) {
  .ai-feature-list { gap: 9px; margin-bottom: 22px; }
  .ai-feature-list li { gap: 12px; padding: 13px 14px; }
  .ai-feature-icon { width: 36px; height: 36px; border-radius: 11px; font-size: 14px; }
  .ai-feature-list strong { font-size: 14px; }
  .ai-feature-list small { font-size: 12px; line-height: 1.4; }
  .ai-grid-v3 .ai-copy > p:not(.ai-copy-note) { margin-bottom: 20px; }
  .ai-copy-note { text-align: center; }
  .ai-section .btn-ia-white { width: 100%; justify-content: center; }
}

/* El SVG del ciclo debe ganarle a la regla que oculta los svg del diagrama */
.flow-diagram svg.flow-cycle { display: none; }
@media (max-width: 760px) {
  .flow-diagram svg.flow-cycle {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
  }
}

/* TotallIA — titular y nota en móvil */
@media (max-width: 860px) {
  .ai-copy h2 { font-size: 30px; line-height: 1.14; letter-spacing: -0.03em; }
  .ai-grid-v3 .ai-copy > p:not(.ai-copy-note) { font-size: 15px; line-height: 1.6; }
  .ai-copy-note {
    max-width: 100%;
    margin-top: 14px;
    font-size: 12.5px;
    line-height: 1.55;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 400px) {
  .ai-copy h2 { font-size: 27px; }
}

/* Nota final de TotallIA (gana a la regla base de .ai-copy > p) */
.ai-grid-v3 .ai-copy p.ai-copy-note {
  margin: 16px 0 0;
  color: rgba(214,226,246,0.55);
  font-size: 12.5px;
  line-height: 1.55;
}
@media (max-width: 860px) {
  .ai-grid-v3 .ai-copy p.ai-copy-note {
    padding-inline: 8px;
    font-size: 12px;
    text-align: center;
  }
}

/* Diagrama de escritorio: el SVG y las tarjetas comparten la misma escala,
   así vuelven a verse todas las líneas y el punto viaja hasta cada módulo. */
@media (min-width: 761px) {
  .flow-diagram {
    width: min(600px, 100%);
    min-height: 0;
    margin-inline: auto;
    aspect-ratio: 600 / 430;
  }
}

/* ==========================================================
   v6 — Ciclo unificado (escritorio y móvil) + menú al ras
   ========================================================== */

/* ---------- Diagrama en formato ciclo en TODOS los tamaños ---------- */
.flow-diagram {
  position: relative;
  display: block !important;
  width: min(540px, 100%);
  min-height: 0 !important;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  grid-template-columns: none !important;
  transform: none !important;
  isolation: isolate;
}

.flow-diagram > svg:not(.flow-cycle) { display: none !important; }
.flow-diagram::before,
.flow-diagram::after { display: none !important; }

.flow-diagram svg.flow-cycle {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block !important;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  transform: none;
}

.cycle-spokes {
  fill: none;
  stroke: rgba(47, 102, 237, 0.24);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 5 6;
}

.cycle-ring {
  stroke: rgba(47, 102, 237, 0.24);
  stroke-width: 2;
  stroke-dasharray: 6 8;
}

/* Núcleo y módulos sobre el anillo */
.flow-core,
.flow-node {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.flow-core {
  width: 148px;
  height: 148px;
  flex-direction: column;
  padding: 0;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 22px 46px rgba(13, 42, 86, 0.14);
}
.flow-core > span { width: 54px; height: 54px; margin-bottom: 8px; border-radius: 16px; }
.flow-core strong { font-size: 16px; }
.flow-core small { font-size: 9px; }

.flow-node {
  display: flex;
  width: 126px;
  height: 66px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  border: 1px solid rgba(31, 75, 137, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(13, 42, 86, 0.12);
  color: #314760;
  font-size: 12.5px;
  font-weight: 820;
  line-height: 1.2;
  text-align: center;
  transition: box-shadow 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
.flow-node i { font-size: 17px; }
.flow-node span { display: block; }

.flow-core:hover,
.flow-node:hover { transform: translate(-50%, -50%); box-shadow: 0 14px 30px rgba(13, 42, 86, 0.12); }

/* Posiciones sobre la circunferencia (R = 38 %) */
.flow-node[data-cycle="1"] { left: 50%;   top: 12%; }
.flow-node[data-cycle="2"] { left: 79.7%; top: 26.3%; }
.flow-node[data-cycle="3"] { left: 87.1%; top: 58.5%; }
.flow-node[data-cycle="4"] { left: 66.5%; top: 84.2%; }
.flow-node[data-cycle="5"] { left: 33.5%; top: 84.2%; }
.flow-node[data-cycle="6"] { left: 12.9%; top: 58.5%; }
.flow-node[data-cycle="7"] { left: 20.3%; top: 26.3%; }

/* Módulo que recibe la señal */
.flow-node.is-signal {
  border-color: rgba(47, 102, 237, 0.45);
  color: #16213a;
  box-shadow: 0 0 0 4px rgba(47, 102, 237, 0.1), 0 18px 34px rgba(13, 42, 86, 0.18);
}
.flow-node.is-signal i { color: var(--premium-green) !important; }

.cycle-dot { r: 6; }

/* Tarjeta contenedora: dos columnas cómodas */
.integration-map {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 40px;
}

@media (max-width: 1080px) {
  .integration-map { grid-template-columns: 1fr; }
  .flow-diagram { width: min(500px, 100%); }
}

@media (max-width: 760px) {
  .flow-diagram { width: min(370px, 100%); }
  .flow-core { width: 108px; height: 108px; border-radius: 26px; }
  .flow-core > span { width: 42px; height: 42px; margin-bottom: 6px; border-radius: 13px; }
  .flow-core strong { font-size: 13.5px; }
  .flow-core small { font-size: 8px; }
  .flow-node {
    width: 88px;
    height: 60px;
    gap: 4px;
    border-radius: 16px;
    font-size: 10.5px;
  }
  .flow-node i { font-size: 15px; }
  .integration-map { gap: 24px; padding: 30px 16px; }
}

@media (max-width: 400px) {
  .flow-node { width: 78px; height: 55px; font-size: 9.5px; }
  .flow-node i { font-size: 13px; }
  .flow-core { width: 94px; height: 94px; }
  .flow-core strong { font-size: 12px; }
}

/* ---------- Menú pegado arriba, sin franja blanca ---------- */
html { scroll-padding-top: 104px; }

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 120;
  padding: 12px 0;
  border: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  backdrop-filter: none;
}

.site-header .nav-wrap {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 16px 40px rgba(4, 16, 40, 0.28);
}

.site-header.is-scrolled { padding: 8px 0; }
.site-header.is-scrolled .nav-wrap {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 44px rgba(7, 27, 67, 0.16);
}

/* El hero sube y queda debajo del menú flotante */
.hero-premium { padding-top: 146px; }

@media (max-width: 1080px) {
  .hero-premium { padding-top: 128px; }
}

@media (max-width: 780px) {
  .site-header { padding: 9px 0; }
  .hero-premium { padding-top: 104px; }
  html { scroll-padding-top: 92px; }
  .main-nav { top: calc(100% - 6px) !important; left: 15px !important; right: 15px !important; }
}

/* Proporción de la tarjeta del flujo */
.flow-diagram { width: min(560px, 100%); }
.integration-map { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); gap: 44px; padding: 44px 46px; }
@media (max-width: 1080px) { .integration-map { grid-template-columns: 1fr; padding: 38px 30px; } }

/* Arriba del todo: barra pegada al borde. Al bajar: pastilla flotante. */
.site-header { padding: 0; transition: padding 0.3s ease; }

.site-header:not(.is-scrolled) .container { width: 100%; }

.site-header:not(.is-scrolled) .nav-wrap {
  height: 74px;
  padding: 0 clamp(16px, 4vw, 46px);
  border: 0;
  border-bottom: 1px solid rgba(220, 231, 246, 0.7);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 26px rgba(4, 16, 40, 0.16);
}

.site-header.is-scrolled { padding: 9px 0; }
.site-header.is-scrolled .container { width: min(100% - 30px, var(--container)); }
.site-header.is-scrolled .nav-wrap {
  height: 64px;
  padding: 0 18px;
  border: 1px solid rgba(222, 231, 244, 0.88);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 44px rgba(7, 27, 67, 0.18);
}

.hero-premium { padding-top: 122px; }
html { scroll-padding-top: 96px; }

@media (max-width: 1080px) { .hero-premium { padding-top: 112px; } }

@media (max-width: 780px) {
  .site-header { padding: 0; }
  .site-header:not(.is-scrolled) .nav-wrap { height: 64px; padding: 0 16px; }
  .site-header.is-scrolled { padding: 8px 0; }
  .site-header.is-scrolled .container { width: calc(100% - 22px); }
  .site-header.is-scrolled .nav-wrap { height: 58px; padding: 0 13px; }
  .hero-premium { padding-top: 92px; }
  html { scroll-padding-top: 84px; }
}

/* Menú desplegable en móvil: sólido y compacto */
@media (max-width: 900px) {
  .main-nav {
    top: calc(100% + 6px) !important;
    right: 15px !important;
    left: 15px !important;
    padding: 8px !important;
    gap: 2px !important;
    border: 1px solid rgba(222, 231, 244, 0.9) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 22px 48px rgba(7, 27, 67, 0.22) !important;
    backdrop-filter: none !important;
  }
  .main-nav a {
    padding: 13px 14px !important;
    border-radius: 10px;
    color: #33455e;
    font-size: 15px;
  }
  .main-nav a:hover,
  .main-nav a.is-active { background: #f2f7ff; }
  .main-nav a::after { display: none; }
  .site-header.is-scrolled .main-nav { right: 11px !important; left: 11px !important; }
}

/* ==========================================================
   v7 — Menú de ancho completo, sin transformación al bajar
   ========================================================== */
.site-header,
.site-header.is-scrolled {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 120;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  backdrop-filter: none;
  transition: none;
}

.site-header .container,
.site-header.is-scrolled .container {
  width: 100% !important;
  max-width: none;
}

.site-header .nav-wrap,
.site-header.is-scrolled .nav-wrap {
  height: 74px;
  padding: 0 clamp(16px, 4vw, 46px);
  gap: 22px;
  border: 0;
  border-bottom: 1px solid rgba(219, 230, 245, 0.75);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 2px 10px rgba(6, 20, 48, 0.06);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Al desplazar sólo cambia la sombra: nada se mueve ni cambia de tamaño */
.site-header.is-scrolled .nav-wrap {
  border-bottom-color: rgba(213, 226, 244, 0.9);
  box-shadow: 0 10px 30px rgba(6, 20, 48, 0.14);
}

.hero-premium { padding-top: 118px; }
html { scroll-padding-top: 90px; }

@media (max-width: 1080px) {
  .hero-premium { padding-top: 110px; }
}

@media (max-width: 780px) {
  .site-header .nav-wrap,
  .site-header.is-scrolled .nav-wrap {
    height: 64px;
    padding: 0 16px;
    gap: 14px;
  }
  .hero-premium { padding-top: 90px; }
  html { scroll-padding-top: 78px; }
}

@media (max-width: 900px) {
  .main-nav,
  .site-header.is-scrolled .main-nav {
    top: calc(100% + 8px) !important;
    right: 14px !important;
    left: 14px !important;
  }
}

/* ==========================================================
   v8 — Cierre del hero en móvil, mucho más compacto
   ========================================================== */
@media (max-width: 900px) {
  .hero-premium { padding-bottom: 40px; }
  .hero-premium .hero-grid { row-gap: 18px; }

  /* La maqueta deja de arrastrar aire arriba y abajo */
  .hero-premium .dashboard-scene { padding: 18px 0 6px !important; }
  .hero-premium .dashboard-demo-label { top: 0; }

  /* Indicadores: una sola barra de tres celdas */
  .hero-premium .trust-row.trust-row-compact {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(255,255,255,0.13) !important;
    border-radius: 15px !important;
    background: rgba(255,255,255,0.055) !important;
  }

  .hero-premium .trust-row.trust-row-compact .trust-item {
    display: flex !important;
    width: auto !important;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 7px !important;
    border: 0 !important;
    border-right: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 0 !important;
    background: none !important;
    text-align: left !important;
  }
  .hero-premium .trust-row.trust-row-compact .trust-item:last-child {
    grid-column: auto;
    border-right: 0 !important;
  }

  .hero-premium .trust-row.trust-row-compact .trust-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    border-radius: 9px;
    font-size: 11px;
  }
  .hero-premium .trust-row.trust-row-compact .trust-item > span { min-width: 0; }
  .hero-premium .trust-row.trust-row-compact .trust-item strong {
    font-size: 13px;
    line-height: 1.15;
  }
  .hero-premium .trust-row.trust-row-compact .trust-item small {
    margin-top: 1px;
    font-size: 9px;
    line-height: 1.2;
    white-space: nowrap;
  }

  /* Sello: pegado a los indicadores, sin hueco */
  .hero-seal {
    max-width: 100%;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 11.5px;
  }
  .hero-seal i { font-size: 11px; }
}

@media (max-width: 360px) {
  .hero-premium .trust-row.trust-row-compact .trust-item { gap: 6px; padding: 10px 5px !important; }
  .hero-premium .trust-row.trust-row-compact .trust-icon { width: 23px; height: 23px; border-radius: 8px; font-size: 10px; }
  .hero-premium .trust-row.trust-row-compact .trust-item strong { font-size: 11.5px; }
  .hero-premium .trust-row.trust-row-compact .trust-item small { font-size: 8px; }
  .hero-seal { font-size: 10.5px; }
}

/* En teléfonos las tres celdas van centradas en columna: nada se corta */
@media (max-width: 430px) {
  .hero-premium .trust-row.trust-row-compact .trust-item {
    flex-direction: column;
    gap: 5px;
    padding: 11px 4px !important;
    text-align: center !important;
  }
  .hero-premium .trust-row.trust-row-compact .trust-icon {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    font-size: 11px;
  }
  .hero-premium .trust-row.trust-row-compact .trust-item > span { text-align: center; }
  .hero-premium .trust-row.trust-row-compact .trust-item strong { font-size: 13px; }
  .hero-premium .trust-row.trust-row-compact .trust-item small { font-size: 9px; }
}

@media (max-width: 340px) {
  .hero-premium .trust-row.trust-row-compact .trust-item strong { font-size: 11.5px; }
  .hero-premium .trust-row.trust-row-compact .trust-item small { font-size: 8px; }
}

/* ==========================================================
   v9 — Menú compacto flotante SIEMPRE (arriba y al bajar)
   ========================================================== */
.site-header,
.site-header.is-scrolled {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 120;
  padding: 10px 0 !important;
  border: 0 !important;
  background: transparent !important;
  backdrop-filter: none;
  transition: none;
}

.site-header .container,
.site-header.is-scrolled .container {
  width: min(100% - 30px, var(--container)) !important;
  max-width: none;
}

.site-header .nav-wrap,
.site-header.is-scrolled .nav-wrap {
  height: 62px;
  padding: 0 18px;
  gap: 20px;
  border: 1px solid rgba(226, 234, 247, 0.9);
  border-bottom: 1px solid rgba(226, 234, 247, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 12px 32px rgba(4, 16, 40, 0.22);
  transition: box-shadow 0.3s ease;
}

/* Al bajar sólo se acentúa la sombra: la barra no cambia de tamaño ni de forma */
.site-header.is-scrolled .nav-wrap {
  box-shadow: 0 16px 40px rgba(4, 16, 40, 0.26);
}

.brand, .brand img { width: 152px; }

.hero-premium { padding-top: 112px; }
html { scroll-padding-top: 96px; }

@media (max-width: 1080px) {
  .hero-premium { padding-top: 106px; }
}

@media (max-width: 780px) {
  .site-header,
  .site-header.is-scrolled { padding: 9px 0 !important; }
  .site-header .container,
  .site-header.is-scrolled .container { width: calc(100% - 22px) !important; }
  .site-header .nav-wrap,
  .site-header.is-scrolled .nav-wrap {
    height: 56px;
    padding: 0 14px;
    gap: 12px;
    border-radius: 14px;
  }
  .brand, .brand img { width: 128px; }
  .hero-premium { padding-top: 86px; }
  html { scroll-padding-top: 82px; }
}

@media (max-width: 900px) {
  .main-nav,
  .site-header.is-scrolled .main-nav {
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: 0 !important;
  }
}

/* El desplegable móvil se alinea con la pastilla del menú */
@media (max-width: 900px) {
  .main-nav,
  .site-header.is-scrolled .main-nav {
    top: calc(100% + 8px) !important;
    right: 11px !important;
    left: 11px !important;
  }
}

/* Redondeo un poco más marcado en la pastilla del menú */
.site-header .nav-wrap,
.site-header.is-scrolled .nav-wrap { border-radius: 18px; }

@media (max-width: 780px) {
  .site-header .nav-wrap,
  .site-header.is-scrolled .nav-wrap { border-radius: 16px; }
}

/* ==========================================================
   Corrección: reglas antiguas de :not(.is-scrolled) seguían
   forzando barra cuadrada de ancho completo arriba del todo.
   ========================================================== */
.site-header:not(.is-scrolled),
.site-header.is-scrolled {
  padding: 10px 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.site-header:not(.is-scrolled) .container,
.site-header.is-scrolled .container {
  width: min(100% - 30px, var(--container)) !important;
}

.site-header:not(.is-scrolled) .nav-wrap,
.site-header.is-scrolled .nav-wrap {
  height: 62px !important;
  padding: 0 18px !important;
  gap: 20px;
  border: 1px solid rgba(226, 234, 247, 0.9) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 12px 32px rgba(4, 16, 40, 0.22);
}

.site-header.is-scrolled .nav-wrap {
  box-shadow: 0 16px 40px rgba(4, 16, 40, 0.26);
}

@media (max-width: 780px) {
  .site-header:not(.is-scrolled),
  .site-header.is-scrolled { padding: 9px 0 !important; }

  .site-header:not(.is-scrolled) .container,
  .site-header.is-scrolled .container { width: calc(100% - 22px) !important; }

  .site-header:not(.is-scrolled) .nav-wrap,
  .site-header.is-scrolled .nav-wrap {
    height: 56px !important;
    padding: 0 14px !important;
    gap: 12px;
    border-radius: 16px !important;
  }
}
