/* ===== VARIABLES CSS ===== */
:root {
  /* Colors */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary-color: #10b981;
  --secondary-dark: #059669;
  --accent-color: #f59e0b;
  --accent-dark: #d97706;
  
  /* Grays */
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  
  /* Text colors */
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-light: #6b7280;
  --text-white: #ffffff;
  
  /* Background colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-dark: #111827;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  
  /* Font weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 5rem;
  --spacing-5xl: 6rem;
  
  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  
  /* Shadows */
  --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 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-fixed: 1030;
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  
  /* Container */
  --container-padding: 1rem;
  --container-max-width: 1200px;
}

/* ===== BOOTSTRAP CUSTOMIZATIONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.badge {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 20px;
}

/* ===== BASE ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-normal);
  line-height: 1.6;
  color: var(--text-primary);
  background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&auto=format&fit=crop&w=2072&q=80') center/cover no-repeat;
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: var(--z-fixed);
  transition: var(--transition-normal);
  border-bottom: 1px solid var(--gray-200);
}

.header.scroll-header {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.nav {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__data {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-xl);
  font-weight: var(--font-bold);
  color: var(--primary-color);
  text-decoration: none;
}

.nav__logo-img {
  width: 80px;
  height: 80px;
}

.nav__toggle {
  display: none;
  font-size: var(--font-size-xl);
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  border: none;
}

.nav__toggle-close {
  display: none;
}

.nav__menu {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  color: var(--text-secondary);
  font-weight: var(--font-medium);
  padding: var(--spacing-sm) 0;
  position: relative;
  transition: var(--transition-fast);
  text-decoration: none;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition-fast);
}

.nav__link:hover {
  color: var(--primary-color);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  background: var(--primary-color);
  color: var(--text-white) !important;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  margin-left: var(--spacing-md);
}

.nav__cta::after {
  display: none;
}

.nav__cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: var(--text-white) !important;
}

/* ===== HERO SECTION ===== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #e0f2fe 100%);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}


.hero__container {
  position: relative;
  z-index: 2;
}

.hero__subtitle {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.hero__title-highlight {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero__description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__image img {
  filter: drop-shadow(0 20px 40px rgba(37, 99, 235, 0.1));
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--primary-color);
  opacity: 1;
}

.carousel-control-prev {
  left: 2rem;
}

.carousel-control-next {
  right: 2rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 24px;
  height: 24px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 4px;
  background-color: rgba(37, 99, 235, 0.3);
  border: none;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

/* ===== CLIENTS SECTION ===== */
.clients {
  padding: 3rem 0;
  background: var(--bg-secondary);
  margin-top: -1px;
  position: relative;
}

.clients__title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 3rem;
}

/* ===== SERVICES SECTION ===== */
.services {
  padding: var(--spacing-5xl) 0;
  background: var(--bg-primary);
}

.services .nav-pills .nav-link {
  border-radius: 15px;
  padding: 1rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  color: var(--text-secondary);
  border: 2px solid transparent;
  margin: 0 0.25rem;
}

.services .nav-pills .nav-link:hover {
  color: var(--primary-color);
  background: rgba(37, 99, 235, 0.1);
}

.services .nav-pills .nav-link.active {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.services .nav-pills .nav-link i {
  font-size: 1.5rem;
}

.services__header {
  text-align: center;
  margin-bottom: var(--spacing-4xl);
}

.services__title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--spacing-lg);
  color: var(--gray-900);
}

.services__subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-2xl);
}

.service-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
}

.service-card__icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-lg);
}

.service-card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-md);
  color: var(--gray-900);
}

.service-card__description {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.service-card__features {
  margin-bottom: var(--spacing-xl);
}

.service-card__features li {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

.service-card__features i {
  color: var(--secondary-color);
  font-size: var(--font-size-sm);
}

.service-card__link {
  color: var(--primary-color);
  font-weight: var(--font-semibold);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  transition: var(--transition-fast);
}

.service-card__link:hover {
  color: var(--primary-dark);
}

.service-card__link i {
  transition: var(--transition-fast);
}

.service-card__link:hover i {
  transform: translateX(5px);
}


/* ===== WHY US SECTION ===== */
.why-us .nav-pills {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.5rem;
}

.why-us .nav-pills .nav-link {
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-weight: 600;
  transition: all 0.28s ease;
  border: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  min-width: 140px;
  max-width: 220px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
}

.why-us .nav-pills .nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-4px);
}

.why-us .nav-pills .nav-link:focus {
  outline: 3px solid rgba(255,255,255,0.12);
  outline-offset: 2px;
}

.why-us .nav-pills .nav-link.active {
  background: rgba(255, 255, 255, 0.16);
  color: white;
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.why-us .nav-pills .nav-link i {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
  display: block;
  line-height: 1;
}

/* Force icon and text centering inside the nav items for older browsers */
.why-us .nav-pills .nav-link .d-block {
  margin-left: auto;
  margin-right: auto;
}

/* Tab content improvements */
.why-us .tab-content {
  margin-top: 1.5rem;
}

.why-us .tab-pane .row {
  justify-content: center;
  align-items: center; /* vertical centering */
  min-height: 260px; /* ensures vertical alignment space */
}

.why-us .tab-pane .col-lg-8 {
  max-width: 880px;
  padding-left: 1rem;
  padding-right: 1rem;
}

.why-us h3.h2 {
  color: #fff;
}

.why-us .lead {
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
}

/* Fix asymmetric spacing: ensure container uses symmetric padding */
.why-us .container {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Small screens: compact nav items */
@media (max-width: 768px) {
  .why-us .nav-pills .nav-link {
    min-width: 110px;
    padding: 0.8rem 0.6rem;
    min-height: 72px;
  }
  .why-us .nav-pills {
    gap: 0.5rem;
  }
}

/* ===== CLIENTS CAROUSEL ===== */
.clients-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.clients-track {
  display: flex;
  animation: carousel 40s linear infinite;
  will-change: transform;
  gap: 2rem;
}

.clients-track:hover {
  animation-play-state: paused;
}

@keyframes carousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 1rem));
  }
}

/* Añadir efecto de fade en los bordes */
.clients-carousel::before,
.clients-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.clients-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary), transparent);
}

.clients-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary), transparent);
}

.clients__item {
  flex: 0 0 auto;
  min-width: 160px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.clients__item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.clients__logo {
  max-height: 60px;
  max-width: 120px;
  opacity: 0.7;
  transition: var(--transition-normal);
  filter: grayscale(100%);
}

.clients__item:hover .clients__logo {
  opacity: 1;
  filter: grayscale(0%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .clients-track {
    animation-duration: 30s;
    gap: 1.5rem;
  }
  
  .clients__item {
    min-width: 130px;
    height: 90px;
    padding: 1.25rem;
  }
  
  .clients__logo {
    max-height: 50px;
    max-width: 100px;
  }
  
  .clients-carousel::before,
  .clients-carousel::after {
    width: 60px;
  }
}

@media (max-width: 480px) {
  .clients-track {
    animation-duration: 25s;
    gap: 1rem;
  }
  
  .clients__item {
    min-width: 110px;
    height: 80px;
    padding: 1rem;
  }
  
  .clients__logo {
    max-height: 40px;
    max-width: 80px;
  }
  
  .clients-carousel::before,
  .clients-carousel::after {
    width: 40px;
  }
}

/* ===== WORK PROCESS SECTION ===== */
.work-process {
  position: relative;
  overflow: hidden;
}

.work-process .nav-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.work-process .nav-pills .nav-link {
  border-radius: 20px;
  padding: 1.5rem 1rem;
  margin: 0;
  border: 2px solid white;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-secondary);
  transition: all 0.4s ease;
  min-height: 120px;
  min-width: 200px;
  display: flex;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.work-process .nav-pills .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.work-process .nav-pills .nav-link:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
  border-color: var(--primary-color);
}

.work-process .nav-pills .nav-link:hover::before {
  left: 100%;
}

.work-process .nav-pills .nav-link.active {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
  border-color: var(--primary-light);
}

.step-number {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.work-process .nav-pills .nav-link.active .step-number {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.step-content {
  text-align: center;
  z-index: 1;
  position: relative;
}

.step-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.8;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-subtitle {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}

.process-card {
  transition: all 0.4s ease;
  border-radius: 20px;
  border: none;
  background: white;
  overflow: hidden;
  position: relative;
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.process-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.process-card:hover::before {
  transform: scaleX(1);
}

.process-card .card-body {
  padding: 2rem 1.5rem;
}

.process-icon {
  margin-bottom: 1.5rem;
  position: relative;
}

.process-icon img {
  filter: drop-shadow(0 8px 20px rgba(37, 99, 235, 0.15));
  transition: transform 0.3s ease;
}

.process-card:hover .process-icon img {
  transform: scale(1.1) rotate(5deg);
}

.process-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.process-card .card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Tab Content Spacing */
.tab-content {
  margin-top: 3rem;
  padding: 2rem 0;
}

.tab-pane {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.contact__description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact__detail i {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 1.125rem;
}

.contact__detail h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.contact__detail p {
  color: var(--text-secondary);
  margin: 0;
}

.contact__form-container {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

/* ===== FORM STYLES ===== */
.contact__form {
  position: relative;
}

.form__group {
  margin-bottom: 2rem;
  position: relative;
}

.form__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 2px solid var(--gray-300);
  border-radius: 12px;
  transition: all 0.3s ease;
  font-family: inherit;
  resize: vertical;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.form__input:focus + .form__label,
.form__select:focus + .form__label,
.form__textarea:focus + .form__label {
  color: var(--primary-color);
}

.form__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 1.5rem 1.5rem;
  padding-right: 3rem;
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

.form__group--checkbox {
  margin-bottom: 2.5rem;
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  position: relative;
}

.form__checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

.form__checkmark {
  width: 20px;
  height: 20px;
  background: white;
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.form__checkmark::after {
  content: '';
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form__checkbox input[type="checkbox"]:checked ~ .form__checkmark {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.form__checkbox input[type="checkbox"]:checked ~ .form__checkmark::after {
  display: block;
}

.form__checkbox:hover .form__checkmark {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form__checkbox-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.form__link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.form__link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn--primary:hover::before {
  left: 100%;
}

.btn--primary:active {
  transform: translateY(-1px);
}

.btn--full {
  width: 100%;
  padding: 1.25rem 2rem;
  font-size: 1.1rem;
}

.btn i {
  font-size: 1.1em;
}

/* Form Validation Styles */
.form__input:invalid:not(:placeholder-shown),
.form__select:invalid:not(:placeholder-shown),
.form__textarea:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form__input:valid:not(:placeholder-shown),
.form__select:valid:not(:placeholder-shown),
.form__textarea:valid:not(:placeholder-shown) {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Loading state for submit button */
.btn--loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn--loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  color: var(--text-white);
  padding: 4rem 0 1rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer__logo-img {
  width: 40px;
  height: 40px;
}

.footer__logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
}

.footer__description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  transition: var(--transition-normal);
  text-decoration: none;
}

.footer__social-link:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  color: var(--text-white);
}

.footer__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__link {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-fast);
  text-decoration: none;
}

.footer__link:hover {
  color: var(--text-white);
  padding-left: 0.5rem;
}

.footer__contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer__contact-item i {
  color: var(--primary-color);
  width: 20px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.footer__bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal-link {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
  text-decoration: none;
}

.footer__legal-link:hover {
  color: var(--text-white);
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1024px) {
  .hero__title {
    font-size: 2.5rem;
  }
  
  .contact__grid {
    grid-template-columns: 1fr;
  }
  
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .work-process .nav-pills .nav-link {
    padding: 1rem;
    margin: 0 0.25rem;
  }

  .step-content {
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    display: flex;
    align-items: flex-start;
    padding: 2rem 1rem;
  }
  
  .nav__menu.show-menu {
    left: 0;
  }
  
  .nav__list {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }
  
  .nav__link {
    font-size: 1.125rem;
    padding: 0.75rem 0;
  }
  
  .nav__cta {
    margin-left: 0;
    margin-top: 1rem;
    justify-content: center;
  }
  
  .nav__toggle {
    display: block;
  }
  
  .nav__toggle.show-icon .nav__toggle-menu {
    display: none;
  }
  
  .nav__toggle.show-icon .nav__toggle-close {
    display: block;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__description {
    font-size: 1.1rem;
  }

  .hero__buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .clients__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer__bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .services .nav-pills,
  .why-us .nav-pills,
  .work-process .nav-pills {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .services .nav-pills .nav-link,
  .why-us .nav-pills .nav-link {
    margin: 0.25rem 0;
    width: 200px;
    text-align: center;
  }

  .work-process .nav-pills .nav-link {
    margin: 0;
    width: 280px;
    min-height: 100px;
    padding: 1.25rem 1rem;
  }

  .step-number {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .step-subtitle {
    font-size: 0.85rem;
  }

  .tab-content {
    margin-top: 2rem;
    padding: 1rem 0;
  }

  .process-card .card-body {
    padding: 1.5rem 1rem;
  }

  .process-card .card-title {
    font-size: 1rem;
  }

  .process-card .card-text {
    font-size: 0.9rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  .carousel-control-prev {
    left: 1rem;
  }

  .carousel-control-next {
    right: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .hero__title {
    font-size: 1.75rem;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .clients__grid {
    grid-template-columns: 1fr;
  }

  .contact__form-container {
    padding: 1.5rem;
  }

  .work-process .nav-pills .nav-link {
    width: 260px;
    padding: 1rem;
    min-height: 90px;
  }

  .step-subtitle {
    font-size: 0.8rem;
  }

  .contact__form-container {
    padding: 1.5rem;
  }

  .form__group {
    margin-bottom: 1.5rem;
  }

  .form__input,
  .form__select,
  .form__textarea {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }

  .btn--full {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .form__checkbox-text {
    font-size: 0.85rem;
  }
}
