/* Estilos generales para el carrusel de tarjetas de construcción */
.product-cards-carousel {
  background: #000000f1;
  padding: 50px;
  margin-bottom: 0px;
  border-bottom: 3px solid #f39d128d;
}

.product-cards-header {
  text-align: center;
  margin-bottom: 20px;
}

.product-cards-header h2 {
  font-size: 36px;
  color: #f39c12;
}

/* Contenedor de Swiper */
.card-swiper-container {
  position: relative;
}

/* Estilo para los slides de Swiper */
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Estilos para tarjetas */
.card {
  width: 320px;
  height: 420px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.517);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff0c;
  padding: 10px;
  margin: 0 40px;
  box-sizing: border-box;
  transition: transform 0.3s ease-in-out;
}

.card:hover {
  transform: scale(1.05);
}

.card-img-container {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.card-content {
  text-align: center;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.card-content h3 {
  font-size: 20px;
  color: #f39c12;
  margin: 10px 0;
}

.card-content p {
  font-size: 18px;
  color: #f4f4f4;
  margin: 10px 0;
}

.facebook-button {
  display: block;
  margin-top: auto; /* Empuja el botón al final del contenedor */
  padding: 10px 15px;
  background-color: #025dad;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color 0.5s ease, transform 0.5s ease;
}

.facebook-button:hover {
  background-color: #00559f9c;
}

/* Estilo de los botones de navegación y paginación del swiper */
.swiper-button-prev,
.swiper-button-next {
  background-color: #f39c12;
  color: #fff;
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.517);
  transition: background-color 0.3s ease-in-out;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: #e67e22;
}

/* Ajuste para los puntos de paginación */
.swiper-pagination {
  position: absolute; /* Asegura que los puntos se posicionen en relación al contenedor del carrusel */
  bottom: 20px; /* Ajusta esta propiedad para mover los puntos más abajo */
  left: 50%;
  transform: translateY(240%); /* Centra los puntos horizontalmente */
  z-index: 10; /* Asegura que los puntos de paginación estén sobre otros elementos pero debajo de las imágenes */
}

.swiper-pagination-bullet {
  background: #fff;
  width: 10px; /* Tamaño de los puntos */
  height: 10px;
  border-radius: 50%;
  margin: 0 5px; /* Espaciado entre puntos */
}

.swiper-pagination-bullet-active {
  background: #f39c12;
}


/* Estilos responsive */
@media (max-width: 1200px) {
  .product-cards-carousel {
    padding: 40px;
  }

  .card {
    width: 300px;
    height: 400px;
  }

  .card-img-container {
    height: 220px;
  }
}

@media (max-width: 992px) {
  .product-cards-carousel {
    padding: 30px;
  }

  .card {
    width: 280px;
    height: 380px;
  }

  .card-img-container {
    height: 200px;
  }

  .card-content h3 {
    font-size: 18px;
  }

  .card-content p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .product-cards-carousel {
    padding: 30px;
  }

  .card {
    width: 260px;
    height: 360px;
    margin: 0 20px;
  }

  .card-img-container {
    height: 180px;
  }

  .product-cards-header h2 {
    font-size: 28px;
  }

  .card-content h3 {
    font-size: 16px;
  }

  .card-content p {
    font-size: 14px;
  }

  .facebook-button {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .product-cards-carousel {
    padding: 20px;
  }

  .card {
    width: 220px;
    height: 340px;
    margin: 0 15px;
  }

  .card-img-container {
    height: 140px;
  }

  .product-cards-header h2 {
    font-size: 24px;
  }

  .card-content h3 {
    font-size: 14px;
  }

  .card-content p {
    font-size: 12px;
  }

  .facebook-button {
    font-size: 14px;
  }
}

/* Sección Productos Destacados */
#product-cards {
  background: #000000f1;
  padding: 50px;
  text-align: center;
  color: #fff;
}

#product-cards .product-cards-header h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #f39c12;
}

#product-cards .product-cards-header p {
  font-size: 18px;
  color: #f4f4f4;
  margin-bottom: 30px;
}
