/* ==========================================================================
   MOTOR IA · HIGH-END DARK ENTERPRISE DESIGN SYSTEM
   Theme: Unified Dark Mode (Deep Obsidian / Midnight Slate)
   Inspiration: Botinfy & Smart Automata standard with calm, premium finishes.
   Zero neon outer blur, zero emojis, zero em-dashes.
   ========================================================================== */

:root {
  /* Dark Base Surfaces (Obsidian & Deep Midnight) */
  --bg-page: #070e18;
  --bg-subtle: #0a1424;
  --bg-card: #0f1d32;
  --bg-card-hover: #14253e;
  --bg-card-elevated: #162842;
  --bg-darker: #050a12;

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  /* Borders & Dividers */
  --border-light: rgba(255, 255, 255, 0.09);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.18);
  --border-dark: rgba(255, 255, 255, 0.12);

  /* Primary Brand Accent (WhatsApp Emerald) */
  --brand-whatsapp: #10b981;
  --brand-whatsapp-hover: #059669;
  --brand-whatsapp-dark: #064e3b;
  --brand-light: rgba(16, 185, 129, 0.12);
  --brand-border: rgba(16, 185, 129, 0.28);

  /* WhatsApp Dark UI Specifics */
  --wa-dark-header: #1f2c34;
  --wa-dark-bg: #0b141a;
  --wa-dark-incoming: #202c33;
  --wa-dark-outgoing: #005c4b;
  --wa-dark-input: #2a3942;
  --wa-dark-send: #00a884;
  --wa-dark-text: #e9edef;
  --wa-dark-time: #8696a0;
  --wa-dark-card: #182229;

  /* Functional Accents */
  --accent-blue: #3b82f6;
  --accent-blue-bg: rgba(59, 130, 246, 0.15);
  --accent-amber: #f59e0b;
  --accent-amber-bg: rgba(245, 158, 11, 0.15);
  --accent-purple: #8b5cf6;
  --accent-purple-bg: rgba(139, 92, 246, 0.15);

  /* Shadows (Subtle Tinted Shadows) */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Fonts */
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Outfit", var(--font-sans);
  --font-mono: "JetBrains Mono", monospace;
  --max-w: 1200px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  background-color: var(--bg-page);
}

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background-color: var(--bg-page);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   NEURAL NETWORK CANVAS BACKGROUND (HIGH-PERFORMANCE GPU LAYER)
   ========================================================================== */
.neural-bg-wrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-color: var(--bg-page);
}

#neuralCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.neural-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(7, 14, 24, 0.1) 0%, rgba(7, 14, 24, 0.65) 100%);
  pointer-events: none;
}

main, header, footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

.container {
  width: min(var(--max-w), calc(100% - 48px));
  margin-inline: auto;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  color: var(--text-body);
  text-wrap: pretty;
}

/* Numeric stability across counters, prices and badges */
.counter,
.kpi-value,
.price-headline strong,
.cost-number,
.flow-num,
.slide-num-pill,
.product-price {
  font-variant-numeric: tabular-nums;
}

/* Accessible focus rings */
:focus-visible {
  outline: 2px solid var(--brand-whatsapp);
  outline-offset: 2px;
}

.highlight-text {
  color: #34d399;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(56, 189, 248, 0.15) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.12);
}

/* Buttons & Tactile Feedback */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:active,
.agent-nav-btn:active,
.region-btn:active,
.market-pill-btn:active,
.quick-prompt-btn:active,
.faq-trigger:active,
.btn-chat-action:active {
  transform: scale(0.97) translateY(1px);
}

.btn-primary {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: #e2e8f0;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #22c55e 0%, #047857 100%);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp::after, .btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 35%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  animation: btnShimmer 4.5s infinite ease-in-out;
}

@keyframes btnShimmer {
  0%, 75% { transform: translateX(-150%) rotate(25deg); }
  100% { transform: translateX(500%) rotate(25deg); }
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-light);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   NAVIGATION (DARK GLASS)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(7, 14, 24, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.brand-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
}

.brand-logo em {
  font-style: normal;
  color: #34d399;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  color: var(--text-body);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.region-selector {
  display: inline-flex;
  padding: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.region-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.region-btn.active {
  background: var(--brand-whatsapp);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: calc(var(--nav-h) + 48px) 0 64px;
  background: transparent;
  position: relative;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 5%;
  left: -5%;
  width: 540px;
  height: 480px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(56, 189, 248, 0.03) 50%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  animation: heroFadeIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.status-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid #34d399;
  animation: radarPing 2.2s infinite cubic-bezier(0, 0, 0.2, 1);
}

.hero-title {
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  letter-spacing: -0.035em;
  line-height: 1.14;
  color: #ffffff;
  margin-bottom: 16px;
  animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 28px;
  animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}

.simulator-box {
  animation: heroFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

@keyframes heroFadeIn {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-guarantee {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-guarantee span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-guarantee svg {
  color: var(--brand-whatsapp);
}

/* ==========================================================================
   SIMULATOR WITH AGENT SWITCHER (WHATSAPP DARK CONSOLE)
   ========================================================================== */
.simulator-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agent-selector-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: var(--bg-card);
  padding: 6px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.agent-nav-btn {
  background: transparent;
  border: none;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  line-height: 1.3;
}

.agent-nav-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.agent-nav-btn.active {
  background: #00a884;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 168, 132, 0.35);
}

.chat-console-card {
  background: var(--wa-dark-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 480px;
}

.console-header {
  background: var(--wa-dark-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.console-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #00a884;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.user-status strong {
  display: block;
  font-size: 0.88rem;
  color: #ffffff;
  line-height: 1.2;
}

.user-status span {
  font-size: 0.72rem;
  color: #86efac;
  font-weight: 600;
}

.console-tag {
  font-size: 0.72rem;
  color: #86efac;
  background: rgba(0, 168, 132, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.chat-thread {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--wa-dark-bg);
}

.chat-bubble {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  animation: bubblePop 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bubblePop {
  0% { opacity: 0; transform: scale(0.94) translateY(6px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.typing-indicator-bubble {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  padding: 10px 16px !important;
  width: fit-content !important;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00a884;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-5px); opacity: 1; }
}

.chat-bubble.bot {
  align-self: flex-start;
  background: var(--wa-dark-incoming);
  color: var(--wa-dark-text);
  border-bottom-left-radius: 2px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--wa-dark-outgoing);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.chat-bubble time {
  display: block;
  text-align: right;
  font-size: 0.68rem;
  color: var(--wa-dark-time);
  margin-top: 4px;
}

.chat-bubble.user time {
  color: #53bdeb;
}

/* Product Card Inside Chat */
.chat-product-box {
  background: var(--wa-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 8px;
}

.chat-product-box strong {
  display: block;
  font-size: 0.86rem;
  color: #ffffff;
}

.chat-product-box p {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 2px 0 6px;
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-weight: 700;
  color: #34d399;
  font-size: 0.95rem;
}

.btn-chat-action {
  background: #00a884;
  color: #fff;
  border: none;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-chat-action:hover {
  background: #059669;
}

/* Interactive Tray */
.chat-controls {
  padding: 10px 14px;
  background: var(--wa-dark-header);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-prompts {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.quick-prompt-btn {
  background: #111b21;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.quick-prompt-btn:hover {
  background: #00a884;
  color: #fff;
  border-color: #00a884;
}

.chat-input-row {
  display: flex;
  gap: 8px;
}

.chat-input-row input {
  flex: 1;
  background: var(--wa-dark-input);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #ffffff;
  outline: none;
}

.chat-input-row input:focus {
  border-color: #00a884;
}

.chat-input-row button {
  background: var(--wa-dark-send);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.chat-input-row button:hover {
  background: #059669;
}

/* ==========================================================================
   3D TILT & SPECULAR CURSOR REFLECTION (INTERACTIVE DEPTH)
   ========================================================================== */
.tilt-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.25s ease, 
              box-shadow 0.25s ease;
  background-image: radial-gradient(
    circle 320px at var(--mouse-x, -1000px) var(--mouse-y, -1000px),
    rgba(255, 255, 255, 0.08),
    transparent 70%
  );
}

.tilt-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55),
              0 0 24px rgba(16, 185, 129, 0.12);
}

/* ==========================================================================
   KPIS & METRICS COUNTERS (SMART AUTOMATA STYLE)
   ========================================================================== */
.section-kpis {
  padding: 48px 0;
  background: var(--bg-darker);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  z-index: 2;
}

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

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.2s ease;
}

.kpi-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  background: var(--bg-card-hover);
}

.kpi-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 30%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kpi-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.kpi-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

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

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

/* ==========================================================================
   INFINITE TOOLS & ECOSYSTEM MARQUEE (SMART AUTOMATA STYLE)
   ========================================================================== */
.section-tools-marquee {
  padding: 28px 0;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.marquee-label-container {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.marquee-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.marquee-track-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  color: var(--text-body);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.marquee-item strong {
  color: #ffffff;
  font-weight: 700;
}

.marquee-item span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.tech-icon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-whatsapp);
}

.marquee-item:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   CATALOG OF DIGITAL WORKERS (DARK CARDS)
   ========================================================================== */
.section-whatsapp-modes { padding: 80px 0; border-bottom: 1px solid var(--border-light); }
.mode-eyebrow { display: block; color: #34d399; font-size: .72rem; font-weight: 700; letter-spacing: .07em; margin-bottom: 16px; }
.whatsapp-modes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.whatsapp-mode-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 32px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 24px rgba(0,0,0,.25); }
.whatsapp-mode-card:hover { border-color: rgba(16,185,129,.45); }
.whatsapp-mode-card h3 { color: #fff; font-size: 1.35rem; line-height: 1.4; margin-bottom: 18px; }
.whatsapp-mode-card p, .mode-integration-summary p { color: var(--text-muted); line-height: 1.8; }
.mode-detail { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-light); font-size: .9rem; line-height: 1.7; }
.mode-integration-summary { margin-top: 36px; max-width: 820px; }
.mode-integration-summary h3 { color: #fff; margin-bottom: 14px; }
.mode-integration-summary .btn { margin-top: 24px; }
.mode-integration-summary .mode-disclaimer { font-size: .78rem; margin-top: 24px; line-height: 1.7; }
@media (max-width: 680px) {
  .section-whatsapp-modes { padding: 56px 0; }
  .whatsapp-modes-grid { grid-template-columns: 1fr; gap: 20px; }
  .whatsapp-mode-card { padding: 24px 20px; }
  .whatsapp-mode-card h3 { font-size: 1.22rem; }
  .whatsapp-mode-card p, .mode-integration-summary p { font-size: .94rem; }
  .mode-integration-summary .btn { width: 100%; }
}

.section-workers {
  padding: 80px 0;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
}

.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin-bottom: 10px;
  color: #ffffff;
}

.section-head p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.workers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.worker-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.worker-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  background: var(--bg-card-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(16, 185, 129, 0.07);
  transform: translateY(-2px);
}

.worker-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.worker-badge-role {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
}

.badge-ventas { background: rgba(16, 185, 129, 0.16); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-citas { background: var(--accent-amber-bg); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-pagos { background: var(--accent-blue-bg); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-backoffice { background: var(--accent-purple-bg); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }

.worker-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-whatsapp);
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--brand-whatsapp);
  animation: radarPing 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radarPing {
  0% { transform: scale(0.8); opacity: 1; }
  75%, 100% { transform: scale(2.4); opacity: 0; }
}

.worker-card h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.worker-card p {
  font-size: 0.92rem;
  color: var(--text-body);
  margin-bottom: 16px;
  line-height: 1.55;
}

.worker-integrations {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.integration-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ==========================================================================
   ARCHITECTURE & DATA FLOW DIAGRAM (BOTINFY STYLE)
   ========================================================================== */
.section-architecture {
  padding: 80px 0;
  background: var(--bg-darker);
  color: #ffffff;
  border-bottom: 1px solid var(--border-dark);
}

.flow-diagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.flow-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.flow-step-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.08);
}

.flow-step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #10b981, #38bdf8, transparent);
  transform: translateX(-100%);
  animation: flowBeam 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.flow-step-card:nth-child(1)::before { animation-delay: 0s; }
.flow-step-card:nth-child(2)::before { animation-delay: 1s; }
.flow-step-card:nth-child(3)::before { animation-delay: 2s; }
.flow-step-card:nth-child(4)::before { animation-delay: 3s; }

@keyframes flowBeam {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}

.flow-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #34d399;
  margin-bottom: 10px;
}

.flow-step-card h3 {
  color: #ffffff;
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.flow-step-card p {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.flow-tech-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.flow-tech-tag {
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 3px;
  color: #cbd5e1;
}

/* ==========================================================================
   5-STEP METHODOLOGY (SMART AUTOMATA STICKY STACK PRESENTATION)
   ========================================================================== */
.section-process {
  padding: 96px 0;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  z-index: 2;
}

.sticky-stack-container {
  display: flex;
  flex-direction: column;
  gap: 52px;
  margin-top: 48px;
  position: relative;
  padding-bottom: 110px;
}

.sticky-slide-card {
  position: sticky;
  top: calc(86px + (var(--stack-i, 1) - 1) * 16px);
  z-index: var(--stack-i, 1);
  background: #0f1d32;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transform-origin: center top;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.4s ease, 
              filter 0.4s ease, 
              border-color 0.3s ease, 
              box-shadow 0.4s ease;
  will-change: transform, opacity, filter;
}

.sticky-slide-card:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 24px rgba(16, 185, 129, 0.08);
}

.slide-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.slide-num-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #070e18;
  background: var(--brand-whatsapp);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.slide-tag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.slide-card-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: center;
}

.slide-card-info h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  color: #ffffff;
  margin-bottom: 10px;
}

.slide-card-info p {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 16px;
}

.slide-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bullet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bullet-item svg {
  color: var(--brand-whatsapp);
  flex-shrink: 0;
}

.slide-card-meta {
  background: var(--bg-darker);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.meta-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-whatsapp);
}

.slide-card-meta strong {
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.35;
}

.meta-time {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 820px) {
  .slide-card-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   PRICING & CALCULATOR (DARK SURFACES)
   ========================================================================== */
.section-pricing {
  padding: 80px 0;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
}

.pricing-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.base-plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--brand-whatsapp);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 16px 36px rgba(0, 0, 0, 0.45);
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

.base-plan-card .plan-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #34d399;
}

.price-headline {
  margin: 16px 0 8px;
}

.price-headline strong {
  font-family: var(--font-display);
  font-size: 2.6rem;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #ffffff;
}

.price-headline span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-bullets {
  list-style: none;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-bullets li {
  font-size: 0.88rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-bullets svg {
  color: var(--brand-whatsapp);
  flex-shrink: 0;
}

.plan-hint-box {
  background: var(--bg-darker);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.45;
  margin-top: 20px;
}

.plan-hint-box svg {
  color: var(--brand-whatsapp);
  flex-shrink: 0;
}

.customizer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 16px 36px rgba(0, 0, 0, 0.45);
}

.customizer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.customizer-top h3 {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.customizer-top p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.market-pill-selector {
  display: inline-flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
}

.market-pill-btn {
  border: none;
  background: transparent;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
}

.market-pill-btn.active {
  background: var(--brand-whatsapp);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.estimate-total-block {
  text-align: right;
}

.estimate-total-block span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.estimate-total-block strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: #34d399;
  line-height: 1.1;
}

.builder-group {
  margin-bottom: 24px;
}

.builder-group h4 {
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 600;
}

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

.builder-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-card-elevated);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.builder-check:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.builder-check:has(input:checked) {
  border-color: var(--brand-whatsapp);
  background: rgba(16, 185, 129, 0.1);
}

.builder-check input {
  margin-top: 3px;
  accent-color: var(--brand-whatsapp);
}

.builder-label {
  flex: 1;
}

.builder-label b {
  display: block;
  font-size: 0.88rem;
  color: #ffffff;
}

.builder-label small {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.builder-price {
  font-weight: 700;
  font-size: 0.8rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.builder-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* ==========================================================================
   FAQ SECTION (DARK ACCORDION)
   ========================================================================== */
.section-faq {
  padding: 80px 0;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-light);
}

.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-light);
  margin-top: 32px;
}

.faq-row {
  border-bottom: 1px solid var(--border-light);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-trigger:hover {
  color: #34d399;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.faq-row.active .faq-icon {
  transform: rotate(45deg);
  color: #34d399;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-body-text {
  padding-bottom: 20px;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.section-contact {
  padding: 80px 0;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
}

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

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.contact-item:hover {
  border-color: var(--brand-whatsapp);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-sm);
}

.contact-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
}

.contact-badge-icon.wa {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.contact-badge-icon.mail {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.contact-item strong {
  display: block;
  font-size: 0.92rem;
  color: #ffffff;
}

.contact-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Contact Form */
.contact-form-clean {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form-clean h3 {
  color: #ffffff;
}

.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-body);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: #ffffff;
  outline: none;
  font-size: 0.9rem;
  transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--brand-whatsapp);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-darker);
  padding: 48px 0 28px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
}

.footer-bottom-row {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111d30;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-whatsapp);
  font-size: 0.86rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(60px);
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 999;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid,
  .pricing-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .workers-grid,
  .flow-diagram-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-steps-list {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .base-plan-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .workers-grid,
  .flow-diagram-grid,
  .process-steps-list,
  .builder-options {
    grid-template-columns: 1fr;
  }

  .agent-selector-nav {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    display: none;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .customizer-top {
    flex-direction: column;
    gap: 14px;
  }

  .estimate-total-block {
    text-align: left;
  }

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

  .btn {
    width: 100%;
  }
}

/* Mobile spacing preserves the dark surfaces and animated background. */
@media (max-width: 1100px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 20px 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; }
  .menu-toggle { display: grid; place-items: center; min-width: 44px; min-height: 44px; }
}

@media (max-width: 680px) {
  :root { --nav-h: 112px; }
  .container { width: calc(100% - 40px); }
  .nav-container { flex-wrap: wrap; align-content: center; gap: 10px; }
  .brand-logo { font-size: 1.05rem; flex-shrink: 0; }
  .nav-actions { display: contents; }
  .nav-actions .region-selector { margin-left: auto; }
  .language-pill-btn { min-height: 36px; font-size: 0.75rem; padding: 6px 8px; }
  .nav-actions > .btn-whatsapp { order: 2; width: 100%; min-height: 36px; font-size: 0.8rem; }
  .menu-toggle { min-width: 40px; min-height: 40px; padding: 6px; }
  .hero { padding: calc(var(--nav-h) + 40px) 0 48px; }
  .hero-grid { gap: 40px; }
  .hero-tag { font-size: 0.62rem; letter-spacing: 0.05em; padding: 7px 10px; margin-bottom: 22px; }
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.65rem); line-height: 1.2; margin-bottom: 24px; }
  .highlight-text { padding: 0; border: 0; background: none; box-shadow: none; }
  .hero-subtitle { font-size: 0.96rem; line-height: 1.8; margin-bottom: 28px; }
  .hero-actions { gap: 12px; margin-bottom: 24px; }
  .hero-actions .btn { min-height: 48px; }
  .hero-guarantee { flex-direction: column; align-items: flex-start; gap: 12px; font-size: 0.78rem; }
  .agent-selector-nav { gap: 8px; padding: 8px; }
  .agent-nav-btn { min-height: 44px; padding: 10px 6px; }
  .chat-console-card { height: 440px; }
  .console-header { flex-wrap: wrap; gap: 10px; padding: 16px; }
  .console-user { min-width: 0; flex: 1; }
  .user-avatar { flex-shrink: 0; }
  .console-tag { margin-left: 46px; }
  .chat-bubble { max-width: 95%; line-height: 1.65; }
  .chat-input-row input { min-width: 0; font-size: 16px; }
  .quick-prompt-btn { white-space: normal; min-height: 36px; }
  .section-workers, .section-architecture, .section-process,
  .section-pricing, .section-faq, .section-contact { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2, .contact-layout h2 { font-size: 1.8rem; line-height: 1.25; margin-bottom: 16px; }
  .section-head p { font-size: 0.94rem; line-height: 1.8; }
  .workers-grid, .flow-diagram-grid { gap: 20px; }
  .sticky-stack-container { gap: 32px; padding-bottom: 48px; }
  .sticky-slide-card { padding: 24px 20px; top: calc(var(--nav-h) + 12px + (var(--stack-i, 1) - 1) * 8px); }
  .slide-card-header { gap: 12px; flex-wrap: wrap; }
  .slide-num-pill { font-size: 0.65rem; }
  .slide-tag { font-size: 0.65rem; }
  .slide-card-body { gap: 24px; }
  .bullet-item { align-items: flex-start; line-height: 1.7; }
  .bullet-item svg { margin-top: 4px; }
  .base-plan-card, .customizer-panel, .contact-form-clean { padding: 24px 20px; }
  .contact-layout { gap: 36px; }
  .contact-item { padding: 18px 14px; gap: 10px; }
  .contact-item-left { min-width: 0; gap: 10px; }
  .contact-item-left > div:last-child { min-width: 0; overflow-wrap: anywhere; }
  .contact-badge-icon { flex-shrink: 0; }
  .form-field input, .form-field textarea { font-size: 16px; }
  .faq-trigger { font-size: 0.95rem; line-height: 1.6; gap: 16px; align-items: flex-start; }
  .faq-icon { flex-shrink: 0; }
  .footer-inner { gap: 28px; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 0.8rem; }
  .footer-bottom-row { gap: 16px; line-height: 1.8; }
}

@media (max-width: 360px) {
  :root { --nav-h: 156px; }
  .hero-title { font-size: 1.7rem; }
}

/* ==========================================================================
   SCROLL REVEAL & STAGGER ANIMATIONS (SMART AUTOMATA STYLE)
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered entrance for grid items */
.scroll-reveal-stagger > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  will-change: opacity, transform;
}

.scroll-reveal-stagger.revealed > *:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

.scroll-reveal-stagger.revealed > *:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.16s;
}

.scroll-reveal-stagger.revealed > *:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.27s;
}

.scroll-reveal-stagger.revealed > *:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.38s;
}

.scroll-reveal-stagger.revealed > *:nth-child(5) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.49s;
}

.scroll-reveal-stagger.revealed > *:nth-child(6) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.60s;
}

/* Architecture Flow Highlight Sequence when revealed */
.section-architecture.revealed .flow-step-card:nth-child(1) {
  border-color: rgba(16, 185, 129, 0.4);
}
.section-architecture.revealed .flow-step-card:nth-child(2) {
  border-color: rgba(56, 189, 248, 0.4);
}
.section-architecture.revealed .flow-step-card:nth-child(3) {
  border-color: rgba(16, 185, 129, 0.4);
}
.section-architecture.revealed .flow-step-card:nth-child(4) {
  border-color: rgba(56, 189, 248, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal-stagger > *,
  .sticky-slide-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
