/*
Theme Name: Theme Padre v1.0
Theme URI: http://www.blogalizate.com
Description:  Theme desarrollado especialmente para la red de blogs de Miguel Martínez
Version: 1.0
Design: www.blogalizate.com
Author: Blogalizate
Author URI: http://www.blogalizate.com
Text Domain: blogalizate
Domain Path: /languages
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* HTML 
======================== */
* {
    box-sizing: border-box;
}

*:focus {
	outline: none;
}

html {
	font-size: 16px;
	font-size: 1rem;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
}

body {
	line-height: 1.3;
	background: #eee;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'Raleway', sans-serif;
	font-weight: 600;
	margin: 0.5rem 0;
	line-height: 1.3;
}

a {
	color: #000;
	text-decoration: underline;
}

a:hover {
	color: red;
	text-decoration: none;
}

/* PUBLICIDAD + WIDGETS PUBLICIDAD 
====================================== */
span.hidden {
	display: none;
}

.pub-bajo-menu {
	padding: 1rem 0;
}

.pub-300x300-single {
    float: left;
    margin: 1rem 2rem 1rem 0;
}

.pub-single-final img {
	display: block;
	margin: 0 auto
}

.pub-single-final {
	margin: 1rem 0;
}

.publi-listado-arriba {
	margin: 0 auto;
	text-align: center;
}


/* IMAGENES
=========================================== */
img {
	max-width: 100%;
	height: auto;
}

img.alignnone{
	margin:1rem 1rem 1rem 0;
	margin: 0 auto;
}

img.alignleft,
.wp-caption.alignleft {
	float:left;
	margin: 0 2rem 0 0;
}

img.alignright ,
.wp-caption.alignright{
	float:right;
	margin:1rem 0 1rem 1rem;
}

img.aligncenter,
.wp-caption.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-top:1rem;
	margin-bottom:1rem;
}

a img.alignnone,
a img.alignleft {
	float:left;
	margin:1rem 1rem 1rem 0;
}

.wp-caption {
	background: #fafafa;
	padding: 10px 10px 0 10px;
	border: 1px solid #ddd;
	text-align: center;
	max-width: 100%;
	width: auto !important;
}

.wp-caption .wp-caption-text {
	text-align:center;
	margin-top:5px;
}

/*  VIDEOS RESPONSIVE
==================================*/

iframe {
	width: 100%;
}

div.rwd-video {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	clear: both;
}

div.rwd-video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.mapa-google {
	position: relative;
	padding-bottom: 300px; /* 16:9 */
	padding-top: 23px;
	height: 0;
}

.mapa-google iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-height: 300px;
	max-width: 500px;
}

/* LIKEBOX FACEBOOK RESPONSIVE
=============================== */
.fb-like-box, .fb-like-box span, .fb-like-box span iframe[style] {
	width: 100% !important;
}


/* MAQUETACION BASICA
======================== */
.max {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

.flex {
	display: flex;
	flex-direction:row;
	justify-content: space-between;
	flex-wrap: wrap;
	align-items: center;
}

/* FORMULARIOS
======================= */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="submit"],
.formbuscar button,
textarea {
    background: #eee;
    color: #555;
    padding: 1rem;
    border-radius: 5px;
    border: none;
    width: 100%;
}

textarea {
	height: 10rem;
}

input[type="submit"],
.formbuscar button {
    background: #000;
    color: #fff;
    cursor: pointer;
    width: initial;
} 

.ajax-loader {
	position: absolute;
}

span.wpcf7-not-valid-tip {
	position: absolute;
	z-index: 2;
	right: 12px;
	top: -3px;
}

div.wpcf7-validation-errors {
	margin: 0;
	margin-top: 2rem;
}

.commentform {
	max-width: 500px;
}

.commentform input[type="text"],
.commentform input[type="email"],
.commentform textarea {
	background: #eee;
	padding: 0.5em;
	margin: 0.2em;
	color: #222;
	border: none;
	font-size: 1rem;
	width: 100%;
}

.commentform textarea {
	height: 10em;
}

.commentform input[type="submit"] {
	width: 207px;
}


/* HEADER 
==================== */
header h1 {
	display: none;
}

header .publi-logo {
	display: flex;
	flex-direction:row;
	justify-content: space-between;
	flex-wrap: wrap;
	align-items: center;
	padding: 1rem 0;
}

header .logo {
    max-width: 250px;
    margin: 0 auto;
    width: 70%;
}

/* HEADER > MENU RESPONSIVE
======================== */

header .menu-principal {
	text-transform: uppercase;
	font-weight: 400;
}

header ul.sub-menu {
	display: none;
}

header div#movimiento-menu {
	border-radius: 5px;
	margin: 0.5rem;
}

header .ico-menu i {
	color: #111;
	padding: 0.5rem;
	font-size: 2rem;
	cursor: pointer;
}

.ico-menu {
	width: 0;
	height: 0;
}

header nav#menu-movil {
	display: block;
	position: relative;
}

header nav#menu-movil  {
	text-decoration: none;
	font-size: 100%;
	padding: 0;
	clear: both;
}

header nav#menu-movil ul {
	display: none;
	z-index: 2;
	margin: 0 auto;
	list-style: none;
	padding: 0;
}

header nav#menu-movil li {
	cursor: pointer;
	text-align: center;
	border-top: 1px solid #9D9D9D;
	font-size: 1rem;
	font-weight: 400;
}

header nav#menu-movil li:hover a{
	color: #fc5959;
}

header nav#menu-movil li a {
	color: #111;
	text-decoration: none;
	display: block;
	padding: 1rem 0;
	text-transform: uppercase;
}


header #nav-principal{
	display: none;
}

nav.menu-principal ul {
    display: flex;
    justify-content: space-around;
    text-transform: uppercase;
    list-style: none;
    padding: 1rem 0 2rem 0;
}

nav.menu-principal ul li a {
	text-decoration: none;
	color: #111;
	font-size: 1rem;
}

header nav.menu-principal ul li.current_page_item a,
nav.menu-principal ul li a:hover {
	color: #FC5959;
	text-decoration: none;
}



/* INICIO > SECCION LISTADO ENTRADAS 
========================================= */

div.listado-entradas-todas {
	background: #fff;
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

section.listado-entradas {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: stretch; 
}

article.entrada .metas {
	display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: nowrap;
    align-items: baseline;
	border-bottom: 4px solid #ffe400;
}

article.entrada .fecha {
	font-weight: 500;
}

article.entrada .categoria {
    background: #e74c3c;
    padding: 0.5rem 1rem;
    border-radius: 5px 5px 0 0;
}

article.entrada .categoria a {
	color: #fff;
	text-decoration: none;
}

article.entrada .categoria a:hover {
	color: #fff;
	text-decoration: underline;
}

article.entrada .imagen-destacada img {
    border-radius: 0 0 5px 5px;
    display: block;
    width: 100%;
    object-fit: cover;
    height: 300px;
    object-position: top;
}

article.entrada.destacada .imagen-destacada img {
	height: 350px;
}

article.entrada .imagen-destacada a {
	padding: 0;
}

article.entrada .imagen-destacada a:hover {
	opacity: 0.7;
	padding: 0;
}

.cargar a {
	background: #e74c3c;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem auto;
    width: 300px;
    text-align: center;
    display: block;
	color: #fff;
	text-decoration: none;
}


/* INDEX > ENTRADA DESTACADA 
=============================== */
article.entrada.destacada {
	margin-bottom: 2rem;
}

article.entrada.destacada .contenido-entrada {
    background: #fff;
    border-radius: 0 0 5px 5px;
    border-bottom: 3px solid #eee;
}

article.entrada.destacada h2 {
    font-size: 2rem;
}

article.entrada.destacada .txt-entrada {
	margin: 0 1rem;
}

/* RASTRO DE MIGAS 
=============================== */
.rastro-migas {
    background: #fff;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* ENTRADAS GENERAl
============================== */

.index article.entrada,
.archive article.entrada,
.search article.entrada,
.p404 article.entrada {
	margin-bottom: 2rem;
	width: 100%;
}

.search .listado-entradas,
	.single article.entrada,
	.p404 article.entrada {
		width: 100%;
	}

/* SINGLE.PHP 
=============================== */
.single .flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
}

.single .contenido-entrada {
    background: #fff;
    padding: 1rem 2rem;
    border-radius: 0 0 5px 5px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.single article.entrada .metas {
    padding-bottom: 0;
    border-bottom: 2px solid #000;
}

.single article.entrada .imagen-destacada img {
    border-radius: 5px;
}

.single .max.flex {
	align-items: flex-start;
} 

.single .publi {
    float: left;
    margin: 0 1rem 0 0;
}

.etiquetas {
    display: inline-block;
    margin: 1rem 0;
    background: #000;
    padding: 1rem;
    color: #fff;
    width: 100%;
}

.etiquetas a {
	text-decoration: underline;
}

/* PAGE.PHP 
=============================== */

.page .entrada {
	background: #fff;
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    width: 100%;
}

/* ARCHIVE.PHP 
=============================== */

.archive .descripcion {
	background: #fff;
	padding: 1rem;
	margin-bottom: 1rem;
	border-radius: 5px;
}


/* SEARCH.PHP 
=============================== */
.search h1 {
	color: #fff;
}

.search .flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
}


/* 404.PHP
================ */

.p404 .flex {
	display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
}

.p404 article.entrada {
	margin: 1rem 0;
	background: #fff;
    padding: 1rem 2rem;
    border-radius: 5px;
    overflow: hidden;
}


/* SIDEBAR 
=============================== */
aside {
    background: #fff;
    padding: 2rem;
    border-radius: 5px;
    margin: 1rem 0;
    width: 100%
}

aside .box-sidebar {
	margin-bottom: 1rem;
}

aside .formbuscar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
}

aside .formbuscar input[type="text"] {
	margin: 0 1%;
}

/* FOOTER
========================================= */
footer {
	background: #e74c3c;
	color: #fff; 
	padding: 1rem 0;
}

footer a {
	color: #fff;
}

footer nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
footer nav ul li a {
	text-decoration: none;
}

footer nav ul li a:hover {
	text-decoration: underline;
}


/* COMENTARIOS
=========================================== */
.comentarios {
    background: #fff;
    padding: 1rem 2rem;
    border-radius: 5px;
}

section.comentarios h3 {
	font-size: 150%;
}

div.comment-body {
	padding: 1rem;
	margin: 0.5em 0.5em 0.5em 0;
	border-top: 4px solid #000;
}

div.comment-body p {
	margin-bottom: 2rem;
} 

a.comment-reply-link {
    padding: 0.5rem 1rem;
    background: #000;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
}

ul.commentlist {
	list-style: none;
	margin: 0;
	padding: 0;
}

ul.children {
	list-style: none;
}

img.avatar {
	max-width: 80px;
	float: left;
	margin: 0 1em 0 0;
	border-radius: 50%;
}

.fecha-comentario {
	font-size: 80%;
	color: #555;
	font-weight: 700;
}

/* POST PAGINADOS
========================== */

div#page-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1rem;
}

div#page-links a {
  padding: 0.5rem;
  border: 1px solid #ddd;
  background: #fff;
  margin: 0.1rem;
}

/* PAGINACION SIMPLE 
=========================== */
.paginacion-simple {
	border-top: 2px solid #eee;
    width: 100%;
    padding: 1rem 0 0;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.paginacion-simple .anteriores {
	margin-bottom: 1rem;
}

/* ENTRADA ANTERIOR Y SIGUIENTE 
================================== */

.anterior-siguiente-single {
    overflow: hidden;
    padding-bottom: 1rem;
}

.siguientes-single img,
.anteriores-single img {
	object-fit: cover;
	object-position: top;
    max-width: 100px;
    height: 60px;
    overflow: hidden;
}

.anteriores-single {
    width: 45%;
    float: right;
    text-align: right;
}

.siguientes-single {
    width: 45%;
    float: left;
    text-align: left;
}

/* POST PAGINADOS */
div#page-links {
    clear: both;
    text-align: center;
    padding: 1rem;
}

div#page-links a {
  padding: 0.5rem;
  border: 1px solid #ddd;
  background: #fff;
}


/* 
####################################

	MEDIA QUERIES

####################################
*/

@media screen and (min-width: 450px) {

	.paginacion-simple {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: initial;
	}

	.paginacion-simple .anteriores {
		margin-bottom: 0;
	}
	
}

@media screen and (min-width: 600px) {
	footer nav ul li {
		display: inline;
		margin-right: 1rem;
	}
}

@media screen and (min-width: 650px) {
	/* ENTRADAS*/

	.index article.entrada ,
	.archive article.entrada,
	.search article.entrada,
	.p404 article.entrada {
    	width: 47%;
	}

	/* INDEX > ENTRADA DESTACADA */

	.index article.entrada.destacada {
    	width: 100%;
	}

	article.entrada.destacada .imagen-destacada img {
		height: 350px;
	}

	.index article.entrada.destacada .contenido-entrada .imagen-destacada {
		width: 40%;
	}

	article.entrada.destacada .imagen-destacada img {
		border-radius: 5px;
	}

	article.entrada.destacada .txt-entrada {
		margin: 0;
		width: 55%;
	}

	.index article.entrada.destacada .contenido-entrada {
		padding: 2rem;
    	display: flex;
    	flex-direction: row;
    	flex-wrap: nowrap;
    	justify-content: space-between;
    	align-items: center;
	}

	.search .listado-entradas-todas,
	.single article.entrada,
	.p404 article.entrada {
    	width: 65%;
	}

	.search aside,
	.single aside,
	.p404 aside {
		width: 30%;
	}

	.search aside {
		margin-top: 0;
	}

	.comentarios {
	    margin-bottom: 2rem;
	}

	article.entrada .imagen-destacada img {
		height: 252px;
		object-position: top;
	}
}

@media screen and (min-width: 800px) {

/* MENU PRINCIPAL*/

	header #nav-principal{
		display: block;
	}

	header div#movimiento-menu {
		display: none;
		padding-bottom: 0;
	}

	header div.menu-rwd {
		display: none;
	}

	header nav#menu-movil {
		display: none;
	}

	header nav#menu-movil a {
		display: none;
	}

	header .logo {
    	margin: 0;
    	margin-right: 1rem;
	}

	nav.menu-superior {
    	background: #e74c3c;
    	color: #fff;
    	padding: 1rem 0;
	}	

	nav.menu-superior ul {
	    padding: 0;
	    margin: 0;
	}

	nav.menu-superior ul li {
		margin-right: 1rem;
		display: inline-block;
	}

	nav.menu-superior ul li a {
		color: #fff;
		display: inline-block;
		margin: 0.25rem 0px;
		text-decoration: none;
		padding: 0.3rem 0.5rem;
    	background: #000;
    	border-radius: 5px;
	}

	nav.menu-superior ul li a:hover {
		background: #ddd;
		text-decoration: none;
	}

	/* PUBLICIDAD */

	.pub-header {
		width: 63%;
	}

}

@media screen and (min-width: 850px) {

	.pub-header {
    	width: 65%;
	}

}

@media screen and (min-width: 1050px) {

	.pub-header {
    	width: initial;
	}

}

@media screen and (min-width: 1100px) {

	/* ENTRADAS*/
	.index article.entrada ,
	.archive article.entrada {
    	width: 30%;
	}
}