#branch{
    width: 100%;
    height: 600px;
    background-color: #0A0A0A;
}

#branch > div{
    float: left;
    width: 50%;
    height: 100%;
}

#branch-text{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    color: white;
}

#branch-text > div{
    width: 65%;
    margin: 0 auto;
}

#branch-image{
    background-image: url(../img/banners/sucursal.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    transition: background-size 0.3s ease;
}

#branch-text p{
    font-size: 19px;
    line-height: 35px;
}

#branch-box-1{
    position: absolute;
    left: 175px;
    bottom: calc(50% + 95px);
    width: 145px;
    height: 90px;
}

#branch-box-2{
    position: absolute;
    left: 25px;
    bottom: calc(50% + 95px);
    width: 145px;
    height: 90px;
}

#branch-box-2 .floating-box-title-2, #branch-box-1 .floating-box-title-2{
    border-bottom: none;
    margin-top: 5px;
}

#branch-box-3{
    position: absolute;
    left: 25px;
    bottom: calc(50% - 88px);
    height: 176px;
}

#branch-box-4{
    position: absolute;
    left: 25px;
    height: 129px;
    bottom: calc(50% - 223px);
}

#branch-box-5{
    position: absolute;
    right: 25px;
    bottom: 25px;
    width: 320px;
}

#branch-box-5 .floating-box-body p:first-child{
    font-size: 15px;
    line-height: 21px;
}

@media only screen and (max-width: 599px) {
    #branch{
        height: auto;
        display: grid;
        grid-template-rows: auto auto;
    }

    #branch > div{
        float: initial;
        width: 100%;
        height: auto;
    }

    #branch-text{
        grid-row: 1;
    }

    #branch-text > div{
        width: 90%;
        margin-top: 60px;
        margin-bottom: 10px;
    }

    #branch-text p{
        font-size: 14px;
        line-height: 21px;
    }

    #branch-image{
        height: 612px !important;
        grid-row: 2;
    }

    #branch-box-5 {
        left: calc(50% - 147px);
        bottom: 25px;
        width: 295px;
    }

    #branch-box-4 {
        left: calc(50% - 147px);
        bottom: 181px;
    }

    #branch-box-3 {
        left: calc(50% - 147px);
        bottom: 315px;
    }

    #branch-box-2 {
        left: calc(50% - 147px);
        bottom: 496px;
    }

    #branch-box-1 {
        left: calc(50% + 3px);
        bottom: 496px;
    }
}

@media only screen and (min-width: 600px) and (max-width: 767px){
    #branch{
        height: auto;
        display: grid;
        grid-template-rows: auto auto;
    }

    #branch > div{
        float: initial;
        width: 100%;
        height: auto;
    }

    #branch-text{
        grid-row: 1;
    }

    #branch-text > div{
        width: 90%;
        margin-top: 60px;
        margin-bottom: 10px;
    }

    #branch-text p{
        font-size: 16px;
        line-height: 23px;
    }

    #branch-image{
        height: 612px !important;
        grid-row: 2;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px){
    #branch-text > div{
        width: 85%;
    }

    #branch-text p {
        font-size: 21px;
        line-height: 30px;
    }

    #branch-box-5 {
        left: 25px;
        bottom: 25px;
    }

    #branch-box-4 {
        left: 25px;
        bottom: 160px;
    }

    #branch-box-3 {
        left: 25px;
        bottom: 294px;
    }

    #branch-box-2 {
        left: 25px;
        bottom: 475px;
    }

    #branch-box-1 {
        left: 175px;
        bottom: 475px;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    #branch-text > div{
        width: 85%;
    }

    #branch-text p {
        font-size: 21px;
        line-height: 30px;
    }

    #branch-box-5 {
        left: 25px;
        bottom: 25px;
    }

    #branch-box-4 {
        left: 25px;
        bottom: 160px;
    }

    #branch-box-3 {
        left: 25px;
        bottom: 294px;
    }

    #branch-box-2 {
        left: 25px;
        bottom: 475px;
    }

    #branch-box-1 {
        left: 175px;
        bottom: 475px;
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1727px) {
    #branch-text > div{
        width: 75%;
    }

    #branch-box-4 {
        left: 25px;
        top: 301px;
    }

    #branch-box-3 {
        left: 25px;
        top: 120px;
    }

    #branch-box-2 {
        left: 25px;
        top: 25px;
    }

    #branch-box-1 {
        left: 175px;
        top: 25px;
    }
}
