/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v7.0.29,
* Autoprefixer: v9.7.6
* Browsers: last 4 version
*/

/* ESTILOS GENERALES */
html, body{
    height: 100%;
}

/* MODIFICAR MODELO DE CAJAS */
html{
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}
*,*::before,*::after{
    -webkit-box-sizing: inherit;
            box-sizing: inherit;
}

/* RESETEAR MÁRGENES Y PADDING */
*{
    margin: 0;
    padding: 0;
}
/* ESTILOS GENERALES */
body{
    font-family: 'Open Sans', sans-serif;
}
.container{
    width: 90%;
    max-width: 1366px;
    margin: 0 auto;
}
h1{
    font-size: 4rem;
}
h2{
    font-size: 2rem;
    padding: 30px 0;
    text-align: center;
}
h3{
    font-size: 1.5rem;
    margin-bottom: 12px;
    text-align: center;
}
.divider{
    border-bottom: 2px solid #000;
    width: 80px;
    margin: 0 auto 30px;
}
/* ESTILOS ESPECÍFICOS */
#logo img {
    width: 80px;
    height: auto;
}
nav{
    padding: 10px 0;
    background-color: #2c2c2c;
    position: fixed;
    width: 100%;
    z-index: 100;
}
main {
	padding-top: 80px;
}
/* Barra de navegación */
#navigation {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
#info-contacto i {
	color: #fff;
	margin-right: 12px;
	font-size: 1.2rem;
}
/* Sección de introducción */
article>section:nth-child(1){
    background-image: -webkit-gradient(linear,left top, left bottom,from(rgba(41,24,21,0.5)),to(rgba(41,24,21,0.9))), url("../images/ciudad-eten.jpg");
    background-image: -o-linear-gradient(rgba(41,24,21,0.5),rgba(41,24,21,0.9)), url("../images/ciudad-eten.jpg");
    background-image: linear-gradient(rgba(41,24,21,0.5),rgba(41,24,21,0.9)), url("../images/ciudad-eten.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}
#seccion-intro{
    height: 100%;
    padding: 50px 0;
    min-height: 500px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-flow: row wrap;
            flex-flow: row wrap;
    color: #fff;
}
#descripcion{
    -ms-flex-preferred-size: 60%;
        flex-basis: 60%;
    padding: 0 1em;
    -webkit-box-flex: 2;
        -ms-flex-positive: 2;
            flex-grow: 2;
}
#descripcion p{
    font-size: 1.5rem;
    margin-top: 20px;
    line-height: 3rem;
}
#descripcion p span{
    font-weight: bold;
}
#formulario{
    -ms-flex-preferred-size: 40%;
        flex-basis: 40%;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px 1em;
    color: #fff;
}
input, select, textarea{
    width: 100%;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
}
input, select{
    height: 35px;
}
.boton-principal{
    background-color: #080;
    text-decoration: none;
    border: none;
    font-size: 1rem;
    padding: 10px 1em;
    color: #fff;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
}
small a{
    color: #ccc;
}
#respuesta-contacto {
    width: 100%;
    text-align: center;
    font-weight: bold;
}
/* Sección Beneficios */
article>section:nth-child(3){
    padding: 50px 0;
    background-color: #f4f4f4;
}
#seccion-beneficios {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	    -ms-flex-flow: row;
	        flex-flow: row;
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
	text-align: center;
}
#seccion-beneficios .col {
	width: 25%;
}
#seccion-beneficios .col i {
	font-size: 3.5rem;
	padding: 40px 0;
	color: #0045ad;
	border: 1px solid;
	border-radius: 50%;
	width: 140px;
	margin-bottom: 30px;
}
#seccion-beneficios .col p{
    font-size: 1.1rem;
}

/* Sección Nosotros */
article>section:nth-child(2){
    padding: 30px 0;
}
#seccion-nosotros{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    margin: 20px auto;
}
#seccion-noticias .card img {
	width: 100%;
	padding: 20px 1rem;
    max-height: 250px;
}
.card{
    padding: 20px 1em;
    width: 100%;
    margin: 12px 1rem;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    -webkit-box-shadow: 2px 5px 10px #ccc;
            box-shadow: 2px 5px 10px #ccc;
}
.card:hover{
    background-color: #f2f2f2;
}
/* Sección Ramas productivas */
article>section:nth-child(4){
    padding: 30px 0;
}
#seccion-ramas{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-flow: row wrap;
            flex-flow: row wrap;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    margin-bottom: 30px;
}
#seccion-ramas img{
    width: 280px;
}
/* Sección noticias */
article>section:nth-child(5){
    padding: 50px 0;
    background-color: #f4f4f4;
}
#seccion-noticias{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    margin: 20px auto;
}
#boton-mas-noticias{
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
/* Mapa */
#seccion-mapa {
	padding: 50px 0;
}
/* Footer */
footer{
    padding: 30px 0;
    background-color: #2c2c2c;
    color: #fff;
}
#pie-pagina{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-flow: row wrap;
            flex-flow: row wrap;
    font-size: 1rem;
    padding: 30px 0;
    line-height: 2rem;
}
#contacto{
    -ms-flex-preferred-size: 50%;
        flex-basis: 50%;
    padding: 0 1rem;
}
#contacto i, #contacto a {
    margin-right: 10px;
    color: #fff;
    font-size: 1.5rem;
}
#logos-empresas{
    -ms-flex-preferred-size: 50%;
        flex-basis: 50%;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    text-align: center;
}
#logos-empresas img{
    width: auto;
    height: 100px;
    margin-right: 1rem;
    background-color: #fff;
    border-radius: 5px;
}
#copyright{
    padding: 12px 0 0;
    text-align: center;
    border-top: 1px solid #ccc;
}
#copyright a{
    color: #fff;
}
/* Listado de noticias */
#listado-noticias a{
    text-decoration: none;
    color: #222;
}
#listado-noticias .card {
	display: flex;
    margin: 20px 0;
    cursor: pointer;
    align-items: center;
}
#listado-noticias .card p {
	margin-left: 1rem;
    text-align: justify;
    font-size: 1.05rem;
}
#listado-noticias img{
    width: 200px;
}
/* Página de noticia */
article > h1 {
	margin: 60px 0 0 0;
    text-align: center;
}
#seccion-detalle-noticia p {
	padding: 20px 1rem 0 1rem;
	font-size: 1.2rem;
}
.parte-noticia {
	display: flex;
    margin-bottom: 50px;
}
.texto-noticia {
    flex-basis: 60%;
}
.imagen-noticia {
	flex-basis: 40%;
}
.imagen-noticia img {
	width: 100%;
}
#imagenes-noticia {
	display: flex;
	justify-content: space-between;
	flex-flow: row wrap;
}
#imagenes-noticia img {
    width: 350px;
    height: 250px;
    margin: 12px 0;
}
.volver-inicio{
    text-align: center;
}
.volver-inicio a {
	background-color: #080;
	border: none;
	font-size: 1rem;
	padding: 10px 1em;
	color: #fff;
	cursor: pointer;
	margin: 25px auto;
	display: inline-block;
	text-decoration: none;
}
/* Media queries */
@media screen and (max-width: 1170px){
    #imagenes-noticia {
        justify-content: space-around;
    }
    .texto-noticia {
        flex-basis: 100%;
    }
    .imagen-noticia {
        display: none;
    }
    .parte-noticia {
        margin-bottom: 0;
    }
}
@media screen and (max-width: 900px){
    h1 {
        font-size: 2.7rem;
        margin: 0 auto;
    }
    h3 a{
        font-size: 1.3rem;
    }
    #seccion-detalle-noticia p {
        font-size: 1rem;
    }
    #listado-noticias img {
        display: none;
    }
    #seccion-intro{
        display: block;
    }
    #descripcion{
        width: 100%;
        text-align: center;
    }
    #formulario{
        width: 70%;
        margin: 12px auto;
    }
    /* Sección nosotros */
    #seccion-nosotros{
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-flow: column;
                flex-flow: column;
    }
    /* Sección beneficios */
    #seccion-beneficios{
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
            -ms-flex-flow: row wrap;
                flex-flow: row wrap;
    }
    .card{
        width: auto;
    }
    #seccion-beneficios .col{
        width: 50%;
        margin-bottom: 50px;
    }

    #seccion-ramas img{
        width: 310px;
    }
    /* Footer */
    #contacto p{
        margin-bottom: 25px;
    }
}
@media screen and (max-width: 650px){
    main {
        padding-top: 40px;
    }
    #navigation {
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
    }
    #logo{
        display: none;
    }
    #seccion-intro{
        display: block;
    }
    #descripcion{
        width: 100%;
        text-align: center;
    }
    h1{
        font-size: 2rem;
    }
    #descripcion p{
        font-size: 1.2rem;
        line-height: 1.8rem;
        margin-bottom: 30px;
    }
    #formulario{
        width: 100%;
    }
    /* Sección nosotros */
    #seccion-nosotros, #seccion-beneficios{
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-flow: column;
                flex-flow: column;
    }
    .card{
        width: auto;
    }
    /* Sección beneficios */
    #seccion-beneficios .col{
        width: 100%;
        margin-bottom: 50px;
    }
    /* Sección Ramas productivas */
    #seccion-ramas{
        margin-bottom: 0;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-flow: column;
                flex-flow: column;
        text-align: center;
    }
    #seccion-ramas .col{
        margin-bottom: 20px;
    }
    /* Mapa */
    iframe {
        height: 300px;
    }
    /* Footer */
    #contacto {
        -ms-flex-preferred-size: 100%;
            flex-basis: 100%;
        text-align: center;
    }
    #contacto p{
        margin-bottom: 20px;
    }
    #logos-empresas{
        -ms-flex-preferred-size: 100%;
            flex-basis: 100%;
        padding: 30px 0 0;
    }
    #seccion-noticias {
        flex-direction: column;
    }

    @media screen and (max-width: 400px){
        #seccion-ramas img {
            width: 100%;
        }
        #imagenes-noticia img {
            width: 100%;
        }
    }
}