/*
medinaelvira.org:  Hoja de estilos
por David Moya. http://www.atrioweb.com/
Última modificación: 11-2010
================================================*/


* {
	margin:0px;
	padding:0px;
}


body, textarea, input, h1,h2,h3,h4, p, a, li {
	font:12px Verdana, arial, helvetica, sans-serif ;
	line-height: 1.4em;
}

img {
	border:none;
}

li{list-style:none;}

a{color:#a80000;text-decoration:none;}

/*p,li{color:#372E1A;}*/ 

abbr, acronym, .help {
  border-bottom: 1px dotted #726A58;
  cursor: help;
  }

.clear{
clear:both;
}

@font-face {
	font-family: 'AndikaBasicRegular';
	src: url("AndBasR-webfont.eot");
	/*src: local('â˜º'), url("AndBasR-webfont.woff") format('woff'), url("AndBasR-webfont.ttf") format('truetype'), url("AndBasR-webfont.svg") format('svg');*/ 
	src: local('AndikaBasicRegular'), url("AndBasR-webfont.ttf") format('truetype');
	font-weight: normal;
	font-style: normal;
}


/*
--------------------------------------------------------------*/

body {
	background: #F5E1B5 url("tile.gif") repeat-x;/*F2D9A3*/
}

#container{
	float:left;
	width:100%;
}


#header{
	position:relative;
	width:980px;
	margin:0 auto;
	height: 123px;
}


#content{
	width:980px;
	margin: 40px auto 0;
	overflow:hidden;
}

#main {
	float:right;
	width: 730px;
	min-height:350px;
}

	#galeria #main,#galerias #main{
		float:left;
		width: 980px;
	}


		#main_main {
			float:left;
			width: 480px;
		}

			#ancha #main_main {
				width: 730px;
			}

			#galeria #main_main, #galerias #main_main {
				width: 476px;
				padding:20px;
				background-color: #E1C79A;
				border-top:4px solid #A68F69;
			}

		#main_sidebar {
			float:right;
			width: 230px;
		}

			#ancha #main_sidebar {
				display:none;
			}

			#galeria #main_sidebar, #galerias #main_sidebar {
				width: 444px;
			}




#sidebar {
	float:left;
	width: 230px;
	margin: 0;

}

	#galeria #sidebar,#galerias #sidebar {
			display:none;
	}


#contentb{
	clear:both;
	width:920px;
	padding:30px;
	margin: 20px auto 0;
	border-top:4px solid #A68F69;
	background-color: #E1C79A;
	overflow:hidden;
}

#contentb_bot {
	margin: 0 auto;
	width: 980px;
	height:6px;
	font-size:1px;
	background: url("bg_contentb_bot.gif") 0 0 no-repeat;

}

#mainb {
	width: 100%;
	
}

#prefooter {
	clear:both;
	width:980px;
	margin: 20px auto;
}



#footer {
	clear:both;
	width:980px;
	margin: 20px auto;
	padding:10px 0;
	background-color:#EAD5AA;
	border-radius:5px;
}

/*-------------------------------------------------*/



div#logo{
position:absolute;
top:20px;
left:26px;
width:302px;
height:60px;
background: url("logo.gif") 0 0 no-repeat;
}

div#logo a{
display:block;
width:302px;
height:60px;
text-indent:-9999px;
}

div#adorno1{
position:absolute;
top:0px;
right:0;
width:600px;
height:123px;
background: url("silueta.jpg") 0 0 no-repeat;
}


/*NAV
-------------------------------------------------*/

#nav {
	position: absolute;
	padding: 0;
	top: 89px;
	width: 960px;
	height: 34px;
	background: transparent url("tab_bg.gif") left bottom no-repeat;
}
body[id=mose] #nav {
	background: transparent url("tab_bg.png") left bottom no-repeat;
}

#navlist {
	margin: 0;
	padding: 5px 0px 0px 5px;
}

#navlist ul, #navlist li {
	margin: 0;
	padding: 0;
	display: inline;
	list-style-type: none;
}

#navlist a:link, #navlist a:visited {
	background: transparent url("tab_inactive.gif") left bottom no-repeat;
	float: left;
	padding: 0;
	margin: 0px 4px 0px 0px;
	font: bold 12px "Trebuchet MS", "Verdana", "Arial", sans-serif;
	color: #fff;
	text-align: center;
	text-decoration: none;
	line-height: 26px;
	width: 100px;
	height: 29px;
}
body[id=mose] #navlist a:link, #navlist a:visited {
	background: transparent url("tab_inactive.png") left bottom no-repeat;
}

#navlist a:link#current, #navlist a:visited#current {
	background: transparent url("tab_active.gif") left bottom no-repeat;
	font: bold 12px "Trebuchet MS", "Verdana", "Arial", sans-serif;
	color: #000;
	line-height: 26px;
}
body[id=mose] #navlist a:link#current, #navlist a:visited#current {
	background: transparent url("tab_active.png") left bottom no-repeat;
}

#navlist a:hover {
	background: transparent url("tab_hover.gif") left bottom no-repeat;
	font: bold 12px "Trebuchet MS", "Verdana", "Arial", sans-serif;
	color: #21323B;
	line-height: 26px;
}
body[id=mose] #navlist a:hover {
	background: transparent url("tab_hover.png") left bottom no-repeat;
}


/*MAIN
-------------------------------------------------*/


#main h1, #main p {
}

#main h1 {
	/*font: 24px "Trebuchet MS", "Verdana", "Arial", sans-serif;*/ 
	font: 32px/42px 'AndikaBasicRegular', "Trebuchet MS",  Arial, sans-serif;letter-spacing: 0;
	color:#a80000;
	margin-bottom:0.6em;
}

	#home #main h1 {
	font: 31px/42px 'AndikaBasicRegular', "Trebuchet MS",  Arial, sans-serif;letter-spacing: 0;
		letter-spacing: -1px;
		word-spacing:0px;
	}

#main h2{
	font-size:14px;
	font-weight: bold;
	color:#a80000;
	margin-bottom:1em;
}

#main h2 a{
	font-size:14px;
	color:#a80000;
}

#main h2 a:hover{
	text-decoration: underline;
}

#main h3{
	color:#a80000;
	font-weight: bold;
	margin-bottom:1em;
}

#main h4{
	color:#372E1A;
	font-weight: bold;
	margin-bottom:1em;
}

#main p, #main .text {
	text-align: justify;
	margin-bottom:1em;
}

#main p a:hover,#main .text a:hover{
	text-decoration: underline;
}

#main .ent {
	font-weight:bold;
	margin-bottom:1em;
}

#main ul{
	margin-bottom:1em;
}

#main ul li{
	margin:0 0 1em 30px;
	background: url("bullet.gif") 0 5px no-repeat;
	padding: 0 0 0 14px;
	text-align: justify;
}

#main ol li{
	margin:0 0 1em 50px;
	text-align: justify;
}

#main li a{
}

p.pag{clear:both;font-size:14px;}
p.pag a{
	font-size:14px;
}


/*main_sidebar
-------------------------------------------------*/

#main #main_sidebar h2{
	font-size:14px;
	font-weight: bold;
	color:#a80000;
	margin-bottom:1em;
}


/*mainb index
-------------------------------------------------*/

#mainb h2{
	font-size:18px;
	margin-bottom:1em;
}

#mainb .mainb_bloque{
	float:left;
	width:160px;
	margin-right:29px;
}

#mainb .last{
	margin-right:0;
}


.mainb_bloque h3{
	margin-bottom:1.5em;
	border-bottom: 1px solid #BDA57D;
	padding-bottom:0.2em;
}

.mainb_bloque h3 a{
	color:#372E1A;
	text-transform: uppercase;
	font-family: arial;
	letter-spacing: 0px;
	padding:2px;
	font-weight: bold;
}

.mainb_bloque .img img{
	width:150px;
	margin-bottom:0.5em;
	padding: 2px; background: transparent; border: solid 2px #BCA47D;
}

.mainb_bloque .img img:hover { background: #fff; }


.mainb_bloque h4{ 
	margin-bottom:0.2em;
}

.mainb_bloque h4 a{ 
	text-decoration: none;
	font-size: 14px;
}

.mainb_bloque h4 a:hover{ 
	text-decoration: underline;
}

/*galeria
-------------------------------------------------*/

#galeria h2{
	color: #6E290B;
	font: 16px "Trebuchet MS", "Verdana", "Arial", sans-serif;
	font-weight: normal;
	margin-bottom:1em;
}
#galeria h1{
}

#galeria #main_main ul{
}

#galeria #main_main li{
	width:152px;
	display:inline;
	float:left;
	margin:0 10px 1em 0;
	padding:0;
	background-image: none;
	text-align:left;
}

#galeria #main_main .img a{
}

#galeria #main_main .img a img {
	border:1px solid #B2965A;
}

#galeria #main_main .img a:hover img {
	border:1px solid #a80000;
}

#galeria #main_main li.last{
	margin-right:0px;
}

#galeria #main_main .txt {
	text-align: center;
	font-size:9px;
}

#galeria #main_main .txt a{
	font-size:9px;
	color: #6E290B;
}

#galeria #main_main .txt a:hover{
	color:#a80000;
}




/*galerias
-------------------------------------------------*/


#galerias h2{
	color: #6E290B;
	font: 16px "Trebuchet MS", "Verdana", "Arial", sans-serif;
	font-weight: normal;
	margin-bottom:1em;
}

#galerias h1{
}
#galerias h1{
}


#galerias #main_main ul{
	margin:0;
}

#galerias #main_main li{
	clear:both;
	display:block;
	margin:0 10px 0 0;
	padding:0;


}

#galerias #main_main .img{
	float:left;
	display:block;
	width:150px;
	margin: 0 10px 1em 0;
}

#galerias #main_main .img a{
	display:block;
	width:150px;
}

#galerias #main_main .img a img{
	border:1px solid #B2965A;
}

#galerias #main_main .img a:hover img {
	border:1px solid #a80000;
}

#galerias #main_main .txt {
	float:left;
	width:300px;
	margin: 0;
	padding:0 ;
}

#galerias #main_main .txt h3{
	padding: 0 0 3px;
	margin: 0 0 0.2em ;
	border-bottom: 1px solid #C8A190;
}

#galerias #main_main .txt h3 a{
	margin: 0;
	padding:1px 0 ;
	font-weight: bold;
}

#galerias #main_main .txt h3 a:hover{
	color:#fff;
	background-color: #a80000;
}

#galerias #main_main .entrad, #galerias #main_main p{
	font-size: 10px;
	line-height:1.4em;
}



/*noticias
-------------------------------------------------*/

#noticias #main p.fecha {
	margin-bottom: 0;
	color:#726A58;
}

#noticias .ajaxback{
display:none;
	margin-bottom:1em;
	padding:10px;
	background-color: #E6CE9B;
	border-bottom:1px solid #C2AE82;
	border-top:1px solid #C2AE82;
	text-align: justify;
}


#noticias a.leermas {
	display:block;
	margin:1em 0 0;
}

#noticias a:hover.leermas {
	text-decoration: underline;
}



/* BUTTONS 
http://particletree.com/features/rediscovering-the-button-element/*/
/*
#noticias a.leermas{
    display:block;
    float:left;
    margin:0 7px 0 0;
    background-color:#f5f5f5;
    border:1px solid #dedede;
    border-top:1px solid #eee;
    border-left:1px solid #eee;

    font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
    font-size:100%;
    line-height:130%;
    text-decoration:none;
    font-weight:bold;
    color:#565656;
    cursor:pointer;
    padding:5px 10px 6px 7px; 
}
#noticias a.leermas img{
    margin:0 3px -3px 0 !important;
    padding:0;
    border:none;
    width:16px;
    height:16px;
}
*/ 


/*noticia
-------------------------------------------------*/

#main p.fuenteyfecha {
	font-weight: bold;
}

/*articulos
-------------------------------------------------*/

#articulos #main p.fecha {
	margin-bottom: 0;
	color:#726A58;
}

#articulos #main h2 {
	margin-bottom: 0;
}

#articulos #main p.autor {
	margin-bottom: 1em;
}


/*articulo
-------------------------------------------------*/

#articulo p.ficha{
	padding:10px;
	background-color: #E6CE9B;
	border-bottom:1px solid #C2AE82;
	border-top:1px solid #C2AE82;
}

#articulo #main p.download{
	padding:10px;
	background-color: #E6CE9B;
	border-bottom:1px solid #C2AE82;
	border-top:1px solid #C2AE82;
}

#articulo #main p.download a{
	display:block;
	font-size:14px;
	background: url("ico_pdf.gif") 0 0 no-repeat;
	padding-left:28px;
	line-height:22px;
}


/* bibliografia
-------------------------------------------------*/

#bibliografia #main h4 {
	margin-bottom: 0;
}

#bibliografia #main p.ficha span {
	color:#726A58;
}


/*contacto************************************************************/

#form_contacto {
}


#form_contacto fieldset {
	border:none;
}

#form_contacto legend {
	display:none;
}


#form_contacto label {
	display:block;
}

#form_contacto input, #form_contacto textarea {
	border: 1px solid #D9C392;
	color:#000;
	padding:3px;
	margin-bottom:1em ;
}

#form_contacto input {
	width:200px;
}

#form_contacto textarea {
	width:300px;
	height:132px;
}


#form_contacto p{
	margin-left:0;
}

#form_contacto input.boton {
	display:block;
	width: auto;
	border: none;
	padding:3px;
	margin-top:1em;
	background: #796C51;
	border:1px solid #4E4A41; 
	color:#fff;

}



/*tablas--------------------------------------------------------*/

	/*INICIO TABLA */

	table
	{	width:96%;
	margin: 0 10px 20px;
		border-left:1px solid #A18E66;
		border-top:1px solid #A18E66;
		border-spacing:0px;/*por seguridad, ponerlo para eliminar el cellspacing en Mozilla. IE no lo soporta*/
		border-collapse:collapse;
	}

	table th
	{
		border-right:1px solid #A18E66;
		border-bottom:1px solid #A18E66;
		background: url("http://www.medinaelvira.org/img/th-back.gif") top left no-repeat;
		padding:0.2em 1em;
		border-spacing:0;
		vertical-align:top;
		white-space:nowrap;
		line-height:normal;
		color:#333;
		text-align:left;
	}

	table tr
	{
		margin:0;
		padding:0;
		border-spacing:0;
	}

	table td
	{
		border-right:1px solid #A18E66;
		border-bottom:1px solid #A18E66;
		margin:0 1em;/*?*/
		padding:0.2em 1em;
		border-spacing:0;
		vertical-align:top;
	}

	table td a:hover
	{
		text-decoration: underline;
	}

	/*FIN TABLA */


/*SIDEBAR
-------------------------------------------------*/

#sidebar h4{
	background-color: #ccc;
	padding:3px;
	margin-bottom:0.5em;
}

/*
#sidebar_top{
	width:230px;
	height:5px;
	font-size:1px;
	background: url("http://www.medinaelvira.org/img/bg_sb_top3.gif") 0 0 no-repeat;
}

#sidebar_bot{
	width:230px;
	height:7px;
	font-size:1px;
	background: url("http://www.medinaelvira.org/img/bg_sb_bot2.gif") 0 0 no-repeat;
}
*/

#sidebar ul{
}

#sidebar ul li{
	margin-bottom:2px;
}

#sidebar ul li.first{
}

/*
#sidebar ul li a{
	display:block;
	padding: 4px 10px;
	background-color: #E6CE9B; 
	border-left:10px solid #D9C392; 
	color:#726A58;
	text-decoration: none;
	font-size: 10px;
	height:1%; 

}

#sidebar ul li a:hover,#sidebar ul li a.active{
	background-color: #D9C392; 
	border-left:10px solid #C2AE82;
	color: #333;
}

*/

#sidebar ul li a{
	display:block;
	padding: 4px 2px 4px 20px;
	height:28px;
	color:#595650;
	text-decoration: none;
	font-size: 10px;
	background: url("bg_sb_boton.gif") 0 0 no-repeat;
}

#sidebar ul li a:hover,#sidebar ul li a.active{
	color: #333;
	background: url("bg_sb_boton_over.gif") 0 0 no-repeat;
}

#sidebar ul li a.first:hover,#sidebar ul li a.active{
	background: url("bg_sb_boton_over.gif") 0 0 no-repeat;
}


#sidebar ul li a strong{
	color: #983939;
	font-size: 11px;
}

#sidebar ul li a:hover strong,#sidebar ul li a.active strong{
	color: #a80000;
}


#sidebar p, #sidebar .text {
	margin-bottom:1em;
}


/*PREFOOTER
-------------------------------------------------*/


#prefooter figure {
    display: inline-block;
    margin: 0 0.5em;
}

#prefooter figure img{width:124px;}


/*FOOTER
-------------------------------------------------*/


#footernav{
margin-left:20px;
}

#footernav li{
	display:inline;
}

#footernav li a{ 
	float:left;
	margin-right:10px;
	padding:1px;
	font-size:10px;
}

#footernav li a.active, #footernav li a:hover{ 
	color:#fff;
	background-color: #a70000;
}

#xhtml {
margin-right:20px;
}


#xhtml p {
	font-size:10px;
	text-align: right;
}

#xhtml p a{
	font-size:10px;
	text-decoration: none;
}


/*#footer3{
	margin-top:1em;
	text-align: center;
}
*/ 

/*VARIOS
-------------------------------------------------*/

/*main_sidebar: imagen con marco en */
.img_dest{
	float:right;
	width:210px;
	background-color: #EDCA78;
	padding:10px 10px;
	margin: 0 0 30px;
}

.img_dest img{
	display:block;
	width:208px;
	border:1px solid #B2965A;
}


.img_dest_swf{
	float:right;
	width:202px;
	background-color: #EDCA78;
	padding:10px 10px;
	margin: 0 0 30px;
}

.img_dest_swf span{
	display:block;
	width:200px;
	border:1px solid #B2965A;
}


/*#main: imagen alineada a la izquierda en cuerpo de texto*/
.foto{
	float:left;
	margin-right:10px;
}
.foto span{
	display:block;
	font-style:italic;
	color:#575042;
}




/******************************************************/


/* CLEARFIX 
-------------------------------------------------*/

.clearfix:after {
    content: "."; 
    display: block; 
    height: 0; 
    clear: both; 
    visibility: hidden;
}

.clearfix {display: inline-table;}

/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
.clearfix {display: block;}
/* End hide from IE-mac */



