/*
Luciano García (www.luciano.es)
Estilos CSS para una plantilla

**************************************************************
Ver efecto similar a slide de jQuery con CSS:
http://jsbin.com/ujuxax/1/edit?html,css,output
**************************************************************

Colores utilizados:

*/
@charset "utf-8";
@media all;

html, body {
	height: 96%;
    margin: 0px;
    padding: 0px;
	font-family: Verdana, 'Trebuchet MS', Tahoma, Arial;
	background-color: #FFFEED;
	color: #06090E;
}
#tab0 {
    display: table;
    height: 100%;
    width: 100%;
    margin: 0px;
}
#cel0 {
    display: table-cell;
    vertical-align: middle;
    position: relative;
}
#cont0 {
	/* Este contenedor contiene toda la página */
	font-family: Verdana, 'Trebuchet MS', Tahoma, Arial; /* Safari no lo coge del html, body, hay que ponerlo aquí */
	width: 80%;
	max-width: 900px;
    /*border: 1px dashed #F00;*/
	border: 1px solid #426BB5;
    border-right-width: 2px;
    border-bottom-width: 2px;
    min-width: 250px;
    margin: 5px auto;
    padding: 0px;
    text-align: center;
	background: white; /* #F4F6FA; azul muy claro */
	box-sizing: border-box;
	/* Bordes redondeados */
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}
/**********************************/
header {
	background: #C8D4E8; 
	color: #476EB2;
	min-height: 170px;
	/*border-bottom: 1px solid #C8D4E8;*/
	border-bottom: 1px solid #476EB2;
	/* Hay que redondear los bordes superiores para que no hagan efecto raro con #cont0 */
    -webkit-border-top-left-radius: 5px;
    -moz-border-top-left-radius: 5px;
    border-top-left-radius: 5px;
    
    -webkit-border-top-right-radius: 5px;
    -moz-border-top-right-radius: 5px;
    border-top-right-radius: 5px;
}
nav {
	background-color: #C8D4E8;
	color: #476EB2;
	font-size: 90%;
	font-weight: 600;
	padding: 0px 5px;
}
nav a {
	color: #F4F6FA;/**/
	text-decoration: none;
}
main {
	/* Antes #contenido */
	padding: 10px;
}
main h1, main h2, main h3 {
	color: #476EB2;
}
figcaption {
	font-size: 90%;
	text-align: left;
}
footer {
	/* Antes #pie */
	background: #C8D4E8; 
	color: #476EB2;
	text-align: right;
	font-size: 80%;
	/*margin-top: 10px;*/
	padding-right: 10px;
	border-top: 1px solid #426BB5;
	/* Hay que redondear los bordes inferiores para que no hagan efecto raro con #cont0 */
    -webkit-border-bottom-left-radius: 5px;
    -moz-border-bottom-left-radius: 5px;
    border-bottom-left-radius: 5px;
    
    -webkit-border-bottom-right-radius: 5px;
    -moz-border-bottom-right-radius: 5px;
    border-bottom-right-radius: 5px;
}
h1 { font-size: 160%; }
h2 { font-size: 145%; }
h3 { font-size: 130%; }
h1, h2, h3 { margin: 0px; }
/**********************************/
.salta {
    clear: both;
}
.redon5 {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}
.primero {
	float: left; width: 59%; box-sizing: border-box;
	/*background-color: #B2A929;*/
	/*border: 1px solid #B2A929;*/
	margin: 10px 0px;
}
.segundo {
	float: right; width: 39%; box-sizing: border-box;
	/*background-color: #B2A929;*/
	border: 1px solid #B2A929;
	margin: 10px 0px;
}
.tercero {
	float: left; width: 100%; box-sizing: border-box;
	/*background-color: #B2A929;*/
	/*border: 1px solid #B2A929;*/
	margin: 10px 0px;
}
.tercero figure {
	width: 45%;
	float: left;
	margin: 15px;
}
.tercero figure img {
	width: 100%; height: auto;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}
.primero img, .segundo img {
	width: 100%; height: auto;
}
.primero embed, .segundo embed {
	width: 100%; height: auto;
}
.tit_col_1 {
    /*color: #FFF789;*/
	color: #06090E;
    font: 120% "Trebuchet MS";
    margin: 0px;
}
.con_col_1 {
    /*border: 1px solid #0099CC;*/
    text-align: left;
    padding: 5px 10px;
    margin: 0px;
	/*background-color: white;*/
	/* Hay que redondear los bordes inferiores para que no hagan efecto raro con #cont0 */
    -webkit-border-bottom-left-radius: 5px;
    -moz-border-bottom-left-radius: 5px;
    border-bottom-left-radius: 5px;
    
    -webkit-border-bottom-right-radius: 5px;
    -moz-border-bottom-right-radius: 5px;
    border-bottom-right-radius: 5px;
}
.ampliable { cursor: pointer; }
.enlace_boton { 
/*
text-decoration: none; color: white; border: 2px solid #476EB2; padding: 5px 10px; background-color: #476EB2;
text-decoration: none; color: white; border: 2px solid #476EB2; padding: 5px 10px; background-color: #476EB2;*/
	/* Hacemos que un enlace parezca un botón */
	display: block;
	margin: 5px;
	padding: 15px;
	border: 1px solid #C0C0C0;
	color: white;
	/*background-color: #E6E6E6; */
	background-color: #476EB2;
	text-decoration: none;
	/*font-size: 110%;*/
	/*letter-spacing: 0.1em;*/
	/*border: 1px solid #476EB2;*/
	border-right-width: 3px;
	border-bottom-width: 3px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}
/**********************************/
#menu_vertical {
    display: none;
	/*text-align: center;*/
}
#menu_v { display: none; }
/*
#enlaces_escr div {
	display: block;
	float: left;
	left: 0;
	background-color: #476EB2; 
}
#enlaces_escr a { 
	text-decoration: none; 
	color: #FFFEED; 
	padding: 10px 20px;
	border-right: 1px solid #FFFEED;
	display: block;
}
*/
#enlaces_movil div {
	/*display: none;*/
	width: 0px; height: 0px; overflow: hidden;
	float: left;
	left: 0;
	background-color: #476EB2; 
	border-bottom: 1px solid #FF9900;
}
#enlaces_movil a { 
	text-decoration: none; color: white; 
	padding: 10px 20px;
	border-right: 1px solid #FF9900;
	display: block;
}
.movil_submenu p {
	margin: 0px auto;
	width: 90%; height: auto;
	text-align: right;
	border: 1px solid #FF9900;
	border-top: 0px;
}
/*********************************************************************/
.tabla_datos {
    margin: 0px; 
    border: 1px solid #313131;
}
    /*
    En Explorer no funcionan las filas pares e impares:
    tr:nth-child(odd){ background: #000000; color: #FFFFFF; }
    tr:nth-child(even){ background: #FFFFFF; color: #000000; }
    */
    .tabla_datos th {
        font-size: 95%;
        background-color: #A3A3A3;
        padding: 3px 5px;
        border: 1px solid #EAEAEA;
    }
	/*
    .tabla_datos th a:link, a:visited, a:active, a:hover{
        color: #0000E9;
    }
	*/
    .tabla_datos td {
        font-size: 95%;
        border: 1px solid #A3A3A3;
        padding: 3px 5px;
        text-align: left;
    }
    
.tabla_datos_2 {
    margin: 0px; 
    border: 1px solid #313131;
}
    .tabla_datos_2 th {
        font-size: 80%;
        background-color: #EAEAEA;
        padding: 3px 5px;
        border: 1px solid #A3A3A3;
    }
	/*
    .tabla_datos_2 th a:link, a:visited, a:active, a:hover{
        color: #0000E9;
    }
	*/
    .tabla_datos_2 td {
        font-size: 80%;
        border: 1px solid #A3A3A3;
        padding: 3px 5px;
    }
/**********************************/
@media screen and (max-width: 99999px) {
	#cont0 { width: 100%; }
	#logo { width: 150px; height: 150px; }
}
@media screen and (max-width: 767px) {
	/*768*/
	.primero { width: 100%; }
	.segundo { width: 100%; }
	.tercero figure { width: 95%; }
	#logo { width: 100px; height: 100px; }
	header { min-height: 100px; }
	h1 { font-size: 140%; }
	h2 { font-size: 130%; }
	h3 { font-size: 110%; }
	div.div_izq, div.div_der { width: 100%; float: none; background-color: grey;} /* Usados en mas.php */
}
@media screen and (max-width: 480px) {
	#cont0 { width: 100%; padding: 0px; }
	.primero img { display: none; }
	#logo  { width: 50px; height: 50px; }
	header h1 { display: none; }
	header h2 { font-size: 110%; }
	header h3 { display: none; }
	/*.segundo { display: none; }*/
	.tit_col_1, .con_col_1 { margin: 0px; }
	#menu_h { display: none; }
    #enlaces_movil {
		display: block;
        width: 100%;
        height: 100%;
        left: -100%;
        margin:0;
		/*position: fixed;*/
        position: absolute;
        /*display:none;*/
        /*float:none;*/
		margin-top: 40px;
		border-top: 1px solid #FF9900;
    }
	#enlaces_movil div {
		width: 100%; height: auto;
		text-align: left;
	}
    #menu_vertical {
        display: block;
        width: 100%;
        background: #ccc;
    }
	#menu_h { display: none; }
	#menu_v { display: block; }
	/* Quitar bordes, que se vea a toda pantalla */
	#cont0 {
		/* Este contenedor contiene toda la página */
		width: 100%;
		border: 0px;
		min-width: 250px;
		margin: 0px;
		padding: 0px;
		/* Bordes redondeados */
		-webkit-border-radius: 0px;
		-moz-border-radius: 0px;
		border-radius: 0px;
	}
	header, footer {
		/* Bordes redondeados */
		-webkit-border-radius: 0px;
		-moz-border-radius: 0px;
		border-radius: 0px;
	}
}
