.module_ai-container {
  width: 80%;
  margin: 0 auto;
  padding: 60px 20px;
}

.module_ai-header {
  background-color: white;
  padding: 60px 20px;
  text-align: center;
}

.module_ai-header-content {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: left;
}

.module_ai-header-img {
  width: 200px;
  height: 200px;
}

.module_ai-title {
  font-size: 2.8rem;
  margin: 0;
  color: #25476a;
}

.module_ai-description {
  font-size: 1.2rem;
  color: #151515;
  margin-top: 10px;
}

.module_ai-divider {
  margin: 30px auto;
  width: 80px;
  height: 4px;
  background-color: #25476a;
  border: none;
}

.module_ai-subtitle {
  font-size: 1.8rem;
  text-align: center;
  margin-top: 20px;
  color: black;
}

/* Alternating cards */
.module_ai-alternating-section {
  padding: 40px 20px;
  background-color: #fff;
}

.module_ai-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.module_ai-row.reverse {
  flex-direction: row-reverse;
}

.module_ai-image {
  flex: 1 1 40%;
  text-align: center;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%; /* ayuda a igualar el alto si las tarjetas son más grandes */
}

.module_ai-image img {
  max-width: 80%;
  max-height: 80%;
  width: 80%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  max-height: 300px; /* Limitar la altura máxima de la imagen */
}

.module_ai-features {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px;
}

.module_ai-card {
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 15px 20px;
  background-color: #fff;
  transition: all 0.4s ease;
  
}

.module_ai-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.3);
}

.module_ai-card-title {
  font-size: 1.4em;
  color: #25476a;
  margin-bottom: 8px;
}

.module_ai-card-description {
  font-size: 1em;
  color: #555;
  line-height: 1.4;
}



/* Responsive */
@media (max-width: 768px) {
  
  .module_ai-header-content {
    flex-direction: column;
  }

  .module_ai-row, .module_ai-row.reverse {
    flex-direction: column;
  }

  .module_ai-image, .module_ai-features {
    flex: 1 1 100%;
    text-align: center;
  }

  .module_ai-image {
    order: -1; /* <-- SIEMPRE irá primero */
  }

  .module_ai-features {
    order: 0;
  }
}