﻿/*------------------------ Componente carrusel*/
.carrusel {
    position:relative;
}
.carrusel > .wrpListado {
    display: flex;
    overflow:hidden;    
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    grid-gap:28px;
    padding:20px 0;
}

.carrusel .carruselLista {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    transition: all .5s;
    transform:translateX(0px);
    align-items: flex-start;
}

.carrusel .listadoItem  a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.carrusel .listadoItem .imagen {
    display: flex;
    width: 150px;
    height:150px;
    padding:20px;

    border: 1px solid var(--productBox_borde);
    border-radius: 10px;
    padding: 15px;
    background-color: white;
    align-items: center;
    justify-content: center;
}

.carrusel .listadoItem .imagen img {
    transition: all .2s; 
    max-width:100%;
    max-height:100%;
}
.carrusel .listadoItem:hover .imagen img {
    transform: scale(1.2);
}
.carrusel .listadoItem .imagen .titulo {
    transition: all .2s; 
    font-weight:bold;
    color:var(--productBox_titulo);
    font-size:18px;
    text-align:center;
    padding:20px;
    overflow:hidden;
    text-overflow: ellipsis;
    display:flex;
    align-items:center;
    justify-content:center;

}
.carrusel .listadoItem:hover .imagen .titulo {
    transform: scale(1.2);
    color:var(--productBox_borde);
}


.carrusel .listadoItem .nombre {
    padding:5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align:center;
    font-weight:bold;
    color:var(--productBox_titulo);
    overflow:hidden;
    text-overflow: ellipsis;
    font-size:16px;
    line-height:16px;
    height:38px;
}

.carrusel .flecha {
    cursor:pointer;
    width:32px;
    height:32px;
    border:1px solid black;
    background-repeat:no-repeat;
    background-image:url(../../img/carrusel/carruselFlecha.png);
    background-position:center center;
    background-size:20px;
    background-color: #fff;
    border-radius:100px;
    opacity:0.2;
    position:absolute;
    top:50%;
    margin-top:-15px;
}
.carrusel:hover .flecha {
    opacity:1;
}
.carrusel .flecha.izquierda {
    left:0;
    transform:rotate(-90deg);
}
.carrusel .flecha.derecha {
    right:0px;
    transform:rotate( 90deg);
}

@media (max-width: 800px) {
    .carrusel > .wrpListado {
        padding:0;
    }
}