/* =====================================================
   Estilos mejorados para la sección "Tecnología en acción"
   Versión discreta y minimalista
====================================================== */

/* Contenedor principal de la sección */
.innovation-showcase {
  padding: 3rem 0;
  text-align: center;
  position: relative;
  z-index: 1;
  background: transparent;
  margin: 2rem 0;
}

/* Título sutil */
.innovation-showcase h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  color: #e0e0e0;
  position: relative;
  display: inline-block;
  letter-spacing: 0.5px;
}

/* Línea decorativa sutil */
.innovation-showcase h3::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: #1698b0;
  border-radius: 2px;
}

/* Contenedor de métricas */
.showcase-metrics {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Tarjeta de métrica minimalista */
.metric {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  border: 1px solid rgba(22, 152, 176, 0.1);
}

/* Clase añadida por JavaScript para animar la entrada */
.metric-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Valor de la métrica */
.metric-value {
  font-size: 2.2rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
  position: relative;
  z-index: 2;
  transition: all 0.25s ease;
  margin: 0.5rem 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Icono de la métrica */
.metric-icon {
  font-size: 1.8rem;
  color: #1698b0;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  transition: all 0.25s ease;
}

/* Etiqueta de la métrica */
.metric-label {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: #b0b0b0;
  transition: all 0.25s ease;
  line-height: 1.4;
}

/* Efecto sutil al hacer hover */
.metric:hover {
  background: rgba(22, 152, 176, 0.05);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: rgba(22, 152, 176, 0.2);
}

.metric:hover .metric-value {
  color: #1698b0;
}

.metric:hover .metric-icon {
  transform: scale(1.1);
}

/* Versión responsiva */
@media (max-width: 768px) {
  .showcase-metrics {
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .metric {
    width: calc(50% - 0.5rem);
    padding: 1.2rem 0.5rem;
  }
  
  .metric-value {
    font-size: 1.8rem;
  }
  
  .metric-icon {
    font-size: 1.5rem;
  }
  
  .metric-label {
    font-size: 0.8rem;
  }
}

/* Efecto de borde sutil */
.metric::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #1698b0, transparent);
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.metric:hover::before {
  opacity: 0.8;
}

/* Unidad de medida */
.metric-unit {
  font-size: 1.4rem;
  font-weight: 400;
  margin-left: 0.1rem;
  display: inline-block;
  color: #b0b0b0;
  vertical-align: top;
  line-height: 1.8;
}

.metric:hover .metric-unit {
  color: #1698b0;
}



/* Animaciones suaves */
@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Efecto de aparición suave */
.metric {
  animation: fadeIn 0.5s ease-out forwards;
  opacity: 0;
}

.metric:nth-child(1) { animation-delay: 0.1s; }
.metric:nth-child(2) { animation-delay: 0.2s; }
.metric:nth-child(3) { animation-delay: 0.3s; }
.metric:nth-child(4) { animation-delay: 0.4s; }
