/**
 * Estilos personalizados para la sección Business
 */

/* Mejora de tipografía general */
body {
  font-family: 'Source Sans Pro', 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

/* Encabezado de Business */
.business-header {
  padding: 15px 0; /* Reducido significativamente el padding para un banner más compacto */
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('../web/images/banner1.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
  position: relative;
  margin-bottom: 30px; /* Reducido el margen inferior */
  height: 100px; /* Altura fija más pequeña */
}

/* Ocultar el título en el banner de business */
.banner1 .w3_agileits_service_banner_info h2:contains("BUSINESS") {
  display: none;
}

/* Reducir altura del banner general cuando es la ruta business */
body.route-business .banner1 {
  height: 100px;
  padding: 15px 0;
}

/* Mejora para las tarjetas de servicios */
.agileits_banner_bottom_grid {
  transition: all 0.3s ease;
  margin-top: 10px; /* Añadido margen superior para mejor espaciado con el banner reducido */
}

.agileits_banner_bottom_grid:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hovereffect {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hovereffect img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.overlay {
  background: rgba(0, 61, 124, 0.8);
  padding: 20px;
}

.overlay h4 {
  margin-bottom: 10px;
  font-weight: 600;
}

.overlay a {
  color: white !important;
  text-decoration: none;
}

/* Títulos de sección */
.w3l_header.w3_agileits_header {
  margin-bottom: 30px;
  font-size: 2.2em;
  font-weight: 600;
}

.w3l_header span {
  color: #003d7c;
}

.sub_para_agile {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1em;
  color: #555;
}

/* Detalle de servicio */
.wthree_services_grid_left {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.wthree_services_grid_left h3 {
  color: #003d7c;
  margin-bottom: 20px;
  font-size: 1.8em;
  font-weight: 600;
  border-bottom: 2px solid #003d7c;
  padding-bottom: 10px;
}

.wthree_services_grid_left p {
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333;
  font-size: 1.05em;
}

.wthree_services_grid_left img {
  max-width: 100%;
  height: auto;
  margin: 15px 0;
  border-radius: 4px;
}

/* Sidebar */
.service-sidebar {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.service-sidebar h1 {
  font-size: 1.3em;
  color: #003d7c;
  margin-bottom: 15px;
  font-weight: 600;
  border-bottom: 2px solid #003d7c;
  padding-bottom: 8px;
}

.service-sidebar ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 25px;
}

.service-sidebar ul li {
  margin-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 8px;
}

.service-sidebar ul li:last-child {
  border-bottom: none;
}

.service-sidebar ul li a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}

.service-sidebar ul li a:hover {
  color: #003d7c;
  padding-left: 5px;
}

.service-sidebar ul li a i {
  margin-right: 8px;
  color: #003d7c;
}

/* Facebook comments section */
.fb-comments, .fb-like {
  margin-top: 30px;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .agileits_banner_bottom_grid {
    margin-bottom: 20px;
  }
  
  .w3l_header.w3_agileits_header {
    font-size: 1.8em;
  }
  
  .service-sidebar {
    margin-top: 30px;
  }
}

/* Mejora de títulos */
.services.two h3.w3l_header {
  font-size: 32px;
  font-weight: 600;
  color: #2b5c8a !important;
  margin-bottom: 15px;
  text-transform: none;
}

.services.two h3.w3l_header span {
  color: #60aeda !important;
  position: relative;
}

/* Subtítulo */
.sub_para_agile {
  font-size: 18px;
  color: #555;
  margin-bottom: 40px;
  text-align: center;
}

/* Cards de servicios */
.agileits_banner_bottom_grid {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.agileits_banner_bottom_grid:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.hovereffect {
  border-radius: 8px;
  overflow: hidden;
}

.hovereffect img {
  width: 100%;
  border-radius: 8px;
  transition: all 0.5s ease;
}

.hovereffect:hover img {
  transform: scale(1.05);
}

/* Overlay de las tarjetas de servicios */
.hovereffect .overlay {
  background: rgba(43, 92, 138, 0.85);
  padding: 20px;
  border-radius: 0 0 8px 8px;
}

.hovereffect .overlay h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.hovereffect .overlay p {
  font-size: 15px;
  opacity: 0.9;
}

.hovereffect .overlay h4 a,
.hovereffect .overlay p a {
  color: #fff !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hovereffect .overlay h4 a:hover {
  color: #e0f0fa !important;
}

/* Mejoras para la página de detalle de servicio */
.wthree_services_grid_left h3 {
  font-size: 28px;
  color: #2b5c8a;
  margin-bottom: 20px;
  font-weight: 600;
}

.wthree_services_grid_left h3 span {
  color: #60aeda;
  position: relative;
}

.wthree_services_grid_left p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}

/* Servicios relacionados */
.service-sidebar h1 {
  font-size: 22px;
  color: #2b5c8a;
  margin-bottom: 15px;
  font-weight: 600;
  border-bottom: 2px solid #60aeda;
  padding-bottom: 8px;
}

.service-sidebar ul {
  list-style: none;
  padding-left: 0;
}

.service-sidebar ul li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.service-sidebar ul li a {
  color: #555;
  font-size: 16px;
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
}

.service-sidebar ul li a:hover {
  color: #60aeda;
  padding-left: 5px;
}