/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : Aug 13, 2018, 12:30:06 PM
    Author     : itzi
*/
@media screen and (min-width: 1800px) {
    #project-list article{
        width: 33.3333333%;
    }
    #project-list article:nth-child(6n-2),
    #project-list article:nth-child(6n-1),
    #project-list article:nth-child(6n){
        flex-direction: row-reverse;
    }
}
@media screen and (min-width: 1600px) {
    #ultimas-noticias.boxed{
        max-width: 1728px;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1800px) {
    #project-list article{
        width: 50%;
    }
    #project-list article:nth-child(4n-1),
    #project-list article:nth-child(4n){
        flex-direction: row-reverse;
    }
}

@media screen and (max-width: 1799px){
    /*HOME*/
    .home #ultimas-noticias .panel-grid-cell{
        width: 100%;
        padding: 30px;
        margin: 0 auto;
    }
}
@media screen and (max-width: 1279px){
    #content .big-listado .so-widget-sow-editor .textwidget > ul > li{
        width: 50%;
    }
}

@media screen and (max-width: 1124px){
    .has-sidebar:not(.error404) #primary,
    .has-sidebar aside#secondary {
        float: none;
        width: 90%;
        margin: 30px auto;
    }
    
    .single-empleo.has-sidebar:not(.error404) #primary,
    .single-empleo.has-sidebar aside#secondary {
        float: left;
        width: 48%;
        margin: 30px auto;
    }
}


@media screen and (max-width: 1023px)
{
    /*HEADER*/
    .site-branding {
        margin-left: -25px;
    }
    .navigation-top nav {
        margin-right: 10px;
    }
    .navigation-top .navigation-secondary .social-navigation {
        margin: 0;
    }
    
    /*HOME*/
    .home .metaslider .caption-wrap{
	   left: auto;
	   right: 15px;
	   bottom: 15px;
    }
    .home .metaslider .caption-wrap .caption{
	   font-size: 1.2em;
	   padding: 25px 15px 15px;
    }
    .home .metaslider .caption-wrap h2{
	   padding: 5px 20px;
           bottom: 30px;
    }
    .home .enlaces-directos{
        margin-top: 30px;
    }
    .home .enlaces-directos ul{
        flex-direction: column;
    }
    .home .enlaces-directos ul li{
        width: auto;
        max-width: none;
        height: 200px;
        justify-content: center;
        align-items: center;
        margin-bottom: 30px;
    }
    
    .home #soluciones-industriales{
        flex-direction: column;
    }
    
    .home .widget_mailpoet_form{
        flex-direction: column;
    }
    .home .widget_mailpoet_form .widget-title{
        width: 100%;
        margin-bottom: 5px;
    }
    .home .widget_mailpoet_form .mailpoet_form{
        padding-right: 0;
        padding-bottom: 10px;
    }
    .home .widget_mailpoet_form .mailpoet_form .mailpoet_text{
        width: 80% !important;
    }
    
    .home #ultimas-noticias .sow-carousel-wrapper ul.sow-carousel-items li.sow-carousel-item{
        width: 370px;
    }
    
    /*PLANTAS*/
    #planta-list article .info{
        flex-direction: column;
        align-items: flex-start;
    }
    #planta-list article .info .contact a{
        display: inline-block;
    }
    #planta-list article .info .contact{
	   padding-left: 0;
    }
    #planta-list article .info .contact a{
	   margin-left: 0;
    }
    
    /*PROYECTOS*/    
    #project-list article{
        width: 100%;
        flex-direction: row;
    }
    #project-list article:nth-child(even){
        flex-direction: row-reverse;
    }
    
    /*FOOTER*/
    footer#colophon .widget-column{
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, .3);
        padding-top: 10px;
    }
    footer#colophon .widget{
        text-align: center;
    }
    footer#colophon .sow-image-container{
        max-width: none;
        margin: 0 auto;
    }
    footer#colophon .sow-image-container .so-widget-image{
        max-height: 75px;
        width: auto;
        display: inline-block;
    }
    footer#colophon .contactBox ul li::before, .vcard li::before {
        position: relative;
        display: block;
    }
}
@media screen and (max-width: 930px){
    .single-empleo.has-sidebar:not(.error404) #primary, 
    .single-empleo.has-sidebar aside#secondary{
	   float: none;
	   width: 100%;
    }
    .site-branding {
	   width: 200px;
	   height: 195px;
    }
    .navigation-top nav ul li a{
	   padding-left: 0;
    }
}
@media screen and (max-width: 930px) and (min-width: 768px){
    /*MENU*/
    .main-navigation a {
        padding: 1em 0.75em;
    }
    .navigation-top nav ul li a{
        font-size: 1rem;
    }
}
@media screen and (max-width: 780px){
    
    #content .panel-grid:nth-child(odd) .sector-actividad{
	   flex-direction: column-reverse;
    }
    #content .panel-grid:nth-child(odd) .sector-actividad.wp-block-columns{
	   flex-direction: column;
    }
    #content .sector-actividad .panel-grid-cell,
    #content .sector-actividad .wp-block-video{
	   margin: 30px;
	   width: auto;
    }
    #content .sector-actividad .panel-grid-cell:nth-child(odd){
	   justify-content: flex-start;
    }
    #content .sector-actividad .panel-grid-cell:nth-child(odd) .textwidget{
	   float: left;
    }
}
@media screen and (max-width: 767px)
{
    /*HEADER*/
    /*HEADER HOME*/
    .home .custom-header{
        position: relative;
        margin: auto;
    }
    .home .navigation-top,
    .home header#masthead{
        position: initial;
    }
    .navigation-top nav ul li a{
        font-size: .9rem;
    }
    /*REGULAR HEADER*/
    header#masthead{
        position: relative;
    }
    .sticky_logo {
        display: none;
    }
    .site-branding {
        z-index: 2;
        max-width: none;
        padding-bottom: 0;
        margin-left: 0;
        width: 100%;
        background-color: white;
        text-align: center;
        padding-top: 0;
        max-height: 230px;
        overflow: hidden;
        height: auto;
        padding-top: 90px;
    }
    .site-branding .wrap{
	   display: block;
	   padding-top: 120px;
    }
    .site-branding a{
        display: inline-block;
	   height: 100%;
    }
    
    .site-branding .custom-logo-link img{
        margin-top: 0;
	   height: 100%;
    }
    .navigation-top{
        position: initial;
        padding-top: 0;
        background: white;
        height: auto;
    }
    .navigation-top nav{
        padding: 0;
        padding-bottom: 0;
    }
    #masthead .navigation-top .navigation-secondary.wrap{
        justify-content: center;
    }
    .navigation-top .navigation-secondary.wrap nav{
        margin-bottom: 0;
    }
    .navigation-top nav ul li a{
        color: #1a171b;
        text-align: center;
    }
    .navigation-top nav ul li a:hover{
        color: #0190CF;
    }
    .navigation-top nav#secondary-site-navigation ul li a:hover,
    .navigation-top nav.social-navigation ul li a:hover {
        color: white;
    }
    .navigation-top nav ul ul li a{
        text-align: center;
    }
    .page-header, body:not(.twentyseventeen-front-page) header.entry-header, #primary header.entry-header{
	   padding: 30px 0;
    }
    
    /*GENERAL*/    
    #content .big-listado .so-widget-sow-editor .textwidget > ul > li{
        width: 100%;
    }
    
    /*PLANTAS*/
    #planta-list article{
	   align-items: flex-start;
    }
    #planta-list article .thumbnail{
	   width: 40%;
    }
    #planta-list article .info{
	   padding-top: 0;
    }
    .mapa-plantas .planta-pin .nombre-planta{
	   display: none;
    }
    .mapa-plantas .planta-pin:hover .planta-info-panel{
        display: inline-block;
        width: auto;
    }
    .mapa-plantas .planta-pin .planta-info-panel .info.vcard{
        min-width: 0;
    }
    
    /*PROYECTOS*/
    .single-proyecto .proyecto{
        flex-direction: column;
    }
    .single-proyecto .proyecto .info,
    .single-proyecto .proyecto .galeria-proyecto{
        width: 100%;
    }
    
    /*SECTORES Y ACTIVIDAdes*/
    #content .sector-actividad .panel-grid-cell,
    #content .sector-actividad .wp-block-column{
	   transform: translateX(0);
	   padding: 0;
	   flex-basis: 100%;
	   margin: 0;
    }
    .sector-actividad.wp-block-columns:nth-child(even) .wp-block-column{
	   transform: translateX(0);
    }
    .sector-actividad .panel-grid-cell:nth-child(odd),
    .sector-actividad .wp-block-column:nth-child(odd){
	   transform: translateX(0);
	   flex-basis: 100%;
    }
    .sector-actividad.wp-block-columns:nth-child(even) .wp-block-column:nth-child(odd){
	   transform: translateX(0);
    }
    .sector-actividad .panel-grid-cell.already-visible,
    .sector-actividad .wp-block-column.already-visible{
	   transform: translateX(0);
    }
}
@media screen and (max-width: 679px)
{
    /*VARIOS*/
    img.alignright,
    img.alignleft {
        float: none;
        margin: 15px auto;
        display: block;
    }
    h2{
	   background-size: 15px;
	   padding-left: 20px;
    }
    body.tag h2, 
    body.blog h2, 
    body.single-post h2, 
    body.category h2, 
    #content .type-post h2{
        padding-left: 30px;
    }
    h2.widget-title{
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    .panel-grid.panel-has-style .full-width .panel-grid-cell{
	   margin: 30px 20px;
	   width: calc(100% - 40px) !important;
    }
    input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="range"], input[type="date"], input[type="month"], input[type="week"], input[type="time"], input[type="datetime"], input[type="datetime-local"], input[type="color"], textarea{
	   padding: 0.3em;
    }
    .page-header h1, body:not(.twentyseventeen-front-page) header.entry-header h1, #primary header.entry-header h1{
	   font-size: 2.5em;
    }
    blockquote{
	   font-size: 1.3em;
    }
    #content ul, #content ol{
	   margin-left: 0;
    }
    .listado h2{
	   margin: 0;
    }
    .boxed{
	   padding: 15px;
    }

    /*MENU*/
    #masthead .navigation-top .navigation-secondary.wrap{
        flex-wrap: wrap;
        text-align: center;
    }
    #bread-wrapper{
        text-align: left;
    }
    .page:not(.home) #content{
        background: none;
    }
    header#masthead .custom-header{
        margin-top: 30px;
    }
    .navigation-top nav ul li a{
	   font-size: .8rem;
    }
    .navigation-top nav,
    .navigation-top nav ul{
	   text-align: center;
    }
    
    /*HOME*/
    .home .enlaces-directos ul li a{
	   min-width: 60%;
	   width: auto;
    }
    .home .metaslider .caption-wrap{
	   min-width: 0;
    }
    .home .metaslider .caption-wrap .caption{
	   max-width: none;
    }
    .home .metaslider .caption-wrap h2{
	   margin-left: 0;
    }
    .home .widget_mailpoet_form .widget-title{
	   font-size: 1.5em;
    }
    .home #ultimas-noticias .panel-grid-cell,
    .home #ultimas-noticias .sow-carousel-container{
	   padding: 0;
    }
    #content .sow-carousel-wrapper ul.sow-carousel-items{
	   margin: 0;
    }
    .home #ultimas-noticias .sow-carousel-wrapper ul.sow-carousel-items li.sow-carousel-item{
	   width: 90vw;
	   padding: 0 5vw;
    }
    .sow-carousel-wrapper ul.sow-carousel-items li.sow-carousel-item .sow-carousel-thumbnail{
	   max-height: 200px;
	   overflow: hidden;
    }
    .home #ultimas-noticias .sow-carousel-wrapper ul.sow-carousel-items li.sow-carousel-item h3{
	   font-size: 1.2em;
    }
    .home .widget_mailpoet_form{
	   padding: 30px !important;
    }
    .home .widget_mailpoet_form .mailpoet_form .mailpoet_submit{
	   height: 36px;
	   right: -15px;
    }
    
    
    /*PLANTAS*/
    #planta-list article{
	   flex-direction: column;
	   align-items: center;
	   padding: 0;
    }
    a[href*="https://www.google.es/maps"], a[href*="https://www.google.com/maps"]{
	   margin: 10px 0;
    }
    #planta-list article .info{
	   width: 100%;
	   padding-top: 30px;
    }
    #planta-list article .info .contact{
	   text-align: left;
	   padding: 0;
    }
    #planta-list article .info .contact a{
	   margin-bottom: 10px;
    }
    
    /*NOTICIAS*/
    body.blog #content .first-post .post .post-thumbnail, 
    body.tag #content .first-post .post .post-thumbnail, 
    body.category #content .first-post .post .post-thumbnail, 
    #content .type-post .first-post .post-thumbnail{
        width: 100%;
    }
    body.blog #primary .post .post-thumbnail, 
    body.tag #primary .post .post-thumbnail, 
    body.category #primary .post .post-thumbnail, 
    #content .type-post .post-thumbnail{
        width: 100%;
        background-color: gainsboro;
    }
    
    body.blog #primary .post .post-thumbnail a, 
    body.tag #primary .post .post-thumbnail a, 
    body.category #primary .post .post-thumbnail a, 
    #content .type-post .post-thumbnail a{
        text-align: center;
    }
    #content .filter-bar ul li a {
        padding: 5px 0;
    }
    #content .filter-bar ul li.cat-item-67{
        position: inherit;
        margin: 5px auto;
        display: inline-block;
        text-align: center;
    }
    #content .filter-bar ul li.cat-item-67 a{
        padding: 5px 10px;
    }
    #content .filter-bar{
        text-align: center;
    }
    #content .filter-bar ul{
        margin: 15px;
    }
    .has-sidebar:not(.error404) #primary, .has-sidebar aside#secondary {
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
        padding: 5%;
        margin: 0;
    }
    .tagcloud, .widget_tag_cloud, .wp_widget_tag_cloud{
        text-align: center;
    }
    
    /*CLIENTES*/
    #content .big-listado .so-widget-sow-editor .textwidget > ul, #content .big-listado ul{
	   justify-content: center;
    }
    
    /*OFERTAS*/
    .empleo-form{
	   margin: 0;
    }
}
@media screen and (max-width: 512px)
{
    .site-branding{
        padding-top: 120px;
    }
}
@media screen and (max-width: 480px)
{
    /*HOME*/
    #home-slider{
	   display: none;
    }
    
    /*PROYECTOS*/
    #project-list article,
    #project-list article:nth-child(2n){
	   flex-direction: column;
	   height: auto;
    }
    #project-list article div{
	   width: 100%;
    }
    #project-list article div.thumbnail{
	   min-height: 150px;
    }
    
    /*OFERTAS*/
    form .line.col-2 p{
	   width: 100%;
    }
    
    /*PLANTAS*/
    .mapa-plantas .planta-pin:hover .planta-info-panel{
        /*display: none;*/
    }
    
    /*LOGOS*/
    .programa .logos .gallery{
	   flex-direction: column;
    }
    .programa .logos .gallery .gallery-item{
	   margin: 20px;
    }
}

/*OVERRIDES*/
@media screen and (min-width: 48em){
    .site-navigation-fixed.navigation-secondary {
	   bottom: auto;
	   position: fixed;
	   left: 0;
	   right: 0;
	   top: 0;
	   width: 100%;
	   z-index: 7;
    }
    .main-navigation a {
	   padding: 1em 1em;
    }
    
}
