/* Estilos exclusivos para la página de servicios */

/* Sección de servicios con gradiente sutil */
.servicios {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.servicios::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.03) 0%, rgba(0, 123, 255, 0.08) 100%);
  z-index: 0;
  border-radius: 0 0 50% 50% / 0 0 5% 5%;
}

.servicios > .col-lg-12 {
  position: relative;
  z-index: 1;
}

/* Tarjeta de servicio con diseño moderno y elegante */
.service-card {
  border: none;
  border-radius: 1.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.05), transparent);
  transition: left 0.5s;
}

.service-card:hover::before {
  left: 100%;
}

/* Hover: eleva la tarjeta con efecto dramático */
.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 123, 255, 0.2);
  background: linear-gradient(145deg, #ffffff 0%, #ffffff 100%);
}

/* Contenedor circular del ícono con gradiente */
.icon-box {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0.2) 100%);
  border-radius: 1.25rem;
  margin: 0 auto 1.5rem;
  transition: all 0.4s ease;
  position: relative;
}

.icon-box::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Hover: fondo sólido azul con rotación y escala del ícono */
.service-card:hover .icon-box {
  transform: rotate(-10deg) scale(1.1);
}

.service-card:hover .icon-box::after {
  opacity: 1;
}

.icon-box i {
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.service-card:hover .icon-box i {
  color: #fff !important;
  transform: scale(1.2);
}

/* Títulos con efecto de gradiente en hover */
.service-card h5 {
  transition: all 0.3s ease;
  font-weight: 700;
}

.service-card:hover h5 {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Botón de acción con diseño moderno */
.service-card .btn-outline-primary {
  border-radius: 10px;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-width: 2px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card .btn-outline-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: #007bff;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
  z-index: -1;
}

.service-card .btn-outline-primary:hover::before {
  width: 300px;
  height: 300px;
}

.service-card .btn-outline-primary:hover {
  color: #fff;
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Imagen principal con efecto parallax sutil */
.servicios img {
  transition: transform 0.3s ease;
}

.servicios img:hover {
  transform: scale(1.02);
}

/* Títulos principales con estilo elegante */
.servicios h1 {
  font-weight: 800;
  color: #0f172a;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.servicios h2 {
  font-weight: 700;
  color: #1e293b;
  position: relative;
  display: inline-block;
  text-align: center;
  width: 100%;
}

.servicios h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
  border-radius: 2px;
}

/* Botón CTA principal con efecto llamativo */
.servicios .btn-primary.btn-lg.rounded-pill {
  padding: 1rem 3rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border: none;
}

.servicios .btn-primary.btn-lg.rounded-pill:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 123, 255, 0.4);
}

/* Animación de entrada para las cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
