section#expositores {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: auto;
  padding: 40px 20px;
}

.expositores-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  text-align: center;
  padding-top: 50px;   /* Ajusta este valor según lo que necesites */
}

.fotoExpositormini{
  width: 6vw;
  max-width: 90px;
  height: auto;
  cursor: pointer;
}

.fotoExpositormini:hover {
  transform: scale(1.09);
  transition: transform 0.3s ease;
}
.expositores-superior {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 30px;
}

.contenido-titulo {
  flex: 0 0 60%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.expositornombre {
    font-size: clamp(1.2rem, 3vw, 3rem);;
    font-weight: bold;    
    line-height: 1.1;
}

.infoExpositor {
    font-size: clamp(1.2rem, 2vw, 1.6rem);;
    color: #ffde59;
    margin-top: 5px;
}

.foto {
  flex: 0 0 30%;
  min-width: 180px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center; 
}

.foto img {
    width: clamp(200px,20vw, 300px);
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.titulo {
    margin-top: 15vh;
    text-align: center;
    font-size: clamp(1.2rem, 2.4vw, 2rem);
    padding: 15px;
    background-color: rgba(255,255,255,0.1);
    border-left: 5px solid #FFD700;
}

.slideShow {
  display: flex;
  width: 100%;
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2rem; /* Espacio entre expositores */
  padding-bottom: 1rem;
  /* Opcional: oculta la barra de scroll visualmente */
  overscroll-behavior-x: contain;
   scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;
}
.slideShow::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.expositorcarrusel {
  flex: 0 0 60vw; /* Cada expositor ocupa el 80% del ancho de la ventana */
  min-width: 300px;
  scroll-snap-align: start;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-right: 10vw;
  margin-top: 5vw;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 40%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 3px;
  user-select: none;
  background-color: #FFD70050;
}
.next {
  right: 4vw;
}

.prev {
  left: 4vw;
}

.prev:hover, .next:hover {
  background-color: rgba(255, 255, 255, 0.8);
}


@media (max-width: 900px) {
    .expositores-superior {
    flex-direction: column;
    align-items: center;
    text-align: center;
    }

    .titulo {
    border-left: none;
    border-top: 5px solid #FFD700;
    }
    .contenido-titulo {
    flex: 0 0 60%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    }
    .foto img {
    width: 40vw;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    }
    .expositorcarrusel {
    flex: 0 0 85vw;
    min-width: 220px;
    }
    .expositores-header {
    display: none;
    }
    .prev, .next {
  top: 18%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  font-size: 10px;
}
}


@media (min-width: 900px) {
    section#expositores {
    display: block; 
    margin: 0;
    padding: 0;
    width: 100vw;
    max-width: 100vw;
  }
  .slideShow {
    width: 100vw;
    max-width: 100vw;    
    overflow-x: auto;
    padding-left: 50vw; /* 400px es la mitad de max-width de .expositorcarrusel */ 
  }
  .spacer-final {
    flex: 0 0 60vw; /* 60vw es el ancho de .expositorcarrusel */
    min-width: 0;
    height: 1px;
  }
}