/* iPhone 5 */
@media (max-width: 320px) {
}

@media (min-width: 400px) and (max-width: 568px) {
}

/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {

    td {
        text-align: left;
        width: auto;
    }
}
/* Landscape phones and down*/
@media (max-width: 568px) {
    header {
        margin:0;
    }
    
    
    .item1 img {
        position:static;
        transform: none;
        -webkit-transform: none; 
    }
    .caption {
        left: 0;
        position: relative;
        padding: 15px;
        text-align: center;
        transform: none;
        -webkit-transform: none;
    }
        .caption h2 span {
        font-size:22px;
        text-align: center;
    }
        .caption .ref {
            text-align: center;
        }
    .caption-block .ref {
        text-align: left;
    }
        .caption .precio {
            text-align:center;
            float:none;
        }
    .navbar-brand {
      text-align: left;
    }
        .navbar-brand img {
        padding-left: 0;
        max-height:42px;
    }
     
    .posrel {
        padding: 0;
    }


    .navbar-inverse {
        background: 0;
        border: 0;
    }

    .navbar-collapse.collapse {
        width: 100%;
        padding: 0;
        margin: 0;
        overflow: hidden;
        top: 0;       
        border:0;
    }
    .collapse:not(.show) {
        display: block;
    }
    nav {       
        padding:15px;
        overflow: hidden;
    }

    .dropdown-menu {
        position: static;
    }
    .navbar-default {
        position: relative;
        background-size: initial !important;
    }
    

    .navbar.navbar-default.navbar-fixed-top .navbar-toggle .icon-bar {
        background-color: #fff !important;
    }

    button.navbar-toggle.collapsed {
        float: left;
        z-index: 333;
        border: 0;
    }

    .navbar-default .navbar-toggle:focus, .navbar-default .navbar-toggle:hover {
        background-color: transparent;
    }

    .logo {
        margin: 9px 33.6% 0;
    }
        .logo img {
            margin: 0 auto;
        }
    #bgslide {
        width: 100%;
        margin: 0;
    }

    .divcol {
        width: 100%;
        padding: 0;
    }

    .tit_h2, .tit_h2 * {
        line-height: 40px;
        margin-top: 20px;
    }

    .foto_borde {
        width: 100%;
    }

    ul.menu {
        margin: 0;
        text-align: left;
    }

    #mymenu2 li {
        float: none;
        display: block;
        text-align: left;
    }
        #mymenu2 li.open {
            margin: 15px 0;
        } 
   
    #footer h1 {
        float: none;
        padding: 5px 0;
    }

        #footer address {
            float: none;
        }

        #footer .legal {
            float: none;
            line-height:initial;
        }

    .divfoto img {
        width: 100%;
    }

    #mymenu2 ul.dropdown-menu > li > a {
        padding: 0;
    }
    
    .box {
        min-height:227px;
    }
        .box h3 {
            transform: translate(-50%,-60%) scale(.5);
            -webkit-transform: translate(-50%,-60%) scale(.5);
            margin: 0;
            width: 100%;
        }
    .slideparatupc, .slideparatupc2, .slideparatupc3 {
        background-position:15% center;        
        min-height:300px;
    }
    .swiper-slide.swiper-slide-active .titulo {
        top:50%;
    }

    .denim h3 {
        font-size: 12px;
        top: 30%;
    }
   
    .item .btn-alfer {
        top: 320px;
    }
    
        #soluciones .box {
            min-height: 185px;
        }
    #soluciones .imagen {
        height: 120px;
    }
        #soluciones .imagen img.clip{
            
            margin:0;
        }
    .form-inline{
        float:none;
    }
    .arrow-wrap {
        display: none;
    }
    .box-attcliente a {
        width: 150px;
        height: 150px;
        
        
    }
    .attcliente {
        position:static;
    }
    .box-articulo:first-child {
        margin-top: 70px;
    }
    #main {
        margin:0;
    }
    .td01 {
        width: 100% !important;
        text-align: left !important;
    }
    .form-control1, .form-control {
        width: 100% !important;
    }
    .dot {
        float: none !important;
    }
    .infor {
        margin: 0 !important;
    }
    .validar {
        padding: 0 !important;
    }
    .grid-wrapper {
        grid-template-columns: repeat( auto-fit, 50% )!important;
        padding: 0;
    }
    .grid-carrusel {
        grid-template-columns: 100% !important;
        grid-template-areas: 'menu' 'main' 'right' 'footer' 'otro' !important;
    }
    #site-canvas {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        -webkit-transition: all .4s ease;
        transition: all .4s ease;
        left: 0;
    }
    .site-menu {
        width: 300px;
        height: 100% !important;
        position: fixed;
        top: 0;
        left: -304px;
        background-color: #f8f9fa;
        padding: 15px 15px 0 !important;
        display: block;
        box-shadow: 2px 2px 4px rgba(0,0,0,.2);
        z-index: 8888;
        -webkit-transform: translateX(0);
        transform: translateX(0);
        -webkit-transition: all .4s ease;
        transition: all .4s ease;
    }
    ul.menu .dropdown-menu {
        border: 0;
        box-shadow:none;
    }
    svg.button-menu {
        display: block;
        top: 0;
        -webkit-transform: translateX(0);
        transform: translateX(0);
        -webkit-transition: all .4s ease;
        transition: all .4s ease;
        left: 0;
    }
    .navbar-brand {
        padding: 0;
    }
    ul.navbar-nav {
        font-size:0.768em; 
        justify-content: center;        
    }
    .offcanvas-collapse {         
       -webkit-transform: translate(-300px,18px);
      transform: translate(-300px,18px);
    }
    
    .toggle-nav2 {
        display: none;
    }
    #productos .portada h2 {
        font-size:1em;
        text-align: center;
    }
    .offcanvas-collapse.open {
      -webkit-transform: translate(315px,18px);
      transform: translate(315px,18px);
      
    }
    .navbar-nav li {
        padding: 0 5px;
    }
    .navbar-nav, .navbar-menu {
        flex-flow: wrap;
        -webkit-flex-flow: wrap;
        flex-direction: row !important;
        -webkit-flex-direction: row !important;
        -webkit-box-orient: horizontal;
    }
    .navbar-menu {
        width: auto;
        position: absolute;
        top: 8px;
        right: 15px;
        padding-top: .3125rem;
        padding-bottom: .3125rem;
    }
        .navbar-menu .nav-link {
            margin:0;
            
        }
        .navbar-menu .nav-link i {
            margin: 0;
        }
            .navbar-expand-lg .nav-link .buscar {
        top: 110px;
        width: 100%;
        left: 0;
        position: static;
        margin: 0;
    }
    .buscar {
        width: 100%;
    }
        .buscar input[type="text"] {            
            width: 91%;
            min-height: 35px;
            font-family: inherit;
            padding-left: 5px;
            outline: none;           
        }
    
    .ico-cesta::after {
        content:"";
    }
    .ico-cuenta::before {
        content: "";
    }
    .ico-precio::before {
        content: "";
    }
    footer .block {
        position:relative;
    }
    /**tabla**/
    #tienda h1 + a{
        display: flex;
        align-content: center!important;
        flex: 1 0 30%;
        
    }
    .btn-volver {
        flex:1 0 40%!important;
        
    }
        .td-rect.dir::before, .td-rect.dir2::before {
            content: "" !important;
        }

    #ContentCuerpo_PTallas .td-rect:nth-of-type(1)::before {
        content: "COLOR";
    }

    .totales .td-rect:nth-of-type(1)::before, .totales .td-rect:nth-of-type(2)::before, .totales .td-rect:nth-of-type(3)::before {
        content: "";
        position: static;
    }

    .totales .tr-rect:first-child {
        float: left;
        width: 50% !important;
    }

    .totales .tr-rect .td-rect:first-child {
        border: 0;
        padding: 0;
    }


    .totales .td-rect {
        padding: 0;
        border-top: 1px dotted #000;
        border-left: none;
    }

    .totales .tr-rect {
        float: left;
        width: 50%;
        display: block;
        clear: right;
        position: static !important;
    }

    .totales .th-rect {
        line-height: 50px;
        width: 100%;
        display: inline-block;
        overflow: hidden;
    }
    /*** cesta */
    
    /***pedidos*/
    .pedidos .td-rect:nth-of-type(1)::before, .albaranes .td-rect:nth-of-type(1)::before {
        content: "NUM.";
    }

    .pedidos .td-rect:nth-of-type(2)::before, .albaranes .td-rect:nth-of-type(2)::before {
        content: "FECHA";
    }

    .pedidos .td-rect:nth-of-type(3)::before, .albaranes .td-rect:nth-of-type(3)::before {
        content: "HORA";
    }

    .pedidos .td-rect:nth-of-type(4)::before, .albaranes .td-rect:nth-of-type(4)::before {
        content: "ESTADO";
    }

    .pedidos .td-rect:nth-of-type(5)::before, .albaranes .td-rect:nth-of-type(5)::before {
        content: "FORMA DE PAGO";
    }

    .pedidos .td-rect:nth-of-type(6)::before, .albaranes .td-rect:nth-of-type(6)::before {
        content: "TOTAL";
    }

    .pedidos .td-rect:nth-of-type(7)::before {
        content: "MAS INFO";
    }
    /***albaranes*/

    .albaranes .td-rect:nth-of-type(7)::before {
        content: "VER MAS";
    }

    .albaranes .td-rect:nth-of-type(8)::before {
        content: "IMPRIMIR";
    }

    .td-rect::before {
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        white-space: nowrap;
        line-height: 50px;
        background-color: #ddd9d9;
    }

    .td-rect {
        position: relative;
        /*! padding-left: 50%; */
        display: inherit;
    }

        .td-rect:first-child img {
            /*! transform: translate( 0, -35%) scale(.3); */
        }

    #ContentCuerpo_PTallas .td-rect h6 {
        padding-top: 0;
    }

    #ContentCuerpo_PTallas .td-rect {
        padding-top: 15px;
    }

        #ContentCuerpo_PTallas .td-rect:first-child {
            padding-top: 5px;
        }

        #ContentCuerpo_PTallas .td-rect input {
            padding: 5px;
        }

    .td-rect h6 {
        padding-top: 15px;
    }

    .tr-rect .td-rect:first-child {
        /*! border-top: 1px solid #000; */
        /*padding-left: 50%;*/
        /*! min-height: 50px; */
    }

    .tr-rect, .tr-rect2 {
        font-size: 1em;
    }

    .btn-pasos ol::before, .btn-pasos ol::after {
        background: none;
    }

    .btn-pasos ol li {
        margin: 15px 10px;
    }

        .btn-pasos ol li::before {
            margin-top: -16px;
        }
    #userlist {
        position: fixed !important;
        width: 320px;
        left: 10px;
        transform: translate3d(0,0,0);
    }
    #footer, .push {
        position: relative;
        height: auto;
        padding: 0;
    }
    .grid-wrapper .producto {
        padding:8px;
    }
    .producto .precio {
        
        width: 100%;
        font-size: 1em;
    }
    .swiper-slide .btn-button {
        max-width:50%;
    }
    .th-rect {
        font-size: 0.65em !important;
    }

    .td-rect h6 {
        padding-top: 15px
    }

    .td-rect {
        font-size: 0.65em;
    }

       

        .td-rect::before {
            position: absolute;
            top: 0;
            left: 0;
            width: 50%;
            white-space: nowrap;
            line-height: 42px;
            background-color: #eee;
        }

        .td-rect h6 {
            padding-top: 15px;
        }
    
        
}

/* Landscape phone to portrait tablet*/
@media (min-width: 667px) and (max-width: 768px) {

}
