﻿/** BASE **/

/* Márgenes */
body {
	font-family: sans-serif;
	font-size: .9em;
	line-height: 1.5;
	margin: 0;
	padding: 0 20px;
}
body * {
	line-height: inherit;
	max-width: 100%;
}

/* Fuentes */
@font-face {
	font-family: Brandon;
	font-weight: bold;
	src:url('../fonts/Brandon_blk.otf');
}
@font-face {
	font-family: InkFree;
	src:url('../fonts/InkFree.ttf');
}
@font-face {
	font-family: InkFree;
	font-style: italic;
	src:url('../fonts/InkFreeItalic.ttf');
}
@font-face {
	font-family: InkFree;
	font-weight: bold;
	src:url('../fonts/InkFreeBold.ttf');
}
@font-face {
	font-family: InkFree;
	font-style: italic;
	font-weight: bold;
	src:url('../fonts/InkFreeBoldItalic.ttf');
}
@font-face {
	font-family: PWSmallIcons;
	src:url('../fonts/PWSmallIcons.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 {
	margin: 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
img.cover {
	height: 100%;
}

/* Portadilla */
#titlepage {
	page-break-inside: avoid;
	margin: 3em 0 0 0;
}
#titlepage * {
	font-family: sans-serif;
	font-weight: normal;
	text-indent: 0;
}
#titlepage p.author {
	font-family: Brandon;
	font-size: 1.75em;
	font-style: normal;
	font-weight: normal;
	line-height: 1.2;
	margin: .5em 0 0 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
#titlepage p.title {
	font-family: Brandon;
	font-size: 3.5em;
	font-style: normal;
	font-weight: bold;
	line-height: 1;
	margin: 1em 0 0 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
#titlepage p.subtitle {
	font-size: .9em;
	font-style: normal;
	font-weight: normal;
	margin: .5em 0 0 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
#titlepage div.publisher {
	margin: 9em auto 0;
	padding: 0;
	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;
}

/* Epígrafe */
#epigraph {
	margin-top: 3em;
	margin-left: 3em;
}
#epigraph blockquote {
	margin: 0 0 0 0;
}
#epigraph blockquote p {
	font-family: inherit;
	font-size: .9em;
	font-style: italic;
	font-weight: normal;
	text-align: right;
	text-indent: 0;
}
#epigraph p.attrib {
	font-size: .9em;
	margin-top: 1em;
	text-align: right;
}

/* Dedicatoria */
#dedication {
	margin-top: 6em;
}
#dedication p {
	font-family: InkFree;
	font-size: 1.1em;
	font-weight: bold;
	text-align: right;
}

/* Sinopsis */
#summary * {
	font-family: serif;
}
#summary h1 {
	border: 0;
	font-size: 1.3em;
	font-style: normal;
	font-weight: bold;
	margin: 2em 0 1em;
	padding: 0;
	text-align: center;
}
#summary p {
	font-size: 1.1em;
	margin: 0;
	text-align: justify;
}
#summary h1 + p {
	text-indent: 0;
}
#summary p + p {
	text-indent: 1em;
}

/* Índice */
#toc h1 {
	font-family: sans-serif;
	font-size: 1.2em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.2;
	margin: 2em 0 5em 0;
	text-align: left;
	text-indent: 0;
}
#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;
}

/* BODYMATTER */

/* Estilos generales */
h1 {
	font-family: Brandon;
	font-size: 2em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.5;
	margin: 2em 0 4em 0;
	text-align: center;
	text-indent: 0;
}
h1 span.ordinal {
	display: block;
	page-break-after: avoid;
}
h1 span.subtitle {
	display: block;
	font-size: .9em;
	margin-top: 2em;
	margin-bottom: 6em;
	font-family: InkFree;
	font-weight: normal;
	
}
h2 {
	font-family: sans-serif;
	font-size: 1.3em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.2;
	margin: 2em 0;
	text-align: center;
	text-indent: 0;
}
h3 {
	font-family: sans-serif;
	font-size: 1.2em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.2;
	margin: 2em 0 1em 0;
	text-align: left;
	text-indent: 0;
}
h4 {
	font-family: sans-serif;
	font-size: 1em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.2;
	margin: 2em 0 0 0;
	text-align: left;
	text-indent: 0;
}
h1 + p,
h2 + p,
h3 + p,
h4 + p {
	text-indent: 0;
}

p {
	font-size: 1em;
	margin: 0 0 0 0;
	padding: 0;
	text-align: justify;
	text-indent: 1em;
}
li {
	font-size: 1em;
	margin: 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}

a {
	color: #00F;
	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 !important;
	height: 1em;
	margin: .25em 0;
}
hr + p {
	text-indent: 0;
}
hr.light + p {
	text-indent: 1em;
}
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: 1em 0;
	padding: 0 0 0 1.5em;
}
ul {
	list-style: disc;
	margin: 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: 1em;
}
.lower-alpha {
	list-style: lower-alpha;
}
.upper-alpha {
	list-style: upper-alpha;
}
.lower-roman {
	list-style: lower-roman;
	margin-left: 1em;
}
.upper-roman {
	list-style: upper-roman;
}
ul.none {
	list-style: none;
	margin: 1em 0 1em 0;
	padding: 0;
}
ol + p,
ul + p {
	text-indent: 1em;
}
ul ul,
ul.second {
	list-style: circle;
}
ul.second ul {
	list-style: disc;
}

/* Figuras y captions */
div.figure {
	margin: 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 100%;
}
div.figure-20 {
	margin: 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 20%;
}
div.figure-30 {
	margin: 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 30%;
}
div.figure-30-r {
	margin: 1em 0 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%;
}
div.figure-50-l {
	margin: 1em 0;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: left;
	width: 50%;
}
div.figure-50-r {
	margin: 1em 0 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: right;
	width: 50%;
}
div.figure-75 {
	margin: 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 75%;
}

div.figure p.title {
	font-family: sans-serif;
	font-weight: bold;
	text-align: center;
	text-indent: 0;
}

div.icon {
	margin: 1em 0;
	break-inside: avoid;
	page-break-inside: avoid;
	width: 3em;
}

div.figcaption {
	margin: 0 0 1.5em 0;
}
div.figcaption p {
	font-family: sans-serif;
	font-size: .7em;
	font-style: normal;
	margin: 0;
	text-align: center;
	text-indent: 0;
}

/* Tablas */
table {
	border-top: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	border-left: 2px hidden;
	border-right: 2px hidden;
	border-collapse: collapse;
	margin: 1em auto;
}
td {
	border: 1px solid currentColor;
	border-collapse: collapse;
	padding: .2em;
}
table p {
	font-family: sans-serif;
	font-size: .7em;
}
table p.cemter {
	text-align: center;
} 
table p.comment {
	font-family: serif;
	font-style: italic;
	text-align: center;
} 
table.cook {
	margin: 1em 0;
}
table.cook img {
	width: 2em;
}
table + p {
	text-indent: 0;
}

/* Seudoversalitas */
span.sc {
	font-size: .8em;
}

/* Firmas */
div.signature {
	margin: 1em 0;
}
div.signature p {
	font-style: normal;
	text-align: right;
	text-indent: 0;
}

/* Otros */
blockquote {
	margin: 1em 0 1em 1em;
}
blockquote p {
	font-family: inherit;
	font-size: .9em;
	font-weight: normal;
	text-align: justify;
	text-indent: 0;
}
blockquote li {
	font-size: .9em;
}
blockquote li p {
	font-size: 1em;
}
blockquote p + p {
	text-indent: 1em;
}

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,
div.footnote + h2 {
	page-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 li {
	font-size: .8em;
}
div.footnote li p {
	font-size: 1em;
}
div.footnote p + p,
div.footnote ol + p,
div.footnote ul + p,
div.footnote li p,
div.footnote blockquote + p,
div.footnote div + p {
	text-indent: 1em;
}
div.footnote blockquote {
	margin-top: 0;
}
div.footnote blockquote p + p {
	text-indent: 1em;
}
div.footnote li {
	font-size: .8em;
	margin: 0 0 0 2.5em;
}
div.footnote a.noteback {
	color: #c70927;
	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;
}

/* Propios */
.fake {
	list-style: none;
	margin: 1em 0;
	padding: 0;
}
.fake li {
	font-family: InkFree;
	font-size: 1.4em;
	margin: .5em 0;
	text-align: left;
}
.fake li span.symbol {
	display: inline;
	float: left;
	font-family: PWSmallIcons;
	font-style: normal;
	line-height: 1.5;
	margin: 0;
	page-break-after: avoid;
	text-align: right;
	width: .5em;
	vertical-align: baseline;
}
.fake li span.symbol + span.text {
	margin-top: 0;
	page-break-before: avoid;
}
.fake li span.text {
	display: block;
	margin-left: 1.2em;
}

p.first {
	text-indent: 0;
}

span.hand {
	font-family: InkFree;
	font-size: 1.1em;
	font-weight: bold;
}

blockquote.letter {
	border: 1px solid currentColor;
	margin: 2em 0;
	padding: 1em 2em;
}
blockquote.letter p {
	font-family: InkFree;
	font-size: 1.1em;
	font-weight: bold;
	text-indent: 0;
}

div.quote {
	border: 5px double currentColor;
	margin: 2em 0;
	padding: 0 2em;
}
div.quote p {
	margin-top: 1em;
	text-align: center;
	text-indent: 0;
	font-size: 1.3em;
}
div.quote p.ornato-l {
	font-size: 1em;
	margin: .3em 0 .3em 0;
	width: 2em;
}
div.quote p.ornato-l + p {
	margin-bottom: 1em;
}
div.quote p.ornato-r {
	font-size: 1em;
	margin: .3em 0 .3em auto;
	width: 2em;
}
div.quote p.ornato-r + p {
	margin-bottom: 1em;
}
div.quote p.ornato-r2 {
	margin: .3em 0 .3em auto;
	width: 3em;
}
div.quote p.ornato-r2 + p {
	margin-bottom: 1em;
}

p.motto {
	font-family: InkFree;
	font-size: 1.1em;
	font-weight: bold;
	text-align: center;
	text-indent: 0;
	margin-top: 2em;
}

p.ornato,
p.ornato-small {
	margin: 2em auto;
	width: 6em;
	text-indent: 0;
}
p.ornato + p,
p.ornato-small + p {
	text-indent: 0;
}

p.ornato-c {
	margin: .3em auto;
	width: 2em;
	text-indent: 0;
}
div.header + p.ornato-c {
	page-break-before: always;
	padding-top: 2em;
}
p.ornato-c + p.first {
	margin-top: 4em;
	text-indent: 0;
}

p.ornato-c2 {
	margin: .3em auto;
	width: 3em;
	text-indent: 0;
}
div.header + p.ornato-c2 {
	page-break-before: always;
	padding-top: 2em;
}
p.ornato-c2 + p.first {
	margin-top: 4em;
	text-indent: 0;
}

p.stanza {
	font-family: InkFree;
	font-size: 1.2em;
	text-align: center;
	text-indent: 0;
}
span.verse {
	display: block;
}
p.noindent {
	text-indent: 0;
}

ol.hand li {
	font-family: InkFree;
	font-size: 1.3em;
	font-weight: normal;
	margin: .5em 0;
}

blockquote.hand {
	margin: 1em;
}
blockquote.hand p {
	font-family: InkFree;
	font-size: 1.1em;
	font-weight: bold;
	text-indent: 0;
}
blockquote.hand-normal {
	margin: 1em;
}
blockquote.hand-normal p {
	font-family: InkFree;
	font-size: 1.1em;
	font-weight: normal;
	text-indent: 0;
}

p.in-memoriam {
	margin-top: 2em;
}