/* =========================================
   Nuestros Servicios Section (3x2 Grid)
   ========================================= */

.nuestros-servicios-section {
  padding: 80px 0 100px;
  background-color: var(--color-white);
}

.ns-container {
  max-width: 1200px;
  margin: 0 auto;
}

.ns-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  color: #0f172a;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.ns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ns-card {
  margin: 0;
  background-color: #f1f5f9;
  border-radius: 16px;
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 12px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  cursor: pointer;
  min-height: 120px;
  position: relative;
}

.ns-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  background-color: #e2e8f0;
}

.ns-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #3b82f6; /* Blue circle */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ns-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.ns-card-title-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ns-card-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  line-height: 1.3;
}

/* ---- Tooltip Bubble ---- */
.ns-card-hover-text {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background-color: #0f172a;
  color: #f1f5f9;
  font-size: 0.88rem;
  line-height: 1.55;
  padding: 14px 18px;
  border-radius: 14px;
  width: 260px;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

/* Arrow pointing down */
.ns-card-hover-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #0f172a;
}

.ns-card:hover .ns-card-hover-text {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
  .ns-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ns-section {
    padding: 60px 1.5rem;
  }
}

@media (max-width: 640px) {
  .ns-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .ns-card {
    padding: 24px 20px;
  }
}
