/* Estilos para la sección de servicios */
.services-section {
  width: 100vw;
  margin: 0;
  margin-left: calc(50% - 50vw);
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.services-container {
  position: relative;
  z-index: 2;
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.services-subtitle {
  font-size: 1.2rem;
  /* Mejorado el contraste del subtítulo */
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

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

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ff6b6b, #feca57);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.service-card:nth-child(2) .service-icon {
  background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.service-card:nth-child(3) .service-icon {
  background: linear-gradient(135deg, #fd79a8, #e84393);
}

.service-card:nth-child(4) .service-icon {
  background: linear-gradient(135deg, #00b894, #00cec9);
}

.service-card:nth-child(5) .service-icon {
  background: linear-gradient(135deg, #fdcb6e, #e17055);
}

.service-card:nth-child(6) .service-icon {
  background: linear-gradient(135deg, #a29bfe, #6c5ce7);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 15px;
  /* Agregada sombra de texto para mejor legibilidad */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-description {
  /* Mejorado el contraste de la descripción */
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .services-section {
    padding: 60px 0;
  }

  .services-title {
    font-size: 2.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .services-title {
    font-size: 2rem;
  }

  .services-subtitle {
    font-size: 1rem;
  }
}
