/* Font Import */
@import url("https://cdn.jsdelivr.net/npm/mona-sans@1.0.1/css/mona-sans.min.css");

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette */
  --primary-color: #064fd3;
  --secondary-color: #05f2d4;
  --text-color: #000000;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #333333;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #064fd3 0%, #0563e8 100%);
  --gradient-secondary: linear-gradient(135deg, #05f2d4 0%, #04d9bf 100%);
  --gradient-text: linear-gradient(135deg, #064fd3 0%, #05f2d4 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(6, 79, 211, 0.08);
  --shadow-md: 0 4px 16px rgba(6, 79, 211, 0.12);
  --shadow-lg: 0 8px 32px rgba(6, 79, 211, 0.16);
  --shadow-xl: 0 16px 48px rgba(6, 79, 211, 0.2);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Mona Sans",
    "Manrope",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-stretch: expanded;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--spacing-sm) 0;
  transition: all var(--transition-normal);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem; /* Slightly reduced vertical padding */
  gap: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-normal);
}

/* Navbar when scrolled over white backgrounds */
.navbar.navbar-scrolled .nav-content {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.logo {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  position: relative;
  width: 100px; /* Fixed width to prevent layout shift */
  height: 32px;
}

.logo-img {
  height: 32px;
  width: auto;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity var(--transition-normal);
}

.logo-white {
  opacity: 1;
}

.logo-color {
  opacity: 0;
}

/* On scroll, fade out white logo and fade in color logo */
.navbar.navbar-scrolled .logo-white {
  opacity: 0;
}

.navbar.navbar-scrolled .logo-color {
  opacity: 1;
}

/* Ensure Nav Links are black on scroll */
.navbar.navbar-scrolled .nav-link {
  color: var(--text-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: var(--spacing-lg);
  margin: 0 auto; /* Center the menu */
  /* Remove flex: 1 and center justification from parent to allow space-between */
}

/* Show Desktop CTA, Hide Mobile CTA Item by default on desktop */
.desktop-cta {
  display: inline-flex;
}

.mobile-cta-item {
  display: none;
}

.nav-link {
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: opacity var(--transition-fast);
  padding: 0.5rem 0;
}

.nav-link:hover {
  opacity: 0.8;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  list-style: none;
  flex-direction: column;
  gap: 0;
  display: flex;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  width: 100%;
  text-align: left;
}

.dropdown-menu a:hover {
  background: rgba(6, 79, 211, 0.05);
  color: var(--primary-color);
}

.btn-nav-cta {
  background: var(--white);
  color: var(--primary-color);
  padding: 10px 24px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition-normal);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar.navbar-scrolled .btn-nav-cta {
  background: var(--primary-color);
  color: var(--white);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001; /* Above menu */
}

.mobile-menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.navbar.navbar-scrolled .mobile-menu-toggle span {
  background: var(--text-color);
}

/* Mobile Responsive Adjustments */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-xl);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    gap: var(--spacing-md); /* Reduce gap on mobile */
  }

  .nav-menu.active {
    right: 0;
  }

  /* Reset dropdown height on mobile */
  .dropdown {
    height: auto;
  }

  .nav-link {
    color: var(--text-color); /* Always black on mobile menu */
    font-size: 1.2rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .desktop-cta {
    display: none !important; /* Hide standard CTA on mobile header */
  }

  .mobile-cta-item {
    display: block; /* Show CTA inside menu */
    margin-top: var(--spacing-sm);
    width: 100%;
  }

  .mobile-cta-item .btn-nav-cta {
    width: 100%;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white);
  }

  /* Hamburger Animation */
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 6px);
    background-color: var(--text-color);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -5px);
    background-color: var(--text-color);
  }

  /* Dropdown on mobile */
  .dropdown {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  /* Disable hover effect on mobile */
  .dropdown:hover .dropdown-menu {
    opacity: 1; /* Reset to default */
    visibility: visible;
    transform: none;
    /* display is handled by .active class */
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding-left: 0;
    margin-top: 0;
    background: var(--light-gray);
    width: 100%;
    display: none !important; /* Hide by default on mobile */
  }

  .dropdown-menu.active {
    display: flex !important;
    margin-top: 10px;
  }

  .dropdown-menu a {
    padding: 12px 0; /* Remove left padding to align with parent text */
  }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 12px 28px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition:
    width var(--transition-slow),
    height var(--transition-slow);
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-icon {
  transition: transform var(--transition-normal);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(
    6,
    79,
    211,
    0.6
  ); /* Azul corporativo #064FD3 con transparencia */
  /* background: rgba(0, 0, 0, 0.6); /* Capa negra con transparencia */
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  color: var(--white);
  letter-spacing: -0.02em;
}

.title-line {
  display: block;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
  line-height: 1.7;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 10px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

/* ========================================
   SECTION STYLES
   ======================================== */
section {
  padding: var(--spacing-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-tag {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(
    135deg,
    rgba(6, 79, 211, 0.1) 0%,
    rgba(5, 242, 212, 0.1) 100%
  );
  color: var(--primary-color);
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-sm);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.15rem;
  color: var(--dark-gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
  background: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.services-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.services .container {
  position: relative;
  z-index: 2;
}

/* Carousel Wrapper */
.services-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.services-carousel {
  overflow: hidden;
  flex: 1;
  border-radius: var(--radius-lg);
}

.services-track {
  display: flex;
  gap: var(--spacing-md);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Carousel Buttons */
.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--light-gray) !important;
  border: 1.5px solid var(--medium-gray) !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color) !important;
  box-shadow: 0 4px 12px rgba(6, 79, 211, 0.08);
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 10;
  padding: 0;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  transition: transform 0.3s ease;
}

.carousel-btn:hover:not(:disabled) {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(6, 79, 211, 0.2);
  border-color: var(--primary-color) !important;
}

.carousel-btn:hover:not(:disabled) svg {
  transform: scale(1.1);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: scale(1);
}

.carousel-btn:disabled:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-md);
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--medium-gray);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  padding: 0;
}

.carousel-dot.active {
  background: var(--primary-color);
  width: 32px;
  border-radius: 6px;
}

.carousel-dot:hover {
  background: var(--primary-color);
  opacity: 0.7;
}

/* Service Cards */
.service-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  /* Force 2 cards per view considering gap */
  flex: 0 0 calc(50% - var(--spacing-md) / 2);
  width: calc(50% - var(--spacing-md) / 2);
  min-width: 0; /* Override previous min-width */
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(6, 79, 211, 0.1) 0%,
    rgba(5, 242, 212, 0.1) 100%
  );
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  color: var(--white);
  transform: scale(1.05);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
}

.service-description {
  color: var(--dark-gray);
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.service-features li {
  font-size: 0.9rem;
  color: var(--dark-gray);
  padding-left: 24px;
  position: relative;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Service Button */
.btn-service {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  justify-content: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  margin-top: auto;
}

.btn-service:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-service .btn-icon {
  transition: transform var(--transition-normal);
}

.btn-service:hover .btn-icon {
  transform: translateX(4px);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.about-description {
  color: var(--dark-gray);
  margin-bottom: var(--spacing-md);
  font-size: 1.05rem;
  line-height: 1.8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-md);
  background: linear-gradient(
    135deg,
    rgba(6, 79, 211, 0.05) 0%,
    rgba(5, 242, 212, 0.05) 100%
  );
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--dark-gray);
  font-weight: 600;
}

.image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
  box-shadow: var(--shadow-xl);
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
  border-radius: 8px;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

.image-decoration {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  opacity: 0.3;
  z-index: -1;
  animation: floatDecoration 6s ease-in-out infinite;
}

@keyframes floatDecoration {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* ========================================
   CLIENTS SECTION
   ======================================== */
.clients-section {
  padding: var(--spacing-lg) 0;
  background: var(--white);
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  overflow: hidden;
}

.clients-slider {
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Add masking to fade edges */
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.clients-track {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  white-space: nowrap;
  animation: scroll-infinite 40s linear infinite;
  padding: var(--spacing-sm) 0;
}

/* Pause animation on hover */
.clients-track:hover {
  animation-play-state: paused;
}

.client-logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo {
  height: 48px;
  width: auto;
  opacity: 0.4;
  transition: all var(--transition-normal);
  filter: grayscale(100%);
  cursor: pointer;
  object-fit: contain;
}

.client-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

@keyframes scroll-infinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .clients-track {
    gap: var(--spacing-lg);
    animation-duration: 20s;
  }

  .client-logo {
    height: 36px;
  }
}

/* ========================================
   WHY CHOOSE US SECTION
   ======================================== */
.why-choose-us {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  color: var(--white);
}

.why-choose-us .container {
  position: relative;
  z-index: 2;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.why-choose-us .faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: var(--spacing-sm);
}

.why-choose-us .faq-item:last-child {
  border-bottom: none;
}

.why-choose-us .faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  text-align: left;
  color: var(--white);
  font-size: 1.56rem; /* ~25px */
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition-fast);
}

.why-choose-us .faq-question:hover {
  color: var(--secondary-color);
}

.why-choose-us .faq-icon {
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform var(--transition-normal);
}

.why-choose-us .faq-item.active .faq-question {
  color: var(--secondary-color);
}

.why-choose-us .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  color: var(--white);
}

.why-choose-us .faq-answer p {
  padding-bottom: 20px;
  line-height: 1.6;
  font-size: 1.25rem; /* 20px */
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Increased to ensure content fits */
}

/* ========================================
   PROCESS SECTION
   ======================================== */
.process-section {
  padding: var(--spacing-xl) 0;
  background: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.process-timeline {
  position: relative;
  margin-top: var(--spacing-lg);
}

.timeline-line {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--medium-gray);
  z-index: 1;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  position: relative;
  z-index: 2;
}

.process-step {
  display: flex;
  flex-direction: column;
}

.step-dot-wrapper {
  margin-bottom: var(--spacing-md);
  position: relative;
}

.step-dot {
  width: 32px;
  height: 32px;
  background: var(--white);
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  box-shadow: 0 0 0 6px rgba(6, 79, 211, 0.05);
}

.step-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 50%;
}

.process-step:hover .step-dot {
  transform: scale(1.1);
  border-color: var(--secondary-color);
}

.process-step:hover .step-dot::after {
  background: var(--secondary-color);
}

.step-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
  color: var(--text-color);
  line-height: 1.2;
}

.step-description {
  font-size: 1rem;
  color: var(--dark-gray);
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
  min-height: 85px; /* Ensure all tags start at the same level */
}

.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--spacing-sm);
}

.step-tag-item {
  background: rgba(6, 79, 211, 0.08);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(6, 79, 211, 0.15);
  transition: all var(--transition-normal);
}

.step-tag-item:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 968px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .timeline-line {
    display: none;
  }

  .step-dot-wrapper {
    margin-bottom: var(--spacing-sm);
  }
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
  background: var(--light-gray);
}

.contact-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-xl);
}

.contact-form {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--medium-gray);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-normal);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(6, 79, 211, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.info-card {
  background: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-normal);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.info-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    rgba(6, 79, 211, 0.1) 0%,
    rgba(5, 242, 212, 0.1) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-sm);
  color: var(--primary-color);
}

.info-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: var(--spacing-xs);
}

.info-card p {
  color: var(--dark-gray);
  font-size: 0.95rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--text-color);
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  margin: var(--spacing-sm) 0 var(--spacing-md);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-links a {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition-normal);
}

.social-links a:hover {
  background: var(--gradient-primary);
  transform: translateY(-4px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.footer-column h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--white);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: var(--spacing-xs);
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   ANIMATIONS
   ======================================== */
[data-aos] {
  opacity: 0;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    top: 90px;
    left: -100%;
    right: var(--spacing-md);
    width: calc(100% - var(--spacing-lg));
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--spacing-lg);
    transition: left var(--transition-normal);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-lg);
    justify-content: flex-start;
    gap: var(--spacing-md);
    margin-left: var(--spacing-md);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    color: var(--text-color);
  }

  /* Mobile Dropdown */
  .dropdown {
    display: block;
    width: 100%;
  }

  .dropdown .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    min-width: 0;
    margin-top: var(--spacing-xs);
    padding-left: var(--spacing-lg);
    border-left: 2px solid rgba(0, 0, 0, 0.05);
  }

  .dropdown-menu li {
    margin-bottom: 5px;
    width: 100%;
  }

  .dropdown-menu a {
    padding: 8px 0;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
  }

  .btn-nav-cta {
    margin-top: var(--spacing-md);
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .service-features {
    grid-template-columns: 1fr;
  }

  /* Carousel responsive */
  .service-card {
    flex: 0 0 100%;
    width: 100%;
  }

  .carousel-btn {
    display: none;
  }

  .services-carousel-wrapper {
    gap: 0;
  }

  /* Hero adjustments for mobile */
  .hero-content {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }

  .scroll-indicator {
    bottom: 10px; /* Bajarlo más */
  }

  /* Ensure nav button inside li looks good */
  .nav-menu li {
    width: 100%;
  }

  .nav-menu li .btn-nav-cta {
    width: 100%;
    margin-top: var(--spacing-sm);
  }
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials {
  padding: var(--spacing-xl) 0;
  background: var(--light-gray); /* Match context or white */
  overflow: hidden;
}

/* Override background if needed, services is light gray, let's make testimonials white for contrast? */
.testimonials {
  background: var(--white);
}

.testimonials-content {
  display: flex;
  align-items: stretch;
  gap: var(--spacing-xl);
  width: 100%;
}

.testimonials-image {
  flex: 0 0 45%; /* Fixed ratio to prevent collapse */
  position: relative;
  min-width: 300px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  background: var(--light-gray);
}

.testimonials-image img {
  width: 100%;
  height: 100%; /* Fill space 2 */
  display: block;
  object-fit: cover;
  border-radius: var(--radius-lg);
  min-height: 480px; /* Ensure a minimum presence */
}

.testimonials-image .image-decoration {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: var(--secondary-color);
  opacity: 0.2;
  border-radius: 50%;
  z-index: -1;
}

.testimonials-slider-wrapper {
  flex: 1;
  min-width: 0; /* Prevent overflow content from pushing other flex items */
  position: relative;
}

.testimonials-slider-container {
  overflow: hidden;
  position: relative;
  margin-bottom: var(--spacing-sm); /* Reduced margin */
  width: 100%;
  transition: height 0.4s ease; /* Smooth height transition */
}

.testimonials-track {
  display: flex;
  align-items: flex-start; /* Ensure height depends on active slide */
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.testimonial-slide {
  min-width: 100%;
  padding-right: var(--spacing-sm);
  box-sizing: border-box;
}

.quote-icon {
  color: var(--primary-color);
  opacity: 0.2;
  margin-bottom: var(--spacing-sm);
}

.testimonial-text {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-color);
  font-style: italic;
  margin-bottom: var(--spacing-md);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.author-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 2px;
}

.author-info p {
  font-size: 0.9rem;
  color: var(--dark-gray);
  font-weight: 500;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
  padding: 10px 0; /* Add padding to prevent clipping of shadows and hover effects */
}

@media (max-width: 968px) {
  .testimonials-content {
    flex-direction: column;
  }

  .testimonials-image {
    width: 100%;
    margin-bottom: var(--spacing-md);
    order: -1; /* Image first */
  }

  .testimonials-image img {
    max-height: 300px;
  }

  .testimonials-slider-wrapper {
    width: 100%;
  }
}

/* ========================================
   SERVICE DETAIL PAGES
   ======================================== */
.service-detail-hero {
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  background: linear-gradient(135deg, #064fd3 0%, #05f2d4 100%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

#hero-canvas,
#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.service-detail-hero .container {
  position: relative;
  z-index: 2;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: var(--radius-lg);
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  transform: translateX(-4px);
}

.service-content {
  padding: var(--spacing-xl) 0;
}

/* Feature Boxes Grid */
.service-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-box {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--medium-gray);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.feature-box-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(
    135deg,
    rgba(6, 79, 211, 0.1) 0%,
    rgba(5, 242, 212, 0.1) 100%
  );
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.feature-box h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
}

.feature-box p {
  color: var(--dark-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Why Choose Us Service Page Specific */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: center;
}

.why-us-content .section-title {
  text-align: left;
}

.why-us-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

.why-us-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-us-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--primary-color);
  margin-top: 4px;
}

.why-us-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.why-us-text p {
  font-size: 0.95rem;
  color: var(--dark-gray);
}

@media (max-width: 968px) {
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Service Page Animations */
.feature-box-icon {
  transition: transform var(--transition-normal);
}

.feature-box:hover .feature-box-icon {
  transform: scale(1.1) rotate(5deg);
}

.why-us-item {
  transition: transform var(--transition-fast);
}

.why-us-item:hover {
  transform: translateX(8px);
}

.why-us-icon {
  transition: color var(--transition-fast);
}

.why-us-item:hover .why-us-icon {
  color: var(--secondary-color);
}

/* FAQ Section Styles */
.faq-section {
  background: var(--white);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-section .faq-item {
  background: var(--white);
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-section .faq-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.faq-section .faq-item.active {
  border-color: var(--primary-color);
}

.faq-section .faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition-fast);
}

.faq-section .faq-question:hover {
  color: var(--primary-color);
}

.faq-section .faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary-color);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-section .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height var(--transition-slow),
    padding var(--transition-slow);
  padding: 0 1.5rem;
}

.faq-section .faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.faq-section .faq-answer p {
  color: var(--dark-gray);
  line-height: 1.7;
  margin: 0;
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background-color: #20bd5a;
}
.whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Ensure z-index is higher than other floating elements but lower than modals if any */
@media (max-width: 768px) {
  .whatsapp-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-btn svg {
    width: 28px;
    height: 28px;
  }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Skip Link */
/* Skip Link */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;

  background: var(--primary-color);
  color: var(--white);
  z-index: 99999;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  transition:
    top 0.3s ease,
    opacity 0.3s ease;
}

.skip-link:focus {
  position: fixed;
  top: 0;
  left: 20px;
  width: auto;
  height: auto;
  padding: 12px 20px;
  margin: 0;
  clip: auto;
  outline: 3px solid var(--secondary-color);
  box-shadow: var(--shadow-xl);
  opacity: 1; /* Ensure visible */
}

/* Focus Visibility */
:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Adjust focus for buttons with backgrounds might need contrast */
.btn-primary:focus-visible {
  outline: 3px solid var(--white);
  box-shadow: 0 0 0 5px var(--primary-color);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Disable video background */
  .hero-video {
    display: none;
  }

  .video-background {
    background-color: #064fd3; /* Solid color fallback */
    background-image: linear-gradient(135deg, #064fd3 0%, #0563e8 100%);
  }

  /* Disable decorative floating animations */
  .image-decoration {
    animation: none;
  }

  .scroll-indicator,
  .wheel {
    animation: none;
  }

  /* Allow manual scrolling for clients slider */
  .clients-slider {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .clients-track {
    animation: none;
    width: max-content;
  }
}
