

.slider-box{
	
	width: 100%;
    max-width: 2000px;
    margin: 50px auto 0;
    /*overflow: hidden;*/
	text-align: center;
	position: relative;
}


.slider-box ul{
	display: flex;
	gap: 0;
	padding: 0;
	width: 2000%;
	height: 500px;
	position: relative;
	overflow: hidden;
	animation: scrolling 100s  linear infinite;

}

.slider-box ul:hover {
  animation-play-state: paused;
}

.slider-box li{
	width: 5%;
	flex-shrink: 0;
	list-style: none;
	position: relative;
	display: flex;
}

.texto{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 35%; /* Ocupa todo el espacio de la imagen */
	background-color: rgba(255,255,255,0.5); /* Fondo semi-transparente */
	color: black;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.texto h5{
	font-size: 35px;
	padding-top: 10px;
}

.texto a{
	font-size: 25px;
	color: black;
}


.slider-box img {
	width: 100%;
	height: 100%;
	display: block;
    max-width:100% !important;
}

@keyframes scrolling {
	0% {margin-left: 0;}
	2.5% {margin-left: 0%;}
	
	5% {margin-left:-100%;}
	7.5% {margin-left:-100%;}
	
	10% {margin-left: -200%;}
	12.5% {margin-left: -200%;}
	
	15% {margin-left: -300%;}
	17.5% {margin-left: -300%;}
	
	20% {margin-left: -400%;}
	22.5% {margin-left: -400%;}
	
	25% {margin-left: -500%;}
	27.5% {margin-left: -500%;}
	
	30% {margin-left: -600%;}
	32.5% {margin-left: -600%;}	
	
	35% {margin-left: -700%;}
	37.5% {margin-left: -700%;}
	
	40% {margin-left: -800%;}
	42.5% {margin-left: -800%;}
	
	45% {margin-left: -900%;}
	47.5% {margin-left: -900%;}
	
	50% {margin-left: -1000%;}
	52.5% {margin-left: -1000%;}
	
	55% {margin-left: -1100%;}
	57.5% {margin-left: -1100%;}
	
	60% {margin-left: -1200%;}
	62.5% {margin-left: -1200%;}
	
	65% {margin-left: -1300%;}
	67.5% {margin-left: -1300%;}
	
	70% {margin-left: -1400%;}
	72.5% {margin-left: -1400%;}
	
	75% {margin-left: -1500%;}
	77.5% {margin-left: -1500%;}
	
	80% {margin-left: -1600%;}
	82.5% {margin-left: -1600%;}
	
	85% {margin-left: -1700%;}
	87.5% {margin-left: -1700%;}
	
	90% {margin-left: -1800%;}
	92.5% {margin-left: -1800%;}
	
	95% {margin-left: -1900%;}
	97.5% {margin-left: -1900%;}
	
	100% {margin-left: -1900%;}

} 


.slider-nav {
  background-color: rgba(255, 255, 0, 0.8) !important;/* amarillo semitransparente */
  display: flex;
  gap: 0.5rem;
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  /*z-index: 9999;*/
  padding: 0.5rem;
  border-radius: 1rem;
  z-index: 10;
}

.slider-nav a {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: red;
  opacity: 0.7;
}

.slider-nav a:hover {
  opacity: 1;
}


/* ====== Contenedor del menú desplegable ====== */
.opciones-menu {
  position: absolute;             /* Se superpone debajo */
  top: 100%;
  left: 0;
  background: #222;               /* Fondo oscuro */
  min-width: 260px;               /* Ancho mínimo */
  border-radius: 8px;             /* Bordes redondeados */
  padding: 8px 0;
  margin: 0;
  list-style: none;
  display: none;                  /* Oculto por defecto */
  box-shadow: 0 6px 18px rgba(0,0,0,0.25); /* Sombra elegante */
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

/* ====== Elementos del menú ====== */
.opciones-item {
  display: block;
  padding: 12px 18px;
  color: #eee;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.opciones-item:hover {
  background: #333;               /* Fondo al pasar */
  color: #ff9800;                 /* Texto destacado */
  padding-left: 24px;             /* Pequeño efecto de movimiento */
}

/* ====== Divisor ====== */
.opciones-divider {
  border-color: rgba(255,255,255,0.15);
  margin: 6px 0;
}

/* ====== Mostrar el menú al pasar el mouse ====== */
.nav-item:hover .opciones-menu {
  display: block;
}

/* ====== Animación suave ====== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
