/* ===================================
   MAPPIN GROUP - MODERN B2B WEBSITE
   Design System & Styles
   =================================== */

/* FORCE LIGHT MODE - Prevent iOS/Safari dark mode from inverting colors */
:root {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {

  html,
  body {
    background-color: #FFFFFF !important;
    color: #1E293B !important;
  }

  .comparison-card,
  .service-card,
  .bento-item,
  .stat-item,
  .logo-slide {
    background-color: #FFFFFF !important;
    color: #1E293B !important;
  }

  .card-header h3,
  .section-title,
  h1,
  h2,
  h3,
  h4,
  p,
  li,
  span {
    color: inherit !important;
    -webkit-text-fill-color: initial;
  }

  /* Preserve gradient text colors */
  .gradient-text,
  .stat-number {
    -webkit-text-fill-color: transparent !important;
  }
}

/* CSS VARIABLES - DESIGN TOKENS */
:root {
  /* Fondos y Superficies */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-surface: #F1F5F9;
  --bg-glass: rgba(255, 255, 255, 0.7);

  /* Colores Primarios */
  --primary-blue: #0F4C81;
  --primary-teal: #0891B2;
  --accent-sky: #0EA5E9;

  /* Colores Secundarios */
  --accent-orange: #F97316;
  --accent-red: #EF4444;
  --success-green: #10B981;

  /* Colores de Estado */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-info: #3B82F6;
  --color-success-alpha: rgba(16, 185, 129, 0.1);
  --color-warning-alpha: rgba(245, 158, 11, 0.1);
  --color-error-alpha: rgba(239, 68, 68, 0.1);
  --color-info-alpha: rgba(59, 130, 246, 0.1);

  /* Gradientes */
  --gradient-hero: linear-gradient(135deg, #0F4C81 0%, #0891B2 50%, #0EA5E9 100%);
  --gradient-data: linear-gradient(90deg, #0EA5E9 0%, #06B6D4 100%);
  --gradient-cta: linear-gradient(135deg, #0891B2 0%, #0EA5E9 100%);
  --gradient-subtle: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);

  /* Textos */
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-body: #475569;
  --text-muted: #64748B;
  --text-white: #FFFFFF;

  /* Bordes y Sombras */
  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;
  --border-accent: #0891B2;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 20px 40px rgba(14, 165, 233, 0.3), 0 0 0 4px rgba(14, 165, 233, 0.1);
  --shadow-glow-red: 0 0 20px rgba(239, 68, 68, 0.3);

  /* Glassmorphism */
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  --backdrop-blur: blur(10px);

  /* Sistema de Espaciado 8pt Grid */
  --space-1: 0.5rem;
  /* 8px */
  --space-2: 1rem;
  /* 16px */
  --space-3: 1.5rem;
  /* 24px */
  --space-4: 2rem;
  /* 32px */
  --space-5: 2.5rem;
  /* 40px */
  --space-6: 3rem;
  /* 48px */
  --space-8: 4rem;
  /* 64px */
  --space-10: 5rem;
  /* 80px */
  --space-12: 6rem;
  /* 96px */
  --space-16: 8rem;
  /* 128px */

  /* Espaciado Específico por Componente */
  --card-padding: var(--space-6);
  --section-padding-y: var(--space-16);
  --section-padding-x: var(--space-4);
  --gap-cards: var(--space-6);

  /* Legacy spacing (mantener compatibilidad) */
  --spacing-xs: var(--space-1);
  --spacing-sm: var(--space-2);
  --spacing-md: var(--space-3);
  --spacing-lg: var(--space-4);
  --spacing-xl: var(--space-6);
  --spacing-2xl: var(--space-8);
  --spacing-3xl: var(--space-12);


  /* Typography - Professional B2B System */
  --font-heading: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;

  /* Sistema Tipográfico Mejorado */
  --text-display: clamp(3.5rem, 2.5rem + 5vw, 6rem);
  /* Hero displays */
  --text-h1: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
  /* Main headings */
  --text-h2: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  /* Section headings */
  --text-h3: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  /* Card titles */
  --text-body-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  /* Lead text */
  --text-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  /* Body */
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  /* Small */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  /* Extra small */

  /* Legacy sizes (mantener compatibilidad) */
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-2xl: clamp(2rem, 1.6rem + 2vw, 3rem);
  --text-3xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  --text-hero: var(--text-display);

  /* Pesos Tipográficos */
  --font-black: 900;
  --font-extrabold: 800;
  --font-bold: 700;
  --font-semibold: 600;
  --font-medium: 500;
  --font-regular: 400;

  /* Timing Functions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* RESET & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-weight: 400;
}

/* Typography enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-feature-settings: 'liga' 1, 'calt' 1;
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-display);
  font-weight: 900;
}

h2 {
  font-size: var(--text-h2);
  font-weight: 800;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 700;
}

p,
li {
  max-width: 65ch;
  letter-spacing: -0.01em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-xl);
  }
}

/* NAVIGATION */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-teal);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-teal);
  transition: width 0.3s ease;
}

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

.nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--gradient-cta);
  color: var(--text-white);
  border-radius: 8px;
  font-weight: 600;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Mobile Menu */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-link {
    display: block;
    padding: 1rem;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  opacity: 0.08;
  z-index: -1;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(8, 145, 178, 0.1) 0%, transparent 50%);
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.badge-icon {
  font-size: 1.2rem;
}

.hero-title {
  font-size: var(--text-display);
  font-weight: var(--font-black);
  color: var(--text-primary);
  line-height: 1.05;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.03em;
}

.gradient-text {
  background: var(--gradient-data);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: var(--text-body-lg);
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
  font-weight: var(--font-regular);
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-3xl);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-size: var(--text-base);
  font-weight: 600;
  transition: all 0.3s var(--ease-smooth);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  min-height: 44px;
  min-width: 44px;
}

/* Ripple effect on click */
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-cta);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-glow);
}

/* Loading state */
.btn-primary.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-primary.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
}

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

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 2px solid var(--border-medium);
}

.btn-secondary:hover {
  border-color: var(--primary-teal);
  background: white;
  transform: translateY(-3px);
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: var(--text-lg);
}

/* FOCUS STATES - Accessibility */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 3px solid var(--primary-teal);
  outline-offset: 4px;
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
  transition: outline-offset 0.2s ease;
}

.btn:focus-visible {
  outline-color: white;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.4), var(--shadow-glow);
}

.nav-link:focus-visible {
  outline-color: var(--primary-teal);
  background: rgba(8, 145, 178, 0.05);
  border-radius: 6px;
}

a[href^="tel"]:focus-visible,
a[href^="mailto"]:focus-visible,
.whatsapp-float:focus-visible {
  outline-color: var(--success-green);
  outline-offset: 3px;
}

/* HERO STATS */
.hero-stats-container {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--bg-glass);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  padding: var(--spacing-lg);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-progress {
  width: 100%;
  height: 6px;
  background: var(--bg-surface);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  position: relative;
}

.stat-progress-bar {
  height: 100%;
  background: var(--gradient-data);
  border-radius: 3px;
  width: 0%;
  /* transition removed to allow JS full control */
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.4;
}

.stats-footer {
  text-align: center;
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-light);
}

.btn-sm {
  padding: 0.5rem 1.5rem;
  font-size: var(--text-sm);
  min-height: 36px;
}

/* MODAL STYLES */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-container {
  background: white;
  width: 90%;
  max-width: 1000px;
  height: 85vh;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: white;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
}

.modal-close:hover {
  color: var(--accent-red);
  transform: scale(1.1);
}

.modal-content {
  width: 100%;
  height: 100%;
}

.modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {

  /* CRITICAL FIX: Add padding to prevent numbers from being cut off */
  .hero-stats-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
  }

  /* First item doesn't need to span since we are in 1 column */
  .stat-item:first-child {
    grid-column: auto;
  }

  .stat-item {
    /* Ensure items don't overflow */
    min-width: 0;
    padding: 0.5rem;
  }

  .stat-number {
    /* Allow numbers to wrap if necessary */
    word-break: break-word;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .stat-label {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .stat-divider {
    display: none;
  }
}

/* HERO DECORATION */
.hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-card {
  position: absolute;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  animation: float 6s ease-in-out infinite;
}

.card-1 {
  top: 20%;
  left: 5%;
  animation-delay: 0s;
}

.card-2 {
  top: 60%;
  right: 5%;
  animation-delay: 2s;
}

.card-3 {
  bottom: 15%;
  left: 10%;
  animation-delay: 4s;
}

.card-icon {
  font-size: 1.5rem;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@media (max-width: 1024px) {
  .floating-card {
    display: none;
  }
}

/* FADE IN ANIMATION */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.fade-in:nth-child(1) {
  animation-delay: 0.1s;
}

.fade-in:nth-child(2) {
  animation-delay: 0.3s;
}

.fade-in:nth-child(3) {
  animation-delay: 0.5s;
}

.fade-in:nth-child(4) {
  animation-delay: 0.7s;
}

.fade-in:nth-child(5) {
  animation-delay: 0.9s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* SECTION COMMON STYLES */
section {
  padding: var(--spacing-3xl) 0;
}

.section-header {
  margin-bottom: var(--spacing-2xl);
}

.section-header.center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--bg-surface);
  color: var(--primary-teal);
  border-radius: 50px;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
}

.section-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.highlight-red {
  color: var(--accent-red);
}

.highlight-blue {
  color: var(--primary-teal);
}

/* PROBLEM/SOLUTION SECTION */
.problem-solution {
  background: var(--bg-secondary);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.comparison-card {
  background: white;
  padding: var(--spacing-xl);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.comparison-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.card-icon {
  font-size: 2.5rem;
}

.card-header h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.problem-list,
.solution-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.problem-list li,
.solution-list li {
  padding-left: 1.5rem;
  position: relative;
  font-size: var(--text-base);
  line-height: 1.6;
}

.problem-list li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--accent-red);
  font-weight: bold;
}

.solution-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-weight: bold;
}

/* ECOSYSTEM SECTION */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-2xl);
}

.ecosystem-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s var(--ease-bounce);
  position: relative;
}

/* Gradient border on hover */
.ecosystem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-data);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-bounce);
  z-index: 1;
}

.ecosystem-card:hover::before {
  transform: scaleX(1);
}

.ecosystem-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(14, 165, 233, 0.1);
}

.card-visual {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.mappin-card .card-visual {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.08) 0%, rgba(14, 165, 233, 0) 100%);
}

.bitrax-card .card-visual {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0) 100%);
}

.visual-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

.visual-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 24px 24px 0 0;
}


.card-content {
  padding: var(--spacing-xl);
}

.card-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--bg-surface);
  color: var(--primary-teal);
  border-radius: 50px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-sm);
}

.card-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.card-description {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.feature-list li {
  display: flex;
  gap: var(--spacing-sm);
  align-items: flex-start;
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-list strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature-list p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

/* SERVICES BENTO GRID */
.services {
  background: var(--bg-secondary);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.bento-item {
  background: white;
  padding: var(--spacing-xl);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bento-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-data);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.bento-item:hover::before {
  transform: scaleX(1);
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-teal);
}

.bento-item.large {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .bento-item.large {
    grid-column: span 1;
  }
}

.bento-content {
  position: relative;
  z-index: 1;
}

.bento-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.bento-item h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.bento-item p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

.bento-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-surface);
  color: var(--primary-teal);
  border-radius: 50px;
  font-size: var(--text-xs);
  font-weight: 600;
}

/* CLIENTS SECTION */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  align-items: center;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  min-height: 120px;
}

.client-logo:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-teal);
}

.client-logo img {
  max-width: 150px;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.client-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* CTA SECTION */
.cta-section {
  background: var(--gradient-hero);
  color: white;
  text-align: center;
  padding: var(--spacing-3xl) 0;
}

.cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.cta-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: white;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.cta-title .gradient-text {
  color: white;
  -webkit-text-fill-color: white;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.cta-description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-xl);
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background: var(--accent-red);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}

.cta-section .btn-primary:hover {
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.6);
  transform: translateY(-3px) scale(1.05);
}

.cta-section .btn-secondary {
  background: white;
  color: var(--primary-blue);
  border-color: white;
}

/* FOOTER */
.footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-logo {
  max-width: 180px;
  margin-bottom: var(--spacing-sm);
}

.footer-tagline {
  font-size: var(--text-sm);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact a {
  color: var(--accent-sky);
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: white;
}

.footer-column h4 {
  color: white;
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--accent-sky);
}

.footer-column p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: var(--text-sm);
}

/* WHATSAPP FLOATING BUTTON */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--accent-red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0);
}

.whatsapp-float.visible {
  opacity: 1;
  transform: scale(1);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(239, 68, 68, 0.6);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent-red);
  animation: pulse 2s infinite;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* ===================================
   TWO-ROW INFINITE LOGO MARQUEE
   =================================== */

.logo-carousel {
  width: 100%;
  overflow: hidden;
  background: white;
  padding: var(--spacing-xl) 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.logo-carousel::before,
.logo-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logo-carousel::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}

.logo-carousel::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

.logo-track {
  display: flex;
  gap: 2rem;
  width: fit-content;
}

.logo-track-row1 {
  animation: scrollLeft 25s linear infinite;
}

.logo-track-row2 {
  animation: scrollRight 25s linear infinite;
}

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

.logo-slide {
  flex-shrink: 0;
  width: 140px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.logo-slide img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.logo-slide:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.logo-slide:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

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

  100% {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .logo-track-row1 {
    animation-duration: 18s;
  }

  .logo-track-row2 {
    animation-duration: 18s;
  }

  .logo-slide {
    width: 110px;
    height: 70px;
    padding: 0.5rem;
  }

  .logo-carousel {
    gap: 1rem;
  }
}


/* REVEAL ANIMATION (Intersection Observer) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 640px) {
  .hero {
    padding: 6rem 0 3rem;
  }

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

  .btn {
    width: 100%;
    justify-content: center;
  }

  section {
    padding: var(--spacing-2xl) 0;
  }

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

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
}