/* ===============================================
   GCLA - Sección de Sostenibilidad
   Componente Modular - Compromiso Ambiental
   =============================================== */

/* Contenedor Principal */
.sustainability-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  position: relative;
  padding: 60px 0;
  overflow: hidden;
}

/* Badge de la sección */
.sustainability-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

/* Tarjetas de estadísticas */
.sustainability-card {
  background: white;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.sustainability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10B981, #059669);
}

.sustainability-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #10B981;
}

/* Iconos de sostenibilidad */
.sustainability-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: all 0.3s ease;
}

.sustainability-icon i {
  font-size: 32px;
  color: white;
}

.sustainability-card:hover .sustainability-icon {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Números de estadísticas */
.sustainability-number {
  font-size: 48px;
  font-weight: 900;
  color: #10B981;
  margin-bottom: 12px;
  line-height: 1;
  transition: all 0.3s ease;
}

.sustainability-card:hover .sustainability-number {
  transform: scale(1.05);
}

/* Etiquetas y períodos */
.sustainability-label {
  font-size: 18px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 8px;
  line-height: 1.3;
}

.sustainability-period {
  font-size: 14px;
  color: #6B7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* CTA de sostenibilidad */
.sustainability-cta {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border: 2px solid rgba(16, 185, 129, 0.2);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin-top: 40px;
}

.sustainability-cta h4 {
  font-size: 24px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 12px;
}

.sustainability-cta p {
  font-size: 16px;
  color: #6B7280;
  margin-bottom: 24px;
}

.sustainability-cta .btn {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.sustainability-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Animaciones de números */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sustainability-number.animate {
  animation: countUp 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sustainability-section {
    padding: 40px 0;
  }
  
  .sustainability-card {
    padding: 24px 20px;
    margin-bottom: 20px;
  }
  
  .sustainability-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }
  
  .sustainability-icon i {
    font-size: 24px;
  }
  
  .sustainability-number {
    font-size: 36px;
  }
  
  .sustainability-label {
    font-size: 16px;
  }
  
  .sustainability-cta {
    padding: 30px 20px;
  }
  
  .sustainability-cta h4 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .sustainability-badge {
    padding: 10px 20px;
    font-size: 12px;
  }
  
  .sustainability-card {
    padding: 20px 16px;
  }
  
  .sustainability-number {
    font-size: 32px;
  }
  
  .sustainability-label {
    font-size: 15px;
  }
  
  .sustainability-cta {
    padding: 24px 16px;
  }
}

/* Modo de alto contraste */
@media (prefers-contrast: high) {
  .sustainability-card {
    border-width: 2px;
    border-color: #10B981;
  }
  
  .sustainability-number {
    color: #059669;
  }
}

/* Reducir animaciones para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
  .sustainability-card,
  .sustainability-icon,
  .sustainability-number {
    transition: none;
  }
  
  .sustainability-card:hover {
    transform: none;
  }
}