.card-empresa-carrusel {
  flex: 0 0 calc(25% - 0.75rem); /* 4 cards por fila con 1rem total de gap */
  max-width: calc(25% - 0.75rem);
  scroll-snap-align: start;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
  height: 100%;
  text-align: left;
}

.card-empresa-carrusel:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.img-empresa-carrusel {
  height: 160px;
  object-fit: cover;
  width: 100%;
}

.card-empresa-carrusel .card-body {
  padding: 0.75rem 1rem;
}

.card-empresa-carrusel .card-title {
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-empresa-carrusel .badge {
  font-size: 0.75rem;
  padding: 0.35em 0.6em;
  border-radius: 0.5rem;
}

.carrusel-empresas-wrapper {
  position: relative;
}

.carrusel-lista {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 2rem;
}

.carrusel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: white;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrusel-left {
  left: 0;
}

.carrusel-right {
  right: 0;
}

.carrusel-arrow i {
  font-size: 1.2rem;
  color: #333;
}


.carrusel-empresas {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE y Edge */
}

.carrusel-empresas::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}



@media (max-width: 991.98px) {
  .card-empresa-carrusel {
    flex: 0 0 calc(33.333% - 0.75rem); /* 3 tarjetas */
    max-width: calc(33.333% - 0.75rem);
  }
}

@media (max-width: 767.98px) {
  .card-empresa-carrusel {
    flex: 0 0 calc(50% - 0.75rem); /* 2 tarjetas */
    max-width: calc(50% - 0.75rem);
  }
}

@media (max-width: 575.98px) {
  .card-empresa-carrusel {
    flex: 0 0 100%; /* 1 tarjeta completa */
    max-width: 100%;
  }
}

