/* =====================================================
   Estilos para imágenes de características en la sección de innovación
====================================================== */

/* Layout de la sección de características */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.feature-enhanced {
  position: relative;
  padding: 2.5rem 2rem 2rem;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

/* Efecto de borde brillante en hover */
.feature-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 10px;
  padding: 2px;
  background: linear-gradient(45deg, transparent, transparent, #1698b0, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-enhanced:hover::before {
  opacity: 1;
}

/* Contenedor de la imagen */
.feature-image-container {
  position: relative;
  height: 130px;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Estilo de la imagen */
.feature-image {
  max-width: 100%;
  max-height: 130px;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.6s ease;
  filter: drop-shadow(0 0 5px rgba(22, 152, 176, 0.3));
}

/* Efectos al hacer hover */
.feature-enhanced:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-enhanced:hover .feature-image {
  transform: scale(1.08);
  filter: drop-shadow(0 0 12px rgba(22, 152, 176, 0.8));
}

/* Contenido de texto */
.feature-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.feature-content h3 {
  color: #1698b0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

/* Línea decorativa bajo el título */
.feature-content h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #1698b0;
  transition: width 0.3s ease;
}

.feature-enhanced:hover .feature-content h3::after {
  width: 80px;
}

.feature-content p {
  flex: 1;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

/* Estadísticas */
.feature-stat {
  margin-top: auto;
  font-size: 2.2rem;
  font-weight: 800;
  color: #1698b0;
  text-shadow: 0 0 10px rgba(22, 152, 176, 0.3);
  transition: text-shadow 0.3s ease;
}

.feature-enhanced:hover .feature-stat {
  text-shadow: 0 0 15px rgba(22, 152, 176, 0.5);
}

.feature-stat span {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: normal;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .features {
    gap: 1.5rem;
  }
  
  .feature-enhanced {
    min-width: 260px;
    min-height: 340px;
  }
}

@media (max-width: 768px) {
  .features {
    flex-direction: column;
    align-items: center;
  }
  
  .feature-enhanced {
    margin-bottom: 2rem;
    min-height: auto;
    max-width: 100%;
    width: 100%;
  }
  
  .feature-image-container {
    height: 110px;
  }
  
  .feature-image {
    max-height: 110px;
  }
}
