/* =====================================================
   Tarjetas de Servicios — Estilo Rabbit Solutions
   Imagen de fondo con blur, nítida al hacer hover
   ===================================================== */

/* Grid de 3 columnas, 3 filas */
.services-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 3rem;
}

/* Tarjeta base */
.svc-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s ease;
}

.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

/* Imagen de fondo — borrosa por defecto */
.svc-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(4px);
  transform: scale(1.06); /* evita bordes blancos del blur */
  transition: filter 0.5s ease, transform 0.5s ease;
}

/* Al hacer hover: imagen nítida */
.svc-card:hover .svc-bg {
  filter: blur(0px);
  transform: scale(1.03);
}

/* Overlay oscuro — más denso en reposo, más sutil en hover */
.svc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(59, 31, 88, 0.90) 0%,
    rgba(59, 31, 88, 0.55) 50%,
    rgba(59, 31, 88, 0.25) 100%
  );
  transition: background 0.5s ease;
  z-index: 1;
}

.svc-card:hover .svc-overlay {
  background: linear-gradient(
    to top,
    rgba(59, 31, 88, 0.80) 0%,
    rgba(59, 31, 88, 0.35) 55%,
    rgba(59, 31, 88, 0.10) 100%
  );
}

/* Contenido de texto */
.svc-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem 1.5rem 2rem;
  text-align: center;
}

/* Título */
.svc-title {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.6rem;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Descripción */
.svc-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin-bottom: 1.4rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  max-width: 260px;
}

/* Botón centrado */
.svc-btn {
  display: inline-block;
  padding: 10px 28px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 30px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease,
              color 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.svc-btn:hover {
  background: var(--primary-orange);
  border-color: var(--primary-orange);
  color: #ffffff;
  transform: scale(1.05);
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1024px) {
  .services-photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .services-photo-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .svc-card {
    aspect-ratio: 3 / 2;
  }

  .svc-content {
    padding: 1.5rem 1.2rem;
  }

  .svc-title {
    font-size: 1.1rem;
  }

  .svc-desc {
    font-size: 0.85rem;
  }
}
