﻿/** 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%;
}

/* Control partición silábica */
#titlepage p,
#dedication p,
h1,
h2,
h3,
h4 {
	page-break-after: avoid;
	hyphens: none;
	adobe-hyphenate: none;
	-moz-hyphens: none;
	-webkit-hyphens: none;
	-epub-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 {
	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: inherit;
	line-height: 1.2;
}
#titlepage p.title {
	font-size: 1.5em;
	font-style: normal;
	font-weight: normal;
	margin: 2.5em 0 1em 0;
	padding: 0 0 0 0;
	text-align: center;
	text-indent: 0;
}
#titlepage p.subtitle {
	font-size: 1.5em;
	font-style: normal;
	font-weight: normal;
	margin: 1.5em 0;
	padding: 0 0 0 0;
	text-align: center;
	text-indent: 0;
}
#titlepage p.title span.big {
	color: #db854a;
	display: block;
	font-family: serif;
	font-size: 3em;
}
#titlepage p.author {
	font-family: sans-serif;
	font-style: normal;
	font-weight: normal;
	font-size: 1.1em;
	margin: 3em 0 1.2em;
	padding: 0 0 0 0;
	text-align: center;
	text-indent: 0;
}
#titlepage p.trl {
	font-family: serif;
	font-style: normal;
	font-weight: normal;
	font-size: 1.1em;
	margin: 2em 0 1.2em;
	padding: 0 0 0 0;
	text-align: center;
	text-indent: 0;
}
#titlepage div.publisher {
	margin: 6em auto 0 auto;
	padding: 0;
	text-align: center;
	text-indent: 0;
	width: 6em;
}

/* 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 {
	color: #000;
	font-size: 1.1em;
	font-style: normal;
	font-weight: bold;
	margin: 2em 0 1em;
	padding: 0;
	text-align: center;
}
#summary p {
	font-size: .9em;
	margin: 0;
	text-align: justify;
}
#summary h1 + p {
	text-indent: 0;
}
#summary p + p {
	text-indent: 1em;
}
#summary hr + p {
	text-indent: 1em;
}

/* Índice */
#toc h1 {
	color: #001;
	font-family: inherit;
}
#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: 12em;
}
#dedication p {
	font-family: inherit;
	font-style: normal;
	text-align: left;
	text-indent: 0;
}
#dedication img {
	width: 2em;
}

/* BODYMATTER */

/* Estilos generales */
h1 {
	color: #5e688c;
	font-family: sans-serif;
	font-size: 2em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.2;
	margin: 1.5em 0 1em;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
h1 span.byline {
	display: block;
	font-size: .5em;
}
h1 span.byline i {
	font-family: serif;
}
h2 {
	color: #5e688c;
	font-family: sans-serif;
	font-size: 1.5em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.2;
	margin: 2em 0 1em;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
h2 img {
	width: 1em;
	vertical-align: text-bottom;
}

p {
	font-size: 1em;
	font-weight: normal;
	margin: 0 0 0 0;
	padding: 0;
	text-align: justify;
	text-indent: 1em;
}
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: 0;
}
hr.light + p {
	text-indent: 1em;
}
img {
	margin: 0;
	max-height: 80%;
	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 0;
	padding: 0 0 0 1.25em;
}
li {
	font-size: 1em;
	margin: 0;
	padding: 0;
	text-align: justify;
	text-indent: 0;
}
li p {
	font-size: 1em;
	margin: 0;
	text-indent: 0;
}
.lower-alpha {
	list-style: lower-alpha;
	margin-left: 1em;
}
.upper-alpha {
	list-style: upper-alpha;
}
.square {
	list-style: square;
}
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 {
	clear: both;
	list-style: none;
	margin: 1em 0 1em 1em;
	padding: 0;
}
.fake li {
	margin: 1em 0;
}
.fake li span.symbol {
	display: inline;
	clear: left;
	float: left;
	font-family: inherit;
	font-style: normal;
	font-weight: normal;
	line-height: 1.5;
	margin: 0;
	page-break-after: avoid;
	text-align: right;
	width: .8em;
}
.fake li span.symbol + span.text {
	margin-top: 0;
	page-break-before: avoid;
}
.fake li span.text {
	display: block;
	margin-left: 1.2em;
}

ol + p,
ul + p {
	text-indent: 0;
}

/* Figuras y captions */
div.header {
	margin: 0 auto;
	page-break-inside: avoid;
	text-align: center;
	width: 100%;
}
div.figure {
	margin: 1em auto;
	page-break-inside: avoid;
	text-align: center;
	width: 100%;
}
img.w30 { max-width: 30%; }
img.w50 { max-width: 50%; }
img.w75 { max-width: 75%; }


div.figcaption p {
	font-family: inherit;
	font-size: .7em;
	font-style: normal;
	font-weight: normal;
	text-align: left;
	text-indent: 0;
}

div.separator {
	margin: 0;
	break-before: always;
	page-break-before: always;
	-webkit-column-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: 1em;
}

/* Seudoversalitas */
span.sc {
	font-size: .8em;
}

/* Firmas */
div.signature {
	break-inside: avoid;
	page-break-inside: avoid;
	margin: 2em 0 1em 0;
}
div.signature p {
	font-family: inherit;
	font-weight: normal;
	margin: 0;
	text-align: right;
	text-indent: 0;
}

/* Citas de bloque */
blockquote {
	margin: 1em 0 1em 1em;
}
blockquote p {
	font-size: 1em;
	font-weight: normal;
	margin: 0;
	text-indent: 0;
}
blockquote p + p {
	text-indent: 1em;
}
blockquote + p {
	text-indent: 0;
}
blockquote p.attrib {
	font-size: 1.2em;
	font-weight: normal;
	margin: 0;
	text-align: left;
	text-indent: 0;
}

/* 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.footnotes h2 {
	margin: 2em 0 1em 0;
}
div.footnote {
	margin: .6em 0 0 0;
	break-inside: avoid;
	page-break-inside: avoid;
}
div.footnote + div.footnote {
	page-break-before: always;
	-webkit-column-break-before: always;
	padding-top: 1em;
}
div.footnote p {
	font-size: .8em;
	margin: 0 0 0 2.5em;
	overflow: hidden;
	text-indent: 0;
}
div.footnote 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.footnote a.noteback + p {
	page-break-before: avoid;
}

/* Bibliografía */
#bibliography ul {
	list-style: none;
	margin: 1em 0;
	padding: 0;
}
#bibliography li {
	margin-top: 0;
	margin-bottom: 0;
	margin-left: 1em;
	text-indent: -1em;
}

/* Propios */
div.epigraph {
	margin: 1em 0 1em 6em;
}
div.epigraph blockquote {
	margin: 0;
}
div.epigraph blockquote p {
	font-style: italic;
	text-align: right;
}
div.epigraph + p {
	text-indent: 0;
}

div.dialogue {
	margin: 1em 0;
}
div.dialogue + p {
	text-indent: 0;
}

div.sms {
	margin: 2em 0;
}
div.sms p {
	font-family: sans-serif;
	text-indent: 0;
}
div.sms + p {
	text-indent: 0;
}
div.sms-out {
	border: 5px solid #ddeef1;
	margin: 1em 0;
	padding: .5em;
	width: 25em;
}
div.sms-in {
	border: 5px solid #ececec;
	margin: 1em 0;
	padding: .5em;
	width: 25em;
}
div.sms p.time {
	color: grey;
	font-size: .9em;
	text-align: right;
}
div.sms p.time img {
	width: 1em;
}
div.sms p.loading img {
	width: 2em;
}
div.sms p.name {
	font-weight: bold;
}

div.lead {
	border: 3px solid #5e688c;
	padding: 1em;
}

span.label {
	color: #5e688c;
	font-family: sans-serif;
	font-size: .9em;
	font-weight: bold;
}

div.quote {
	border: 10px solid #ddeef1;
	margin: 1em 0;
	padding: 1em;
}
div.quote img {
	width: 1.5em;
}
div.quote p {
	color: #5e688c;
	font-family: sans-serif;
	font-size: 1.5em;
	font-weight: bold;
	text-align: left;
	text-indent: 0;
}

span.line-through {
	text-decoration: line-through;
}

blockquote p.salutation + p {
	text-indent: 0;
}

table {
	border: 1px solid currentColor;
	border-collapse: collapse;
	margin: 1em 0;
	width: 100%;
}
th, td {
	border: 1px solid currentColor;
	border-collapse: collapse;
	padding: .3em;
}
table p {
	text-indent: 0;
}
img.emojix3 {
	width: 3em;
	vertical-align: text-bottom;
}

div.sms p.center {
	font-style: italic;
	text-align: center;
}

div.mottos {
	margin: 1em 0;
}
div.mottos p {
	text-indent: 0;
}
div.mottos + p {
	text-indent: 0;
}
div.mottos p.motto {
	margin: 1em 0 0 0;
}
div.mottos span.character {
	font-family: sans-serif;
	font-size: .9em;
	font-weight: bold;
}
div.figure + p {
	text-indent: 0;
}

div.card {
	border: 1px solid currentColor;
	margin: 1em 4em;
	padding: 1em;
}
div.card p {
	font-style: italic;
	text-align: center;
	text-indent: 0;
}
div.card + p {
	text-indent: 0;
}

p.valediction {
	margin-top: 1em;
}

p.number {
	color: #5e688c;
	font-family: sans-serif;
	font-weight: bold;
	margin: 2em 0 0 0;
}
#c0704 p {
	font-family: sans-serif;
	font-size: .9em;
	text-indent: 0;
}