/* ============================================
   CARRUSEL DE SERVICIOS - SWIPER
   ============================================ */

.services-carousel {
  position: relative;
  padding: 0 50px;
}

.services-carousel .swiper {
  padding: 20px 5px 60px 5px;
  overflow: visible;
}

.services-carousel .swiper-slide {
  height: auto;
}

.services-carousel .swiper-button-next,
.services-carousel .swiper-button-prev {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
}

.services-carousel .swiper-button-next:hover,
.services-carousel .swiper-button-prev:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.services-carousel .swiper-button-next::after,
.services-carousel .swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
  color: white;
}

.services-carousel .swiper-button-prev {
  left: 0;
}

.services-carousel .swiper-button-next {
  right: 0;
}

.services-carousel .swiper-pagination {
  bottom: 0;
}

.services-carousel .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #cbd5e1;
  opacity: 1;
  transition: all 0.3s ease;
}

.services-carousel .swiper-pagination-bullet-active {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  width: 30px;
  border-radius: 6px;
}

/* ============================================
   TARJETAS DE SERVICIOS PREMIUM
   ============================================ */

/* Estilos mejorados para las tarjetas de servicios */
.service-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  height: 100%;
  margin-bottom: 0;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 50%, #3b82f6 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* Estilos base para todas las pantallas */
.service-card .img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  aspect-ratio: 16/10;
}

.service-card .img-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  pointer-events: none;
}

.service-card img {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card .service-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Variantes de badges por color */
.service-card .service-badge.badge-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.service-card .service-badge.badge-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.service-card .service-badge.badge-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.service-card .service-badge.badge-red {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.service-card .content {
  padding: 1.75rem 1.5rem 1.5rem;
  background: #ffffff;
  position: relative;
}

.service-card .service-title {
  color: #1e293b;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  line-height: 1.3;
}

.service-card .service-description {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card .service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.service-card .service-features span {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: #1e40af;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.service-card .service-features span i {
  color: #3b82f6;
  font-size: 0.7rem;
}

/* Efectos hover solo para dispositivos no táctiles */
@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  }

  .service-card:hover img {
    transform: scale(1.08);
  }

  .service-card:hover .service-title {
    color: #3b82f6;
  }

  .service-card .btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  }
}

/* Ajustes específicos para móviles */
@media (max-width: 576px) {
  .services-carousel {
    padding: 0 10px;
  }
  
  .services-carousel .swiper-button-next,
  .services-carousel .swiper-button-prev {
    display: none;
  }
  
  .service-card {
    margin-bottom: 0;
  }

  .service-card .content {
    padding: 1.5rem 1.25rem;
  }

  .service-card .service-title {
    font-size: 1.1rem;
  }

  .service-card .service-description {
    font-size: 0.85rem;
    -webkit-line-clamp: 3;
  }
}

/* Ajustes para tablets */
@media (min-width: 577px) and (max-width: 991px) {
  .services-carousel {
    padding: 0 30px;
  }
  
  .services-carousel .swiper-button-next,
  .services-carousel .swiper-button-prev {
    width: 45px;
    height: 45px;
  }
  
  .service-card .img-wrapper {
    aspect-ratio: 4/3;
  }

  .service-card .content {
    padding: 1.5rem;
  }
}

/* Ajustes para pantallas grandes */
@media (min-width: 992px) {
  .service-card .img-wrapper {
    aspect-ratio: 16/10;
  }

  .service-card .content {
    padding: 1.75rem 1.5rem;
  }

  .service-card .service-title {
    font-size: 1.3rem;
  }

  .service-card .service-description {
    font-size: 0.9rem;
  }
}

/* Optimizaciones de rendimiento */
.service-card {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* ============================================
   BOTONES DE TARJETAS
   ============================================ */

.service-buttons {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.service-buttons .btn {
  flex: 1;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-ver-servicio {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.btn-ver-servicio:hover {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.btn-ver-servicio i {
  font-size: 1rem;
}

.service-buttons .btn-whatsapp-premium {
  flex: 1;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
}

/* Responsive para botones */
@media (max-width: 576px) {
  .service-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .service-buttons .btn {
    width: 100%;
  }
}