﻿/** BASE **/

/* Márgenes */
body {
	font-family: serif;
	font-size: 1em;
	margin: 0;
	padding: 0 20px;
}
body * {
	box-sizing: border-box;
	object-fit: contain;
	line-height: 1.5;
	max-width: 100%;
}

@font-face {
	font-family: Hitchcock;
	src:url('../fonts/Hitchcock.ttf');
}
@font-face {
	font-family: DoubleBass;
	src:url('../fonts/DoubleBass-Regular-trial.ttf');
}
@font-face {
	font-family: LaTribune;
	src:url('../fonts/LaTribuneCP.otf');
}
@font-face {
	font-family: DKLemonYellowSun;
	src:url('../fonts/DKLemonYellowSun.otf');
}
@font-face {
	font-family: FiftiesMovies;
	src:url('../fonts/FiftiesMovies.ttf');
}
@font-face {
	font-family: Bodoni;
	src:url('../fonts/BodoniSvtyTwoITCTT-Book-01.ttf');
}

/* Control partición silábica */
#titlepage p,
#dedication p,
h1,
h2,
h3,
h4 {
	page-break-after: avoid;
	hyphens: auto;
	adobe-hyphenate: auto;
	-moz-hyphens: auto;
	-webkit-hyphens: auto;
	-epub-hyphens: auto;
}
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 {
	height: 100%;
	margin: 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}

/* Portadilla */
#titlepage {
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: left;
}
#titlepage * {
	font-family: Hitchcock;
	line-height: 1.2;
}
#titlepage p.title {
	color: #b8171d;
	font-size: 2.5em;
	font-style: normal;
	font-weight: normal;
	margin: 2.5em 0 0 0;
	padding: 0 0 0 0;
	text-align: center;
	text-indent: 0;
}
#titlepage p.subtitle {
	font-size: 1.8em;
	font-style: normal;
	font-weight: normal;
	margin: 0 0 2.5em 0;
	padding: 0 0 0 0;
	text-align: center;
	text-indent: 0;
}
#titlepage p.author {
	font-style: normal;
	font-weight: normal;
	font-size: 1.3em;
	margin: 0;
	padding: 0 0 0 0;
	text-align: center;
	text-indent: 0;
}
#titlepage div.publisher {
	margin: 10em auto 0 auto;
	padding: 0;
	text-align: center;
	text-indent: 0;
	width: 4em;
}

/* Créditos */
#copyright-page {
	margin: 4em 2em 0 0;
}
#copyright-page div + div {
	margin: 1em 0 0 0;
}
#copyright-page p {
	font-size: .8em;
	margin: 0;
	text-align: left;
	text-indent: 0;
}
#copyright-page div.figure {
	margin: 1em 0;
	width: 8em;
}

/* Sinopsis */
#summary * {
	font-family: sans-serif;
}
#summary h1 {
	font-size: 1.2em;
	font-style: normal;
	font-weight: bold;
	padding: 0;
	text-align: center;
}
#summary p {
	margin: 0;
	text-align: justify;
}
#summary h1 + p {
	text-indent: 0;
}
#summary p + p {
	text-indent: 1em;
}
#summary hr + p {
	text-indent: 0;
}

/* Índice */
#toc h1 {
	font-family: DoubleBass;
}
#toc ol {
	list-style-type: none !important;
	margin: 1em 0;
	padding: 0;
}
#toc li {
	font-size: 1em;
	margin: 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 a {
	font-weight: normal;
	page-break-inside: avoid;
	text-decoration: none !important;
}

/* Dedicatoria */
#dedication {
	margin-top: 6em;
	margin-left: 6em;
}
#dedication p {
	font-family: inherit;
	font-style: normal;
	text-align: right;
	text-indent: 0;
}
#dedication p.attrib {
	margin-top: 2em;
	font-style: normal;
}

/* BODYMATTER */

/* Estilos generales */
h1 {
	font-family: sans-serif;
	font-size: 2.2em;
	font-style: normal;
	font-weight: normal;
	line-height: 1.2;
	margin: 1.2em 0 2.2em;
	text-align: center;
	text-indent: 0;
}
h2 {
	font-size: 1.8em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.2;
	margin: 1em 0 2.5em 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
h2 span.subtitle {
	display: block;
	font-size: .6em;
	font-weight: normal;
}
h3 {
	font-size: 1.2em;
	margin: 1em 0 0 0;
	text-align: left;
	text-indent: 0;
}
h4 {
	font-size: 1em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.2;
	margin: 1.5em 0 1em 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}

p {
	font-size: 1em;
	font-weight: normal;
	margin: 1em 0 0 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
h1 + p,
h2 + p,
h3 + p,
h4 + p {
	text-indent: 0;
}

a {
	font-family: inherit;
	font-weight: bold;
	text-decoration: none;
}
abbr {
	border: 0;
	text-decoration: none;
	white-space: nowrap;
}
i cite {
	font-style: normal;
}
cite {
	display: inline;
	font-style: italic;
}
hr {
	border: none;
	height: .5em;
	margin: .25em 0;
}
hr + p {
	text-indent: 1em;
}
hr.light + p {
	text-indent: 1em;
}
img {
	margin: 0;
	max-height: 100%;
	max-width: 100%;
	padding: 0;
}
@supports (max-height: 100vh) {
	img {
		max-height: 100vh;
	}
}
q {
	font-style: italic;
}
q i {
	font-style: normal;
}
q:before {
	content: "";
}
q:after {
	content: "";
}
sub,
sup {
	font-size: .7em;
}

/* Listas */
ol {
	margin: 1em 0 1em 0;
	padding: 0 0 0 1.25em;
}
ul {
	list-style: disc;
	margin: 1em 0 1em 1em;
	padding: 0 0 0 1.25em;
}
li {
	font-size: 1em;
	margin: 1em 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
li p {
	font-family: sans-serif;
	font-size: 1em;
	margin: 0;
	text-indent: 0;
}
.lower-alpha {
	list-style: lower-alpha;
	margin-left: 1em;
}
.upper-alpha {
	list-style: upper-alpha;
}
ul.none {
	list-style: none;
	margin: 1em 0;
	padding: 0;
}
ul.none li {
	font-family: inherit;
	font-style: normal;
	font-weight: 200;
	margin-left: 1em;
	text-align: left;
	text-indent: -1em;	
}

.fake {
	list-style: none;
	margin: 0;
	padding: 0;
}
.fake li span.number {
	display: inline;
	float: left;
	font-family: inherit;
	font-style: normal;
	font-weight: 600;
	line-height: 1.8;
	margin: 0;
	page-break-after: avoid;
	text-align: right;
	width: 1em;
}
.fake li span.number + span.text {
	margin-top: 0;
	page-break-before: avoid;
}
.fake li span.text {
	display: block;
	margin-left: 1.2em;
}
.fake li span.text span.label {
	font-family: inherit;
	font-style: normal;
	font-weight: 600;
}
ol.bold li {
	font-family: inherit;
	font-style: normal;
	font-weight: 600;
}
ol.big li {
	/* color: #ff865e; */
	font-size: 1.5em;
}

/* Figuras y captions */
div.figure {
	margin: 1em auto;
	page-break-inside: avoid;
	text-align: center;
	width: 100%;
}
div.figure-l {
	margin: 1em 0;
}
div.figure-75 {
	margin: 1em auto;
	page-break-inside: avoid;
	text-align: center;
	width: 75%;
}
div.figure-50 {
	margin: 1em auto;
	page-break-inside: avoid;
	text-align: center;
	width: 50%;
}
div.figure-30 {
	margin: 1em auto;
	text-align: center;
	width: 30%;
}
div.figure-10 {
	margin: 1em auto;
	text-align: center;
	width: 20%;
}
div.figure-10-r {
	margin: 1em 0 1em auto;
	text-align: center;
	width: 15%;
}
div.figure-30-l {
	margin: 1em 0 1em 0;
	text-align: center;
	width: 30%;
}
div.figure-30-r {
	margin: 1em 0 1em auto;
	text-align: center;
	width: 30%;
}
div.figure-50-l {
	margin: 1em 0 1em 0;
	text-align: center;
	width: 50%;
}
div.figure-50-r {
	margin: 1em 0 1em auto;
	text-align: center;
	width: 50%;
}
div.figure-75-l {
	margin: 1em 0 1em 0;
	text-align: center;
	width: 75%;
}
div.figure-75-r {
	margin: 1em 0 1em auto;
	text-align: center;
	width: 75%;
}


div.figcaption p {
	font-family: inherit;
	font-size: .7em;
	font-style: normal;
	font-weight: normal;
	text-align: left;
	text-indent: 0;
}

div.icon {
	margin: 1em 0 1em auto;
	page-break-inside: avoid;
	text-align: center;
	width: 4em;
	max-width: 100%;
}
div.icon img {
	max-height: 80%;
	page-break-inside: avoid;
	text-align: center;
	width: auto;
}

div.separator {
	margin: 0;
	break-before: always;
	page-break-before: always;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 100%;
}
div.separator img {
	max-height: 100%;
	text-align: center;
}

img.inline {
	height: 3em;
}

/* Seudoversalitas */
span.sc {
	font-size: .8em;
}

/* Firmas */
div.signature {
	break-inside: avoid;
	page-break-inside: avoid;
	margin: 1em 0 1em 1em;
}
div.signature p {
	font-family: inherit;
	font-weight: bold;
	margin: 0;
	text-align: right;
	text-indent: 0;
}
div.signature p.data {
	font-style: italic;
	font-size: .7em;
}

/* Citas de bloque */
blockquote {
	margin: 1em 1.2em;
}
blockquote p {
	font-size: .9em;
	font-style: normal;
	text-align: left;
	text-indent: 0;
}
blockquote p i,
blockquote p a.noteref {
	font-style: normal;
}

/* Poemas */
.poem {
	margin: 1em 3em;
}
.stanza {
	margin: 1em 0;
	text-indent: 0;
}
.verse {
	display: block;
	margin-left: 1em;
	text-indent: -1em;
}

/* Otros */
p.first {
	text-indent: 0;
}
span.underline {
	text-decoration: underline;
}

/* Notas | Llamadas */
a.noteref {
	font-size: .7em;
	vertical-align: top;
}

/* Notas | Notas al pie */
div.endnotes h2 {
	margin: 2em 0 1em 0;
}
div.endnote {
	margin: .6em 0 0 0;
	break-inside: avoid;
	page-break-inside: avoid;
}
div.endnote p {
	font-size: .8em;
	margin: 0 0 0 2.5em;
	overflow: hidden;
	text-indent: 0;
}
div.endnote a.noteback {
	display: inline;
	float: left;
	clear: left;
	font-size: .8em;
	font-style: normal;
	margin: 0;
	padding: 0 .25em 0 0;
	page-break-after: avoid;
	text-align: right;
	vertical-align: inherit;
	width: 2em;
}
div.endnote a.noteback + p {
	page-break-before: avoid;
}

/* Propios */
#foreword h1 {
	font-family: DoubleBass;
	color: #accbd3;
}

div.epigraph {
	padding-top: 6em;
}
div.epigraph blockquote {
	margin: 1em 0;
}
div.epigraph p {
	font-size: 1.2em;
	text-align: left;
}
div.epigraph p.attrib {
	text-align: left;
}
p.first {
	page-break-before: always;
	padding-top: 1em;
}
div.subchapter {
	page-break-before: always;
}
#c02 h2 {
	font-family: Hitchcock;
	font-weight: normal;
	font-size: 2.5em;
	text-align: center;
	margin-bottom: 1em;
}
#c0201 h2 {
	color: #dc2023;
}
#c0203 h2 {
	color: #e93b7e;
}
#c0204 h2 {
	color: #106186;
}
#c0205 h2 {
	color: #db2423;
}
#c0206 h2 {
	color: #cf9a17;
}
#c0207 h2 {
	color: #0370ba;
}
#c0209 h2 {
	color: #e8aa99;
}
#c0212 h2 {
	color: #8b9977;
}
#c0214 h2 {
	color: #bdd0d3;
}
#c0301 h2 {
	font-family: LaTribune;
	color: #5a9195;
	font-size: 4em;
	margin-bottom: .7em;
}
#c0302 h2 {
	font-family: DKLemonYellowSun;
	color: #bdd38f;
	font-size: 3.4em;
	margin-bottom: .8em;
}
#c0305 h2 {
	font-family: Hitchcock;
	font-size: 3em;
	margin-bottom: .8em;
}
#c0305 h2 span.red {
	color: #d04848;
}
#c0305 h2 span.blue {
	color: #cfe0e9;
}
#c04 h2 {
	font-family: FiftiesMovies;
	font-size: 2.5em;
	margin-bottom: .9em;
}
#c0411 h2 {
	color: #a33b37;
}
#c0412 h2 {
	color: #a8d3d9;
}
#c0413 h2 {
	color: #006fa8;
}
#c0416 h2 {
	color: #a7b9ae;
}
#c0417 h2 {
	color: #abbc29;
}
#c0418 h2 {
	color: #04b2c9;
}
#c0419 h2 {
	color: #bc201e;
}
#c05 h2 {
	font-family: Bodoni;
	font-size: 2.5em;
	margin-bottom: .9em;
}
#bibliography h1 {
	font-family: serif;
	font-size: 1em;
	font-weight: bold;
	text-align: left;
	margin: 2em 0 1em 0;
}
#bibliography ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
#bibliography li {
	margin: 0 0 0 1em;
	text-indent: -1em;
}