@import "mixins";
.lea-tabs {
    .arrow-right,
    .arrow-left{
        display: none;
    }
    .tabs-header {
        position: relative;
        width: 100%;
        display: flex;
        height: 3rem;
        border-bottom: 1px solid $light-grey;
        box-sizing: border-box;
        .tab {
            min-width: 10rem;
            padding: 1rem;
            transition: $transition;
            text-align: center;
            border-bottom: 0px solid $accent;
            cursor: pointer;
            span {
                color: $dark-grey;
                font-size: 0.8rem;
            }
            &.active {
                span {
                    font-weight: 500;
                    color: $accent;
                }
                border-bottom: 4px solid $accent;
                transition: $short-transition;
            }
        }
    }
}

.tabs-content {
    display: block;
    position: relative;
    min-height: 200px;
    width: 100%;
}

.tab-wrap {
    overflow: hidden;
}

.tab-container {
    white-space: nowrap;
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    .tab-content {
        display: inline-block;
        vertical-align: middle;
        position: relative;
        overflow: hidden;
        // width: 100%;
        white-space: normal;
        transition: $transition;
        lea-spinner {
            margin: 2rem auto;
            width: 100%;
        }
    }
    &.active-content {
        .tab-content {
            width: 100%;
            z-index: 2;
        }
        &.swipeRight {
            .tab-content {
                animation: 0.25s swipeRight forwards;
            }
        }
        &.swipeLeft {
            .tab-content {
                animation: 0.25s swipeLeft forwards;
            }
            &.tab-container {
                display: inline-block;
            }
        }
    }
    &.not-active-content {
        .tab-content {
            display: none;
        }
        &.swipeRight {
            .tab-content {
                width: 100%;
                visibility: hidden;
                display: inline-block;
                animation: 0.25s out-swipeLeft forwards;
            }
        }
        &.swipeLeft {
            .tab-content {
                visibility: hidden;
                width: 100%;
                display: inline-block;
                animation: 0.25s out-swipeRight forwards;
            }
        }
    }
}

@keyframes swipeRight {
    0% {
        transform: translateX(-105%);
    }
    100% {
        transform: translateX(0);
    }
}

//este anda bien
@keyframes out-swipeRight {
    0% {
        transform: translateX(0);
    }
    99% {
        transform: translateX(-104%);
        // width: 100%;
    }
    100% {
        transform: translateX(-105%);
        // width: 0%;
    }
}

@keyframes swipeLeft {
    0% {
        transform: translateX(105%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes out-swipeLeft {
    0% {
        transform: translateX(0);
    }
    99% {
        transform: translateX(104%);
        width: 100%;
    }
    100% {
        transform: translateX(105%);
        width: 0%;
    }
}

.dark-mode {
    .lea-tabs {
        .tabs-header {
            .tab {
                span {
                    color: $light-grey;
                }
                &.active {
                    span {
                        color: $accent;
                    }
                }
            }

        }
    }
}

    .showArrows{
        &.lea-tabs{
            position: relative;
            .tabs-header{
                overflow-x: scroll;
                height: 100%;
                width: 100%;
                // .tab{
                //     &:first-of-type{
                //         padding-left: 3rem;
                //     }
                //     &:last-of-type{
                //         padding-right: 3rem ;
                //     }
                // }
            }
            .arrow-left,
            .arrow-right{
                display: inline;
                position: absolute;
               z-index: 2;
               &.arrowHidden{
                   display:none ;
               } 
            }
            .arrow-left{
                background: -webkit-linear-gradient(left, rgba(255,255,255,1) 57%, rgba(255,255,255,0.51) 78%, rgba(237,237,237,0) 100%);
                padding: 0.5rem 1rem 0.5rem 0.5rem;
                left: 0;
            }
            .arrow-right{
                background: -webkit-linear-gradient(right, rgba(255,255,255,1) 57%, rgba(255,255,255,0.51) 78%, rgba(237,237,237,0) 100%);
                        padding: 0.5rem 0.5rem  0.5rem 1rem;
                right: 0;
            }
        }
        .tabs-header-scroll{
            height: 3.5rem;
            width: calc(100% - 4rem);
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: absolute;
            margin: auto;
            z-index: 0;
                    .arrow-right,
                    .arrow-left{
                        height: 40%;
                        align-items: center;
                        display: flex;
                    }
                    .arrow-left{
                        background: -webkit-linear-gradient(left, rgba(255,255,255,1) 57%, rgba(255,255,255,0.51) 78%, rgba(237,237,237,0) 100%);
                        padding: 0.5rem 1rem 0.5rem 0.5rem;
    
                    }
                    .arrow-right{
                        background: -webkit-linear-gradient(right, rgba(255,255,255,1) 57%, rgba(255,255,255,0.51) 78%, rgba(237,237,237,0) 100%);
                        padding: 0.5rem 0.5rem  0.5rem 1rem;
                     
                    }
                }
                ::-webkit-scrollbar{
                        height: 0;
                        }
    }

    @media (max-width: 425px) {
        .lea-tabs {
            .tabs-header {
                .tab {
                    min-width: calc(100% - 2rem) !important;
                }
            }
        }
    }


    