/* ==========================================================================
   EDGAR LOPEZ B2B - DESIGN SYSTEM & STYLESHEET
   Extracted & Engineered from Figma Design Tokens
   Targeted for High-Performance Static / Shared Hosting
   Pixel-Perfect Responsive Layout (Desktop, Tablet, Mobile)
   ========================================================================== */

:root {
  /* Surface & Background Palette */
  --bg-primary: #0a0e14;
  --bg-secondary: #10141a;
  --bg-surface: #181c22;
  --bg-surface-elevated: #262a31;
  --bg-card: rgba(24, 28, 34, 0.75);
  --bg-card-hover: rgba(38, 42, 49, 0.9);
  --bg-glass: rgba(16, 20, 26, 0.85);

  /* Primary Cyber & Accent Colors */
  --accent-blue: #4d8eff;
  --accent-blue-hover: #3b7bef;
  --accent-blue-light: #adc6ff;
  --accent-blue-subtle: #a4c9ff;
  --accent-blue-glow: rgba(77, 142, 255, 0.25);
  --accent-blue-deep: #002e6a;
  --accent-blue-navy: #00285d;

  /* Status & Action Accents */
  --accent-green: #25d366;
  --accent-green-light: #34d399;
  --accent-green-glow: rgba(37, 211, 102, 0.25);
  --accent-warm: #ffb786;

  /* Text & Border Colors */
  --text-heading: #ffffff;
  --text-primary: #dfe2eb;
  --text-secondary: #c2c6d6;
  --text-muted: #8c909f;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(164, 201, 255, 0.12);
  --border-card-hover: rgba(77, 142, 255, 0.45);
  --border-glow: rgba(77, 142, 255, 0.3);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-pill: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Liberation Mono', 'Roboto Mono', 'Figma Mono', monospace;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-blue-glow: 0 0 30px rgba(77, 142, 255, 0.25);
  --shadow-blue-glow-lg: 0 0 60px rgba(77, 142, 255, 0.35);

  /* Layout */
  --container-max: 1240px;
  --header-height: 72px;
  --mobile-nav-height: 60px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  background-color: var(--bg-primary);
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  min-height: 100vh;
}

/* Ambient Circuit Grid Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 50% 15%, rgba(77, 142, 255, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 90% 70%, rgba(37, 211, 102, 0.03) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  background-position: 0 0, 0 0, -1px -1px, -1px -1px;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-top {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(750px, 100%);
  max-width: 100%;
  height: 450px;
  background: radial-gradient(ellipse, rgba(77, 142, 255, 0.16) 0%, rgba(0, 46, 106, 0.08) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow-mid {
  position: absolute;
  top: 1400px;
  right: 0;
  width: min(600px, 80vw);
  max-width: 100%;
  height: 500px;
  background: radial-gradient(ellipse, rgba(77, 142, 255, 0.1) 0%, transparent 65%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  height: var(--header-height);
  background: rgba(10, 14, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 14, 20, 0.96);
  border-bottom-color: rgba(77, 142, 255, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Brand Logo */
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(77, 142, 255, 0.3));
  transition: transform 0.25s ease;
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.04);
}

.brand-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  background: rgba(77, 142, 255, 0.12);
  color: var(--accent-blue-light);
  border: 1px solid rgba(77, 142, 255, 0.25);
  white-space: nowrap;
}

/* Desktop Nav Links */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue);
  transition: width 0.25s ease;
}

.nav-item:hover {
  color: #ffffff;
}

.nav-item:hover::after {
  width: 100%;
}

/* Nav Actions (Language switcher + Buttons) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 2px;
  flex-shrink: 0;
}

.lang-btn {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(77, 142, 255, 0.4);
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent-blue);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 0 16px rgba(77, 142, 255, 0.35);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-header-cta:hover {
  background: var(--accent-blue-hover);
  box-shadow: 0 0 24px rgba(77, 142, 255, 0.6);
  transform: translateY(-1px);
}

/* Mobile Header Controls */
.btn-mobile-header-wa {
  display: none;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent-green);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
  white-space: nowrap;
}

.btn-mobile-header-wa svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.menu-toggle:hover {
  background: var(--bg-surface-elevated);
  color: #ffffff;
}

/* Mobile Navigation Off-Canvas Drawer */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--bg-surface);
  border-left: 1px solid var(--border-card);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-drawer-overlay.active .mobile-drawer {
  transform: translateX(0);
}

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

.drawer-close {
  font-size: 26px;
  color: var(--text-muted);
  line-height: 1;
  padding: 4px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 0;
}

.drawer-item {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.drawer-item:hover {
  color: var(--accent-blue-light);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent-blue);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(77, 142, 255, 0.4);
  transition: all 0.25s ease;
  cursor: pointer;
  text-align: center;
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  box-shadow: 0 6px 28px rgba(77, 142, 255, 0.65);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(24, 28, 34, 0.7);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(38, 42, 49, 0.9);
  border-color: var(--accent-blue);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent-green);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  transition: all 0.25s ease;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
  transform: translateY(-2px);
}

.btn-whatsapp svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Badge Tag - FIXED: width: fit-content so it never stretches across screen */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(77, 142, 255, 0.08);
  border: 1px solid rgba(77, 142, 255, 0.25);
  color: var(--accent-blue-light);
  margin-bottom: 20px;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  white-space: nowrap;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-green-light);
  box-shadow: 0 0 8px var(--accent-green);
  flex-shrink: 0;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 64px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  margin-bottom: 18px;
}

.hero-highlight {
  background: linear-gradient(135deg, #4d8eff 0%, #adc6ff 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 0;
  width: 100%;
}

/* Metrics Row */
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* Hero Stage / Visual */
.hero-stage-container {
  position: relative;
  width: 100%;
}

.hero-stage-card {
  position: relative;
  background: linear-gradient(180deg, rgba(24, 28, 34, 0.8) 0%, rgba(16, 20, 26, 0.95) 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-lg), var(--shadow-blue-glow);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.hero-stage-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 142, 255, 0.4);
}

.hero-stage-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}

/* Floating Telemetry Badges */
.telemetry-badge-top {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(10, 14, 20, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(77, 142, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  z-index: 2;
  width: fit-content;
}

.telemetry-title {
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-blue-light);
  letter-spacing: 0.1em;
}

.telemetry-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-green-light);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.telemetry-badge-bottom {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(10, 14, 20, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(77, 142, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  display: flex;
  gap: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  z-index: 2;
  width: fit-content;
}

.telemetry-metric-title {
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.telemetry-metric-val {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
}

.telemetry-metric-val span {
  font-size: 10px;
  font-weight: 500;
  color: var(--accent-warm);
}

/* Trusted Logos Row */
.trusted-strip {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.trusted-label {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  white-space: nowrap;
}

.trusted-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trusted-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ==========================================================================
   SERVICES SECTION (TECH QUADRANTS)
   ========================================================================== */
.section-services {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header .badge-tag {
  align-self: center;
}

.section-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(77, 142, 255, 0.15);
}

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

.service-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(77, 142, 255, 0.1);
  border: 1px solid rgba(77, 142, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.service-card:hover .service-icon-box {
  transform: scale(1.08);
  background: rgba(77, 142, 255, 0.2);
}

.service-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.service-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.service-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.service-tag-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.service-tag-item svg {
  color: var(--accent-green-light);
  flex-shrink: 0;
}

.service-card-btn {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
  margin-top: auto;
}

.service-card:hover .service-card-btn {
  color: #ffffff;
  gap: 10px;
}

/* ==========================================================================
   LIVE DEMOS SHOWCASE SECTION
   ========================================================================== */
.section-demos {
  padding: 80px 0;
  position: relative;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(16, 20, 26, 0.4) 0%, rgba(10, 14, 20, 0.8) 100%);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
}

/* Row 1: 3 cards (2 cols each => 6 cols) */
.projects-grid .demo-card:nth-child(1),
.projects-grid .demo-card:nth-child(2),
.projects-grid .demo-card:nth-child(3) {
  grid-column: span 2;
}

/* Row 2: 2 cards (3 cols each => 6 cols) */
.projects-grid .demo-card:nth-child(4),
.projects-grid .demo-card:nth-child(5) {
  grid-column: span 3;
}

.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.demo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 142, 255, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 25px rgba(77, 142, 255, 0.2);
}

.demo-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f141c;
  border-bottom: 1px solid var(--border-subtle);
}

.demo-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}

.demo-card:hover .demo-card-img {
  transform: scale(1.04);
}

.demo-card-thumb .demo-card-env {
  position: absolute;
  top: 12px;
  right: 12px;
  backdrop-filter: blur(8px);
  background: rgba(10, 14, 20, 0.88);
  border: 1px solid rgba(77, 142, 255, 0.3);
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-blue-light);
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.demo-card-body {
  padding: 24px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.demo-card-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue-light);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.demo-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.25;
}

.demo-card-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.demo-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.demo-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.demo-card:hover .demo-pill {
  border-color: rgba(77, 142, 255, 0.25);
  color: #ffffff;
}

.demo-btn-launch {
  margin-top: auto;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(77, 142, 255, 0.12);
  color: var(--accent-blue-light);
  border: 1px solid rgba(77, 142, 255, 0.3);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(77, 142, 255, 0.15);
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.demo-btn-launch:hover {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
  box-shadow: 0 6px 22px rgba(77, 142, 255, 0.55);
  transform: translateY(-2px);
}

/* ==========================================================================
   VERIFIED TECH STACK RIBBON
   ========================================================================== */
.tech-ribbon {
  padding: 36px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.tech-ribbon-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.tech-ribbon-title {
  display: flex;
  flex-direction: column;
}

.tech-ribbon-tag {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-blue-light);
}

.tech-ribbon-h {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.tech-badges-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(24, 28, 34, 0.8);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.tech-badge:hover {
  border-color: var(--accent-blue);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   TESTIMONIALS & TRUST SECTION
   ========================================================================== */
.section-trust {
  padding: 80px 0;
  position: relative;
}

.trust-card-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-card {
  background: linear-gradient(180deg, rgba(24, 28, 34, 0.9) 0%, rgba(16, 20, 26, 0.95) 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
  backdrop-filter: blur(12px);
}

.quote-stars {
  color: #f59e0b;
  font-size: 17px;
  letter-spacing: 4px;
  margin-bottom: 18px;
}

.testimonial-quote {
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 500;
  color: #ffffff;
  line-height: 1.5;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), #00285d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  border: 2px solid rgba(77, 142, 255, 0.4);
}

.author-details {
  text-align: left;
}

.author-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.author-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   FINAL CALL TO ACTION BANNER
   ========================================================================== */
.section-cta {
  padding: 72px 0 96px 0;
  position: relative;
}

.cta-banner-card {
  background: linear-gradient(135deg, rgba(24, 28, 34, 0.95) 0%, rgba(0, 46, 106, 0.4) 100%);
  border: 1px solid rgba(77, 142, 255, 0.35);
  border-radius: var(--radius-xl);
  padding: 50px 44px;
  box-shadow: var(--shadow-lg), var(--shadow-blue-glow-lg);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  position: relative;
  overflow: hidden;
}

.cta-banner-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(77, 142, 255, 0.25) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.cta-banner-left {
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.cta-banner-left .badge-tag {
  align-self: flex-start;
}

.cta-banner-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 12px;
}

.cta-banner-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.cta-contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.cta-contact-email,
.cta-contact-phone {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--accent-blue-light);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
  text-decoration: none;
}

.cta-contact-email:hover,
.cta-contact-phone:hover {
  color: #ffffff;
}

.cta-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 270px;
  position: relative;
  z-index: 1;
}

.cta-banner-actions .btn-whatsapp {
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.cta-banner-actions .btn-whatsapp:hover {
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  padding: 40px 0 70px 0;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-size: 13px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-link-item {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-link-item:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   STICKY WHATSAPP & MOBILE BOTTOM BAR
   ========================================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 99;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.65);
}

.floating-whatsapp-btn svg {
  width: 36px;
  height: 36px;
  fill: #ffffff;
}

/* Mobile Bottom Navigation Bar (Frame 5:532) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-height);
  background: rgba(10, 14, 20, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  z-index: 1000;
  padding: 0 12px;
}

.mobile-bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 100%;
  align-items: center;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 6px 0;
}

.mobile-nav-item svg {
  width: 19px;
  height: 19px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: var(--accent-blue-light);
}

.mobile-nav-item.whatsapp-nav {
  color: var(--accent-green);
}

.mobile-nav-item.whatsapp-nav svg {
  width: 23px;
  height: 23px;
}

/* ==========================================================================
   MODALS (AUDIT FORM & SIMULATOR)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 32px 28px;
  box-shadow: var(--shadow-lg), var(--shadow-blue-glow);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.modal-title {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(10, 14, 20, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 11px 13px;
  font-family: inherit;
  font-size: 13.5px;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(77, 142, 255, 0.35);
}

.form-textarea {
  resize: vertical;
  min-height: 75px;
}

.modal-simulator {
  max-width: 420px;
  padding: 20px;
}

.simulator-frame {
  background: #000000;
  border: 6px solid #22262e;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  height: 560px;
  display: flex;
  flex-direction: column;
}

.simulator-notch {
  width: 110px;
  height: 18px;
  background: #22262e;
  margin: 0 auto;
  border-radius: 0 0 10px 10px;
}

.simulator-screen {
  flex: 1;
  background: var(--bg-primary);
  padding: 14px;
  overflow-y: auto;
  color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   Carefully calibrated for 1024px, 768px, 425px, 375px, 320px
   ========================================================================== */

/* Tablet & Small Desktop (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .desktop-nav {
    gap: 16px;
  }

  .nav-item {
    font-size: 13px;
  }

  .btn-header-cta {
    padding: 7px 12px;
    font-size: 12px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    align-items: center;
  }

  .hero-title {
    font-size: 38px;
  }

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

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

  .projects-grid .demo-card:nth-child(1),
  .projects-grid .demo-card:nth-child(2),
  .projects-grid .demo-card:nth-child(3),
  .projects-grid .demo-card:nth-child(4) {
    grid-column: span 1;
  }

  .projects-grid .demo-card:nth-child(5) {
    grid-column: span 2;
  }

  .telemetry-badge-top {
    top: 14px;
    left: 14px;
    padding: 6px 10px;
  }

  .telemetry-badge-bottom {
    bottom: 14px;
    right: 14px;
    padding: 6px 10px;
    gap: 12px;
  }

  .cta-banner-card {
    padding: 38px 30px;
  }
}

/* Mobile Screens (< 768px: Covers 768px, 425px, 375px, 320px) */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  body {
    padding-bottom: var(--mobile-nav-height);
  }

  /* Universal mobile overflow safety */
  main, section, footer {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    box-sizing: border-box;
  }

  .container {
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Prevent ambient glows from overflowing mobile viewport */
  .ambient-glow-top {
    width: 100%;
    max-width: 100%;
    filter: blur(50px);
  }

  .ambient-glow-mid {
    display: none;
  }

  /* Header adjustments for mobile */
  .site-header {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    box-sizing: border-box;
  }

  .nav-wrap {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
  }

  .desktop-nav {
    display: none;
  }

  .btn-header-cta {
    display: none;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .lang-switch {
    padding: 2px;
  }

  .lang-btn {
    padding: 3px 7px;
    font-size: 10.5px;
  }

  /* Compact WhatsApp Icon Button in Mobile Header */
  .btn-mobile-header-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-md);
    background: var(--accent-green);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .btn-mobile-header-wa:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  }

  .btn-mobile-header-wa svg {
    width: 20px;
    height: 20px;
  }

  .btn-mobile-header-wa span {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-md);
    flex-shrink: 0;
  }

  .menu-toggle svg {
    width: 20px;
    height: 20px;
  }

  .brand-logo-img {
    height: 28px;
    max-width: 110px;
  }

  .brand-badge {
    display: none;
  }

  /* Hero Section Mobile (Figma Frame 5:266) */
  .hero-section {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 40px;
  }

  .hero-grid {
    display: block;
  }

  .badge-tag {
    font-size: 10px;
    padding: 5px 12px;
    margin-bottom: 14px;
    letter-spacing: 0.08em;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
  }

  .hero-title {
    font-size: clamp(27px, 7.5vw, 34px);
    line-height: 1.18;
    margin-bottom: 14px;
  }

  .hero-subtitle {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 24px;
    max-width: 100%;
  }

  /* Full-width Stacked Hero CTAs (Figma Frame 5:277) */
  .hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 26px;
    width: 100%;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
    height: 48px;
    padding: 0;
    font-size: 14px;
    justify-content: center;
    border-radius: var(--radius-md);
  }

  /* 3-Column Equal Metrics Row (Figma Frame 5:287) */
  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 18px;
    width: 100%;
    border-top: 1px solid var(--border-subtle);
  }

  .hero-metrics .metric-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 12px 4px;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .hero-metrics .metric-value {
    font-size: 16px;
    font-weight: 700;
  }

  .hero-metrics .metric-label {
    font-size: 9.5px;
    line-height: 1.25;
    margin-top: 3px;
    letter-spacing: 0.04em;
  }

  /* 2x2 Grid for Sectores (Figma Frame 5:447) */
  .trusted-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
    width: 100%;
  }

  .trusted-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .trusted-pill {
    font-size: 11px;
    padding: 8px 6px;
    text-align: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
  }

  /* Hide 3D cloud server stage in mobile hero (Figma Frame 5 has it clean and focused) */
  .hero-stage-container {
    display: none;
  }

  /* Services Section Mobile */
  .section-services {
    padding: 56px 0 36px 0;
  }

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

  .section-title {
    font-size: clamp(22px, 6vw, 28px);
    margin-bottom: 10px;
  }

  .section-subtitle {
    font-size: 13.5px;
    line-height: 1.5;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card {
    padding: 22px 18px;
  }

  /* Demos / Projects Section Mobile */
  .section-demos {
    padding: 56px 0 36px 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .projects-grid .demo-card:nth-child(1),
  .projects-grid .demo-card:nth-child(2),
  .projects-grid .demo-card:nth-child(3),
  .projects-grid .demo-card:nth-child(4),
  .projects-grid .demo-card:nth-child(5) {
    grid-column: span 1;
  }

  .demo-card-body {
    padding: 20px 18px 22px 18px;
  }

  .demo-card-title {
    font-size: 18px;
  }

  /* Trust / Testimonial Mobile */
  .section-trust {
    padding: 48px 0;
  }

  .testimonial-card {
    padding: 28px 18px;
    border-radius: var(--radius-lg);
  }

  .testimonial-quote {
    font-size: 15px;
    margin-bottom: 18px;
  }

  /* Final CTA Banner Mobile */
  .section-cta {
    padding: 48px 0 64px 0;
  }

  .cta-banner-card {
    padding: 32px 18px;
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-lg);
    gap: 20px;
  }

  .cta-banner-title {
    font-size: 22px;
  }

  .cta-banner-actions {
    min-width: unset;
    width: 100%;
    gap: 10px;
  }

  .cta-contact-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .cta-contact-email,
  .cta-contact-phone {
    max-width: 100%;
    word-break: break-all;
  }

  .cta-banner-actions .btn-primary,
  .cta-banner-actions .btn-whatsapp {
    width: 100%;
    height: 48px;
    padding: 0;
    justify-content: center;
  }

  /* Footer Mobile */
  .site-footer {
    padding: 32px 0 64px 0;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  /* Hide separate floating WhatsApp circle on mobile (replaced by bottom nav) */
  .floating-whatsapp-btn {
    display: none;
  }

  /* Show Bottom Navigation Bar */
  .mobile-bottom-nav {
    display: block;
  }
}

/* Small Screens (< 360px: e.g. 320.png) */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-metrics .metric-value {
    font-size: 15px;
  }

  .hero-metrics .metric-label {
    font-size: 8.5px;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 13px;
  }

  .trusted-pill {
    font-size: 10px;
    padding: 6px 4px;
  }
}

/* ==========================================================================
   COOKIE CONSENT BANNER & CONTROLS
   ========================================================================== */
button.footer-link-item {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-muted);
  padding: 0;
  transition: color 0.2s ease;
}

button.footer-link-item:hover {
  color: var(--text-primary);
}

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 480px;
  width: calc(100% - 48px);
  background: rgba(16, 20, 26, 0.94);
  border: 1px solid rgba(164, 201, 255, 0.18);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 24px rgba(77, 142, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cookie-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(77, 142, 255, 0.12);
  border: 1px solid rgba(77, 142, 255, 0.25);
  color: var(--accent-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.cookie-text-wrap {
  flex: 1;
}

.cookie-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.cookie-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.cookie-policy-link {
  color: var(--accent-blue-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.cookie-policy-link:hover {
  color: #ffffff;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.btn-cookie-reject {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-cookie-reject:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-cookie-accept {
  background: var(--accent-blue);
  border: 1px solid var(--accent-blue-light);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(77, 142, 255, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-cookie-accept:hover {
  background: var(--accent-blue-hover);
  box-shadow: 0 4px 16px rgba(77, 142, 255, 0.6);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: calc(var(--mobile-nav-height) + 12px);
    width: auto;
    max-width: none;
    padding: 14px 16px;
    gap: 12px;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .btn-cookie-reject,
  .btn-cookie-accept {
    flex: 1;
    text-align: center;
    padding: 9px 12px;
    font-size: 12px;
  }
}

