﻿/** BASE **/

/* Márgenes */
body {
	font-family: sans-serif;
	margin: 0;
	padding: 0 20px;
}
body * {
	object-fit: contain;
	box-sizing: border-box;
	max-width: 100%;
}

/* Fuentes */
@font-face {
	font-family:"CCDoohickey";
	font-style: normal;
	font-weight: normal;
	src: url('../fonts/CCDoohickey.ttf');
}
@font-face {
	font-family:"Chevin";
	font-style: normal;
	font-weight: normal;
	src: url('../fonts/Chevin-ExtraBold.otf');
}
@font-face {
	font-family:"Chevin";
	font-style: italic;
	font-weight: normal;
	src: url('../fonts/chevin-bolditalic.otf');
}
@font-face {
	font-family:"Chevin-Light";
	font-style: normal;
	font-weight: normal;
	src: url('../fonts/Chevin-Light.otf');
}
@font-face {
	font-family:"Chevin-Light";
	font-style: italic;
	font-weight: normal;
	src: url('../fonts/Chevin-LightItalic.otf');
}
@font-face {
	font-family:"desyrel";
	font-style: normal;
	font-weight: normal;
	src: url('../fonts/desyrel.ttf');
}
@font-face {
	font-family:"ShaftDV";
	font-style: normal;
	font-weight: normal;
	src: url('../fonts/ShaftDV.ttf');
}
@font-face {
	font-family:"CCKnobblyKnees";
	font-style: normal;
	font-weight: normal;
	src: url('../fonts/CCKnobblyKnees.otf');
}

/* 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 p {
	text-align: justify;
}

/* Índice */

#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 {
	font-weight: bold;
	page-break-inside: avoid;
	text-decoration: none !important;
}
#toc li li a {
	font-weight: normal;
	page-break-inside: avoid;
	text-decoration: none !important;
}

/* Portada */
#titlepage {
	margin-top: 0;
}
#titlepage div.figure {
	margin: 0 auto;
	padding: 0;
}
#titlepage * {
	text-align: center;
	text-indent: 0;
}
#titlepage p.author {
	font-family:"ShaftDV";
	font-size: 1.75em;
}
#titlepage p.title {
	margin: 2em auto .5em;
	width: 15em;
	max-width: 100%;
}
#titlepage p.subtitle {
	color: #872662;
	font-family:"ShaftDV";
	font-size: 1.25em;
}
#titlepage p.publisher {
	margin: 10em auto 0;
	text-align: center;
	width: 1.3em;
	max-width: 100%;
}


/* BODYMATTER */

/* Estilos generales */
h1 {
	color: #872662;
	font-family:"ShaftDV";
	font-size: 1.75em;
	font-weight: normal;
	margin: 1.5em 0 4em 0;
	text-align: center;
}
h1 + p {
	text-indent: 0;
}
p, li {
	font-family:"Chevin-Light";
	font-size: 1em;
	font-style: normal;
	font-weight: normal;
	margin: 1em 0 0 0;
	text-align: left;
	text-indent: 0;
}

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;
}
cite {
	display: inline;
	font-style: italic;
}
hr {
	border: none !important;
	height: 1em;
	margin: 0;
}
hr + p {
	text-indent: 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;
}

/* Listas */
ol {
	margin: .5em 0 1em 1em;
	padding: 0 0 0 1.25em;
}
ol li {
	margin: 1em 0;
}
ul {
	margin: .5em 0 1em 2em;
	padding: 0 0 0 1.25em;
}
li p {
	font-size: 1em;
	margin: 1em 0;
	text-indent: 0;
}

/* Figuras y captions */
div.figure {
	margin: 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 100%;
}
div.figure-50 {
	margin: 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 50%;
}
img {
	max-height: 100%;
	max-width: 100%;
	page-break-inside: avoid;
	text-align: center;
}
div.figcaption p {
	color:#5a2a27;
	font-size: 1em;
	font-style: italic;
	margin: 0;
	text-align: left;
	text-indent: 0;
}

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;
}
img.inline-exc {
	height: .8em;
	vertical-align: bottom;
}

/* BLOQUES */

/* Firmas */
div.signature {
	margin: 1em 0;
}
div.signature p {
	text-align: right;
}

/* PÁRRAFOS ESPECIALES */
p.asterisks {
	color: #872662;
	font-size: 1em;
	margin: .7em 0 .3em 0;
	text-align: center;
	text-indent: 0;
}
p.asterisks sup {
	font-size: 1em;
}
p.asterisks + p {
	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;
}

div.letter {
	border: 1px solid currentColor;
	margin: 1em 0;
	padding: 1em;
}
div.letter p {
	font-family:"desyrel";
	text-indent: 0;
}
div.letter p.salutation {
	margin-bottom: 1em;
}
div.letter p.valediction {
	margin-bottom: 1em;
}

span.name {
	font-family:"ShaftDV";
}
span.font02 {
	font-family:"CCDoohickey";
	font-size: 1.5em;
}
span.font02-Black {
	color: currentColor;
	font-family:"CCDoohickey";
	font-size: 1.5em;
}
span.font02-Small {
	color: #872662;
	font-family:"CCDoohickey";
	font-size: .85em;
}
span.font02-Grande {
	color: #872662;
	font-family:"CCDoohickey";
	font-size: 2.25em;
}
span.font02-Grande-Black {
	color: currentColor;
	font-family:"CCDoohickey";
	font-size: 2.25em;
}
span.font02-Super {
	color: #872662;
	font-family:"CCDoohickey";
	font-size: 3em;
}
span.font02-Super-Black {
	color: currentColor;
	font-family:"CCDoohickey";
	font-size: 3em;
}
span.dc {
	font-family:"Chevin";
}
span.dc-Black {
	color: currentColor;
	font-family:"Chevin";
}
span.dc-Grey {
	color: grey;
	font-family:"Chevin";
}
span.color {
	color: #872662;
}

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.fs1 { font-size: 1.06em; }
span.fs2 { font-size: 1.2em; }
span.fs3 { font-size: 1.3em; }
span.fs4 { font-size: 1.4em; }
span.fs5 { font-size: 1.5em; }
span.fs6 { font-size: 1.6em; }
span.fs7 { font-size: 1.7em; }

span.font02-1 { font-family:"CCDoohickey"; font-size: 1.5em; }
span.font02-2 { font-family:"CCDoohickey"; font-size: 1.7em; }
span.font02-3 { font-family:"CCDoohickey"; font-size: 1.8em; }
span.font02-4 { font-family:"CCDoohickey"; font-size: 1.9em; }
span.font02-5 { font-family:"CCDoohickey"; font-size: 2.0em; }
span.font02-6 { font-family:"CCDoohickey"; font-size: 2.1em; }
span.font02-7 { font-family:"CCDoohickey"; font-size: 2.2em; }
span.font02-8 { font-family:"CCDoohickey"; font-size: 2.3em; }
span.font02-9 { font-family:"CCDoohickey"; font-size: 2.4em; }
span.font02-10 { font-family:"CCDoohickey"; font-size: 2.5em; }

span.spell {
	font-family:"CCKnobblyKnees";
}

/* Colores */
.brown {
	color: #b16423;
}
.aqua {
	color: #70ae96;
}
.orange {
	color: #fbba22;
}
.green {
	color: #758340;
}
.green-dark {
	color: #476e5e;
}
.green-light {
	color: #3e9b55;
}
.green-turtle {
	color: #4c7e69;
}
.purple {
	color: #872662;
}
.blue {
	color: #5e87b0;
}
.blue-deep {
	color: #313280;
}
.yellow {
	color: #f6d50f;
}
.red {
	color: #e30613;
}
.violet {
	color: #6c68a9;
}
.grana {
	color: #8f1710;
}
.grey {
	color: #563324;
}
.pink {
	color: #f7bfd9;
}
.caqui {
	color: #99811d;
}

p.finis {
	font-family:"ShaftDV";
	font-size: 2em;
	margin-top: 2em;
	text-align: center;
	text-indent: 0;
}