/*
Theme Name: Enciclopedia Historia.com v1.0
Theme URI: http://www.historia.com
Description:  Theme desarrollado especialmente para www.historia.com
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
=========================================== */
body {
	background: #fff;
	font-family: 'Merriweather', serif;
  font-size: 15px;
	font-size: 0.9375rem;
	font-weight: normal;
	line-height: 1.5em;
	color: #222;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}


blockquote {
	font-style: italic;
	color: #666;
}

*:focus {
	outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Merriweather', serif;
  font-weight: 400;
	color: #2a3133;
	line-height: 1em;
}

a {
	color: #f54653;
	text-decoration: underline;
  cursor: pointer;
}

a:hover {
	color: #222;
	text-decoration: underline;
}

header h1{
	display: none;
}

strong {
  color: #f54653;
}

audio {
  min-width: 300px;
}


/* Scroll top 
========================= */
#return-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgb(0, 0, 0);
    background: rgba(0, 0, 0, 0.7);
    width: 50px;
    height: 50px;
    display: block;
    text-decoration: none;
    -webkit-border-radius: 35px;
    -moz-border-radius: 35px;
    border-radius: 35px;
    display: none;
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
#return-to-top i {
    color: #fff;
    margin: 0;
    position: relative;
    left: 16px;
    top: 13px;
    font-size: 19px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
#return-to-top:hover {
    background: rgba(0, 0, 0, 0.9);
}
#return-to-top:hover i {
    color: #fff;
    top: 5px;
}


/* IMÁGENES
=========================================== */
img {
  max-width: 100%;
  height: auto;
}


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

img.alignleft,
.wp-caption.alignleft {
  float:left;
  margin:1rem 1rem 1rem 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;
}

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

a img.aligncenter;
a.wp-caption.aligncenter {
  display: block;
  margin: 1rem auto;
}

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

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

figure {
    float: left;
    text-align: center;
}

figcaption {
    font-size: 90%;
    max-width: 72%;
    line-height: 1.2em;
    margin: 0 auto;
}

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

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 OPEN STREET MAP RWD */

div#mapid {
    height: 410px;
    max-width: 100%;
    height: auto;
} 

/* TABLAS
=========================================== */
th {
    background: #000;
    color: #fff;
    border: #000 1px solid;
    padding: 0.5rem;
}

td {
    border: 1px solid #ddd;
    padding: 0.5rem;
}

/* CAJAS ALERTAS, AVISOS, OK, ETC 
======================================== */
.alerta.enlace-roto {
    color: #a94442;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    padding: 1rem;
    text-align: center;
    margin: 1rem auto;
}

.alerta.colabora {
    color: #3c763d;
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    padding: 1rem;
    text-align: center;
    margin: 1rem auto;
}

.alerta.colabora a {
    color: #3c763d;
}

.alerta.colabora a:hover {
    color: #222;
}


/* MAQUETACIÓN BÁSICA
=========================================== */
.max {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 1rem;
}

/* HEADER
=========================================== */
header {
  color: #fff;
}


/* BARRA TOP 
===================== */
.barra-top {
    background: #00343e;
    color: #fff;
    padding: 0.5rem;
}

/* MENU SUPERIOR MOVIL
=========================== */

.barra-top nav ul {
  list-style: none;
  text-align: center;
  padding: 0;
}

.barra-top nav ul li {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.barra-top nav ul li a {
  color: #fff;
  text-decoration: none;
}

.barra-top nav ul li a:hover {
  text-decoration: underline;
}

/* ASIDE BARRAS LATERALES
=========================================== */
aside {
  margin: 1rem 0;
}

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

aside div.widget-title {
  background: #f54653;
  padding: 1rem;
  color: #fff;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  border: none;
  margin: 0 0 0.2rem 0;
}

.box-sidebar ul  {
	padding: 0 0.2rem;
	margin: 0;
	list-style: none;
}

.box-sidebar ul li {
    padding: 0.5rem;
    display: block;
}

.box-sidebar ul li a {
    display: block;
}

.box-sidebar ul li:hover {
	background: #eee;
	color: #222;
	display: block;
}

aside a {
	color: #222;
	text-decoration: none;
}

aside a:hover {
	color: #F54653;
	text-decoration: none;
}


aside input.buscar {
	border: 0 none;
     -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    float: left;
    margin-right: 2%;
    width: 62%;
}

aside input.btn-buscar {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 36%;
}


/* FORMULARIOS
=========================================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
textarea {
	width: 90%;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	padding: 1rem;
  border: none;
  background: #eee;
  color: #222;
  margin: 0 0 0.5rem 0;
  -webkit-appearance: none;
}

header input[type="text"] {
  background: #fff;
  -webkit-appearance: none;
}

textarea {
	height: 12rem;
}

input[type="submit"] /* general */ {
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	padding: 1rem;
	border: 0;
	background: #00d7fe;
	color: #222;
	text-align: center;
  font-family: 'Montserrat';
  -webkit-appearance: none;
}


.btn-accion a,
.leermas a {
  font-family: 'Montserrat';
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  padding: 1rem;
  border: 0;
  background: #00d7fe;
  color: #000;
  text-align: center;
  display: block;
  cursor: pointer;
  text-decoration: none;
  transition-property: background;
  transition-duration: 1s;
  transition-timing-function: linear;
}

.btn-accion a:hover,
.leermas a:hover {
  font-family: 'Montserrat';
  background: #00afce;
  color: #fff;
}

.btn-accion a,
.leermas a {
  font-family: 'Montserrat';
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  padding: 1rem;
  border: 0;
  background: #00d7fe;
  color: #000;
  text-align: center;
  display: block;
  cursor: pointer;
  text-decoration: none;
  transition-property: background;
  transition-duration: 1s;
  transition-timing-function: linear;
}

.btn-accion a:hover,
.leermas a:hover {
  font-family: 'Montserrat';
	background: #00afce;
  color: #fff;
}

button.search-button {
    margin: 0;
    background: transparent;
    border: none;
    font-size: 150%;
    position: relative;
    top: -48px;
}

button.search-button i.fa.fa-search {
    color: brown;
}


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

footer .max a {
	color: #fff;
	text-decoration: none;
}

footer .max a:hover {
  color: #fff;
  text-decoration: underline;
}

footer nav ul {
  list-style: none;
  padding: 0;
}

footer nav li {
    display: inline-block;
    margin-right: 1rem;
}

footer .rrss .fa {
    font-size: 250%;
}

footer .blogalizate {
	font-size: 80%;
}


/* ICONOS REDES SOCIALES
============================ */
.rrss ul {
	margin: 0;
	padding: 0;
}

.rrss li {
    list-style: none;
    display: inline-block;
    margin-right: 0.2rem;
}


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

    TEMPLATES DE PÁGINAS

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


/* INICIO - PORTADA - BUSCADOR 
===================================== */
.bg-imagen-historica {
    background: rgba(0, 52, 62, 0.68);
    padding-bottom: 0.6rem;
}

.bg-imagen-historica img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: -999;
    margin-bottom: -1rem;
}

.contenido-inicio {
    padding: 10% 0;
    margin-top: -400px;
}

.inicio-enciclopedia .logo {
    width: 300px;
    margin: 0 auto 1rem auto;
}

.inicio-enciclopedia .buscador-header {
    margin-top: -350px;
}

.inicio-enciclopedia input[type="search"] {
    width: 100%;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    padding: 1rem 1.5rem 1rem 1rem;
    border: none;
    background: #fff;
    color: #222;
    margin: 0 0 0.5rem 0;
    -webkit-appearance: none;
    
}

button.search-button {
    left: 99%;
}

.inicio-enciclopedia .tal-dia {
    text-align: center;
    color: #fff;
    font-size: 200%;
}

.inicio-enciclopedia i.fa {
    color: brown;
    margin-right: 5px;
}

.inicio-enciclopedia form.buscador-cpt {
    width: 88%;
}


/* INICIO > RELACIONADOS INICIO
======================================== */
section.relacionados-inicio {
    width: 90%;
}

article.relacionado-inicio a {
  text-decoration: none;
}


article.relacionado-inicio .flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    align-items: flex-start;
    align-content: flex-start;
    padding: 1rem;
    margin: 1rem 0;
    background: #fafafa;
    border-radius: 5px;
    width: 100%;
}

article.relacionado-inicio .tipo-post {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #00343E;
}

article.relacionado-inicio .img-destacada-relacionado {
    margin-right: 1rem;
    /*width: 200px;
    height: 200px;
    background: #eee;*/
}

article.relacionado-inicio .img-destacada-relacionado img {
    object-fit: cover;
    object-position: center;
    width: 100px;
    height: 100px;
}

article.relacionado-inicio a .extracto h2 {
  color: brown;
  font-size: 120%;
  line-height: 1.5rem;

}

article.relacionado-inicio a:hover .extracto h2 {
  text-decoration: underline;
}

article.relacionado-inicio a .extracto {
    width: 75%;
    color: #222;
}



/* SINGLE ENCICLOPEDIA (hecho, entidad, personaje, ubicación) 
================================================================= */

.single-enciclopedia-top {
    color: #fff;
    background: #861010;
    padding: 1rem 0 0 0;
}

/* BUSCADOR SINGLE / CPT */

.buscador-header .logo {
    text-align: center;
    padding-bottom: 0.5rem;
}

.buscador-header form.buscador-cpt {
  margin:0;
  width: 90%;
}


.single-enciclopedia-top input[type="search"] {
    width: 100%;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    padding: 1rem 1.5rem 1rem 1rem;
    border: none;
    background: #fff;
    color: #222;
    margin: 0 0 0.5rem 0;
    -webkit-appearance: none;
}


.single-enciclopedia {
  padding: 0 0 3rem 0;

}

.img-superior {
    max-height: 300px;
    overflow: hidden;
}

/*
.single-enciclopedia .img-superior img {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}*/
.single-enciclopedia .img-superior img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    object-fit: cover;
}

.img-cuadrada {
    margin: -30% auto 3rem auto;
    text-align: center;  
    background: #000000;
    width: 200px;
    height: 200px;
    z-index: 9999;
    position: relative; 
}

.img-cuadrada img {
    width: 200px;
    height: 200px;
    overflow: hidden;
    border: 10px solid #fff;
    object-fit: cover;
    object-position: top;
    -webkit-box-shadow: 0px 13px 35px 0px rgba(0,0,0,0.11);
    -moz-box-shadow: 0px 13px 35px 0px rgba(0,0,0,0.11);
    box-shadow: 0px 13px 35px 0px rgba(0,0,0,0.11);
    margin-left: -10px;
}

span.leyenda {
    font-size: 80%;
}

.single-enciclopedia .verificado {
  padding: 2rem 0 0 0;
  text-align: center;
  font-size: 110%;
}

.single-enciclopedia .verificado .fa {
  color: #8BC34A;
  font-size: 125%;
  vertical-align: middle;
}

.single-enciclopedia h1 {
  font-size: 250%;
  text-align: center;
  padding: 0;
  margin: 0 0 1rem 0;

}

.single-enciclopedia .fechas.flex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    align-content: space-between;
    justify-content: space-around;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
}

.single-enciclopedia h2 {
    padding: 1rem;
    margin: 2rem 0 1rem 0;
    border-left: 6px solid #c7c7c7;
    background: #fafafa;
}  

h3.cargo-single-personaje {
    text-align: center;
    font-size: 1rem;
}

.single-enciclopedia .ubicacion {
    padding: 1rem 0;
}

.jerarquia-ubicaciones {
    padding: 1.5rem 0 0 0;
}

span.raquo-1 {
    display: none;
}



audio::-internal-media-controls-download-button {
    display:none;
}

audio::-webkit-media-controls-enclosure {
    overflow:hidden;
}

audio::-webkit-media-controls-panel {
    width: calc(100% + 30px); /* Adjust as needed */
}



.tabla-rwd {
  width: 100%;
  overflow:auto;
}



/* SINGLE ENCICLOPEDIA > RELACIONADOS 
======================================== */
article.relacionado.flex {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: nowrap;
    align-items: flex-start;
    align-content: flex-start;
}

article.relacionado .img-destacada-relacionado {
    margin: 0 1rem 1rem 0;
}

article.relacionado .img-destacada-relacionado img {
    min-width: 100px;
    max-width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: top;
}

article.relacionado .texto-relacionado {
    width: 84%;
}

article.relacionado h3 {
    font-size: 100%;
}


/* SINGLE ENCICLOPEDIA > REFERENCIAS 
========================================= */
i.fa.fa-external-link-square {
    vertical-align: text-top;
    font-size: 90%;
}

/* PAGINAS > page.php
========================================= */
.page {
    padding: 2rem 0;
}

/* DATOS ADICIONALES UBICACIONES 
=========================================== */
.datos-adicionales-ubicaciones {
    padding: 1rem;
    /*background: aliceblue;*/
    margin: 1rem auto;
    /*border: 1px solid #e1eef9;*/
    font-size: 90%;
}

.datos-adicionales-ubicaciones strong {
    color: #00343e;
    font-weight: 400;
}

.img-bandera-ubicacion {
    text-align: center;
    display: inline-block;
}
.img-escudo-ubicacion {
    text-align: center;
    margin-bottom: 1rem;
    display: inline-block;
    margin-left: 1rem;
}

.img-escurdo-mini img {
    vertical-align: middle;
    margin-left: 0.5rem;
}

.vbox-container {
    max-width: 90% !important;

}

h3.titulo-bloque-ubicaciones{
    color: #222;
    font-weight: bold;
}


/*pagos historia */

li.pms-field.pms-field-subscriptions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 3rem;
}
.pms-subscription-plan {
    margin-bottom: 1.345em;
}

form.pms-form ul.pms-form-fields-wrapper {
    list-style: none !important;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}
 .pms-subscription-plan label {
    position: relative;
    font-weight: bold;
    color: #db282f;
    text-transform: uppercase;
    display: block;
    padding: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}
/*
###########################################

 MEDIA QUERIES # RWD

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



@media (min-width: 600px) { 

  .img-cuadrada {
    margin: -20% auto 3rem auto;
  }

  .buscador-header form.buscador-cpt {
    width: 94%;
  }

  section.relacionados-inicio {
    width: 95%;
  }

}

 

@media (min-width: 700px) { 

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="url"],
  input[type="tel"],
  textarea {
    width: 95%;
  }


  article.relacionado-inicio .img-destacada-relacionado img {
    width: 150px;
    height: 150px;
  }

}

@media (min-width: 800px) { 

  .single-enciclopedia .img-superior img {
    width: 100%;
    height: 300px;
    overflow: hidden;
    object-fit: cover;
    object-position: center;
  }

}

@media (min-width: 900px) {

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

  .barra-top {
    background: #00343e;
    color: #fff;
    padding: 0.5rem 1rem;
  }


  /* SERPS */

  article.relacionado-inicio .img-destacada-relacionado img {
    object-fit: cover;
    object-position: center;
    width: 200px;
    height: 200px;
  }

  /* SINGLE */

  .single-enciclopedia-top .logo {
    padding-bottom: 1rem;
    max-width: 250px;
    margin: 0 auto;
  }


  /* MENU SUPERIOR ESCRITORIO */

  .barra-top nav ul li {
  display: inline-block;
  margin-left: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  }

  .barra-top nav ul li a {
    color: #fff;
    text-decoration: none;
  }

  .barra-top nav ul li a:hover {
    text-decoration: underline;
  }

  /* ================= */


}


@media (min-width: 1050px) {

  .buscador-header form.buscador-cpt {
    margin: 0;
    width: 99%;
  }

  section.relacionados-inicio {
    width: 100%;
  }

}


@media (min-width: 1200px) {

  .buscador-header form.buscador-cpt {
    margin: 0;
    width: 99%;
  }

}
