/*=== 07_visor.css ===*/

/* para la optima presentación como web publication */


body {
	font-size: calc(.9em + .3vw);	
	line-height: 1.35;
	background: #ECECEC; 
}
p, li {
	text-align: justify;
	max-width: 40em;
}    
.wrapper {
	margin: auto;
/* 	padding: 0 30px 0 30px; */
}
/* El rollo del outline sobre los elementos a los que se llega desde el NAV */
*:focus {
	outline: -webkit-focus-ring-color auto 0px;
	outline: 0;
}




                        /*MEDIA QUERIES*/

@media print {}


@media screen {
	div[class*="height"] {height: initial!important; max-height: none; overflow: hidden;}
    .m-imagenes {
    	margin-top: calc(2em + 15vw);
    	height: auto;
    	min-height: 400px;
    	max-height: 110vh;
    	overflow: hidden;
    	
/* 
    	background: #8c467d;
		color: #fff;
		background-size: cover;
		background-position: top;
		position: relative;
 */

 }  	
    img {object-fit: contain;}
	p, li {  
        -webkit-font-smoothing: antialiased;
         -moz-osx-font-smoothing: grayscale;
         text-rendering: optimizeLegibility !important;
    }

}    

@media (min-width: 300px) {
    .wrapper {padding: 0 10px 0 10px;}
    .m-imagenes, .f-portada {margin-left: -10px; margin-right: -10px; }    
}

@media (min-width: 500px) {
    .wrapper {padding:  0 20px 0 20px;}
    .m-imagenes, .f-portada {margin-left: -20px; margin-right: -20px; }      
}

@media (min-width: 800px) {
    .wrapper {padding: 0 40px 0 40px;}
    .m-imagenes, .f-portada {margin-left: -40px; margin-right: -40px; }      
    p, li {  
        -webkit-font-smoothing: antialiased;
         -moz-osx-font-smoothing: grayscale;
         text-rendering: optimizeLegibility !important;
    }
}
@media (min-width: 1200px) {
    .m-imagenes, .f-portada {width: 1400px; max-width: 1400px;}     
    figure.ancha, 
     div.ancha, 
    .ancha {width: 50em; max-width: 1400px; margin-left: -18%;}
}

@media (max-width: 800px) {
    .flex-row {}
    
    .flex-row.bl-3,
    .flex-row.bl-2 {max-height: initial; height: initial;}
    .flex-row img,
    .flex-row.bl-3 img,
    .flex-row.bl-2 img,    
    .flex-row.bl-3 div{
        text-align: center;
        margin-left:auto;
        width: 100%;
        height: auto;
        max-width: 100%;
    }    
	figure.ancha.flex-row div {width: 100%;}    
	figure.ancha.flex-row figcaption {
			width: auto;
			padding-left: 0em;
		}
    
}

/* Específicos para el #NAV   Overrides del docnav.css*/
@media screen and (min-width: 1240px) {
	#toggle-nav-checkbox:checked+#nav+#content{padding-left:00px}  /* estaba en 300   para no empujar el content*/
	#toggle-nav-checkbox:checked+#nav+#content{margin:0 auto; margin-top: 47px;}  /* estaba en 0 60px y sin margin top. Para que no se desplace hacia abajo. */	
    #nav {width: 400px;}  /* hacer más ancho en lva cuando cabe sin tapar. para pantallas más pequeñas se queda en 300px */	
}

/* Para llevar el #NAV la derecha en esta colección */
#nav {
	left: auto;
	right: 0;  /* overriding el docnav.css línea 128, que por defecto lo pone a la izq;  left:0;  */
	
	transform: translateX(100%);   /* adaptando el trasnform para que se lo lleve por la derecha. estaba en -100% */
	-webkit-transform: translateX(100%);
}



				/* ==========  Dando estilo a nav ============= */

/* Para que el nav no transprente los botone s de bigfoot */
#nav {
	z-index: 9 !important;
	background-color:#ECECEC;}

/* Color y grosor de la rayita que indica dónde estamos */
.is-active-link::before {background-color: red!important;}
.toc-link::before {width: 4px!important;}

/* Márgenes y estilos para las entradas del Nav */
#nav ol li {
	margin-top:20px;
	padding-left:5px;
	margin-left: 1em;
	text-indent: -1em;
	text-align: left;
	font-size: 1rem;
/* 	-webkit-text-fill-color: #004481!important;  	 */
}
	#nav ol li a {
		line-height:1.3;
		font-weight: bold;
		font-size: 1rem;
	}

/* en NAV las entradas de front o backmatter con estilo propio. 
En HTML hay que añadir el sufijo "frontbackmatter" a los id's de los h1	 */

			#nav ol li a[href$="frontbackmatter"] {font-weight: normal; font-style: italic; margin-bottom: 2em;}

/* Separarlas con margin del "matter" propiamente dicho	 */
			#nav ol li.toc-list-item:nth-child(1) {margin-bottom: 2em;}	
			#nav ol li.toc-list-item:nth-child(8) {margin-top: 2em;}


#nav ol li ol {margin-left: -.1em;}

	#nav ol li ol a {
	line-height:1.1 !important;	
	font-weight: normal;
	text-transform: none;	
}
	#nav ol li ol li{
		margin-bottom:5px!important;
		margin-top:5px;
	}
#nav ol li ol li ol{margin-left: -.3em; margin-top: 0;}
#nav ol li ol li ol li {margin-top: 0!important; margin-bottom: 0!important;}

/*Para que al clicar en el tocbot, los titulares caigan bien sin quedar tapados por el header*/
h1::before, h2::before, h3::before {
    display: block;
    content: " ";
    height: 60px;
    margin-top: -60px;
    visibility: hidden;
}
/*y los h1 de esta colección, que están en una div muy alta porque tienen mucha cosa */
h1 {	
	padding-top: 100px;
	margin-top: -100px;
}

/* Para títulos de secciones que no tienen h1 o no así nombrado */
h1.para-docnav {
    font-size: 0.1px!important; 
    line-height:1px!important; 
    opacity:0; 
    margin:0px;
    padding:0;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    margin-block-start: 0em;
    margin-block-end: 0em;
}
	h1.para-docnav + * {margin-top: 0;}







                /*TITULARES y otros block elements*/
                
/*  Tamaño de fuente en función del ancho de la ventana  */                
h1 {font-size: calc(1.3em + 1vw)!important;}
h2 {font-size: calc(1em + .2vw)!important;  }
h3 {font-size: calc(.9em + .1vw)!important;}
h4 {}
h5 {}
h6 {}

aside {
    background-color:white;
    border-radius: 25px;
    border: 2px solid lightgrey;
    padding: 1em 1em .2em 1em;
    margin: 1em 0; 
}
    aside p {color:darkslategrey;}
    aside h4 {
        color: #1973B8;
        margin-bottom: 1em;
    }




                    /* TABLAS */
.bl-tabla, 
.bl-tabla.float-top,
.bl-tabla.float-bottom {
	margin: 2.5em 0;
}
.bl-tabla + .p-caption {
    margin-top: -2em;
}

table {
	border-collapse: collapse;
	border-spacing: 0;    
	width: 100%;
	box-shadow: 0px 0px 20px rgba(0,0,0,0.10),
	0px 05px 20px rgba(0,0,0,0.05),
	0px 10px 20px rgba(0,0,0,0.05),
	0px 15px 10px rgba(0,0,0,0.05);
	margin: 0px auto;    
	margin-bottom: 1em;
	border-style: hidden;
}
.bl-tabla th, 
.bl-tabla td {
  padding: 0.25em;
  vertical-align: middle;   
  border-bottom: 1px solid #ccc; 
}
th {}
td {}
td:first-child {}  
  
tbody tr:nth-child(odd) {}
tbody tr:hover {
  background: #1973B8!important;  
  color:white;      
}

                    /*LISTAS*/
.bl-lista {}
ol {}
ul {}
li {margin-bottom: .4em; padding-left: .7em;} 

                    /* Cabecera y cierre */

#f-cubierta {}
	#img-cubierta {
		max-height: 85vh;
		margin-top: 5vh;
		object-fit:contain;
	}
#cover	{
	background-color: grey;
	padding-bottom: 3em;
}
	
	@media (max-width: 500px) {
		.f-cubierta {height:50vh;}
	}	

.f-portada h2 {font-size: calc(1em + .5vw)!important;  margin-top: 1vh!important;}										
.bloque-autores p {font-size: calc(.8em + .4vw)!important;}


div.cierre-creditos {
	margin-top: 3em;
	justify-content: space-between;
}
div.cierre-creditos .logos {max-width: 9em; margin-bottom: 1em;}
div.cierre-creditos p {flex-shrink: 1; width: auto;}

                /*BLOQUE GRAFICO*/





                /* BOTONES - ENLACES*/

.button {
    color: #004481;
    background: #ffffff;
    border: 1px solid #49A5E6;
    padding: 0.75em 1.75em;
    text-transform: uppercase;
    margin: auto;
    text-align: center;
}
a.button-inline {
    font-family: 'Muli', Sans-Serif;
    font-size: .6em;
    font-weight: normal!important;
    color: #555555;
    background: #ffffff;
    border: 1px solid #DF453B;
    padding: 0.1em .8em 0em .8em;
    text-transform: uppercase;
    margin: auto;
    text-align: center;
    white-space: nowrap;
}
a.enlace {
    color:#DF453B;
	-webkit-text-fill-color: #DF453B;      
}

/* Boton de descarga */
div.boton-descarga {
	text-align: right;
}

a.download {
	color: #49A5E6;
	-webkit-text-fill-color:  #49A5E6;  	    
	text-decoration: none;
	display: inline-block;
	height: 1.8em;
	width: auto;
	text-align: right;
	font-size: .7em;
	padding: 4px 8px 4px 12px;
	border-radius: 5px;
	display: inline-block;
	border: 1px solid #49A5E6;	
}

a.download::before {
	display: inline-block;
	content: url('../imagenes/download-icon.svg');
	position: relative;
	top: 3px;
	right: .5em;
	width: 1.3em;
}
a.download:hover,
a.download:focus {
	-webkit-box-shadow: 0px 5px 40px -10px rgba(0,0,0,0.57);
	-moz-box-shadow: 0px 5px 40px -10px rgba(0,0,0,0.57);
	box-shadow: 5px 40px -10px rgba(0,0,0,0.57);
	transition: all 0.4s ease 0s;
}
				/* Boton de nueva ventana */
				div.boton-nueva-ventana {
					text-align: right;
					margin-top: 10px;
				}
				a.abrir-en-otra {
					color: #49A5E6;
					-webkit-text-fill-color:  #49A5E6;  	    
					text-decoration: none;
					display: inline-block;
					height: 1.8em;
					width: auto;
					text-align: right;
					font-size: .7em;
					padding: 4px 18px 4px 12px;
					border-radius: 5px;
					display: inline-block;
					border: 1px solid #49A5E6;	
				}

				a.abrir-en-otra::after {
					display: inline-block;
					content: url('../imagenes/new-window.svg');    /*  */
					position: relative;
					top: 3px;
					right: -.8em;
					width: 1.3em;
				}
				a.abrir-en-otra:hover,
				a.abrir-en-otra:focus {
					-webkit-box-shadow: 0px 5px 40px -10px rgba(0,0,0,0.57);
					-moz-box-shadow: 0px 5px 40px -10px rgba(0,0,0,0.57);
					box-shadow: 5px 40px -10px rgba(0,0,0,0.57);
					transition: all 0.4s ease 0s;
				}







                        /*SECCIONES */


section::after {
    display: block;
    content: " ";
    width: 60%;
    margin: 3em auto 0 auto;
        margin-top: 3em;
    border-bottom: 2px solid red;
}	
section.m-imagenes::after {
    display: none;
}

section.b-bibliografia,
section.f-copyright {margin-top: 5em;}

    /*El índice*/
.f-indice {}
	.f-indice li._1 {font-size: 1em;}
	
	
 


										/*=========NOTAS======*/
.p-textonota{
	margin-bottom: 10px;
    font-weight: normal!important;
}
.p-textonota sup {
    display:inline-table;
    padding-right: 1em;
    color: #DF453B;
    -webkit-text-fill-color: #DF453B;
    vertical-align: bottom;
    text-align: right;
}
/*                        Notas fn*/
span.fn a {
    font-weight: normal;
    font-style: normal;
    color: #37424A!important;
    -webkit-text-fill-color: #37424A!important;   
}




								/* Correcciones al BIGFOOT */

.bigfoot-footnote__button {
/*  color: #004481!important; */
    font-size: .7em;
	z-index: 0;	
  	background-color: rgba(110, 110, 110, 0.05);
	margin:0;
	hyphens: auto;
}

.bigfoot-footnote__wrapper {
  	width: 22em;   /* está normalmente en 22em */
  	max-width: 100%;
}
.bigfoot-footnote__content {
    font-weight: normal!important;
    font-size: 1em;                    /* para que reaccione al tamaño que elige el usuario */
}
.bigfoot-footnote__content p.p-textonota {
    padding-left: 0em!important;
	margin-left: 0em!important;
	text-indent:-0em!important;
	text-align: left;
}
.bigfoot-footnote__content p.h2 {
    font-size: 16px!important;
}


							/*=========NOTAS Bibliografía======*/
/* Funcionando con Bigfoot para que aparezcan en popup*/

a[href^="#_bib"] {
	color: green;
}

span.l-ref-bib {    
	-webkit-text-fill-color: ;
	font-size: 1em;
		overflow-wrap: break-word;
		word-wrap: break-word;
		-ms-word-break: break-all;
		word-break: break-all;
		word-break: break-word;		
}
span.l-link-a-texto.tras::after {
    background-image: url('../imagenes/return.svg');
    background-size: 1em 1em;
    display: inline-block;
    width: 1em; 
    height: 1em;
    content:"";
    margin-left: 4em;
    color: #004481;
    -webkit-text-fill-color: #004481;     
}



            /*copyright page*/
.f-copyright{}

                        /*GRAFICOS*/
.graficos {
    width: 100%; 
    max-width: 1200px; 
    min-height: 400px;
    margin:auto;
    content: fit;
}


                        /*LETRAS , OTROS*/
.go-top {
	position: fixed;
	bottom: 2em;
	right: 2em;
	text-decoration: none;
	color: white;
	background-image: url('../imagenes/up-arrow.png');
	background-repeat: no-repeat;
	background-color: transparent;
	font-size: 12px;
	height:40px;
	width:40px;
	display: none;
	text-decoration: none !important;
}
.go-top:hover {
	background-color: blue;
}







/*Notas   de aquí : https://codepen.io/WilliamRobertson/pen/ONpWRJ*/

/*Separadores*/
.separador {
    width: 70%;
    border-bottom: 2px solid #DF453B;    
    margin: 4.5em auto;
}
hr.style-two {
    border: 1;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}
hr.style-eight {
    overflow: visible; /* For IE */
    padding: 0;
    border: none;
    border-top: medium double #333;
    color: #333;
    text-align: center;
    margin: 3em;
}
hr.style-eight:after {
    content: "§";
    display: inline-block;
    position: relative;
    top: -0.9em;
    font-size: 1.5em;
    padding: 0 0.25em;
    background: #fcfaf6;
}



/* IMAGENES EN VENTANAS MODALES */
.img-overlay {
  position:fixed;
  top:90px;
  max-height:80%;
  left:50%;
  transform: translate(-50%,0) scale(0,0);
  z-index:10;
  box-shadow:0 10px 20px rgba(0,0,0,0.19),0 6px 6px rgba(0,0,0,0.23);
  transition:all .3s ease;
}
.overlay-dark {
  top:0;
  position:fixed;
  background-color:#000;
  opacity: .9;
  width:100%;
  height:100%;
  z-index:5;
  display:none;
}