@charset "utf-8";
/* CSS Document */

/* Colores:

#314c99	títulos: azul oscuro
#2e2e2f	texto: gris azulado
#fcf7e3	fondo: beige claro
#ae7323	destacado: oro viejo

fondo anterior: #e4d1ae
*/


/* GENERALES */

img {
	max-width: 100%;
	height: auto;
}
.lightbox .lb-image {
	max-width: none;
}
a:link {
	color: #314c99;
}
a:hover {
	color: #ae7323;
	background-color: #e4d1ae;
}
a:visited {
	color: #2e2e2f;
}
.letraroja {
	color: red;
}
.centrado {
	text-align: center;
}
.alindizquierda {
	text-align: left;
}
.alinderecha {
	text-align: right;
}
.letramedia {
	font-size: 150%;
}
.letragrande {
	font-size: 200%;
}
.letramini {
	font-size: 70%;
}
.solomovil {
	display: none;
}
.solotablet {
	display: none;
}
.nomovil {
	display: block;
}
.fotodcha {
	float: right;
	margin-left: 10px;
	margin-bottom: 15px;
	box-shadow: 4px 4px 4px black;
}
.flotaizq {
	float: left;
	margin-right: 10px;
}
.flotader {
	float: right;
	margin-left: 10px;
}
.cursormano {
	cursor: pointer;
}

/* ESPECIFICOS */


body {
	font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
	max-width: 960px;
	margin: 0 auto;
	color: #2e2e2f;
	background-color: #fcf7e3;
}
h1 {
	color: #ae7323;
	font-size: 2.5em;
}
h2, h3 {
	color: #314c99;
}
.colordestacado {
	color: #ae7323;
}

blockquote {
	font-style: italic;
}
header {
	min-height: 204px;
	background-image: url(../img/comunes/fondo-cabecera.jpg);
	background-repeat: no-repeat;
	padding-left: 306px;
	margin-bottom: 30px;
}
header section {	/* iconos redes sociales */
	width: 30px;
	float: right;
/*	margin-top: 8px;*/
}
header section img {
	margin-bottom: 19px;
}
header nav {
	margin-top: 60px;
}
header nav ul {
	padding: 0;
}
header nav li {
	display: inline;
}
header nav li:before {
	content: " · ";
}
header nav li:first-child:before {
	content: "";
}
header .menumovil {
	display: none;
	margin-top: 10px;
}

aside {
	clear: both;
	float: left;
	width: 20%;
}
aside section {
	width: 90%;
	height: 121px;
	margin-left: 8%;
	margin-bottom: 20px;
	background-image: url(../img/comunes/fondo-boton-menu.png);
	background-repeat: no-repeat;
	background-size: contain;
}
aside section:first-of-type {
	width: 50%;
	height: 60px;
}
aside section:hover {
	background-image: url(../img/comunes/fondo-boton-menu-hover.png);
}
aside section h3 {
	margin: 0;
	font-size: 1.4em;
}
aside section a {
	/*color: #314c99;*/
	text-decoration: none;
	display: inline-block;
	width: 100%;
	padding: 41px 5% 20px 5%;
}
aside section:first-of-type a {
	padding: 21px 5% 10px 5%;
}
aside section:hover a {
	color: #ae7323;
	background-color: transparent;
}
/*aside section a:visited {
	color: #2e2e2f;
}*/


.modulos3 {
    display: flex;
    flex-wrap:  wrap;
    justify-content: space-between;
}
.modulos3 > div {
    width: 30%;
}

main {
	float: right;
	width: 74%;
/*	max-width: 700px;
	width: auto;*/
}
main a[target], footer section a[target] {
	padding-right: 15px;
	background-image: url(../img/comunes/abrir-ventana-nueva.png);
	background-repeat: no-repeat;
	background-position: right;
}
a[target].noicono, .galeria figure a[target] {
	padding-right: 0;
	background-image: none;
}

main input, main textarea {
	width: 80%;
}
main input[type=submit] {
	color: #ae7323;
	font-weight: bold;
	font-size: 1.3em;
	width: auto;
}

footer {
	clear: both;
	background-color: #e4d1ae;
	border-top: solid 4px #ae7323;
	font-size: 85%;
	padding-top: 10px;
	overflow: auto;
}
footer section {
	width: 44%;
	margin: 0 0.4%;
	float: left;
}
footer section h3 {
	margin-top: 0;
}
footer section:first-of-type {
	width: 25%;
}
footer section:last-of-type {
	width: 25%;
	margin-top: 20px;
	float: right;
	text-align: right;
	padding-right: 1%;
}
footer section:last-of-type img {
	margin-left: 10px;
}
footer section:last-of-type a[target] {
	padding-right: 0px;
	background-image: none;
}
footer a:hover {
	background-color: #fcf7e3;
}


audio {
		width: 95%;
}


/* GALERÍAS DE FOTOS */

figure {
	margin: 20px 0; /* quitar la que trae pr defecto */
}
.galeria {
	overflow: auto;	/* para calcular bien la altura */
}
.galeria figure {
	width: 45.91%;
	float: left;
}
.galeria figure:nth-of-type(2n) {
	float: right;
}
.galeria figcaption {
	text-align: center;
	font-size: 90%;
	min-height: 3em;
}


.listadoenlaces {
	/*margin-left: 3em;*/
	padding: 0.2em 1em;
	border: #ccc thin solid;
	border-radius: 1em;
	box-shadow: 3px 3px 3px black;
	background-color: #eee;
	max-width: 36em;
	margin-bottom: 5em;
}
/*  SLIDES  */

/*.rslides_container {
    margin-top: 30px;
    margin-bottom: 40px;
}
#comienzoslides {
	position: relative;
}*/


/*	CONSULTAS DE MEDIOS	*/


/*@media (max-width:900px) {

aside section a {
	padding: 41px 7% 20px 5%;
}

}*/

@media (max-width:860px) {

aside section {
	margin-bottom: 10px;
	height: 100px;
}
aside section h3 {
	font-size: 1.1em;
}
aside section a {
	padding: 28px 5% 20px 2%;
}
header nav {
	margin-top: 40px;
}
footer section li {
	line-height: 1.8em;
}
/*.rslides_container {
    display: block;
}*/
}

@media (max-width:700px) {

.fotodcha {
	float: none;
	margin-left: 0;
	margin-bottom: 15px;
	/*box-shadow: 4px 4px 4px black;*/
}
header {
	min-height: 175px;
	background-image: url(../img/comunes/fondo-cabecera-media.jpg);
	padding-left: 190px;
	margin-bottom: 20px;
}
header h1 {
	font-size: 1.7em;
}
header nav {
	margin-top: 15px;
}
header section img {
	margin-bottom: 9px;
}
aside {
	display: none;
}
main {
	float: none;
	width: 98%;
	margin: 0 1%;
}
footer section {
	width: 60%;
	margin: 0 0.4%;
}
footer section:first-of-type {
	width: 35%;
}
footer section:last-of-type {
	padding-top: 25px;
	float: none;
	clear: both;
	width: 95%;
	text-align: center;
}
footer section:last-of-type img {
	margin-left: 30px;
}
/*  menú desplegable para móviles */
header .menumovil {
	display: inline-block;
}
header nav {
	display: none;
	margin-top: 0;
	border: thin solid #ae7323;
	border-radius: 0 3em 1em 1em;
	max-width: 180px;
}
header nav li:before {
	content: none;
}
header nav a {
	display: block;
	width: 93%;
	line-height: 1.7em;
	padding-left: 5%;
	border-radius: 0.4em 3em 2em 0.4em;
	text-decoration: none;
}
}

@media (max-width:540px) {

header {
	min-height: 0;
	background-image: url(../img/comunes/fondo-cabecera-mini.jpg);
	padding-left: 160px;
}
header section {
	display: none;
}
header h1 {
	font-size: 1.4em;
}
header h3 {
	font-size: 1.0em;
	margin: 0;
}
footer section, footer section:first-of-type {
	float: none;
	width: 95%;
	margin: 10px 2.4%; 
	text-align: center;
}
/*footer section ul {  ANTES era sólo al pie */
ul {
	list-style-position: inside;
	padding-left: 0;
}
footer section:nth-of-type(2) {
	display: none;
}
}

/*@media (max-width:480px) {
#comienzoslides {
	display: none;
}
}*/