/* ========================================
   SERVICES SECTION - DISEÑO MODERNO
   Speck Developers - Paleta Azul y Blanco
   ======================================== */

/* Sección principal */
.services-section {
  padding: 80px 0;
  background: #f8f9fa;
}

/* Header */
.services-section .section-header h2 {
  color: #1E5F8C !important;
  font-weight: 700;
  font-size: 32px;
  margin-bottom: 15px;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  text-align: center;
}

.services-section .section-header p {
  color: #555555;
  font-size: 18px;
  line-height: 1.6;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  text-align: center;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Tarjeta de servicio */
.service-card {
  height: 100%;
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  border: 2px solid #e0e0e0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(30, 95, 140, 0.2);
  border-color: #1E5F8C;
}

/* Tarjeta destacada */
.service-card.featured {
  background: linear-gradient(to bottom, #f0f7fb 0%, #ffffff 100%);
  border: 2px solid #1E5F8C;
}

.service-card.featured:hover {
  background: linear-gradient(to bottom, #e8f3f9 0%, #ffffff 100%);
}

/* Badge de destacado */
.badge-featured {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #1E5F8C 0%, #2B7BA9 100%);
  color: #ffffff;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(30, 95, 140, 0.3);
}

/* Inner card */
.service-card-inner {
  padding: 35px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

/* Icono */
.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1E5F8C 0%, #2B7BA9 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(30, 95, 140, 0.25);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(30, 95, 140, 0.35);
}

.service-card.featured .service-icon {
  background: linear-gradient(135deg, #2B7BA9 0%, #1E5F8C 100%);
}

.service-icon i {
  font-size: 40px;
  color: #ffffff;
}

/* Título */
.service-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  line-height: 1.3;
}

.service-title a {
  color: #1E5F8C;
  text-decoration: none;
  transition: color 0.3s ease;
}

.service-title a:hover {
  color: #2B7BA9;
}

/* Descripción */
.service-description {
  color: #666666;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 25px;
  flex: 1;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

/* Enlace "Conocer más" */
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1E5F8C;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  transition: all 0.3s ease;
  margin-top: auto;
}

.service-link:hover {
  color: #2B7BA9;
  gap: 12px;
}

.service-link i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.service-link:hover i {
  transform: translateX(5px);
}

/* ========================================
   BOTÓN CTA AL FINAL
   ======================================== */

.btn-services-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: linear-gradient(135deg, #1E5F8C 0%, #2B7BA9 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(30, 95, 140, 0.3);
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.btn-services-cta:hover {
  background: #ffffff;
  color: #1E5F8C;
  border-color: #1E5F8C;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(30, 95, 140, 0.4);
  gap: 16px;
}

.btn-services-cta i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.btn-services-cta:hover i {
  transform: translateX(5px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets */
@media (max-width: 991px) {
  .services-section {
    padding: 60px 0;
  }

  .services-section .section-header h2 {
    font-size: 28px;
  }

  .services-section .section-header p {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .service-card-inner {
    padding: 30px 20px;
  }

  .service-icon {
    width: 70px;
    height: 70px;
  }

  .service-icon i {
    font-size: 35px;
  }

  .service-title {
    font-size: 19px;
  }

  .btn-services-cta {
    padding: 16px 35px;
    font-size: 15px;
  }
}

/* Móviles */
@media (max-width: 768px) {
  .services-section {
    padding: 50px 0;
  }

  .services-section .section-header h2 {
    font-size: 26px;
  }

  .services-section .section-header p {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .service-card {
    margin-bottom: 20px;
  }

  .service-card-inner {
    padding: 25px 20px;
  }

  .service-icon {
    width: 65px;
    height: 65px;
    margin-bottom: 20px;
  }

  .service-icon i {
    font-size: 32px;
  }

  .service-title {
    font-size: 18px;
  }

  .service-description {
    font-size: 14px;
  }

  .badge-featured {
    font-size: 10px;
    padding: 5px 12px;
  }

  .btn-services-cta {
    padding: 14px 30px;
    font-size: 14px;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .services-section .section-header h2 {
    font-size: 24px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
  }

  .service-icon i {
    font-size: 28px;
  }

  .service-title {
    font-size: 17px;
  }

  .service-description {
    font-size: 13px;
  }

  .btn-services-cta {
    padding: 12px 25px;
    font-size: 13px;
    border-radius: 30px;
  }
}

/* ========================================
   ANIMACIONES
   ======================================== */

.service-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efecto de brillo al hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.service-card:hover::before {
  left: 100%;
}