/**
 * Carousel de Bananin
 * Copyright 2022-2025 Jhoan Velasquez
 * Licensed under: MIT
 */
$dot-inactivo: #787878;
$dot: #5c7fff;
$btn: #21a4bf;

.b-carrucont{
    position: relative;
    &.autow{
        .b-carrusel{
            .item{
                width: auto !important;
            }
        }
    }
    &.vertical{
        height: 100%;
    }
    img {
        -webkit-user-drag: none;
        -khtml-user-drag: none;
        -moz-user-drag: none;
        -o-user-drag: none;
        -webkit-user-select: none;
        pointer-events: none;
        user-drag: none;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    &.centroNav:not(.vertical){
        margin: 0 30px;
        .navega{
            padding-top: 0px;
            button{
                padding: 0 !important;
                img{
                    object-fit: cover;
                    height: 35px;
                }
                &:first-child {
                    position: absolute;
                    left: -30px;
                    top: 50%;
                    transform: translateY(-50%);
                }
                &:last-child {
                    position: absolute;
                    right: -30px;
                    top: 50%;
                    transform: translateY(-50%);
                }
            }
        }
    }
    &.internoNav:not(.vertical){
        .navega{
            padding-top: 0px;
            button{
                background-color: transparent;
                border: none;
                padding: 5px !important;
                &:disabled{
                    background-color: transparent;
                    border: none;
                    filter: invert(85%) sepia(0%) saturate(26%) hue-rotate(159deg) brightness(95%) contrast(99%);
                    filter: brightness(0) saturate(100%) invert(85%) sepia(0%) saturate(26%) hue-rotate(159deg) brightness(95%) contrast(99%);
                }
                img{
                    object-fit: cover;
                    height: 35px;
                }
                &:first-child {
                    position: absolute;
                    left: 0px;
                    top: 0;
                    height: 100%;
                    width: 11vw;
                    max-width: 60px;
                }
                &:last-child {
                    position: absolute;
                    right: 0px;
                    top: 0;
                    height: 100%;
                    width: 11vw;
                    max-width: 60px;
                }
            }
        }
    }
    itenes, div.itenes{
        display: none;
    }
    .b-carrusel{
        width: 100%;
        height: 100%;
        position: relative;
        .cuerpo {
            overflow: hidden;
        }
        .vertical{
            flex-direction: column;
        }
        .interno {
            display: flex;
            .wrap{
                .item:last-child{
                    margin-bottom: 0 !important;
                }
            }
            &.centrado{
                margin: auto;
            }
        }
        .anima{
            transition: all 0.2s cubic-bezier(0, 0.78, 1, 1) 0s;
        }
        .grab{
            cursor: grabbing;
        }
        .item{
            -ms-touch-action: pan-y;
            touch-action: pan-y;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }
        .puntos {
            display: flex;
            justify-content: center;
            padding-top: 7px;
            div{
                width: 10px;
                height: 10px;
                background: $dot-inactivo;
                cursor: pointer;
                border-radius: 100px;
                &.activa{
                    background: $dot;
                }
                &:not(:last-child){
                    margin-right: 5px;
                }
            }
        }
        .navega {
            display: flex;
            justify-content: center;
            padding-top: 7px;
            button{
                width: 1.4em;
                display: inline-block;
                font-weight: 400;
                line-height: 1;
                font-size: 18px;
                color: #fff;
                background-color: #21a4bf;
                border-color: #21a4bf;
                text-align: center;
                text-decoration: none;
                vertical-align: middle;
                cursor: pointer;
                -webkit-user-select: none;
                -moz-user-select: none;
                user-select: none;
                border: 1px solid;
                padding: 0.175rem 0.45rem;
                transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
                &:disabled{
                    cursor: default;
                    background-color: #cecece;
                }
                &:first-child{
                    margin-right: 10px;
                }
                div{
                    background: #ffffff3b;
                    width: 90%;
                    aspect-ratio: 1 / 1;
                    display: flex;
                    align-items: center;
                    border-radius: 500px;
                }
                img{
                    object-fit: cover;
                    filter: drop-shadow(0 0 0 white) drop-shadow(0 0 2px white);
                }
                &:hover{
                    background: #00000017;
                    div{
                        background: #ffffff99;
                    }
                }
            }
        }
    }
}