﻿.productosSec {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 80px 50px;
  background-color: #e8e8e8;
}

.contenidoDesc{
  flex-grow: 1;
}

.productosSec h1 {
  color: #0a2463 !important;
  font-size: 32px;
  margin-bottom: 40px !important;
  text-transform: none !important;
  text-align: left;
  width: 80%;
}

.carousel {
  position: relative;
}

.carousel-container {
  display: flex;
  gap: 20px;
  overflow: hidden;
}

.card {
  background-color: white;
  border-radius: 8px;
  padding: 40px 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex: 0 0 calc(33.333% - 14px);
  transition: transform 0.3s ease;
  width: 380px;
  height: 540px;  /* New flexbox properties for alignment */
  display: flex;
  flex-direction: column;
}

.card-image {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.card-image img {
  max-width: 100%;
  height: auto;
  max-height: 160px;
}

.card-title {
  color: black !important;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: none !important;
  width: 100%;
  margin-top: 30px !important;
}

.card-description {
  color: black !important;
  font-size: 14px !important;
  line-height: 1.5;
  /* Make description take available space */
  flex-grow: 1;
  width: 90%;
  margin-bottom: 0px !important;
}

.descCardDiv{
  display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    margin-left: 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.descCardDiv img{
  margin-right: 10px;
}

.carousel-button.disabled {
  cursor: not-allowed;
  opacity: 0.5;
  background: transparent;
}

.card-button {
  background-color: #0a2463;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  width: 90%;
  transition: background-color 0.3s;
  /* Position button at the bottom */
  margin-top: auto;
  align-self: center;
}

.card-button:hover {
  background-color: #0a3073;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent !important;
  border: none;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.carousel-button-prev {
  left: -130px;
}

.carousel-button-next {
  right: -130px;
}

.carousel-button svg {
  width: 100px;
  height: 100px;
  fill: #0a2463;
}

/* Responsive */
@media (max-width: 1199px) {
  .card {
      flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 850px) {
  .card {
      flex: 0 0 100%;
  }

  .carousel-button {
      width: 80px;
      height: 80px;
  }

  .carousel-button-prev {
      left: -65px;
  }

  .carousel-button-next {
      right: -55px;
  }
}

@media (max-width: 480px) {
  .card {
      background-color: white;
      border-radius: 8px;
      padding: 40px 20px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease;
      width: 300px;
  }
}