﻿/** BASE **/

/* Márgenes */
body {
	font-family: sans-serif;
	margin: 0;
	padding: 0 20px;
}

/* Fuentes */
@font-face {
	font-family:"Caferus";
	font-style: normal;
	font-weight: normal;
	src: url('../fonts/CaferusNormal.otf');
}
@font-face {
	font-family:"OrangeJuice";
	font-style: normal;
	font-weight: normal;
	src: url('../fonts/OrangeJuice.ttf');
}
@font-face {
	font-family:"PirataOne-Regular";
	font-style: normal;
	font-weight: normal;
	src: url('../fonts/PirataOne-Regular.ttf');
}

/* Control partición silábica */
h1,
h2,
h3,
h4 {
	page-break-after: avoid;
	hyphens: none;
	adobe-hyphenate: none;
	-moz-hyphens: none;
	-webkit-hyphens: none;
}
p, li, td, dt, dd {
	-webkit-hyphenate-limit-before: 3;
	-webkit-hyphenate-limit-after: 1;
	-webkit-hyphenate-limit-lines: 2;
	orphans: 2;
	widows: 2;
}

/** FRONTMATTER **/

/* Cubierta */
.cover {
	margin: 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
img.cover {
	height: 100%;
}

/* Créditos */
#copyright-page {
	margin: 4em 2em 0 0;
}
#copyright-page div + div {
	margin: 1em 0 0 0;
}
#copyright-page p {
	color: currentColor;
	font-family: serif;
	font-size: .8em;
	margin: 0;
	text-align: left;
	text-indent: 0;
}

/* Sinopsis */
#summary * {
	color: #000;
	font-family: sans-serif;
}
#summary h1 {
	font-size: 1.2em;
}
#summary h1 + p {
	text-indent: 0;
}
#summary p {
	text-align: justify;
}

/* Índice */
#toc {
	display: none;
}
#toc ol {
	list-style-type: none !important;
	margin: 1em 0;
	padding: 0;
}
#toc li {
	font-size: 1em;
	margin: .75em 0;
	padding: 0;
	text-align: left;
}
#toc li ol {
	margin: 0 0 0 1em;
}
#toc li li {
	margin: 0;
}
#toc li span.label {
	display: block;
}
#toc li span.title {
	font-weight: bold;
}
#toc li a {
	color: #000;
	font-weight: bold;
	page-break-inside: avoid;
	text-decoration: none !important;
}
#toc li li a {
	color: #000;
	font-weight: normal;
	page-break-inside: avoid;
	text-decoration: none !important;
}

/* Portada */
#titlepage {
	margin-top: 2em;
}
#titlepage * {
	text-align: center;
	text-indent: 0;
}
#titlepage p.author {
	color: #92ba42;
	font-size: 1.75em;
}
#titlepage p.subtitle {
	color: #92ba42;
	font-size: 1.25em;
}
#titlepage p.publisher {
	margin: 10em auto 0;
	text-align: center;
	width: 1.5em;
}

/* Dedicatoria */
#dedication {
	margin-top: 5em;
}
#dedication p {
	font-family:"Caferus";
	font-size: 1.3em;
	margin: 1em 0;
	text-indent: 0;
}

/* BODYMATTER */

/* Estilos generales */
h1 {
	font-family:"OrangeJuice";
	font-size: 2.5em;
	font-weight: normal;
	margin: 1.5em 0;
	text-align: center;
}
h1 span.label {
	font-family:"Caferus";
	display: block;
	font-size: .5em;
	margin-bottom: 1em;
}
h1 span.big {
	font-size: 2em;
}
p, li {
	font-family: sans-serif;
	font-size: 1em;
	font-style: normal;
	font-weight: normal;
	margin: .5em 0;
	text-align: left;
	text-indent: 1.25em;
}
b {
	font-family: sans-serif;
}

a {
	color: #00517d;
	font-family: Courier, monospace;
	font-style: normal;
	font-weight: bold;
	text-decoration: none;
}
abbr {
	border: 0;
	text-decoration: none;
	white-space: nowrap;
}
blockquote {
	margin: 1em 0;
}
blockquote p {
	font-size: 1em;
	margin: 0;
	text-align: center;
	text-indent: 0;
}
blockquote.note {
	border: 1px solid currentColor;
	padding: .6em;
	margin: 1em 3em;
}
blockquote.note p {
	font-family:"PirataOne-Regular";
	font-size: 1.2em;
}
cite {
	display: inline;
	font-style: italic;
}
hr {
	border: none !important;
	height: 1em;
	margin: 0;
}
img {
	margin: 0;
	max-height: 100%;
	max-width: 100%;
	padding: 0;
}
q {
	font-style: italic;
}
q i {
	font-style: normal;
}
q:before {
	content: "";
}
q:after {
	content: "";
}
sub,
sup {
	font-size: .7em;
}

/* Figuras y captions */
div.figure {
	margin: 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 100%;
}
div.figure-30 {
	margin: 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 30%;
}
div.figure-50 {
	margin: 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 50%;
}
img {
	object-fit: contain;
	max-height: 100%;
	max-width: 100%;
	page-break-inside: avoid;
	text-align: center;
}


div.separator {
	margin: 1em 0;
	break-before: always;
	page-break-before: always;
	page-break-inside: avoid;
	text-align: center;
	width: 100%;
}
div.separator img {
	max-height: 100%;
	page-break-inside: avoid;
	text-align: center;
}
div.separator + * {
	break-before: always;
	page-break-before: always;
}

img.inline {
	height: 1em;
	vertical-align: baseline;
}

/* BLOQUES */

/* Firmas */
div.signature {
	margin: 1em 0;
}
div.signature p {
	text-align: right;
}

/* PÁRRAFOS ESPECIALES */
p.asterisks {
	font-size: 1em;
	margin: 1.7em 0 .3em 0;
	text-align: center;
	text-indent: 0;
}

/* TEXTOS ESPECIALES */
span.sc {
	font-size: 80%;
}
.line-through {
	text-decoration: line-through;
}
p.center {
	text-align: center;
	text-indent: 0;
}
p.right {
	text-align: right;
	text-indent: 0;
}
p.noindent {
	text-indent: 0;
}

p.l2 {
	margin-left: 2em;
	text-indent: 0;
}
p.l3 {
	margin-left: 3em;
	text-indent: 0;
}
p.l4 {
	margin-left: 4em;
	text-indent: 0;
}

span.Caferus {
	font-family:"Caferus";
	font-size: 2em;
}
p.finis {
	font-family:"Caferus";
	font-size: 2em;
	text-align: center;
	text-indent: 0;
}
p.conclusion {
	font-family:sans-serif;
	font-weight: bold;
	text-align: center;
	text-indent: 0;
}

span.half { font-size: .8em; }
span.fs15 { font-size: 1.2em; }
span.fs20 { font-size: 1.3em; }
span.fs25 { font-size: 1.4em; }
span.fs30 { font-size: 1.5em; }
span.fs35 { font-size: 1.6em; }
span.fs40 { font-size: 1.7em; }
span.fs45 { font-size: 1.8em; }
span.fs50 { font-size: 1.9em; }
span.fs55 { font-size: 2.0em; }
span.fs60 { font-size: 2.1em; }

/* Agradecimientos */
#acknowledgments {
	margin-top: 5em;
}
#acknowledgments p {
	font-family:"Caferus";
	margin: 1.5em 0;
	text-indent: 0;
}