#wrap { min-width: 100%; }
.container, #header-inner, #nav-topbar, #nav, #nav-sub { min-width: 320px; }

/* ------------------------------------------------------------------------- *
 *  Tablet (Common) : 1023px > 640px
/* ------------------------------------------------------------------------- */
@media only screen and (min-width: 640px) and (max-width: 1023px) {
	
	#nav { border-left: 0; }
	
	/* blog */
	.ads-header, .ads-footer { border-left: 0!important; border-right: 0!important; } 
	.megaspot .entry .entry-title { font-size: 30px; }
	.megaspot .entry .entry-thumbnail .entry-title  { font-size: 24px; }
	.single .single-header-small .entry-title { font-size: 30px; }
	
	.entry-related li { width: 33.33%; }
	.entry-related li:nth-child(4) article { border-right-color: #fff; } 
	.entry-related li:nth-child(4) { display: none; }
	
}


/* ------------------------------------------------------------------------- *
 *  Mobile (Common) : 860px > 0px (480px)
/* ------------------------------------------------------------------------- */
@media only screen and (max-width: 860px) {
	.content,
	.content-part,
	.sidebar { width: 100%; float: none; margin-right: 0!important; margin-left: 0!important; }
	.main { background-image: none!important; padding: 0!important; }
	.grid, .content-part .grid{ width: 100%; margin: 0 0 20px; }
	.hr { margin-top: 10px; }
		
	/* base */
	body { font-size: 13px; }
	.pad { padding: 20px 20px 10px; }
	#page-title.pad { padding-bottom: 20px; }
	#header .pad { padding-top: 0; padding-bottom: 0; }
	#logo { border-bottom: 1px solid #f1f1f1; padding-top: 15px; padding-bottom: 15px; }
	#header-social { float: left; visibility: hidden; padding: 0;}
	#header-social li { margin-right: 10px; margin-left: 0; }
	#logo { width: 100%; float: none; line-height: 50px; }
	#logo a { float: none; text-align: center; }
	#logo a img { float: none; }
	.select-nav { display: block; }
	.mobile-sidebar-disable .sidebar,
	.sidebar { background: #f4f4f4; border-top: 1px solid #ddd; padding-top: 20px; width: 100%; display: block; float: none; }
	#nav-topbar,
	#nav-sub { text-align: center; }
	#nav-sub li a { padding-left: 12px; padding-right: 8px; }
	
	#page-inner.sidebar-right,
	#page-inner.sidebar-left { background-image: none; }
	
	/* hide */
	#sticky-footer-push,
	#tagline,
	#header-nav,
	.mobile-sidebar-disable .sidebar,
	.caption-bar,
	li.entry-author,
	#page-image-text span.description,
	#slidecaption,
	#breadcrumb { display: none; }
	
	/* page */
	#page-title h1,
	#page-title h2 { font-size: 20px; }
	.search #page-title h1 span,
	.search #page-title h2 span { display: inline; }
	#page-image-text { margin-top: -20px; }
	#page-image-text span.caption { line-height: 40px; font-size: 40px; }

	/* footer */
	#nav-alt li a { padding-left: 8px; padding-right: 8px; }
	#subfooter .grid { margin-bottom: 0; }
	
	/* ads */
	#header .grid.one-full { margin-bottom: 0; }
	#subfooter .grid.one-full { margin-bottom: 15px; }
	
	/* comments */
	.commentlist li ul li { padding-left: 10px; }
	
	/* blog */
	#subheader-inner { padding: 0; } 
	.newsflash .article .av { padding: 3px; width: 32px; }
	.newsflash .article .pad { padding: 10px 20px; }
	.newsflash .article .title { font-size: 14px; }
	.newsflash .grid { width: 100%; background-image: url(img/hr-light.png); background-repeat: repeat-x; background-position: bottom; }
	.newsflash .grid .pad { min-height: 0; }
	.newsflash .grid.first { background-image: none; }
	.newsflash .first p { display: none; }
	.flex-newsflash .flex-direction-nav { top: 9px; }
	.flex-newsflash .flex-direction-nav .flex-prev { display: none; }
	
	.megaspot .entry .entry-title { font-size: 26px; }
	.megaspot .entry .entry-thumbnail .entry-title  { font-size: 20px; }
	
	.bigspot .grid { margin-right: 2.9%; }
	.bigspot .one-half { width: 48.5%; }
	
	.single .entry-comments,
	.single .entry-category { margin-top: 0; }
	.single .entry-title,
	.single .single-header-small .entry-title{ font-size: 32px; }
	.entry-browse li { width: 100%; } 
	.entry-browse li a { min-height: auto; }
	.entry-browse li.previous a { border-right: 0; }
	.entry-related li { width: 33.33%; }
	.entry-related li:nth-child(4) article { border-right-color: #fff; }
	.entry-related li:nth-child(4) { display: none; }
	
	/* shortcode: hr */
	.text hr, .hr { margin-top: 26px; }
	
	/* shortcode: google maps */
	.google-map { width: 100%!important; }
    	/*publi movil*/
	.banner-movil{
		display:block;
		text-align:center;
		padding-bottom:20px;
		padding-left:5px;
		padding-right:5px;
	}
	.banner-movil-2{
		display:block;
		text-align:center;
		padding-bottom:20px;
		padding-left:5px;
		padding-right:5px;
	}

}
@media only screen and (max-width: 760px){
	#subheader-inner{
		display:none;
	}
	#google_image_div{
		display:none;
	}
	.banner-single-top{
		display:none;
	}
}

/* ------------------------------------------------------------------------- *
 *  Mobile (Portrait) : 320px
/* ------------------------------------------------------------------------- */
@media only screen and (max-width: 479px) {
	body { font-size: 12px; }
	.pad,
	.single .entry-format { padding: 15px 15px 5px; }
	.content .entry-format { padding-bottom: 15px; }
	.select-nav { padding: 0 15px 15px; margin-top: 15px; }
	#page-title.pad { padding-bottom: 15px; }
	
	/* hide */
	#header-search,
	#header-social,
	#page-image-text,
	#page-title h1 span,
	#page-title h2 span,
	.entry-author-block,
	.entry-tags,
	.flex-post .flex-control-nav,
	#slidecounter { display: none; }
	
	/* page titles */
	#page-title h1,
	#page-title h2 { font-size: 18px; text-align: center; }
	#page-title p { text-align: center; }
	
	/* footer */
	#footer .widget_search input#s { width: 228px; }
	
	/* newsflash */
	.newsflash .article .pad { padding-left: 15px; padding-right: 15px; }
	
	/* blog */
	.format-video .icon-thumb { background-position: -94px -100px; }
	.format-audio .icon-thumb { background-position: -94px -150px; }
	
	.megaspot.pad { padding-bottom: 20px; }
	.megaspot .entry .entry-title { font-size: 18px; }
	.megaspot .entry .entry-thumbnail .entry-title  { background: none!important; float: left; margin-top: 15px; font-size: 18px; position: static; padding: 0; 
	text-shadow: none; -moz-box-shadow: none; -webkit-box-shadow: none; box-shadow: none; }
	.megaspot .entry .entry-thumbnail { background: none; }
	.megaspot .entry .entry-thumbnail a { color: #111; }
	.megaspot .entry .entry-thumbnail a:hover { color: #444; }
	.megaspot .entry .entry-thumbnail .icon-thumb { margin: 0; top: 10px; left: 10px; }
	
	.bigspot .entry-main .entry-thumbnail { display: block; }
	.bigspot .grid { margin-right: 0; }
	.bigspot .one-half { width: 100%; }
	
	.entry-main { padding-left: 70px; }
	.entry-main .entry-thumbnail { width: 60px; margin-left:-70px; }
	
	.blog .entry-title,  
	.archive .entry-title, 
	.search .entry-title { font-size: 16px; }
	
	.post-format .entry-format { margin: 15px 0 15px; }
	.flex-post .flex-control-nav { display: block; }
	
	.single .entry-title,
	.single .single-header-small .entry-title { font-size: 22px; }
	.entry-related li { width: 50%; }
	.entry-related li:nth-child(2) article { border-right-color: #fff; } 
	.entry-related li:nth-child(3),
	.entry-related li:nth-child(4) { display: none; }
	
	.entry-format.link p,
	.entry-format.quote blockquote,
	.format-status .text { font-size: 18px; }
	.entry-format.chat p { font-size: 14px; }
	.entry-meta { font-size: 12px; }
	.entry-format.quote .quote-bg,
	.entry-format.chat .chat-bg { padding: 5px 20px; }
	.entry-format.link p a { padding: 20px; }
	.format-link .icon-32 { margin-top: -8px; }
	
	/* comments */
	.commentlist li { padding-left: 0; }
	.commentlist li.comment .comment-body .avatar { display: none; }
	.commentlist li ul li { padding-left: 5px; }
	.commentlist li ul li .comment-body { padding-left: 20px; }
	.commentlist li ul li .comment-body .comment-meta { left: 20px; }
	#respond { padding: 15px 15px 20px; }
	
	/* shortcode */
	ul.tabs-nav li a { width: 86%; padding-left: 7%; padding-right: 7%; }
	.dropcap { font-size: 56px; }
	
	/*Ocultar publi subcabecera */

	.megaspot{
		border-bottom:none;
	}
	.entry-thumbnail {
		width: 100%!important;
		margin: 0 0 14px!important;
		float: none!important;
	}
	.blog .entry, .single .entry, .archive .entry, .search .entry{
		border:0;
	}
	nav#nav-footer {
    display: none;
	}
	div#footer-bottom {
    border-top: 5px solid #034999;
	}
	.banner-single-bottom{
		display:none;
	}
}
