@charset "UTF-8";
@import url('productos.css');

.carrusel {
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.carrusel .card {
  margin: 0 1rem;
  display: none; 
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  flex-direction: row;
  height: 100%; 
}

.carrusel .card.active {
  display: flex; 
}

.carrusel .card img {
  width: 100%;
  height: auto;
}

.carrusel .card-content {
  width: 50%;
  padding: 1rem;
  display: flex;
  gap: 2rem;
  flex-direction: column;
  justify-content: center;
}

@media screen and (max-width: 768px) {
  .carrusel .card {
    flex-direction: column-reverse; 
    gap: 1rem;
  }

  .carrusel .card img {
    width: 100%; 
  }

  .carrusel .card-content {
    width: 100%; 
  }
}

.card-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.carrusel .card-description {
  font-size: 1rem;
  color: var(--color-primary); 
}

.carrusel .nav-button {
  position: absolute;
  top: 61%;
  transform: translateY(-50%);
  background: none;
  color: #000;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 2rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.carrusel .nav-button:hover {
  color: var(--color-secondary);
  transform: translateY(-50%) scale(1.1);
}

.carrusel .nav-button.prev {
  left: 1rem;
}

.carrusel .nav-button.next {
  right: 1rem;
}

.carrusel .bottom-nav {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.carrusel .bottom-nav button {
  background: #000;
  border: none;
  cursor: pointer;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 0.5rem;
  transition: background 0.3s ease;
}

.carrusel .bottom-nav button.active {
  background: var(--color-secondary); 
}

.carrusel .bottom-nav button:hover {
  background: var(--color-secondary);
}

.carrusel .carrusel-title{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    margin-bottom: 30px;
    margin-top: 50px;
    text-align: center;
    color: #003c88;
}

.carrusel .carrusel-title h2 {
    font-size: 2rem;
    font-weight: 900; 
}

.carrusel .carrusel-title h3{
    font-size: 1.5rem;
}
