.accordion {
    box-sizing: border-box;
    display: flex;
    /*font-family: Arial, Helvetica, sans-serif;*/
    overflow: hidden;
    width: 100%;
}

.accordion-select {
    cursor: pointer;
    margin: 0;
    opacity: 0;
    z-index: 2;
}

.accordion-title {
    position: relative;
}

.accordion-title:not(:nth-last-child(2))::after {
    border: 1px solid transparent;
    bottom: 0;
    content: '';
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.accordion-title span {
    bottom: 0px;
    box-sizing: border-box;
    display: block;
    position: absolute;
    white-space: nowrap;
    width: 100%;
}

.accordion-content{
    box-sizing: border-box;
    overflow: auto;
    position: relative;
    transition: margin 0.3s ease 0.1s;
}

.accordion-select:checked + .accordion-title + .accordion-content {
    margin-bottom: 0;
    margin-right: 0;
}

/* Generated styles starts here */

.accordion {
/*    border-color: #333;
    border-radius: 0px;
    border-style: solid;
    border-width: 3px;*/
    flex-direction: row;
    height: 150px;
} 

.accordion-title{
    background-color: #333;
    color: #f5f5f5;
    width: 65px;
    height: 100%;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .1em
}


.accordion-select  {
    background-color: #fff;
    color: #333;
    width: 65px;
    height: 100%;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .1em
}



.accordion-select {
    margin-bottom: -65px;
    margin-right: -65px;
}

.accordion-title:not(:nth-last-child(2))::after {
    border-bottom-color: transparent;
    border-right-color: rgb(234, 234, 234);
} 

.accordion-select:hover + .accordion-title,
.accordion-select:checked + .accordion-title {
    background-color: #eb0029;
} 

 .accordion-title span  {	
    transform: rotate(-90deg);
    -ms-writing-mode: lr-bt;
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
    padding-bottom: 33px;
    padding-top: 33px;
    line-height: 65px;
} 

.accordion-content {
    background-color: #f7f7f7;
    color: #7f8787;
    height: 100%;
    margin-bottom: 0;
    margin-right: calc(-1 * calc(100% - 260px));
    padding: 10px;
    width: calc(100% - 260px);
} 

/************************* acordeon de 2 opciones *****************************/

.accordion-content2{
    box-sizing: border-box;
    overflow: auto;
    position: relative;
    transition: margin 0.3s ease 0.1s;
}

.accordion-select:checked + .accordion-title + .accordion-content2 {
    margin-bottom: 0;
    margin-right: 0;
}


.accordion-content2 {
    background-color: #f7f7f7;
    color: #7f8787;
    height: 100%;
    margin-bottom: 0;
    margin-right: calc(-1 * calc(100% - 130px));
    padding: 10px;
    width: calc(100% - 130px);
} 



 @media only screen and (max-device-width: 667px) {

                        .accordion-content {
                            background-color: #f7f7f7;
                            color: #7f8787;
                            height: 100%;
                            margin-bottom: 0;
                            margin-right: calc(-1 * calc(100% - 260px));
                            padding: 2px;
                            width: calc(100% - 260px);
                        } 

                        .accordion-content2 {
                            background-color: #f7f7f7;
                            color: #7f8787;
                            height: 100%;
                            margin-bottom: 0;
                            margin-right: calc(-1 * calc(100% - 130px));
                            padding: 2px;
                            width: calc(100% - 130px);
                        } 

 }






/* @media only screen and (max-device-width: 480px) {*/

 @media only screen and (max-device-width: 480px) {


                        .accordion-title{
                            background-color: #333;
                            color: #f5f5f5;
                            width: 30px;
                            height: 100%;
                            font-size: 15px;
                            font-weight: 600;
                            letter-spacing: .1em
                        }   

                        .accordion-select  {
                            background-color: #fff;
                            color: #333;
                            width: 30px;
                            height: 100%;
                            font-size: 15px;
                            font-weight: 600;
                            letter-spacing: .1em
                        }

                        .accordion-select {
                            margin-bottom: -30px;
                            margin-right: -30px;
                        }

                         .accordion-title span  {   
                            transform: rotate(-90deg);
                            -ms-writing-mode: lr-bt;
                            filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
                            padding-bottom: 15px;
                            padding-top: 15px;
                            line-height: 30px;
                        }



                        .accordion-content {
                            background-color: #f7f7f7;
                            color: #7f8787;
                            height: 100%;
                            margin-bottom: 0;
                            margin-right: calc(-1 * calc(100% - 120px));
                            padding: 2px;
                            width: calc(100% - 120px);
                        } 





                        .accordion-content2 {
                            background-color: #f7f7f7;
                            color: #7f8787;
                            height: 100%;
                            margin-bottom: 0;
                            margin-right: calc(-1 * calc(100% - 60px));
                            padding: 2px;
                            width: calc(100% - 60px);
                        } 



}




/*Esta línea la cambié directo en bootstrap.min.css

input[type=checkbox], input[type=radio] {
    margin: 4px 0 0;
    margin-top: 1px\9;
    line-height: normal;
}*/
