/* ═══════════════════════════════════════════════════════════
   CONTROLUX — Material Design 3  ·  Outfit + JetBrains Mono
   Palette: Blue · Orange · Green · Purple
═══════════════════════════════════════════════════════════ */

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

/* ─── MD3 Color Tokens ──────────────────────────────────── */
:root {
  /* Primary — Blue (brand) */
  --md-primary:           #1565C0;
  --md-on-primary:        #FFFFFF;
  --md-primary-container: #D3E4FF;
  --md-on-primary-c:      #001C3B;

  /* Secondary — Orange/Amber (fuel/energy) */
  --md-secondary:         #E65100;
  --md-on-secondary:      #FFFFFF;
  --md-secondary-c:       #FFDBCB;
  --md-on-secondary-c:    #3A1300;

  /* Tertiary — Green (SAT/compliance) */
  --md-tertiary:          #388E3C;
  --md-on-tertiary:       #FFFFFF;
  --md-tertiary-c:        #C8E6C9;
  --md-on-tertiary-c:     #003909;

  /* Quaternary — Purple (AI) */
  --md-quaternary:        #7B1FA2;
  --md-quaternary-c:      #F3E5F5;
  --md-on-quaternary-c:   #2A0043;

  /* Surface */
  --md-surface:           #FAFBFF;
  --md-surface-2:         #F0F4FF;
  --md-surface-variant:   #DFE2EB;
  --md-on-surface:        #1A1C20;
  --md-on-surface-v:      #43474E;
  --md-outline:           #73777F;
  --md-outline-v:         #C3C6CF;

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

  /* Elevation shadows (MD3 tonal) */
  --elev-1: 0 1px 3px rgba(26,28,32,0.1), 0 1px 2px rgba(26,28,32,0.06);
  --elev-2: 0 2px 6px rgba(26,28,32,0.1), 0 1px 4px rgba(26,28,32,0.08);
  --elev-3: 0 4px 12px rgba(26,28,32,0.12), 0 2px 6px rgba(26,28,32,0.08);

  /* Layout */
  --section-gap: 96px;
  --inner-max:   1200px;
  --inner-pad:   32px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  /* Layer scale */
  --z-background: -1;
  --z-content: 1;
  --z-navbar: 1000;
  --z-overlay: 2000;
  --z-floating: 9900;
  --z-chat: 9999;
  --z-announcement: 12000;

  /* Floating action system */
  --float-gap: 20px;
  --float-edge: 20px;
  --float-bottom: 20px;
  --float-right: 20px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  background: var(--md-surface);
  color: var(--md-on-surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.announcement-open {
  overflow: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
strong { font-weight: 600; }
sup { font-size: 0.55em; vertical-align: super; color: var(--md-outline); font-weight: 400; }

/* ─── Scroll reveal ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Shared section layout ─────────────────────────────── */
section { padding: var(--section-gap) 0; }

.section-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 var(--inner-pad);
}

.section-header { margin-bottom: 56px; }

.section-h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--md-on-surface);
  margin-top: 12px;
}

.section-sub {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--md-on-surface-v);
  line-height: 1.65;
}

/* ─── Chips / Labels ─────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chip--blue   { background: var(--md-primary-container); color: var(--md-on-primary-c); }
.chip--orange { background: var(--md-secondary-c);       color: var(--md-on-secondary-c); }
.chip--green  { background: var(--md-tertiary-c);         color: var(--md-on-tertiary-c); }
.chip--purple { background: var(--md-quaternary-c);       color: var(--md-on-quaternary-c); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn-filled {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--md-primary);
  color: var(--md-on-primary);
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--elev-1);
}
.btn-filled:hover  { box-shadow: var(--elev-3); transform: translateY(-1px); }
.btn-filled:active { transform: scale(0.97); }

.btn-tonal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--md-primary-container);
  color: var(--md-on-primary-c);
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-tonal:hover  { background: #c0d8ff; }
.btn-tonal:active { transform: scale(0.97); }

.btn-lg { padding: 13px 28px; font-size: 0.95rem; }

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 20px;
  border-radius: var(--radius-md);
  padding: 14px 24px;
}


/* ═══════════════════════════════════════════════════════════
   HEADER — MD3 Top App Bar
═══════════════════════════════════════════════════════════ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-navbar);
  background: rgba(250, 251, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--md-outline-v);
  box-shadow: var(--elev-1);
  transition: background 0.3s ease;
}

.header-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 var(--inner-pad);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-icon { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; }

.logo-words { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name  { font-size: 0.95rem; font-weight: 800; letter-spacing: 0.06em; color: var(--md-primary); }
.logo-sub   { font-size: 0.62rem; color: var(--md-outline); letter-spacing: 0.02em; font-weight: 400; }

nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-link {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--md-on-surface-v);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover  { color: var(--md-primary); background: var(--md-primary-container); }
.nav-link.active { color: var(--md-primary); background: var(--md-primary-container); font-weight: 600; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--md-on-surface);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}


/* ═══════════════════════════════════════════════════════════
   HERO — Split layout
═══════════════════════════════════════════════════════════ */
.hero-section {
  padding-top: 68px;
  background: linear-gradient(160deg, #EBF3FF 0%, #F0F7FF 40%, #FFF8F0 100%);
  min-height: 100dvh;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 60px var(--inner-pad) 60px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy { max-width: 560px; }

.hero-h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--md-on-surface);
  margin: 14px 0 18px;
}
.hero-h1 em {
  font-style: normal;
  color: var(--md-primary);
}

.hero-p {
  font-size: 1.05rem;
  color: var(--md-on-surface-v);
  line-height: 1.7;
  max-width: 50ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 28px;
  border-top: 1px solid var(--md-outline-v);
}

.hstat { display: flex; flex-direction: column; padding-right: 28px; }

.hstat-divider {
  width: 1px;
  height: 36px;
  background: var(--md-outline-v);
  margin-right: 28px;
  flex-shrink: 0;
}

.hstat-n {
  font-family: var(--mono);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--md-primary);
  line-height: 1;
}
.hstat-u { font-size: 1rem; color: var(--md-secondary); }

.hstat-l {
  font-size: 0.72rem;
  color: var(--md-outline);
  margin-top: 4px;
}

.hero-illustration { position: relative; }
.hero-svg { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(21,101,192,0.15)); }


/* ═══════════════════════════════════════════════════════════
   DEMO — Cinematic scroll story
═══════════════════════════════════════════════════════════ */
.demo-section {
  position: relative;
  overflow: clip;
  padding: var(--section-gap) 0 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(21, 101, 192, 0.22), transparent 26%),
    radial-gradient(circle at 14% 86%, rgba(230, 81, 0, 0.13), transparent 28%),
    linear-gradient(180deg, #071525 0%, #101D2D 100%);
}

.demo-section .section-header { padding-bottom: 32px; }
.demo-section .section-h2     { color: #fff; max-width: 850px; }
.demo-section .section-sub    { color: rgba(255,255,255,0.64); }

.cinema-wrap {
  position: relative;
  min-height: 720vh;
}

.cinema-sticky {
  position: sticky;
  top: 68px;
  min-height: calc(100dvh - 68px);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 64px) var(--inner-pad);
}

.cinema-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at calc(25% + var(--mx, 0) * 1px) calc(20% + var(--my, 0) * 1px), rgba(79, 195, 247, 0.18), transparent 28%),
    radial-gradient(circle at 78% 68%, rgba(46, 139, 87, 0.14), transparent 30%),
    linear-gradient(120deg, rgba(7, 21, 37, 0.94), rgba(16, 35, 60, 0.86));
}

.cinema-bg::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(100deg, transparent 10%, rgba(79,195,247,0.10) 42%, transparent 58%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 110px);
  transform: translate3d(calc(var(--scroll-progress, 0) * -80px), calc(var(--scroll-progress, 0) * 48px), 0);
  animation: lightSweep 12s ease-in-out infinite alternate;
}

.cinema-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.75) 1px, transparent 1.5px);
  background-size: 68px 68px;
  transform: translate3d(0, calc(var(--scroll-progress, 0) * -120px), 0);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 78%, transparent);
}

@keyframes lightSweep {
  from { transform: translate3d(-4%, -2%, 0) rotate(-2deg); }
  to { transform: translate3d(4%, 3%, 0) rotate(2deg); }
}

.cinema-particle,
.cinema-wave {
  position: absolute;
  pointer-events: none;
}

.cinema-particle {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(79, 195, 247, 0.65);
  box-shadow: 0 0 26px rgba(79, 195, 247, 0.7);
  animation: particleDrift 9s ease-in-out infinite;
}

.particle-a { left: 18%; top: 24%; }
.particle-b { right: 22%; top: 34%; animation-delay: -2s; background: rgba(46, 139, 87, 0.72); }
.particle-c { left: 66%; bottom: 16%; animation-delay: -5s; background: rgba(230, 81, 0, 0.64); }

@keyframes particleDrift {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.35; }
  50% { transform: translate3d(18px, -26px, 0); opacity: 0.9; }
}

.cinema-wave {
  width: 54vw;
  height: 54vw;
  border: 1px solid rgba(79,195,247,0.14);
  border-radius: 50%;
  filter: blur(0.2px);
  transform: rotateX(70deg) rotateZ(calc(var(--scroll-progress, 0) * 80deg));
}

.wave-a { left: -16vw; bottom: -26vw; }
.wave-b { right: -20vw; top: -22vw; border-color: rgba(230,81,0,0.12); }

.cinema-stage {
  position: relative;
  width: min(1180px, 100%);
  height: min(70dvh, 720px);
  min-height: 530px;
  border-radius: 34px;
  transform-style: preserve-3d;
  perspective: 1500px;
}

.cinema-stage::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.36), rgba(79,195,247,0.22), rgba(230,81,0,0.15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 20;
  pointer-events: none;
}

.cinema-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.10), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035));
  box-shadow:
    0 40px 110px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.18);
  opacity: 0;
  transform: scale(1.08) translate3d(0, 34px, 0);
  filter: blur(20px);
  transition:
    opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, filter, transform;
}

.cinema-scene.is-active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1) translate3d(0, 0, 0);
  z-index: 2;
}

.cinema-scene.is-exiting {
  opacity: 0;
  filter: blur(18px);
  transform: scale(0.96) translate3d(0, -22px, 0);
}

.scene-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translate3d(calc(var(--mx, 0) * -0.016px), calc(var(--my, 0) * -0.016px), 0) scale(1.05);
}

.scene-back {
  background:
    radial-gradient(circle at 22% 20%, rgba(79,195,247,0.18), transparent 34%),
    radial-gradient(circle at 80% 78%, rgba(230,81,0,0.12), transparent 30%),
    linear-gradient(135deg, rgba(7,21,37,0.32), rgba(255,255,255,0.04));
}

.scene-art {
  position: relative;
  width: min(760px, 76%);
  height: min(430px, 58%);
  transform: translate3d(calc(var(--mx, 0) * 0.026px), calc(var(--my, 0) * 0.026px), 48px) scale(calc(1 + var(--local-progress, 0) * 0.035));
  transform-style: preserve-3d;
  transition: transform 300ms ease-out;
}

.scene-art::before {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -24px;
  height: 32px;
  border-radius: 999px;
  background: rgba(0,0,0,0.30);
  filter: blur(20px);
  transform: rotate(-2deg);
}

.scene-caption {
  position: absolute;
  left: clamp(20px, 4vw, 56px);
  bottom: clamp(20px, 4vw, 48px);
  width: min(440px, calc(100% - 40px));
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 20px;
  background: rgba(5, 11, 24, 0.48);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}

.scene-caption span {
  display: block;
  color: #4FC3F7;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.scene-caption strong {
  display: block;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.18;
  font-weight: 700;
  text-wrap: balance;
}

.cinema-progress {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: min(420px, 58vw);
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.12);
}

.cinema-progress span {
  display: block;
  height: 100%;
  width: calc(var(--scroll-progress, 0) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, #4FC3F7, #2E8B57, #E65100);
}

.cinema-steps {
  position: relative;
  z-index: 4;
  width: min(460px, calc(100% - 40px));
  margin-left: max(32px, calc((100vw - var(--inner-max)) / 2 + var(--inner-pad)));
  margin-top: -560vh;
  padding-bottom: 90vh;
  pointer-events: none;
}

.cinema-step {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.42;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.cinema-step.is-active {
  opacity: 1;
  transform: translateY(0);
}

.cinema-step span {
  font-family: var(--mono);
  color: rgba(79, 195, 247, 0.8);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.cinema-step h3 {
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  text-wrap: balance;
}

.cinema-step p {
  color: rgba(255,255,255,0.70);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 40ch;
}

.station-canopy {
  position: absolute;
  left: 18%;
  top: 24%;
  width: 54%;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1976D2, #0D47A1);
  box-shadow: 0 22px 70px rgba(21,101,192,0.35);
  transform: rotateX(58deg) rotateZ(-10deg);
}

.station-column {
  position: absolute;
  top: 32%;
  width: 18px;
  height: 160px;
  border-radius: 8px;
  background: linear-gradient(#4FC3F7, #1565C0);
  transform: skewY(-8deg);
}

.column-left { left: 28%; }
.column-right { left: 62%; }

.station-pump {
  position: absolute;
  top: 52%;
  width: 76px;
  height: 118px;
  border-radius: 16px;
  background: linear-gradient(160deg, #1E88E5, #0D47A1);
  box-shadow: 0 28px 55px rgba(0,0,0,0.24);
}

.station-pump span {
  position: absolute;
  left: 14px;
  top: 18px;
  width: 48px;
  height: 42px;
  border-radius: 9px;
  background: #061222;
  box-shadow: inset 0 0 0 1px rgba(79,195,247,0.24);
}

.pump-left { left: 34%; }
.pump-right { left: 50%; transform: scale(0.86) translateY(12px); opacity: 0.76; }

.station-car {
  position: absolute;
  right: 13%;
  bottom: 18%;
  width: 190px;
  height: 54px;
  border-radius: 24px 42px 18px 18px;
  background: linear-gradient(135deg, #FF8F00, #E65100);
  box-shadow: 0 22px 46px rgba(230,81,0,0.25);
}

.station-car::before {
  content: '';
  position: absolute;
  left: 38px;
  top: -30px;
  width: 96px;
  height: 42px;
  border-radius: 32px 38px 4px 4px;
  background: rgba(79,195,247,0.36);
  border: 1px solid rgba(255,255,255,0.2);
}

.data-arc {
  position: absolute;
  border: 1px dashed rgba(79,195,247,0.55);
  border-radius: 999px;
  transform: rotate(-12deg);
}

.arc-one { left: 18%; top: 18%; width: 58%; height: 42%; }
.arc-two { left: 26%; top: 30%; width: 48%; height: 32%; opacity: 0.5; }

.dash-glass {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(18px);
  box-shadow: 0 34px 72px rgba(0,0,0,0.26);
}

.dash-main {
  left: 13%;
  top: 7%;
  width: 62%;
  height: 74%;
  border-radius: 28px;
  padding: 28px;
  transform: rotateY(-14deg) rotateX(8deg);
}

.dash-side {
  right: 10%;
  top: 22%;
  width: 230px;
  height: 126px;
  border-radius: 22px;
  padding: 22px;
  transform: translateZ(84px) rotateY(-10deg);
}

.dash-side strong {
  display: block;
  color: #fff;
  font-family: var(--mono);
  font-size: 1.35rem;
  margin-bottom: 7px;
}

.dash-side span { color: rgba(255,255,255,0.58); }

.dash-header-line,
.dash-metric-row span {
  display: block;
  border-radius: 999px;
  background: rgba(79,195,247,0.32);
}

.dash-header-line { width: 42%; height: 12px; margin-bottom: 28px; }
.dash-metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.dash-metric-row span { height: 62px; background: rgba(255,255,255,0.10); }
.dash-chart-bars { display: flex; align-items: end; gap: 12px; height: 150px; }
.dash-chart-bars i { flex: 1; border-radius: 8px 8px 0 0; background: linear-gradient(#4FC3F7, #1565C0); }
.dash-chart-bars i:nth-child(1) { height: 52%; }
.dash-chart-bars i:nth-child(2) { height: 72%; }
.dash-chart-bars i:nth-child(3) { height: 46%; }
.dash-chart-bars i:nth-child(4) { height: 88%; background: linear-gradient(#4ADE80, #2E8B57); }
.dash-chart-bars i:nth-child(5) { height: 66%; }
.dash-chart-bars i:nth-child(6) { height: 78%; }
.dash-orbit { position: absolute; inset: 4% 20%; border: 1px solid rgba(79,195,247,0.18); border-radius: 999px; transform: rotateX(70deg) rotateZ(-18deg); }

.road-line {
  position: absolute;
  left: 6%;
  right: 4%;
  bottom: 22%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.32), transparent);
}

.tanker-truck {
  position: absolute;
  left: 20%;
  top: 38%;
  width: 430px;
  height: 150px;
  transform: rotateY(-18deg) rotateX(6deg);
}

.tanker-tank {
  position: absolute;
  left: 0;
  top: 24px;
  width: 280px;
  height: 96px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.75), rgba(79,195,247,0.30) 42%, rgba(21,101,192,0.58)),
    linear-gradient(#DCEEFF, #7DB6E8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 28px 60px rgba(0,0,0,0.28);
}

.tanker-cab {
  position: absolute;
  right: 34px;
  top: 42px;
  width: 118px;
  height: 78px;
  border-radius: 18px 28px 16px 12px;
  background: linear-gradient(135deg, #1976D2, #0D47A1);
}

.tanker-cab::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 12px;
  width: 58px;
  height: 28px;
  border-radius: 9px;
  background: rgba(79,195,247,0.42);
}

.wheel {
  position: absolute;
  bottom: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, #90CAF9 0 28%, #061222 29% 100%);
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
}

.wheel-one { left: 60px; }
.wheel-two { left: 238px; }
.wheel-three { right: 58px; }

.route-node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #4FC3F7;
  box-shadow: 0 0 0 10px rgba(79,195,247,0.10), 0 0 34px rgba(79,195,247,0.7);
}

.node-one { left: 16%; top: 22%; }
.node-two { left: 52%; top: 16%; background: #2E8B57; }
.node-three { right: 14%; bottom: 24%; background: #E65100; }

.tank {
  position: absolute;
  bottom: 20%;
  width: 150px;
  height: 230px;
  border-radius: 76px 76px 18px 18px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.60), transparent 28%),
    linear-gradient(180deg, #5EA9E8, #1565C0);
  overflow: hidden;
  box-shadow: 0 30px 62px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.35);
}

.tank::before {
  content: '';
  position: absolute;
  inset: 16px 10px auto;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.32);
}

.tank span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54%;
  background: linear-gradient(180deg, rgba(255,143,0,0.72), rgba(230,81,0,0.62));
}

.tank-one { left: 20%; transform: scale(0.92); }
.tank-two { left: 42%; height: 270px; }
.tank-three { right: 18%; transform: scale(0.82); opacity: 0.72; }

.sensor-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,195,247,0.8), transparent);
}

.line-one { left: 18%; right: 14%; top: 32%; transform: rotate(-8deg); }
.line-two { left: 22%; right: 20%; top: 52%; transform: rotate(7deg); }
.sensor-chip {
  position: absolute;
  right: 18%;
  top: 28%;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.86);
  color: #1565C0;
  font-family: var(--mono);
  font-weight: 700;
  box-shadow: 0 24px 55px rgba(0,0,0,0.22);
}

.sat-document {
  position: absolute;
  left: 28%;
  top: 8%;
  width: 270px;
  height: 350px;
  border-radius: 24px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 34px 80px rgba(0,0,0,0.32);
  transform: rotateY(-16deg) rotateZ(-4deg);
  overflow: hidden;
}

.sat-band {
  height: 70px;
  background: linear-gradient(135deg, #2E8B57, #1B6D42);
}

.sat-document span {
  display: block;
  height: 9px;
  margin: 22px 30px;
  border-radius: 999px;
  background: rgba(46,139,87,0.20);
}

.sat-document span:nth-child(3) { width: 62%; }
.sat-document span:nth-child(4) { width: 78%; }
.sat-document span:nth-child(5) { width: 54%; }

.sat-seal {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2E8B57;
  color: white;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sat-feed {
  position: absolute;
  right: 20%;
  top: 32%;
  width: 210px;
  border-radius: 24px;
  padding: 22px;
  background: rgba(7,21,37,0.58);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 26px 65px rgba(0,0,0,0.28);
}

.sat-feed strong {
  display: inline-flex;
  margin: 0 8px 14px 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(46,139,87,0.22);
  color: #B9F6CA;
  font-family: var(--mono);
}

.sat-feed small {
  display: block;
  color: rgba(255,255,255,0.72);
}

.ai-core {
  position: absolute;
  left: 42%;
  top: 24%;
  width: 150px;
  height: 150px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 34% 30%, rgba(255,255,255,0.80), transparent 18%),
    linear-gradient(135deg, #4FC3F7, #1565C0 54%, #2E8B57);
  box-shadow: 0 0 80px rgba(79,195,247,0.34), 0 36px 72px rgba(0,0,0,0.28);
  transform: rotate(10deg);
}

.ai-core::before,
.ai-core::after {
  content: '';
  position: absolute;
  inset: -36px;
  border: 1px solid rgba(79,195,247,0.22);
  border-radius: 54px;
  transform: rotate(18deg);
}

.ai-core::after {
  inset: -72px;
  border-color: rgba(46,139,87,0.18);
  transform: rotate(-22deg);
}

.ai-node {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #4FC3F7;
  box-shadow: 0 0 36px rgba(79,195,247,0.8);
}

.node-a { left: 22%; top: 28%; }
.node-b { right: 20%; top: 22%; background: #2E8B57; }
.node-c { left: 30%; bottom: 20%; background: #E65100; }

.analytics-panel {
  position: absolute;
  right: 16%;
  bottom: 16%;
  width: 260px;
  height: 150px;
  border-radius: 24px;
  padding: 22px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(16px);
  box-shadow: 0 28px 66px rgba(0,0,0,0.28);
}

.analytics-panel span {
  display: block;
  height: 8px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(79,195,247,0.32);
}

.analytics-panel span:nth-child(1) { width: 80%; }
.analytics-panel span:nth-child(2) { width: 54%; }
.analytics-panel span:nth-child(3) { width: 68%; }
.analytics-panel strong { color: white; font-size: 1.05rem; }

.infra-grid {
  position: absolute;
  inset: 10% 8%;
  border-radius: 40px;
  background:
    linear-gradient(rgba(79,195,247,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,195,247,0.10) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: rotateX(62deg) rotateZ(-18deg);
}

.infra-server {
  position: absolute;
  width: 130px;
  height: 210px;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.18), transparent 32%),
    linear-gradient(180deg, #143A66, #071525);
  border: 1px solid rgba(79,195,247,0.18);
  box-shadow: 0 34px 70px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.12);
}

.infra-server::before {
  content: '';
  position: absolute;
  left: 22px;
  right: 22px;
  top: 28px;
  height: 8px;
  border-radius: 999px;
  background: #4FC3F7;
  box-shadow: 0 34px 0 rgba(79,195,247,0.36), 0 68px 0 rgba(46,139,87,0.42);
}

.server-one { left: 24%; top: 20%; transform: rotateY(-18deg); }
.server-two { left: 43%; top: 12%; transform: translateZ(80px); }
.server-three { right: 22%; top: 24%; transform: rotateY(18deg); }

.energy-ring {
  position: absolute;
  left: 28%;
  right: 20%;
  top: 15%;
  bottom: 10%;
  border-radius: 50%;
  border: 1px solid rgba(230,81,0,0.28);
  transform: rotateX(70deg) rotateZ(20deg);
  box-shadow: 0 0 70px rgba(230,81,0,0.18);
}


/* ═══════════════════════════════════════════════════════════
   FACTURALUX WHATSAPP DEMO
═══════════════════════════════════════════════════════════ */
.whatsapp-demo-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(96px, 12vw, 150px) 0 clamp(110px, 14vw, 170px);
  background:
    radial-gradient(circle at 16% 18%, rgba(37, 211, 102, 0.14), transparent 28%),
    radial-gradient(circle at 84% 24%, rgba(21, 101, 192, 0.24), transparent 32%),
    linear-gradient(135deg, #061222 0%, #0A1C31 48%, #071525 100%);
}

.whatsapp-bg,
.whatsapp-bg span {
  position: absolute;
  pointer-events: none;
}

.whatsapp-bg {
  inset: 0;
  z-index: -1;
}

.wa-light {
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.42;
  animation: waGlowDrift 11s ease-in-out infinite alternate;
}

.wa-light--one {
  left: -12vw;
  top: 8%;
  background: rgba(37, 211, 102, 0.25);
}

.wa-light--two {
  right: -14vw;
  bottom: 4%;
  background: rgba(79, 195, 247, 0.22);
  animation-delay: -4s;
}

.wa-grid {
  inset: 0;
  opacity: 0.13;
  background:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(900px) rotateX(58deg) translateY(12%);
  transform-origin: bottom center;
}

@keyframes waGlowDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(36px, -22px, 0) scale(1.08); }
}

.whatsapp-demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  gap: clamp(48px, 7vw, 92px);
  align-items: center;
}

.whatsapp-demo-copy .section-h2 {
  max-width: 720px;
  color: #FFFFFF;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.whatsapp-demo-copy .section-sub {
  max-width: 56ch;
  color: rgba(255,255,255,0.68);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.facturalux-mark {
  display: inline-flex;
  margin-bottom: 18px;
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.facturalux-mark span {
  color: #25D366;
}

.invoice-progress {
  width: min(520px, 100%);
  height: 4px;
  margin: 34px 0 28px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}

.invoice-progress span {
  display: block;
  width: var(--invoice-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #25D366, #4FC3F7);
  box-shadow: 0 0 24px rgba(37, 211, 102, 0.38);
  transition: width 0.55s cubic-bezier(0.16,1,0.3,1);
}

.invoice-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 690px;
}

.invoice-step-card {
  position: relative;
  min-height: 126px;
  padding: 18px 18px 17px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.055);
  box-shadow: 0 18px 46px rgba(0,0,0,0.13);
  opacity: 0.62;
  transform: translateY(0);
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.16,1,0.3,1),
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.invoice-step-card.is-active {
  opacity: 1;
  transform: translateY(-4px);
  border-color: rgba(37,211,102,0.36);
  background:
    linear-gradient(135deg, rgba(37,211,102,0.16), rgba(79,195,247,0.08)),
    rgba(255,255,255,0.07);
  box-shadow: 0 24px 60px rgba(0,0,0,0.20);
}

.invoice-step-card span {
  display: block;
  color: #25D366;
  font-family: var(--mono);
  font-size: 0.72rem;
  margin-bottom: 12px;
}

.invoice-step-card h3 {
  color: #FFFFFF;
  font-size: 0.98rem;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.invoice-step-card p {
  color: rgba(255,255,255,0.58);
  font-size: 0.82rem;
  line-height: 1.52;
}

.invoice-demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.demo-control {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.86);
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.22s cubic-bezier(0.16,1,0.3,1),
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.demo-control:hover {
  transform: translateY(-2px);
  border-color: rgba(37,211,102,0.42);
  background: rgba(37,211,102,0.12);
  color: #FFFFFF;
}

.demo-control:active {
  transform: translateY(0) scale(0.98);
}

.demo-control--primary {
  background: #25D366;
  border-color: #25D366;
  color: #061222;
  box-shadow: 0 16px 38px rgba(37,211,102,0.22);
}

.phone-demo-wrap {
  position: relative;
  min-height: 760px;
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.phone-aura {
  position: absolute;
  width: min(92%, 510px);
  height: min(92%, 660px);
  border-radius: 44px;
  background:
    radial-gradient(circle at 50% 20%, rgba(37,211,102,0.28), transparent 34%),
    radial-gradient(circle at 72% 72%, rgba(79,195,247,0.22), transparent 36%);
  filter: blur(18px);
  opacity: 0.9;
  animation: phoneAura 7s ease-in-out infinite;
}

@keyframes phoneAura {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.78; }
  50% { transform: translateY(-14px) scale(1.03); opacity: 1; }
}

.phone-mockup {
  position: relative;
  width: min(390px, 86vw);
  height: 720px;
  padding: 15px;
  border-radius: 46px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.28), rgba(255,255,255,0.05) 24%, rgba(0,0,0,0.78)),
    #07111F;
  box-shadow:
    0 46px 100px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.28);
  transform: rotateY(-9deg) rotateX(4deg);
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: rotateY(-9deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(-6deg) rotateX(3deg) translateY(-12px); }
}

.phone-topbar {
  position: absolute;
  top: 24px;
  left: 34px;
  right: 34px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.72);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.phone-topbar div {
  display: flex;
  gap: 4px;
}

.phone-topbar i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.58);
}

.chat-app {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 0%, rgba(37,211,102,0.14), transparent 28%),
    linear-gradient(180deg, #0B1B2C 0%, #081523 100%);
  border: 1px solid rgba(255,255,255,0.08);
}

.chat-app::before {
  content: '';
  position: absolute;
  inset: 72px 0 70px;
  opacity: 0.06;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.9) 1px, transparent 1.5px);
  background-size: 22px 22px;
}

.chat-header {
  position: relative;
  z-index: 2;
  height: 76px;
  padding: 23px 18px 12px;
  display: grid;
  grid-template-columns: 18px 42px 1fr 20px;
  gap: 11px;
  align-items: center;
  background: rgba(6,18,34,0.86);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
}

.chat-back {
  width: 10px;
  height: 10px;
  border-left: 2px solid rgba(255,255,255,0.72);
  border-bottom: 2px solid rgba(255,255,255,0.72);
  transform: rotate(45deg);
}

.chat-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #061222;
  font-weight: 900;
  font-size: 0.82rem;
}

.chat-header strong {
  display: block;
  color: #FFFFFF;
  font-size: 0.9rem;
  line-height: 1.1;
}

.chat-header span {
  color: rgba(37,211,102,0.82);
  font-size: 0.72rem;
}

.chat-verified {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 18px rgba(37,211,102,0.5);
}

.chat-stream {
  position: relative;
  z-index: 1;
  height: calc(100% - 142px);
  overflow-y: auto;
  padding: 18px 14px 28px;
  scroll-behavior: smooth;
}

.chat-stream::-webkit-scrollbar {
  width: 4px;
}

.chat-stream::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}

.chat-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 11px;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  filter: blur(6px);
  animation: chatIn 0.48s cubic-bezier(0.16,1,0.3,1) forwards;
}

.chat-message--user {
  align-items: flex-end;
}

@keyframes chatIn {
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.bubble {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 16px 16px 16px 5px;
  background: #162C40;
  color: rgba(255,255,255,0.92);
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
  font-size: 0.84rem;
  line-height: 1.42;
}

.chat-message--user .bubble {
  border-radius: 16px 16px 5px 16px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #04130D;
}

.message-meta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  color: rgba(255,255,255,0.42);
  font-size: 0.63rem;
}

.chat-message--user .message-meta {
  color: rgba(37,211,102,0.74);
}

.checks {
  letter-spacing: -0.16em;
  color: #4FC3F7;
}

.typing-bubble {
  display: inline-flex;
  gap: 5px;
  padding: 13px 15px;
  border-radius: 16px 16px 16px 5px;
  background: #162C40;
}

.typing-bubble span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.62);
  animation: typingDot 1s ease-in-out infinite;
}

.typing-bubble span:nth-child(2) { animation-delay: 0.14s; }
.typing-bubble span:nth-child(3) { animation-delay: 0.28s; }

@keyframes typingDot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 84%;
  margin-top: 7px;
}

.quick-action {
  border: 1px solid rgba(37,211,102,0.34);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(37,211,102,0.10);
  color: #B9F6CA;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.quick-action:hover,
.quick-action.is-tapped {
  transform: translateY(-2px);
  background: rgba(37,211,102,0.18);
}

.summary-card,
.fiscal-card,
.file-card {
  width: min(88%, 285px);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}

.summary-card h4,
.fiscal-card h4 {
  color: #FFFFFF;
  font-size: 0.86rem;
  margin-bottom: 10px;
}

.summary-row,
.fiscal-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.66);
  font-size: 0.72rem;
}

.summary-row strong,
.fiscal-row strong {
  color: #FFFFFF;
  text-align: right;
  font-family: var(--mono);
  font-size: 0.7rem;
}

.file-list {
  display: grid;
  gap: 8px;
  width: min(88%, 285px);
}

.file-card {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: filePop 0.45s cubic-bezier(0.16,1,0.3,1) forwards;
}

@keyframes filePop {
  from { transform: translateY(10px) scale(0.94); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.file-icon {
  width: 38px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #4FC3F7, #1565C0);
  color: #FFFFFF;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 800;
}

.file-card:nth-child(2) .file-icon {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.file-card strong {
  display: block;
  color: #FFFFFF;
  font-size: 0.82rem;
}

.file-card span {
  color: rgba(255,255,255,0.54);
  font-size: 0.7rem;
}

.success-pulse {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.success-pulse::before {
  content: '';
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 0 8px rgba(37,211,102,0.12);
  animation: successPulse 1.2s ease-in-out infinite;
}

@keyframes successPulse {
  0%, 100% { transform: scale(0.86); }
  50% { transform: scale(1.05); }
}

.chat-composer {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.42);
  font-size: 0.78rem;
}

.composer-icons {
  display: flex;
  gap: 7px;
}

.composer-icons i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}


/* ═══════════════════════════════════════════════════════════
   ANNOUNCEMENT MODAL SYSTEM
═══════════════════════════════════════════════════════════ */
.announcement-provider {
  position: relative;
  z-index: var(--z-announcement);
}

.announcement-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(3, 10, 20, 0.58);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  opacity: 0;
  transition: opacity 0.42s cubic-bezier(0.16,1,0.3,1);
}

.announcement-provider.is-open .announcement-backdrop {
  opacity: 1;
}

.announcement-modal {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 34px);
  pointer-events: none;
}

.announcement-modal[hidden],
.announcement-backdrop[hidden] {
  display: none;
}

.announcement-shell {
  position: relative;
  width: min(1180px, 100%);
  max-height: min(840px, calc(100dvh - 34px));
  overflow: hidden;
  border-radius: 34px;
  pointer-events: auto;
  background:
    radial-gradient(circle at 74% 18%, rgba(37,211,102,0.16), transparent 34%),
    radial-gradient(circle at 18% 78%, rgba(79,195,247,0.16), transparent 30%),
    linear-gradient(135deg, rgba(8, 25, 44, 0.96), rgba(5, 14, 27, 0.98));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 48px 140px rgba(0,0,0,0.46), inset 0 1px 0 rgba(255,255,255,0.12);
  transform: translateY(22px) scale(0.96);
  filter: blur(14px);
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.16,1,0.3,1),
    opacity 0.45s ease,
    filter 0.55s cubic-bezier(0.16,1,0.3,1);
}

.announcement-provider.is-open .announcement-shell {
  transform: translateY(0) scale(1);
  filter: blur(0);
  opacity: 1;
}

.announcement-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 72% 38%, #000, transparent 72%);
}

.announcement-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease;
}

.announcement-close:hover {
  transform: rotate(90deg);
  background: rgba(255,255,255,0.14);
}

.announcement-close span {
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
}

.announcement-close span:first-child { transform: rotate(45deg); }
.announcement-close span:last-child { transform: rotate(-45deg); }

.announcement-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.88fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 58px);
}

.announcement-content[hidden] {
  display: none;
}

.announcement-copy {
  position: relative;
  z-index: 2;
}

.announcement-badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(37,211,102,0.14);
  color: #B9F6CA;
  border: 1px solid rgba(37,211,102,0.26);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.announcement-copy h2 {
  color: #FFFFFF;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.038em;
  max-width: 620px;
  margin-bottom: 18px;
  text-wrap: balance;
}

.announcement-copy p {
  max-width: 54ch;
  color: rgba(255,255,255,0.68);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
}

.announcement-benefits {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 28px 0 30px;
}

.announcement-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.82);
  font-size: 0.94rem;
}

.announcement-benefits li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 7px;
  background:
    linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 0 18px rgba(37,211,102,0.26);
}

.announcement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.announcement-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.24s cubic-bezier(0.16,1,0.3,1),
    background 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.announcement-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(37,211,102,0.34);
  background: rgba(255,255,255,0.12);
}

.announcement-cta--primary {
  background: #25D366;
  border-color: #25D366;
  color: #061222;
  box-shadow: 0 18px 40px rgba(37,211,102,0.22);
}

.announcement-cta--whatsapp {
  background: rgba(21,101,192,0.22);
  border-color: rgba(79,195,247,0.28);
}

.announcement-cta--ghost {
  color: rgba(255,255,255,0.72);
}

.announcement-snooze {
  margin-top: 18px;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255,255,255,0.48);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 5px;
  transition: color 0.2s ease;
}

.announcement-snooze:hover {
  color: rgba(255,255,255,0.78);
}

.announcement-demo {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: grid;
  place-items: center;
}

.announcement-cover {
  position: absolute;
  inset: auto -12% 2% auto;
  width: 72%;
  border-radius: 28px;
  overflow: hidden;
  opacity: 0.22;
  filter: blur(0.3px) saturate(1.08);
  transform: rotate(-4deg);
  box-shadow: 0 30px 90px rgba(0,0,0,0.32);
}

.announcement-cover img {
  width: 100%;
  height: auto;
}

.announcement-phone-wrap {
  min-height: 610px;
  width: 100%;
}

.announcement-phone {
  width: min(330px, 78vw);
  height: 610px;
  transform: rotateY(-8deg) rotateX(4deg);
}

.announcement-phone .chat-header {
  height: 72px;
}

.announcement-phone .chat-stream {
  height: calc(100% - 136px);
}

.announcement-demo-controls {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: min(360px, 92%);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(6,18,34,0.72);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(16px);
}

.announcement-demo-controls .demo-control {
  min-height: 34px;
  padding: 0 8px;
  font-size: 0.7rem;
}

.system-delivery-demo {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
}

.system-announcement-cover {
  position: absolute;
  inset: auto -12% 0 auto;
  width: 72%;
  border-radius: 28px;
  overflow: hidden;
  opacity: 0.16;
  filter: saturate(1.05);
  transform: rotate(4deg);
  box-shadow: 0 34px 90px rgba(0,0,0,0.32);
}

.system-announcement-cover img {
  width: 100%;
  height: auto;
}

.system-demo-panel {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  border-radius: 30px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(235,244,255,0.78)),
    rgba(255,255,255,0.86);
  border: 1px solid rgba(255,255,255,0.68);
  box-shadow: 0 40px 100px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.92);
  transform: rotateY(-6deg) rotateX(3deg);
}

.system-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.system-panel-top span {
  display: block;
  color: rgba(7,21,37,0.54);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.system-panel-top strong {
  color: #071525;
  font-size: 1.12rem;
}

.system-status-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(21,101,192,0.10);
  color: #1565C0;
  font-size: 0.72rem;
  font-weight: 800;
  transition: background 0.28s ease, color 0.28s ease;
}

.system-status-pill.is-loading {
  background: rgba(230,81,0,0.12);
  color: #E65100;
}

.system-status-pill.is-success {
  background: rgba(37,211,102,0.16);
  color: #128C7E;
}

.invoice-preview-card,
.delivery-form-card,
.delivery-output-card {
  border-radius: 22px;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(21,101,192,0.10);
  box-shadow: 0 16px 38px rgba(7,21,37,0.08);
}

.invoice-preview-card {
  padding: 16px;
  margin-bottom: 12px;
}

.invoice-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(7,21,37,0.08);
}

.invoice-preview-head span {
  color: #1565C0;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.invoice-preview-head strong {
  color: #071525;
  font-family: var(--mono);
}

.invoice-preview-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 12px;
  align-items: start;
}

.invoice-preview-grid span {
  color: rgba(7,21,37,0.48);
  font-size: 0.72rem;
  font-weight: 700;
}

.invoice-preview-grid strong {
  color: rgba(7,21,37,0.84);
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere;
}

.delivery-form-card {
  padding: 16px;
  margin-bottom: 12px;
}

.delivery-form-card label {
  display: block;
  color: rgba(7,21,37,0.58);
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.delivery-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 5px;
  border-radius: 16px;
  background: rgba(21,101,192,0.08);
}

.delivery-toggle button {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(7,21,37,0.58);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.delivery-toggle button.is-active {
  color: #071525;
  background: #FFFFFF;
  box-shadow: 0 10px 24px rgba(7,21,37,0.09);
}

.delivery-toggle button:hover {
  transform: translateY(-1px);
}

.delivery-field {
  margin-top: 12px;
  min-height: 58px;
  padding: 10px 13px;
  border-radius: 15px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(21,101,192,0.10);
  transition: opacity 0.28s ease, transform 0.28s ease, filter 0.28s ease;
}

.delivery-field.is-changing {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(6px);
}

.delivery-field span {
  display: block;
  color: rgba(7,21,37,0.48);
  font-size: 0.7rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.delivery-field strong {
  display: block;
  color: #071525;
  font-family: var(--mono);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.delivery-send-button {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #1565C0, #0A4FA3);
  color: #FFFFFF;
  font-family: var(--font);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(21,101,192,0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.delivery-send-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(21,101,192,0.28);
}

.delivery-send-button.is-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #061222;
}

.delivery-send-button.is-loading {
  pointer-events: none;
  opacity: 0.82;
}

.delivery-output-card {
  min-height: 134px;
  padding: 15px;
  overflow: hidden;
}

.delivery-output-empty {
  height: 102px;
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(7,21,37,0.44);
  font-size: 0.82rem;
  font-weight: 700;
}

.delivery-success {
  display: grid;
  gap: 10px;
  animation: systemOutputIn 0.42s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes systemOutputIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.delivery-success-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #071525;
  font-weight: 900;
}

.delivery-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #25D366;
  position: relative;
  box-shadow: 0 0 0 8px rgba(37,211,102,0.12);
}

.delivery-check::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 5px;
  width: 7px;
  height: 11px;
  border-right: 2px solid #061222;
  border-bottom: 2px solid #061222;
  transform: rotate(45deg);
}

.mail-preview,
.whatsapp-preview {
  border-radius: 16px;
  padding: 13px;
  background: rgba(7,21,37,0.05);
  border: 1px solid rgba(7,21,37,0.08);
}

.mail-preview span,
.whatsapp-preview span {
  display: block;
  color: rgba(7,21,37,0.52);
  font-size: 0.72rem;
  margin-bottom: 7px;
}

.mail-preview strong,
.whatsapp-preview strong {
  display: block;
  color: #071525;
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.attachment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(21,101,192,0.10);
  color: #1565C0;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 900;
}

.attachment-chip.is-whatsapp {
  background: rgba(37,211,102,0.15);
  color: #128C7E;
}

.system-demo-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 12px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(7,21,37,0.06);
  border: 1px solid rgba(7,21,37,0.08);
}

.system-demo-controls .demo-control {
  min-height: 34px;
  padding: 0 8px;
  font-size: 0.7rem;
  color: #071525;
  border-color: rgba(7,21,37,0.10);
  background: rgba(255,255,255,0.66);
}

.system-demo-controls .demo-control--primary {
  background: #1565C0;
  border-color: #1565C0;
  color: #FFFFFF;
}


/* ═══════════════════════════════════════════════════════════
   SERVICIOS — Bento Grid colorido
═══════════════════════════════════════════════════════════ */
#servicios { background: var(--md-surface); }

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

.svc-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--elev-2);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--elev-3);
}

.svc-illustration {
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}
.svc-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

.svc-body {
  padding: 24px 28px 28px;
  flex: 1;
}
.svc-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.svc-body p {
  font-size: 0.88rem;
  line-height: 1.65;
}

/* Card color themes */
.svc-card--blue   .svc-illustration { background: #DBEAFE; }
.svc-card--blue   .svc-body         { background: #EFF6FF; }
.svc-card--blue   .svc-body h3      { color: var(--md-primary); }
.svc-card--blue   .svc-body p       { color: #1E40AF; }

.svc-card--indigo .svc-illustration { background: #E0E7FF; }
.svc-card--indigo .svc-body         { background: #EEF2FF; }
.svc-card--indigo .svc-body h3      { color: #3730A3; }
.svc-card--indigo .svc-body p       { color: #4338CA; }

.svc-card--green  .svc-illustration { background: #DCFCE7; }
.svc-card--green  .svc-body         { background: #F0FDF4; }
.svc-card--green  .svc-body h3      { color: #166534; }
.svc-card--green  .svc-body p       { color: #15803D; }

.svc-card--orange .svc-illustration { background: #FFEDD5; }
.svc-card--orange .svc-body         { background: #FFF7ED; }
.svc-card--orange .svc-body h3      { color: #9A3412; }
.svc-card--orange .svc-body p       { color: #C2410C; }


/* ═══════════════════════════════════════════════════════════
   PRODUCTOS — Dashboard mockup + Grid
═══════════════════════════════════════════════════════════ */
#productos { background: var(--md-surface-2); }

/* CSS Dashboard mockup */
.dashboard-mockup {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-3);
  overflow: hidden;
  margin-bottom: 48px;
  border: 1px solid var(--md-outline-v);
}

.dash-chrome {
  background: #F1F5F9;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--md-outline-v);
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--md-outline-v);
}
.dash-dots span:nth-child(1) { background: #FF5F57; }
.dash-dots span:nth-child(2) { background: #FFBD2E; }
.dash-dots span:nth-child(3) { background: #28C840; }

.dash-url {
  background: white;
  border: 1px solid var(--md-outline-v);
  border-radius: var(--radius-sm);
  padding: 4px 14px;
  font-size: 0.75rem;
  color: var(--md-outline);
  font-family: var(--mono);
  flex: 1;
  max-width: 320px;
}

.dash-body {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 200px;
}

.dash-sidebar {
  background: var(--md-primary);
  padding: 16px 0;
}
.dash-menu-item {
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  cursor: default;
  transition: background 0.15s ease, color 0.15s ease;
}
.dash-menu-item.active {
  background: rgba(255,255,255,0.15);
  color: white;
}

.dash-content { padding: 20px; }

.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.dash-kpi {
  background: var(--md-primary-container);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi-label { font-size: 0.68rem; color: var(--md-on-primary-c); font-weight: 500; opacity: 0.7; }
.kpi-value { font-family: var(--mono); font-size: 1rem; font-weight: 600; color: var(--md-primary); }

.dash-chart-area {
  background: #F8FAFF;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 100px;
}
.dash-bar {
  flex: 1;
  height: var(--h);
  background: var(--md-primary);
  border-radius: 4px 4px 0 0;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.dash-bar:nth-child(4) { opacity: 1; }

/* Modules grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.module-card {
  background: white;
  border: 1px solid var(--md-outline-v);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 0.2s ease, transform 0.25s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}
.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--md-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.module-card:hover {
  border-color: var(--md-primary);
  transform: translateY(-3px);
}
.module-card:hover::before { transform: scaleX(1); }

.mod-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--md-primary);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.module-card h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--md-on-surface);
  margin-bottom: 6px;
}
.module-card p {
  font-size: 0.78rem;
  color: var(--md-on-surface-v);
  line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════
   IA — Inteligencia Artificial
═══════════════════════════════════════════════════════════ */
#ia { background: var(--md-surface); }

.ia-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
}

.ia-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--elev-2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease;
}
.ia-card:hover { transform: translateY(-4px); box-shadow: var(--elev-3); }

.ia-visual { flex-shrink: 0; }
.ia-visual svg { width: 100%; height: auto; display: block; }

.ia-card--primary .ia-visual { background: var(--md-quaternary-c); }
.ia-card--primary .ia-body   { background: #FAF5FF; }
.ia-card--teal .ia-visual    { background: #E0F2F1; }
.ia-card--teal .ia-body      { background: #F0FDFA; }

.ia-body { padding: 24px 28px 28px; flex: 1; }

.ia-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: white;
  border: 1px solid var(--md-outline-v);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--md-on-surface-v);
  margin-bottom: 14px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
.badge-dot--green { background: #22C55E; }
.badge-dot--amber { background: #F59E0B; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

.ia-card--primary .ia-body h3 { color: var(--md-on-quaternary-c); }
.ia-card--teal    .ia-body h3 { color: #134E4A; }

.ia-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.ia-body p {
  font-size: 0.87rem;
  line-height: 1.68;
}
.ia-card--primary .ia-body p { color: #4A1D96; }
.ia-card--teal    .ia-body p { color: #134E4A; }

.ia-terminal {
  margin-top: 20px;
  background: rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.tline {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--md-on-quaternary-c);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tprompt { color: var(--md-quaternary); font-weight: 700; }
.tsuccess { color: #166534; }
.tcursor {
  color: var(--md-quaternary);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.ia-list { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.ia-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: #134E4A;
  font-weight: 500;
}
.ia-list li svg { color: #10B981; flex-shrink: 0; }


/* ═══════════════════════════════════════════════════════════
   CUMPLIMIENTO — Green hero section
═══════════════════════════════════════════════════════════ */
#cumplimiento { padding: 0; }

.compliance-hero {
  background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 50%, #E0F7FA 100%);
  padding: var(--section-gap) 0;
}

.compliance-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: center;
}

.compliance-visual svg { width: 100%; max-width: 340px; height: auto; margin: 0 auto; display: block; }

.compliance-desc {
  font-size: 0.95rem;
  color: #2E7D32;
  line-height: 1.65;
  margin-top: 14px;
  margin-bottom: 32px;
}

.compliance-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.compliance-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(56,142,60,0.15);
  font-size: 0.9rem;
  color: #1B5E20;
  line-height: 1.5;
  font-weight: 500;
}
.compliance-checklist li:first-child { border-top: 1px solid rgba(56,142,60,0.15); }

.ccheck {
  width: 28px;
  height: 28px;
  background: var(--md-tertiary);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}


/* ═══════════════════════════════════════════════════════════
   SOBRE NOSOTROS
═══════════════════════════════════════════════════════════ */
#sobre-nosotros { background: white; }

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--md-on-surface-v);
  line-height: 1.75;
  margin-top: 14px;
  max-width: 48ch;
}

.about-features {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--md-outline-v);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.af-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--md-on-surface-v);
  font-weight: 500;
}
.af-item svg { color: var(--md-primary); flex-shrink: 0; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.stat-card:hover { transform: translateY(-4px); }

.stat-card--blue   { background: var(--md-primary-container); }
.stat-card--orange { background: var(--md-secondary-c); }
.stat-card--green  { background: var(--md-tertiary-c); }
.stat-card--purple { background: var(--md-quaternary-c); }

.sc-num {
  font-family: var(--mono);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  display: block;
}
.stat-card--blue   .sc-num { color: var(--md-primary); }
.stat-card--orange .sc-num { color: var(--md-secondary); }
.stat-card--green  .sc-num { color: var(--md-tertiary); }
.stat-card--purple .sc-num { color: var(--md-quaternary); }

.sc-u { font-size: 1.2rem; }

.sc-label {
  font-size: 0.8rem;
  line-height: 1.45;
  font-weight: 500;
  display: block;
}
.stat-card--blue   .sc-label { color: var(--md-on-primary-c); }
.stat-card--orange .sc-label { color: var(--md-on-secondary-c); }
.stat-card--green  .sc-label { color: var(--md-on-tertiary-c); }
.stat-card--purple .sc-label { color: var(--md-on-quaternary-c); }


/* ═══════════════════════════════════════════════════════════
   VENTAJAS
═══════════════════════════════════════════════════════════ */
#ventajas { background: var(--md-surface-2); }

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.adv-card {
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s ease;
  box-shadow: var(--elev-1);
}
.adv-card:hover { transform: translateY(-5px); box-shadow: var(--elev-3); }

.adv-card--blue   { background: var(--md-primary-container); }
.adv-card--green  { background: var(--md-tertiary-c); }
.adv-card--orange { background: var(--md-secondary-c); }
.adv-card--purple { background: var(--md-quaternary-c); }

.adv-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.adv-card--blue   .adv-icon { background: var(--md-primary); color: white; }
.adv-card--green  .adv-icon { background: var(--md-tertiary); color: white; }
.adv-card--orange .adv-icon { background: var(--md-secondary); color: white; }
.adv-card--purple .adv-icon { background: var(--md-quaternary); color: white; }

.adv-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.adv-card--blue   h3 { color: var(--md-on-primary-c); }
.adv-card--green  h3 { color: var(--md-on-tertiary-c); }
.adv-card--orange h3 { color: var(--md-on-secondary-c); }
.adv-card--purple h3 { color: var(--md-on-quaternary-c); }

.adv-card p { font-size: 0.82rem; line-height: 1.6; }
.adv-card--blue   p { color: #1E3A5F; }
.adv-card--green  p { color: #14532D; }
.adv-card--orange p { color: #431407; }
.adv-card--purple p { color: #3B0764; }


/* ═══════════════════════════════════════════════════════════
   CONTACTO
═══════════════════════════════════════════════════════════ */
#contacto { background: white; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

.contact-desc {
  font-size: 0.95rem;
  color: var(--md-on-surface-v);
  line-height: 1.65;
  margin-top: 14px;
  margin-bottom: 24px;
  max-width: 38ch;
}

.contact-visual { margin-top: 24px; }
.contact-visual svg { width: 100%; max-width: 280px; height: auto; border-radius: var(--radius-lg); }

.contact-cards { display: flex; flex-direction: column; gap: 12px; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--md-surface-2);
  border: 1px solid var(--md-outline-v);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-card:hover { border-color: var(--md-primary); transform: translateX(4px); }

.cc-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cc-icon--blue   { background: var(--md-primary-container); color: var(--md-primary); }
.cc-icon--green  { background: var(--md-tertiary-c);         color: var(--md-tertiary); }
.cc-icon--orange { background: var(--md-secondary-c);         color: var(--md-secondary); }

.cc-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--md-outline);
  font-weight: 600;
  margin-bottom: 3px;
}
.cc-value {
  font-size: 0.9rem;
  color: var(--md-on-surface);
  font-weight: 500;
}
a.cc-value:hover { color: var(--md-primary); }
.cc-muted { color: var(--md-on-surface-v); font-weight: 400; }


/* ═══════════════════════════════════════════════════════════
   FAB — Extended
═══════════════════════════════════════════════════════════ */
.floating-action-stack {
  position: fixed;
  right: var(--float-right);
  bottom: var(--float-bottom);
  z-index: var(--z-floating);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--float-gap);
  max-width: calc(100vw - (var(--float-edge) * 2));
  transition:
    right 0.42s cubic-bezier(0.16,1,0.3,1),
    bottom 0.42s cubic-bezier(0.16,1,0.3,1),
    transform 0.42s cubic-bezier(0.16,1,0.3,1);
}

.floating-action-stack.is-brevo-aware::before {
  content: '';
  width: 46px;
  height: 1px;
  margin-right: 9px;
  background: linear-gradient(90deg, transparent, rgba(21,101,192,0.32));
  opacity: 0.75;
}

.floating-action-stack.is-side-docked {
  align-items: flex-start;
}

#brevo-conversations {
  z-index: var(--z-chat);
}

.fab {
  position: relative;
  background: var(--md-primary);
  color: var(--md-on-primary);
  padding: 14px 20px;
  border-radius: 16px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(21,101,192,0.4);
  animation: popIn 0.4s cubic-bezier(0.16,1,0.3,1) 0.5s both;
  white-space: nowrap;
  transition:
    transform 0.28s cubic-bezier(0.16,1,0.3,1),
    box-shadow 0.28s ease,
    background 0.28s ease;
}
.fab:hover  { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(21,101,192,0.45); }
.fab:active { transform: scale(0.97); }

@keyframes popIn {
  from { transform: translateY(16px) scale(0.9); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}


/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
footer {
  background: var(--md-on-surface);
  padding: 28px 0;
}

.footer-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 var(--inner-pad);
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.footer-name {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.7);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-left: auto;
}

.footer-links { display: flex; gap: 20px; flex-shrink: 0; }
.footer-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: rgba(255,255,255,0.8); }


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .modules-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  :root { --section-gap: 72px; }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 48px var(--inner-pad);
    text-align: center;
  }
  .hero-copy { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-illustration { max-width: 480px; margin: 0 auto; }

  .services-bento { grid-template-columns: 1fr; }

  .ia-grid { grid-template-columns: 1fr; }

  .compliance-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .compliance-visual { display: none; }

  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-text p { max-width: 100%; }

  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-visual { display: none; }

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

@media (max-width: 768px) {
  :root { --inner-pad: 20px; }

  .floating-action-stack {
    --float-edge: 16px;
    --float-gap: 16px;
    --float-bottom: 16px;
    --float-right: 16px;
  }

  .fab {
    padding: 13px 16px;
    border-radius: 15px;
  }

  .burger { display: flex; }

  nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(250,251,255,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--md-outline-v);
    flex-direction: column;
    padding: 12px 16px;
    gap: 2px;
    z-index: 999;
    box-shadow: var(--elev-2);
  }
  nav.open { display: flex; }
  .nav-link { padding: 11px 14px; font-size: 0.95rem; }
  header .btn-filled { display: none; }

  .hero-inner { padding: 40px var(--inner-pad); }
  .hero-h1 { font-size: 2.2rem; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-body { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dash-kpi-row { grid-template-columns: 1fr; }

  .about-stats { grid-template-columns: 1fr 1fr; }

  .footer-inner { flex-wrap: wrap; gap: 14px; }
  .footer-copy  { margin-left: 0; width: 100%; order: 3; }
  .footer-links { order: 2; }
}

@media (max-width: 540px) {
  .floating-action-stack {
    --float-edge: 14px;
    --float-gap: 14px;
    --float-bottom: 14px;
    --float-right: 14px;
  }

  .fab {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    border-radius: 17px;
  }

  .fab span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .services-bento { gap: 14px; }
  .modules-grid   { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .about-stats    { grid-template-columns: 1fr; }
  .hero-h1        { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal                { opacity: 1; transform: none; transition: none; }
  .badge-dot, .tcursor   { animation: none; }
  .module-card::before   { transition: none; }
}

/* Premium SaaS motion and depth layer */
:root {
  --ink: #071525;
  --ink-2: #10233c;
  --brand-blue: #1565C0;
  --brand-blue-2: #0A4FA3;
  --brand-orange: #E65100;
  --sat-green: #2E8B57;
  --premium-shadow: 0 24px 70px rgba(7, 21, 37, 0.16);
  --premium-blue-shadow: 0 28px 80px rgba(21, 101, 192, 0.24);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 12%, rgba(21, 101, 192, 0.10), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(230, 81, 0, 0.09), transparent 26%),
    radial-gradient(circle at 82% 72%, rgba(46, 139, 87, 0.08), transparent 32%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 2000;
  background-image:
    linear-gradient(90deg, rgba(7, 21, 37, 0.55) 1px, transparent 1px),
    linear-gradient(rgba(7, 21, 37, 0.55) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
}

header {
  opacity: 0;
  transform: translateY(-18px);
  animation: navEnter 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
  border-bottom: 1px solid rgba(21, 101, 192, 0.12);
}

header.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  border-bottom-color: rgba(21, 101, 192, 0.18);
  box-shadow: 0 18px 45px rgba(7, 21, 37, 0.10);
}

@keyframes navEnter {
  to { opacity: 1; transform: translateY(0); }
}

.logo-icon {
  box-shadow: 0 12px 28px rgba(21, 101, 192, 0.25);
}

.btn-filled,
.btn-tonal,
.fab {
  will-change: transform;
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.28s ease,
    background 0.28s ease,
    color 0.28s ease;
}

.btn-filled {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-2));
  box-shadow: 0 12px 28px rgba(21, 101, 192, 0.26);
}

.btn-filled:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(21, 101, 192, 0.34);
}

.btn-tonal {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(21, 101, 192, 0.18);
  box-shadow: 0 12px 30px rgba(7, 21, 37, 0.08);
}

.btn-tonal:hover {
  background: #FFFFFF;
  box-shadow: 0 16px 36px rgba(7, 21, 37, 0.12);
  transform: translateY(-2px);
}

.hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 16%, rgba(230, 81, 0, 0.18), transparent 22%),
    radial-gradient(circle at 70% 44%, rgba(21, 101, 192, 0.20), transparent 34%),
    linear-gradient(135deg, #F7FBFF 0%, #EAF3FF 42%, #FFF8F0 100%);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 68px 0 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.84), rgba(255,255,255,0.08) 52%, rgba(21,101,192,0.10)),
    repeating-linear-gradient(90deg, rgba(21,101,192,0.07) 0 1px, transparent 1px 96px);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 84%);
}

.hero-section::after {
  content: '';
  position: absolute;
  width: min(74vw, 900px);
  height: min(74vw, 900px);
  right: -22vw;
  top: 6vh;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(21, 101, 192, 0.18), rgba(21, 101, 192, 0.04) 46%, transparent 70%);
  filter: blur(8px);
}

.hero-inner {
  max-width: 1320px;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  gap: clamp(36px, 5vw, 78px);
  perspective: 1400px;
}

.hero-copy {
  max-width: 620px;
}

.hero-h1 {
  font-size: clamp(3rem, 5.7vw, 5.65rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--ink);
}

.hero-line {
  display: block;
}

.hero-h1 em {
  color: transparent;
  background: linear-gradient(115deg, var(--brand-blue) 0%, #0A8AD8 46%, var(--sat-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 12px 24px rgba(21, 101, 192, 0.13));
}

.hero-p {
  color: rgba(16, 35, 60, 0.76);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  max-width: 58ch;
}

.hero-reveal-item,
.hero-p,
.hero-stats {
  opacity: 0;
  transform: translateY(24px);
  animation: heroReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-reveal-item:nth-child(1) { animation-delay: 0.12s; }
.hero-h1 .hero-reveal-item:nth-child(1) { animation-delay: 0.22s; }
.hero-h1 .hero-reveal-item:nth-child(2) { animation-delay: 0.34s; }
.hero-h1 .hero-reveal-item:nth-child(3) { animation-delay: 0.46s; }
.hero-p { animation-delay: 0.58s; }
.hero-actions { animation-delay: 0.70s; }
.hero-stats { animation-delay: 0.82s; }

@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero-stats {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(21, 101, 192, 0.12);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(7, 21, 37, 0.08);
  padding: 18px 20px;
  backdrop-filter: blur(20px);
}

.hstat-n,
.sc-num,
.kpi-value {
  font-variant-numeric: tabular-nums;
}

.premium-visual-stage {
  min-height: 570px;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.premium-visual-stage::before {
  content: '';
  position: absolute;
  width: 88%;
  height: 82%;
  left: 6%;
  top: 9%;
  border-radius: 46px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.24)),
    radial-gradient(circle at 72% 18%, rgba(230, 81, 0, 0.14), transparent 34%),
    radial-gradient(circle at 22% 74%, rgba(46, 139, 87, 0.13), transparent 32%);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: var(--premium-blue-shadow), inset 0 1px 0 rgba(255,255,255,0.85);
  transform: rotateX(58deg) rotateZ(-11deg) translateY(40px) translateZ(-80px);
}

.premium-visual-stage::after {
  content: '';
  position: absolute;
  width: 68%;
  height: 24px;
  bottom: 42px;
  left: 18%;
  border-radius: 999px;
  background: rgba(7, 21, 37, 0.18);
  filter: blur(20px);
  transform: rotate(-3deg);
}

.hero-svg {
  position: relative;
  z-index: 2;
  width: min(100%, 680px);
  filter: drop-shadow(0 38px 54px rgba(7, 21, 37, 0.22));
  transform: rotateX(7deg) rotateY(-13deg) rotateZ(1deg);
  transform-origin: 50% 58%;
  animation: dispenserBreath 6s ease-in-out infinite;
}

@keyframes dispenserBreath {
  0%, 100% { transform: rotateX(7deg) rotateY(-13deg) rotateZ(1deg) translateY(0) scale(1); }
  50% { transform: rotateX(8deg) rotateY(-10deg) rotateZ(0.4deg) translateY(-10px) scale(1.015); }
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(21, 101, 192, 0.16);
  border-radius: 999px;
  transform: rotateX(68deg) rotateZ(-12deg);
}

.hero-orbit--one {
  width: 76%;
  height: 76%;
  animation: orbitDrift 12s linear infinite;
}

.hero-orbit--two {
  width: 55%;
  height: 55%;
  border-color: rgba(230, 81, 0, 0.18);
  animation: orbitDrift 16s linear infinite reverse;
}

@keyframes orbitDrift {
  to { transform: rotateX(68deg) rotateZ(348deg); }
}

.floating-card {
  position: absolute;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(22px) saturate(135%);
  box-shadow: 0 24px 58px rgba(7, 21, 37, 0.16);
}

.floating-card--dashboard {
  right: 2%;
  top: 8%;
  width: min(245px, 38vw);
  border-radius: 22px;
  padding: 14px;
  animation: floatSoft 7s ease-in-out infinite;
}

.floating-card--cloud {
  left: 1%;
  bottom: 17%;
  min-width: 178px;
  border-radius: 18px;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  animation: floatSoft 8s ease-in-out 0.8s infinite;
}

.cloud-dot {
  grid-row: span 2;
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--sat-green);
  box-shadow: 0 0 0 7px rgba(46, 139, 87, 0.12);
}

.floating-card--cloud strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.floating-card--cloud small {
  color: rgba(16, 35, 60, 0.58);
  font-size: 0.72rem;
}

@keyframes floatSoft {
  0%, 100% { transform: translate3d(0, 0, 24px); }
  50% { transform: translate3d(0, -12px, 38px); }
}

.vdc-top {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.vdc-top span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(21, 101, 192, 0.25);
}

.vdc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vdc-grid div {
  padding: 10px;
  border-radius: 13px;
  background: rgba(227, 242, 253, 0.78);
}

.vdc-grid small,
.visual-cloud-card small {
  display: block;
}

.vdc-grid small {
  font-size: 0.66rem;
  color: rgba(16, 35, 60, 0.56);
  margin-bottom: 4px;
}

.vdc-grid strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--brand-blue);
}

.vdc-grid .sat-ok {
  color: var(--sat-green);
}

.vdc-bars {
  display: flex;
  align-items: end;
  gap: 7px;
  height: 62px;
  margin-top: 12px;
  padding: 10px 10px 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(7, 21, 37, 0.92), rgba(16, 35, 60, 0.86));
}

.vdc-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #4FC3F7, var(--brand-blue));
  box-shadow: 0 0 18px rgba(79, 195, 247, 0.32);
}

.section-header {
  max-width: 780px;
}

.section-h2 {
  text-wrap: balance;
}

.demo-section {
  background:
    radial-gradient(circle at 78% 10%, rgba(21, 101, 192, 0.22), transparent 26%),
    radial-gradient(circle at 18% 86%, rgba(230, 81, 0, 0.13), transparent 30%),
    linear-gradient(180deg, #071525 0%, #101D2D 100%);
}

.svc-card,
.ia-card,
.module-card,
.adv-card,
.stat-card,
.contact-card,
.dashboard-mockup {
  will-change: transform;
}

.svc-card,
.ia-card,
.dashboard-mockup {
  border: 1px solid rgba(255,255,255,0.68);
  box-shadow: var(--premium-shadow);
}

.svc-card:hover,
.ia-card:hover,
.adv-card:hover,
.stat-card:hover,
.module-card:hover {
  transform: translateY(-8px);
}

.svc-illustration svg,
.ia-visual svg,
.compliance-visual svg,
.contact-visual svg {
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-card:hover .svc-illustration svg,
.ia-card:hover .ia-visual svg {
  transform: scale(1.035) translateY(-4px);
}

#productos {
  background:
    linear-gradient(180deg, #EEF6FF 0%, #F7FAFF 100%);
}

.dashboard-mockup {
  transform: perspective(1200px) rotateX(6deg);
  transform-origin: top center;
}

.dashboard-mockup.visible .dash-bar {
  animation: barRise 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dashboard-mockup.visible .dash-bar:nth-child(2) { animation-delay: 0.08s; }
.dashboard-mockup.visible .dash-bar:nth-child(3) { animation-delay: 0.16s; }
.dashboard-mockup.visible .dash-bar:nth-child(4) { animation-delay: 0.24s; }
.dashboard-mockup.visible .dash-bar:nth-child(5) { animation-delay: 0.32s; }
.dashboard-mockup.visible .dash-bar:nth-child(6) { animation-delay: 0.40s; }
.dashboard-mockup.visible .dash-bar:nth-child(7) { animation-delay: 0.48s; }

@keyframes barRise {
  from { transform: scaleY(0.18); transform-origin: bottom; opacity: 0.2; }
  to { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
}

.module-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.82));
  box-shadow: 0 14px 32px rgba(7, 21, 37, 0.07);
}

.compliance-hero {
  background:
    radial-gradient(circle at 18% 22%, rgba(46, 139, 87, 0.16), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(21, 101, 192, 0.14), transparent 30%),
    linear-gradient(135deg, #E8F8EC 0%, #F6FBF2 48%, #EAF7FF 100%);
}

.contact-card {
  background: rgba(255,255,255,0.76);
  box-shadow: 0 14px 34px rgba(7, 21, 37, 0.07);
}

.contact-card:hover {
  transform: translateX(8px);
  box-shadow: 0 18px 42px rgba(7, 21, 37, 0.11);
}

@media (max-width: 960px) {
  .system-delivery-demo {
    min-height: 620px;
  }

  .system-demo-panel {
    transform: none;
  }

  .announcement-content {
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 34px);
    overflow-y: auto;
  }

  .announcement-copy {
    padding-right: 42px;
  }

  .announcement-demo {
    order: -1;
    min-height: 620px;
  }

  .whatsapp-demo-layout {
    grid-template-columns: 1fr;
  }

  .phone-demo-wrap {
    order: -1;
    min-height: 700px;
  }

  .phone-mockup {
    transform: rotateY(0) rotateX(0);
  }

  .invoice-step-grid {
    max-width: 100%;
  }

  .cinema-stage {
    height: 68dvh;
    min-height: 480px;
  }

  .cinema-steps {
    width: min(420px, calc(100% - 40px));
    margin-left: 20px;
  }

  .scene-art {
    width: min(680px, 88%);
  }

  .scene-caption {
    left: 20px;
    bottom: 18px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    max-width: 780px;
  }

  .hero-h1 {
    font-size: clamp(2.65rem, 10vw, 4.6rem);
  }

  .premium-visual-stage {
    min-height: 500px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .system-delivery-demo {
    min-height: 590px;
  }

  .system-demo-panel {
    width: min(520px, 100%);
    padding: 14px;
  }

  .system-announcement-cover {
    display: none;
  }

  .announcement-modal {
    padding: 0;
  }

  .announcement-shell {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .announcement-content {
    padding: 72px 20px 28px;
    gap: 20px;
    height: 100%;
  }

  .announcement-copy {
    padding-right: 0;
  }

  .announcement-copy h2 {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

  .announcement-benefits {
    grid-template-columns: 1fr;
    margin: 20px 0 22px;
  }

  .announcement-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .announcement-demo {
    min-height: 560px;
  }

  .announcement-phone {
    height: 540px;
    width: min(310px, 88vw);
    transform: none;
  }

  .announcement-cover {
    display: none;
  }

  .whatsapp-demo-section {
    padding: 82px 0 104px;
  }

  .phone-demo-wrap {
    min-height: 650px;
  }

  .phone-mockup {
    height: 650px;
  }

  .invoice-step-grid {
    grid-template-columns: 1fr;
  }

  .invoice-step-card {
    min-height: auto;
  }

  .cinema-wrap {
    min-height: 700vh;
  }

  .cinema-sticky {
    align-items: start;
    padding: 24px var(--inner-pad);
  }

  .cinema-stage {
    height: 62dvh;
    min-height: 430px;
    border-radius: 24px;
  }

  .cinema-steps {
    margin-top: -520vh;
    padding-bottom: 80vh;
  }

  .cinema-step {
    min-height: 82vh;
  }

  .scene-art {
    width: 96%;
    height: 54%;
  }

  .scene-caption {
    width: calc(100% - 32px);
    left: 16px;
    bottom: 16px;
    padding: 14px 16px;
  }

  .dash-side,
  .sat-feed,
  .analytics-panel {
    transform: none;
    right: 8%;
    width: min(230px, 44vw);
  }

  .tanker-truck {
    left: 8%;
    width: 370px;
    transform: scale(0.82) rotateY(-12deg);
    transform-origin: left center;
  }

  .tank {
    width: 120px;
    height: 200px;
  }

  .sat-document {
    left: 15%;
    transform: scale(0.82) rotateY(-10deg) rotateZ(-4deg);
    transform-origin: left center;
  }

  .infra-server {
    width: 104px;
    height: 180px;
  }

  nav {
    background: rgba(255,255,255,0.92);
  }

  .hero-section::before {
    background:
      linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,255,255,0.18)),
      repeating-linear-gradient(90deg, rgba(21,101,192,0.06) 0 1px, transparent 1px 72px);
  }

  .hero-h1 {
    font-size: clamp(2.35rem, 12vw, 3.45rem);
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: left;
  }

  .hstat {
    padding-right: 0;
  }

  .hstat-divider {
    width: 100%;
    height: 1px;
    margin-right: 0;
  }

  .premium-visual-stage {
    min-height: 420px;
  }

  .floating-card--dashboard {
    width: 210px;
    right: 0;
    top: 2%;
  }

  .floating-card--cloud {
    left: 0;
    bottom: 8%;
  }

  .premium-visual-stage::before {
    width: 94%;
    left: 3%;
  }
}

@media (max-width: 540px) {
  .system-delivery-demo {
    min-height: 560px;
  }

  .system-panel-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .invoice-preview-grid {
    grid-template-columns: 1fr;
  }

  .invoice-preview-grid strong {
    text-align: left;
  }

  .delivery-toggle {
    grid-template-columns: 1fr;
  }

  .system-demo-controls {
    grid-template-columns: repeat(2, 1fr);
  }

  .announcement-demo {
    min-height: 520px;
  }

  .announcement-phone {
    height: 500px;
    width: min(296px, 92vw);
  }

  .announcement-demo-controls {
    grid-template-columns: repeat(2, 1fr);
    bottom: 0;
  }

  .announcement-demo-controls .demo-control {
    min-height: 36px;
    font-size: 0.74rem;
  }

  .whatsapp-demo-copy .section-h2 {
    font-size: clamp(2.2rem, 12vw, 3.1rem);
  }

  .phone-demo-wrap {
    min-height: 610px;
  }

  .phone-mockup {
    width: min(350px, 94vw);
    height: 610px;
    border-radius: 38px;
    padding: 11px;
  }

  .chat-app {
    border-radius: 29px;
  }

  .chat-stream {
    padding: 16px 10px 24px;
  }

  .bubble,
  .summary-card,
  .fiscal-card,
  .file-list {
    max-width: 90%;
    width: auto;
  }

  .invoice-demo-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .demo-control {
    padding: 0 12px;
    font-size: 0.8rem;
  }

  .cinema-section .section-h2 {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .cinema-stage {
    min-height: 390px;
  }

  .cinema-step h3 {
    font-size: clamp(1.35rem, 8vw, 2.05rem);
  }

  .cinema-step p {
    font-size: 0.92rem;
  }

  .scene-caption {
    display: none;
  }

  .station-car,
  .dash-side,
  .sat-feed,
  .analytics-panel,
  .sensor-chip {
    display: none;
  }

  .scene-art {
    width: 108%;
    height: 62%;
  }

  .hero-inner {
    padding-top: 34px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-filled,
  .hero-actions .btn-tonal {
    justify-content: center;
    width: 100%;
  }

  .premium-visual-stage {
    min-height: 360px;
  }

  .floating-card {
    display: none;
  }

  .hero-svg {
    width: 112%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  header,
  .hero-reveal-item,
  .hero-p,
  .hero-stats {
    opacity: 1;
    transform: none;
  }

  .cinema-wrap {
    min-height: auto;
  }

  .cinema-sticky {
    position: relative;
    top: auto;
  }

  .cinema-scene {
    position: relative;
    opacity: 1;
    filter: none;
    transform: none;
    min-height: 420px;
    margin-bottom: 18px;
  }

  .cinema-stage {
    height: auto;
    display: grid;
    gap: 18px;
  }

  .cinema-steps,
  .cinema-progress {
    display: none;
  }

  .phone-aura,
  .phone-mockup,
  .wa-light,
  .typing-bubble span,
  .success-pulse::before,
  .announcement-shell {
    animation: none;
  }

  .announcement-shell,
  .announcement-provider.is-open .announcement-shell {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .chat-stream {
    scroll-behavior: auto;
  }
}
