/* MOBILE */

/* General */
.custom_button { display: block; }
.two {clear: both; width: 98%; overflow: hidden; }

/* Header / Nav */
button.navbar-toggle {margin-top: 32px; }
.nav.navbar-nav {margin-left: 0; margin-right: 0; }
.nav.navbar-nav > li > a {border-bottom: 1px solid #E5E6E6; }
.nav.navbar-nav > li:first-child > a {border-top-left-radius: 15px; border-top-right-radius: 15px; }
.nav.navbar-nav > li:last-child > a {border-bottom: none; border-bottom-right-radius: 15px; border-bottom-left-radius: 15px; }

/* Links - Home */
#home-link .more {display: table; margin: 10px auto; }
#home-link .attachment-post-thumbnail.wp-post-image {height: auto; width: 190px; }

/* Accesos directos - home */
.direct_access { width: 95%;  margin: 5px 10px; }

/* Noticias - Home */
.block-home-news { width: 98%; }
.block-home-news:nth-child(odd) {background-color: #EDF5F8; }
.block-home-news:nth-child(even) {background-color: #FFF; }

/* Footer */
footer .container > div {display: table; float: left; padding-left: 2% !important; padding-right: 2% !important; position: relative; width: auto !important; }


/* Secciones - Home */
.table_home {border: inherit; width: 100%; }
.table_home tbody tr td:first-child {border: none; }
.table_home td {display: block; width: 100%; padding: 0; }
.table_home .navbar-toggle {margin: 0; position: absolute; right: 0; top: -7px; }
.big_block {padding: 10px 20px 35px; position: relative; }
.big_block > ul {height: 0; overflow: hidden; margin: 0; }
.big_block .more_see {background-color: #dfdfdf !important; bottom: 5px; color: #171717; display: block; height: 35px; left: 20px; line-height: 35px; position: absolute; right: 20px; text-align: center; }
.big_block .sede_electronica {background-color: #eb9131; color: #FFF!important; display: block; height: 35px; left: 20px; line-height: 35px; text-align: center; margin:0 auto;}
.big_block #sede_electronica {background-color: #eb9131; color: #FFF; display: block; height: 35px; left: 20px; line-height: 35px; text-align: center; margin:0 auto;}
.big_block .collapse.in {margin-bottom: 10px; }
.small_block {border: 1px solid #c9c9c9; width: 100%; }

/* Template - Seccion (incialmente Home) */
/* Botonera */
.inner > nav { display: none; }

/* Contenido */
.inner > article {padding: 20px; }

/* Botonera de contenido */
.inner > article > nav > ul li a span { display: none; }

/* Equipo de gobierno */
.block-person .home-category-thumbnail { margin: 0 4% 2% 0; }
.block-person span.phone { margin-right: 5px; }
.block-person a.email {max-width: 65%; word-wrap: break-word; }

/* Single Politico */
#single_politico .block-person aside {float: left; margin-right: 12px; position: relative; width: auto; border:none; }
#single_politico .block-person table { margin: 15px auto; border-bottom-width: 8px; min-width: 186px; }
#single_politico .block-person .datos-contacto tbody tr td {display: block; text-align: center; }
#single_politico .block-person table tbody tr td:nth-child(2n+1) {height: 30px !important; padding: 5px 20px; }
#single_politico .block-person table tbody tr td span.phone { float: none; font-size: 14px; line-height: 28px; }
#single_politico .block-person table tbody tr td a.email {max-width: 100%; word-wrap: break-word; float:none; }
#single_politico .block-person .social_block { clear: inherit; display: table; float: none; margin: 19px auto 10px; position: relative; }

@media (max-width: 540px ){ 
#single_politico .block-person aside { width: 100%; }
#single_politico .block-person table { width: 100%; }
#single_politico.inner > article .post p { clear: both; }
}

/* Single Partidos Politicos */
#single_politico .block-person table { margin-top: 0; }

/* Single category area/delegaciones */
#areas_delegaciones header > img { float: none; display: block; margin: 0 auto 20px; }
#areas_delegaciones header table { margin: 0; }
#areas_delegaciones header table.table_up { width: 100%; }
#areas_delegaciones header table tbody tr td {display: block; height: auto !important; min-height: 40px; width: auto !important; }
#areas_delegaciones header table.table_down tbody tr td:last-child { text-align: center; }

/* Single category area/delegaciones (departamentos) */
@media (min-width: 540px) and (max-width: 767px){
#areas_delegaciones aside.departamento .row-2, 
#areas_delegaciones aside.departamento .row-3 {border-bottom: medium none; float: left; position: relative; width: 50%; }
#areas_delegaciones aside.departamento > article {display: table; width: 100%; }
#areas_delegaciones aside.departamento p {width: 60%; }
}

/* Single category area/delegaciones ( Patrimonio Cultural ) */
#areas_delegaciones .deposit_monuments > article { margin-bottom: 20px; }
#areas_delegaciones .deposit_monuments div[class*="cell"] {float: left; text-align: center; width: 100% !important; }
#areas_delegaciones .deposit_monuments div[class*="cell"] > a {display: block; margin: 0 auto; }
#areas_delegaciones .deposit_monuments div.cell-2 {border-top: 1px solid #dcdcdc; }
#areas_delegaciones .deposit_monuments div.cell-3 {border-top: 1px solid #dcdcdc; }
#areas_delegaciones .deposit_monuments div.cell-4 {border-top: 1px solid #dcdcdc; }

#areas_delegaciones .deposit_monuments .turismo_link > p {background-color: rgba(255, 255, 255, 0.9); padding: 5px 0; }


#areas_delegaciones .environment_activity .more_info { text-align: center; }
#areas_delegaciones .environment_activity .cell-1 { width: 100%; }

/* Single category area/delegaciones ( Instalaciones deportivas ) */
#areas_delegaciones .sports_facilities div[class*="cell"] { display: block !important; }
#areas_delegaciones .sports_facilities div .wp-post-image {height: auto; width: 100%;}
#areas_delegaciones .sports_facilities div.cell-1 {width: 100%; }
#areas_delegaciones .sports_facilities div.cell-2 {width: 100%; }
#areas_delegaciones .sports_facilities div.cell-3 {border-left: 1px solid #dcdcdc; width: 100%; }
#areas_delegaciones .sports_facilities div[class*="cell"] > a {display: block; }
#areas_delegaciones .sports_facilities table thead {display: none; }
#areas_delegaciones .sports_facilities table tbody tr {border-bottom: 1px solid #dcdcdc; }
#areas_delegaciones .sports_facilities table tbody td {border: medium none !important; display: block; width: 100%; }
#areas_delegaciones .sports_facilities table tbody td:first-child {border-bottom: 1px solid #49cce0 !important; text-align: center !important; }

#single_politico .block-person table tbody .ai1ec-week td {
    display: run-in !important;
}

@media (max-width: 450px){
	
	.fleft.ostext {
    width: 87%;
    margin-left: 1.5em;
	}
	
	.fleft.logoigo {
    width: 100%;
	}
	
	#news {
    border-right: 0px;
	}
	
	#news article:nth-child(2n) > div {
		margin-right: 0px;
	}
	
	#news article:nth-child(2n+1) > div {
		margin-left: 0px;
	}
	
	#tramites_gestiones .col-sm-9 p {
    width: 100%;
    float: none;
    display: table;
}

.big_block > h1, .big_block > h2 {
    font-size: 18px;
}

.big_block .sede_electronica {
        display: table;
    font-size: 13px;
    width: 88%;
}
.big_block #sede_electronica {
        display: table;
    font-size: 13px;
    width: 88%;
}

#iframe_aemet_id18017 {
    width: 163%;
}

.postid-257 .inner {
	display: inherit;
   
}

.links div a {
	font-size: 8px;
}

.single-post .inner {
	display: block;
}

#areas_delegaciones .sports_facilities div[class*="cell"] > a {
    display: block;
    background: #C5C5C5;
    color: #545454;
    font-weight: bold;
    padding: 10px 0px;
}

.wrap #areas_delegaciones .col-sm-9 .contents .Playas-almunecar .playa .cnt-playa ul li {
    line-height: 16px !important;
}

table tbody tr td {
    padding: 10px 3px;
}

#areas_delegaciones article.contents { 
display: block;
}

#areas_delegaciones footer nav li {
    padding: 10px 11px;
	border-radius: 3px;

}

#areas_delegaciones footer nav li a {

    display: inherit;

}

}

/*22 06 2016*/
.inner > article > nav > ul li a {
    font-size: 12px;
    line-height: 15px;
    text-align: center;
}
.block-person .m-top , #ai1ec-container {
	display:none;
}

.dDepartamento {
    width: 100% !important;
}

.postid-305 table {
    width:270px !important;
}
