/* ===== CLIENTS SECTION ===== */
.clients-section {
  padding: 80px 0;
  background: var(--bg-color);
  margin: 120px 0;
}

.clients-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Nuevo estilo para el título */
.clients-title {
  text-align: center;
  margin-bottom: 60px;
}

.clients-title h2 {
  font-size: 90px;
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.clients-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  grid-template-rows: repeat(4, 200px);
  gap: 0;

  border: 1px solid rgba(255, 255, 255, 0.1);
}

.client-card {
  position: relative;
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.client-card:nth-child(6),
.client-card:nth-child(12) {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.client-card:nth-child(n+7) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.client-card.wide {
  grid-column: span 2;
}

.client-content {
  text-align: center;
  z-index: 2;
  transition: all 0.5s ease;
}

.client-name {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.client-service {
  font-size: 14px;
  color: var(--muted);
}

.client-logo {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  filter: blur(10px);
  transition: all 1.5s ease;
  z-index: 3;
}

.client-logo img {
  max-width: 80px;
  max-height: 60px;
  filter: brightness(0) invert(1);
}

.client-card.show-logo .client-content {
  opacity: 0;
  transform: translateY(20px);
}

.client-card.show-logo .client-logo {
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  filter: blur(0);
}

.green-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(0, 255, 0, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.client-card:hover .green-glow {
  width: 60px;
  height: 60px;
  opacity: 1;
}


.clients-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  grid-template-rows: repeat(3, 200px);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}


.client-card:nth-child(6),
.client-card:nth-child(12),
.client-card:nth-child(18) {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.client-card:nth-child(n+7):nth-child(-n+12) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.client-card:nth-child(n+13) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.green-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  background: radial-gradient(ellipse at top right, rgba(0, 255, 127, 0.4) 0%, rgba(0, 255, 127, 0.2) 40%, transparent 70%);
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
  border-radius: 0 0 0 100%;
}

.client-card:hover .green-glow {
  width: 50%;
  height: 50%;
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .clients-section {
    margin: 80px 0;
  }
  
  .clients-title h2 {
    font-size: 64px;
  }
  
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(6, 150px);
  }
  
  .client-card.wide {
    grid-column: span 1;
  }
  
  .client-name {
    font-size: 14px;
  }
  
  .client-service {
    font-size: 12px;
  }
  
  .client-logo img {
    max-width: 60px;
    max-height: 40px;
  }
  
  .client-card:hover .green-glow {
    width: 40%;
    height: 40%;
  }
}

@media (max-width: 480px) {
  .clients-section {
    margin: 60px 0;
  }
  
  .clients-title h2 {
    font-size: 48px;
    letter-spacing: 1px;
  }
  
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(9, 120px);
  }
  
  .client-name {
    font-size: 12px;
  }
  
  .client-service {
    font-size: 10px;
  }
  
  .client-card:hover .green-glow {
    width: 35%;
    height: 35%;
  }
}