/* Contenedor principal que limita la vista */
.msp-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1200px; /* Ajusta el ancho máximo */
    margin: 0 auto;
    overflow: hidden; 
}

/* Wrapper que contiene todos los items y se moverá con transform */
.msp-slider-wrapper {
    display: flex;
    width: 60%; 
    flex-wrap: nowrap;
}

.msp-slider-item, .msp-slider-item-link {
   box-sizing: border-box;
    margin: 0 30px; 
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0; 
    text-decoration: none; 
   color: inherit;
    transition: transform 0.3s ease; 
   display: block;
}

/* Efecto hover suave (opcional) */
.msp-slider-item-link:hover {
    transform: scale(1.02);
}

.msp-slider-item-image {
    width: 100%;
    height: 400px; 
    object-fit: cover;
    display: block;
}

.msp-slider-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
    text-align: left;
}

.msp-slider-item-title {
    margin: 0 0 15px 0;
    font-size: 2em; 
    font-weight: bold;
	color: white;
}

.msp-slider-item-button-text {
    display: inline-block;
    padding-bottom: 3px;
	border-bottom: 2px solid white; 
    font-size: 1em;
    font-weight: 500;
}


/* Navegación del slider (Flechas) */
.msp-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4); 
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5em;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.msp-slider-nav:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.msp-prev {
    left: 20px;
}

.msp-next {
    right: 20px;
}

.msp-slider-item::before,
.msp-slider-item-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    transition: opacity 0.4s ease;
    opacity: 1;
    pointer-events: none;
}

.msp-slider-item.active::before,
.msp-slider-item-link.active::before {
    opacity: 0;
	
}



/* Media Queries para responsividad */
@media (max-width: 992px) {
    /* 2 items en tablets */
    .msp-slider-item, .msp-slider-item-link {
        min-width: calc(50% - 40px); 
    }
}

@media (max-width: 768px) {
    /* 1 item en móviles */
	.msp-slider-wrapper {
		width: 95%; 
}
    
    .msp-prev {
        left: 10px;
    }
    .msp-next {
        right: 10px;
    }
}