html {
    overflow-y: scroll;
}

html, body{
    min-height: 100%;
    height: 100%;
}
body{
    margin: 0;
    padding: 0;
    position: absolute;
    min-height: 100%;
    width: 100%;
    background: #EEEEEE;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
}
p{
    margin: 0;
    margin-bottom: 1em;
}

/*
header {
    box-shadow: 0 4px 4px 1px rgba(0,0,0,0.27);
	border-bottom: 1px solid black;
}
*/

.dev {
    position: absolute;
    font-size: .8em;
    color: white;
}
.dev a {
    color: white;
}
.encabezado {
    margin: 0;
    padding: 0;
    margin-top: -1em;
}

div#contenido {
    padding: 1em;
    padding-bottom: 0;
    min-height: calc(100% - 13em);
    height: auto;
    order:2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.main {
    max-width: 900px;
    margin: 0 auto;
    height: auto;
    min-height: 100%;
    /*box-shadow: 0px 2px 27px 4px gray; */
    box-shadow: 0 0 10px rgba(0,0,0,0.27);
    background: white;
    display: flex;
    flex-direction: column;
}

header{
    order: 1;
}

strong.titulo {
    font-size: 2em;
    /* text-align: center; */
    display: block;
    padding-top: 1em;
    color: white;
    background: #008cce;
    padding-left: 1em;
}

.menu {
    display: block;
}

.menu li {
    list-style: none;
    display: inline-block;
    /* width: 24.67%; */
    padding-right: 1em;
    text-align: center;
    height: 3em;
    border-bottom: 3px solid #008cce;
    flex-grow: 1;
}

.menu ul {
    padding: 0;
    margin: 0;
    background: #008cce;
    display: flex;
    flex-direction: row;
}

.menu li span {
    /* background: #673AB7; */
    /* padding: .3em; */
    color: white;
    /* border-radius: .3em; */
    height: 100%;
    width: 100%;
    display: block;
    line-height: 3em;
    vertical-align: baseline;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.menu li a {
    color: inherit;
    text-decoration: inherit;
}

.menu li:hover {
    border-bottom: 3px solid white;
    cursor: pointer;
}


#contenido span.texto {
    text-align: justify;
    display: block;
    margin-top: .5em;
}

#contenido span.fecha {
    display: block;
    color: gray;
}

.titulo_seccion {
    font-size: 2em;
    display: inline-block;
    width: 50%;
    border-bottom: 1px solid black;
    margin-bottom: .5em;
    vertical-align: middle;
    margin-left: 1em;
}

.texto_seccion .subtitulo {
    font-weight: bold;
    color: #555555;
}

#contenido span.titular {
    font-size: 1.5em;
    font-weight: bold;
}

svg#Capa_1 {
    display: inline-block;
    vertical-align: middle;
    margin-left: 1em;
}


ul.contacto {
    padding: 0;
    padding-top: 8em;
    display: block;
    margin: 0 auto;
    width: 60%;
}

.contacto li {
    font-size: 1.5em;
    list-style: none;
    line-height: 1em;
    padding-bottom: 2em;
}

.contacto span.titulo {
    /* border: 1px solid black; */
    padding: .3em;
    /* padding-right: 1em; */
    /* border-bottom-right-radius: 30%; */
    /* border-top-right-radius: 30%; */
    background: #008cce;
    color: white;
    vertical-align: bottom;
    min-width: 30%;
    display: inline-block;
    height: 1em;
    vertical-align: middle;
}

.contacto span.dato {
    border: solid 1px #008cce;
    vertical-align: bottom;
    padding: .25em;
    margin-left: -.3em;
    padding-left: 0.5em;
    display: inline-block;
    height: 1em;
    width: 63%;
    text-align: right;
}

.dato a{
    color:inherit;
    text-decoration: none;
}

span.en_desarrollo {
    display: block;
    width: 100%;
    text-align: center;
    padding-top: 5em;
    padding-bottom: 5em;
    font-size: 2em;
}

section ul {

}

section .menul{
    order: 1;
    display: inline-block;
    list-style: none;
    padding-left: 0;
    vertical-align: top;
}

.menul .seleccionado {
    background: #008cce;
    color: white;
}

section{
    display: flex;
    flex-grow: 1;
}

section .texto_seccion {
    display: inline-block;
    width: 75%;
    padding-top: .5em;
    padding-left: 2em;
    text-align: justify;
    order: 2;
    flex-grow: 1;
}

footer {
    height: 3em;
    font-size: .7em;
    display: block;
    border-top: 1px solid lightgrey;
    padding-top: 1em;
    text-align: right;
    padding-right: 1em;
    color: gray;
    margin-top: 2em;
    order: 3;
}

footer span.powered {
    font-weight: bold;
}

footer .copy{
    display: block;
    width: 100%;
    text-align: center;
}

section .menul li {
    /* background: lightgray; */
    padding: .4em;
    margin: 0.2em;
    margin-bottom: .5em;
    margin-top: .5em;
    cursor: pointer;
    /* transition: border .5s ease-in-out; */
    text-align: left;
    color: #555555;
    border-left: 2px solid #008cce;
    transition: background .1s linear,color .1s linear;
}

section .menul li:hover {
    /* border: 1px solid #008cce; */
    background: #008cce;
    color: white;
}

ul.lista_basica {
    font-size: 1.2em;
}

.lista_basica li {
    padding-top: .5em;
    padding-bottom: .5em;
}

.lista_basica li ul {
    font-style: italic;
    font-size: .8em;
    list-style: none;
    padding-left: .5em;
    border-left: 1px solid #008cce;
    margin-left: 1.5em;
}

.lista_basica  li ul li:before{
    content: "";
    padding: 0;
}

.lista_basica li {
    list-style: none;
}

.lista_basica li:before {
    content: "\029BF ";
    color: #008cce;
    font-size: .7em;
    padding-right: .5em;
    vertical-align: middle;
}
.lista_basica li span {
    vertical-align: sub;
}
.imagenes ul{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    display: inline-block;
    list-style: none;
    padding-left: 0;
    vertical-align: top;
    text-align: center;
}

.imagenes ul li img {
    width: 12em;
    display: -webkit-box;
    transition: opacity .25s ease-out;
}

.imagenes ul li:hover{
    cursor: pointer;
}

.imagenes ul li:hover img{
    opacity: .1;
}
.imagenes ul li:hover .img_info{
    opacity: 1;
    margin-top: 0em;
}

.imagenes ul li {
    display: inline-block;
    max-width: 12em;
    vertical-align: top;
    overflow: hidden;
    height: 7.8em;
    margin: .7em;
    margin-bottom: 2em;
    position: relative;
    text-align: left;
    border: solid 1px #008cce;
    flex-grow:1;
}

span.img_info {
    position: absolute;
    text-align: justify;
    padding: 0.5em;
    font-size: .9em;
    color: gray;
    opacity: 0;
    margin-top: -1em;
    transition: margin-top .25s ease-out;
}

.img_info span.img_title {
    display: block;
    font-weight: bold;
    color: black;
}

.seleccionada{
    background: linear-gradient(to top, white -17%, #008cce 35%);
    border-bottom: solid white !important;
}

.descripcion {
    font-size: .8em;
}

@media (max-width: 950px){
    body{
        font-size: .7em;
    }

    svg#Capa_1{
        max-width: 7em;
    }

    .main{
        min-height: 100%;
        height: auto;
    }
    .titulo_seccion{
        width: auto;
        min-width: 50%;
        font-size: 1.7em;
    }

    .menu li{
        /* width: 24.4%;*/
        max-width: 24.9%;
    }


    .contacto span.dato {
        height: .98em;
    }

    #contenido{
        height: auto;
        min-height: 100%;
    }

    ul.contacto{
        width: 92%;
    }

    section .texto_seccion {
        width: 55%;
    }

    article{
        width: 24em !important;
    }

    nav{
        width: 27em !important;
    }

}

/** FORMULARIO DE CONSULTAS */

#boton_consultas div#boton {
    color: white;
    font-size: 1em;
    width: 6em;
    text-align: center;
    padding: .1em .1em .12em .1em;
    background: #008cce;
    cursor: pointer;
    display: inline-block;
}

div#boton_consultas {
    width: 100%;
    text-align: right;
}

div#capa_consultas {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.9);
}

#capa_consultas .interfaz_consulta {
    display: flex;
    max-width: 40em;
    margin: 0 auto;
    margin-top: 6em;
    background: white;
    border: solid 1px black;
    border-radius: 5px;
    box-shadow: 0 0 10px gray;
}

.texto_consultas {
    padding: 1em;
}

#capa_consultas form.consulta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1em;
}

#capa_consultas .formElem {
    display: flex;
    flex-grow: 1;
    flex-direction: row;
    width: 90%;
    margin-top: .5em;
    margin-bottom: .5em;
}

.formElem label {
    display: flex;
    flex-grow: 1;
    width: 50%;
}

.formElem input {
    display: flex;
    flex-grow: 1;
    width: 40%;
}

.formElem textarea#txtConsulta {
    display: flex;
    width: 100%;
    height: 10em;
}

.formulario_consulta .formButons {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 1em;
}

.formulario_consulta input[type="button"] {
    margin-left: 2em;
}

.formulario_consulta .titulo_consulta {
    display: block;
    background: #008cce;
    color: white;
    font-weight: bold;
    padding: .5em;
    font-size: 1.2em;
}

/** FIN DEL FORMULARIO DE CONSULTAS */



/** ESTILOS DEL BLOG **/

article {
    display: flex;
    flex-direction: column;
    width: 21em;
    box-shadow: 0 0 5px grey;
    margin: 1em;
    border-radius: 3px;
}
article:hover {
    box-shadow: 0 0 10px grey;
}

article div {
    padding-left: 1em;
    padding-right: 1em;
    flex-grow: 1;
    display: flex;
}

article .cabecera {
    background: #008cce;
    color: white;
    font-size: 1.2em;
    padding-bottom: .1em;
    padding-top: .1em;
    flex-direction: column;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    cursor: pointer;
}

article .fecha {
    font-size: .7em;
    color: ghostwhite !important;
    font-style: italic;
}

article .entradilla {
    padding-top: .5em;
}

.botDesplegar span {
    transform: rotate(90deg);
    display: flex;
    width: 1em;
    height: 1em;
}

article .texto {
    display: flex;
    flex-grow: 0 !important;
}

article .botDesplegar {
    justify-content: center;
    border-top: solid 1px #828282;
    margin: 0 auto;
    margin-left: 1em;
    margin-right: 1em;
    margin-top: .5em;
    padding: 0;
    padding-top: .5em;
    cursor: pointer;
}

article .entradilla span {
    max-height: 1.1em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: max-height 1s ease-in-out;
    text-align: justify;
}

article .entradilla span.desplegado{
    max-height: 20em;
    white-space:inherit;
}

article .entradilla a {
    color: #008cce;
    display: block;
    text-align: center;
    margin-top: .5em;
}

content {
    display: flex;
}

nav {
    display: flex;
    width: 12em;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-top: 1em;
}

nav ul li {
    margin-top: .5em;
    cursor: pointer;
}
content .articles {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
}

.articuloCompleto .titulo {
    font-size: 2em;
}

.articuloCompleto .fecha {
    font-size: .7em;
    font-style: italic;
}

.articuloCompleto .texto {
    margin-top: .5em;
    text-align: justify;
}

/** FIN DE ESTILOS DEL BLOG */