/* --- ESTILOS BASE Y FUENTES --- */
body {
  font-family: "Work Sans", "Noto Sans", sans-serif;
  background-color: #f9fafb; /* bg-gray-50 */
}

/* --- DISEÑO RESPONSIVO (ENFOQUE MÓVIL PRIMERO) --- */

/* Estilos para dispositivos móviles (por defecto) */
.main-content-area {
  padding-left: 1rem; /* px-4 */
  padding-right: 1rem; /* px-4 */
}

.header-padding {
  padding-left: 1.5rem; /* px-6 */
  padding-right: 1.5rem; /* px-6 */
}

/* --- Estilos para pantallas medianas y más grandes (tablets, etc.) --- */
@media (min-width: 768px) {
  .main-content-area {
    padding-left: 5rem; /* md:px-20 */
    padding-right: 5rem; /* md:px-20 */
  }

  .header-padding {
    padding-left: 2.5rem; /* px-10 */
    padding-right: 2.5rem; /* px-10 */
  }
}

/* --- Estilos para pantallas grandes (escritorio) --- */
@media (min-width: 1024px) {
  .main-content-area {
    padding-left: 10rem; /* lg:px-40 */
    padding-right: 10rem; /* lg:px-40 */
  }
}

/* Botón flotante de WhatsApp */
.fab-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.fab-whatsapp:hover {
  background: #1ebe57;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}
.fab-whatsapp svg {
  width: 32px;
  height: 32px;
  display: block;
}

/* Estilo para el enlace activo */
.active-nav-link {
  color: #e12326 !important;
  border-bottom: 2px solid #e12326;
  padding-bottom: 2px;
}

/* Overlay menú móvil */
@media (max-width: 767px) {
  .header-nav-links {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    font-size: 1.25rem;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding-top: 4rem;
  }
  .header-nav-links.hidden {
    display: none !important;
  }
  #menu-close {
    display: block;
  }
}

@media (min-width: 768px) {
  #menu-toggle,
  #menu-close {
    display: none !important;
  }
  .header-nav-links {
    position: static !important;
    flex-direction: row !important;
    background: transparent !important;
    height: auto !important;
    width: auto !important;
    padding-top: 0 !important;
    gap: 2.25rem !important;
    font-size: 1rem !important;
  }
}

@keyframes float-zoom {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 16px 0 rgba(39, 174, 96, 0.15);
  }
  50% {
    transform: translateY(-10px) scale(1.07);
    box-shadow: 0 8px 24px 0 rgba(39, 174, 96, 0.25);
  }
}
.animate-float {
  animation: float-zoom 1.6s ease-in-out infinite;
  will-change: transform;
}

/* --- ANIMACIÓN CARRUSEL DE CLIENTES (MODIFICADO) --- */
@keyframes scroll-infinite {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

#clientes-carousel {
  /* MODIFICACIÓN: Velocidad ajustada para ser más dinámica */
  animation: scroll-infinite 35s linear infinite;
  will-change: transform;
}

#clientes-carousel:hover {
  animation-play-state: paused;
}

/* NUEVO: Efecto de desvanecimiento en los bordes del carrusel */
#clientes-carousel-wrapper::before,
#clientes-carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px; /* Ancho del desvanecimiento */
  z-index: 2;
  pointer-events: none; /* Permite hacer clic a través del degradado */
}

#clientes-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #ffff, transparent);
}

#clientes-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #ffff, transparent);
}