/* Configuración Global */
html {
    scroll-behavior: smooth;
}

.services {
    scroll-margin-top: 80px; /* ajusta según tu navbar */
}

body { font-family: 'Inter', sans-serif; }

/* Fondo con Blobs Animados */
.blur-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    background-color: #020617;
}

.blob {
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: move 20s infinite alternate;
}

.blob-1 { background: #3b82f6; top: -10%; right: -5%; }
.blob-2 { background: #1e40af; bottom: 10%; left: -5%; animation-delay: 2s; }
.blob-3 { background: #0ea5e9; top: 40%; left: 30%; animation-delay: 4s; }

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, 100px) scale(1.1); }
}

/* Navbar Glassmorphism */
.glass {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Títulos y Efectos */
.text-glow {
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 15px rgba(96, 165, 250, 0.4));
}


.badge {
    display: inline-block;
    padding: 0.3rem 0.5em;
    font-size: 0.75rem;
    font-weight: 600;
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.05);
    margin-bottom: 1.5rem;
}

.btn-primary {
    background-color: #3b82f6;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    transition: all 0.3s ease;
}

/* SECCIÓN SERVICIOS: Ajuste para subir el contenido */
.services {
    position: relative;
    z-index: 10;
    padding-top: 8rem;
    /* Esto asegura que el ancla se detenga en el lugar correcto */
    scroll-margin-top: 80px;
}

.service-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 2rem;
    transition: all 0.4s ease;
}

.service-card:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: #3b82f6;
    transform: translateY(-8px);
}

.icon-box {
    width: 3.5rem; height: 3.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    display: flex; align-items: center; justify-content: center;
    border-radius: 1rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.py-32 {
    padding-top: 5rem;
    padding-bottom: 8rem;

}

/* Botón Flotante de WhatsApp */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  fill: white;
}


/* clientes */
/* Estilos adicionales para Footer y Social */
.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 0; /* Para ocultar texto si usas iconos después */
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #3b82f6;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Animación de entrada para los clientes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.client-logo {
    animation: fadeIn 1s ease forwards;
}

/* Mejora al input del footer */
input::placeholder {
    color: #475569;
}

/* Filtro para que los logos de colores se vean blancos/grises elegantes */
.client-logo {
    filter: brightness(0) invert(1); /* Convierte logos negros/color en blancos */
    opacity: 0.6;
    transition: all 0.4s ease;
}

.client-logo:hover {
    filter: none; /* Recupera su color original al pasar el mouse */
    opacity: 1;
    transform: scale(1.1);
}

/* Forzar que los logos de los clientes sean visibles y blancos */
.client-logo {
    filter: brightness(0) invert(1); /* Convierte logos oscuros a blanco puro */
    opacity: 0.7;
    max-height: 40px; /* Controla el tamaño uniforme */
    width: auto;
    transition: all 0.4s ease;
}

.client-logo:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
    opacity: 1;
    transform: scale(1.1);
}

/* Evitar que se queden invisibles si falla el JS */
.opacity-0 {
    opacity: 0;
}
.opacity-100 {
    opacity: 1 !important;
}

/* Estilo para los logos de clientes */
.client-logo {
    /* Esto convierte logos negros o de color en blanco elegante */
    filter: brightness(0) invert(1); 
    opacity: 0.6; /* Se ven un poco transparentes de fondo */
    transition: all 0.4s ease-in-out;
    display: block;
}

.client-logo:hover {
    filter: none; /* Al pasar el mouse recuperan su color original */
    opacity: 1;
    transform: scale(1.05);
}

/* Evitar que el IntersectionObserver los deje invisibles si hay error */
.client-logo.opacity-0 {
    opacity: 0.1; /* Un mínimo de visibilidad por seguridad */
}