﻿/** BASE **/

/* Márgenes */
body {
	font-family: Georgia, serif;
	margin: 0;
	padding: 0 20px;
}
body * {
	line-height: 1.5;
	max-width: 100%;
}

/* Control partición silábica */
#titlepage p,
#dedication p,
h1,
h2,
h3,
h4 {
	break-after: avoid;
	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 {
	height: 100%;
	margin: 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}

/* 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 img {
	text-align: left;
	width: 5em;
}

/* Portada */
#titlepage {
	margin: 2em 0 0 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
#titlepage p.author {
	font-size: 1em;
	font-style: normal;
	font-weight: bold;
	margin: 1.5em 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
#titlepage p.title {
	font-family: inherit;
	font-size: 1.6em;
	font-style: normal;
	font-weight: bold;
	margin: 3em 0 .5em 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
#titlepage p.subtitle {
	font-family: inherit;
	font-size: 1.2em;
	font-style: normal;
	font-weight: normal;
	margin: 0 0 2em 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
#titlepage div.publisher {
	margin: 12em auto 0;
	text-align: center;
	width: 6em;
}

/* Í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 a {
	color: #000;
	font-weight: normal;
	page-break-inside: avoid;
	text-decoration: none !important;
}

/* Sinopsis */
#summary * {
	color: #000;
	font-family: sans-serif;
}
#summary h1 {
	font-size: 1.2em;
	font-style: normal;
	font-weight: bold;
	margin: 1.5em 0 1em 0;
	text-align: center;
}
#summary p {
	margin: 0;
	text-align: justify;
	text-indent: 0;
}
#summary p + p {
	text-indent: 1em;
}

/* BODYMATTER */
h1 {
	font-family: serif;
	font-size: 1em;
	font-weight: bold;
	margin: 2em 0 1em 0;
	padding: 0;
	text-align: center;
}
h1 span.label {
	display: block;
	font-size: 1.5em;
	margin-bottom: 1em;
	text-decoration: underline;
}
h1 span.title {
	display: block;
	font-size: 1.1em;
}
p.byline {
	font-weight: bold;
	text-align: center;
	text-indent: 0;
}
#p03 h1 {
	display: block;
	font-size: 1.5em;
	margin-bottom: 1em;
	text-decoration: underline;	
}
#p03 h1 + p {
	break-before: always;
	page-break-before: always;
	padding-top: 6em;
}
h2 {
	font-family: serif;
	font-size: 1.3em;
	font-style: normal;
	font-weight: normal;
	margin: 1em 0 5em 0;
	padding: 0;
	text-align: center;
}
h2 span.label {
	text-decoration: underline;
}
h2 span.ordinal {
	display: block;
	font-size: 1.3em;
	margin: 0 auto 1em;
	width: 5em;
	border-bottom: 1px solid currentColor;
}
h2 span.title {
	display: block;
	font-weight: bold;
}
h3 {
	font-family: serif;
	font-size: 1.2em;
	font-style: normal;
	font-weight: bold;
	margin: 2em 0 1em 0;
	padding: 0;
	text-align: left;
}
h3 span.normal {
	font-weight: normal;
}
h4 {
	font-family: serif;
	font-size: 1.2em;
	font-style: italic;
	font-weight: normal;
	margin: 1.5em 0 .75em 0;
	padding: 0;
	text-align: left;
}
h4 i {
	font-style: normal;
}
hr + p,
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;
}

a {
	color: #00F;
	font-style: normal;
	font-weight: normal;
	text-decoration: none;
}
abbr {
	border: 0;
	text-decoration: none;
	white-space: nowrap;
}
cite {
	display: inline;
	font-style: italic;
}
hr {
	border: none !important;
	height: 1em;
	margin: 0;
	padding: 0;
}
img {
	margin: 0;
	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;
}
strong {
	font-style: italic;
	font-weight: bold;
}

/* Listas */
ol {
	margin: 1em 0 1em 0;
	padding: 0 0 0 1.5em;
}
ul {
	list-style: disc;
	margin: 1em 0;
	padding: 0 0 0 2.25em;
}
li {
	font-size: 1em;
	margin: 0;
	padding: 0;
	text-align: justify;
	text-indent: 0;
}
.lower-alpha {
	list-style: lower-alpha;
}
.lower-roman {
	list-style: lower-roman;
}
.upper-alpha {
	list-style: upper-alpha;
}
ul.none {
	list-style: none;
	margin: 1em 0;
}

/* Figuras y captions */
div.figure {
	margin: 1em 0;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 100%;
}
div.figure-75 {
	margin: 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 75%;
}
div.figure-50 {
	margin: 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 50%;
}
div.figure-30 {
	margin: 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 30%;
}
img {
	max-height: 80%;
	text-align: center;
}

div.figcaption {
	break-after: avoid;
	page-break-after: avoid;
	border-left: 1px solid currentColor;
}
div.figcaption p {
	font-size: 1em;
	font-style: italic;
	margin: 0;
	padding: 1em;
	text-align: left;
	text-indent: 0;
}
div.figcaption i {
	font-style: normal;
}

img.inline {
	display: inline;
	height: 1em;
	vertical-align: text-top;
	text-align: right;
}

/* Seudoversalitas */
span.sc {
	font-size: .75em;
}

/* Firmas */
div.signature {
	margin: 1em 0;
}
div.signature p {
	text-align: right;
}

/* Bloques */
blockquote {
	margin: 1em 2em;
}
blockquote p {
	font-size: .9em;
	font-style: italic;
	text-indent: 0;
}
blockquote i {
	font-style: normal;
}
p.attrib {
	font-size: .9em;
	font-style: italic;
	text-align: center;
	text-indent: 0;
}
p.attrib i,
p.attrib cite {
	font-style: normal;
}

div.epigraph {
	margin: 1.5em;
}
div.epigraph blockquote {
	margin: 1em 0;
}
div.epigraph blockquote p {
	text-align: left;
}
div.epigraph blockquote p.title {
	font-style: normal;
	margin-bottom: 1em;
}
div.epigraph p.attrib {
	font-size: .9em;
	font-style: normal;
	text-align: left;
	text-indent: 0;
}
div.epigraph p.attrib i,
div.epigraph p.attrib cite {
	font-style: italic;
}

/* Cajas */
div.box {
	border: 1px solid grey;
	margin: 1em 0;
	padding: 1em;
}
div.box ul {
	margin-top: 0;
	margin-bottom: 0;
}
div.box ul ul {
	margin-top: 0;
}
div.box p {
	text-indent: 0;
}
div.box p + ul,
div.box ul + p {
	margin-top: 1em;
}
div.box p.bridgehead {
	font-weight: bold;
}
div.box p.formula {
	margin-bottom: 0;
}

/* Otros */
p.center {
	text-align: center;
	text-indent: 0;
}
p.formula {
	margin: 1em 0;
	text-align: center;
	text-indent: 0;
}
p.note {
	font-size: .8em;
}
p.point {
	margin-top: 1em;
	text-indent: 0;
}
p.l2 {
	margin-left: 2.2em;
}
p.l4 {
	margin-left: 4.9em;
}
p.l4-f {
	margin-top: -1.5em;
	margin-left: 4.9em;
}
p.source {
	font-family: sans-serif;
	font-size: .8em;
	text-indent: 0;
}
p.caption {
	font-size: .9em;
	text-indent: 0;
}
p.credit {
	font-family: sans-serif;
	font-size: .65em;
	text-indent: 0;
}
p.right {
	text-align: right;
}
span.underline {
	text-decoration: underline;
}
span.line-through {
	text-decoration: line-through;
}

/* Bibliografía */
.bibliography ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.bibliography li {
	margin: 0 0 0 1em;
	text-indent: -1em;
}

/* Notas | Llamadas */
a.noteref {
	font-size: .7em;
	vertical-align: top;
}

/* Notas | Notas al pie */
div.footnote {
	margin: .6em 0 0 0;
	break-before: always;
	page-break-before: always;
	break-inside: avoid;
	page-break-inside: avoid;
}
div.footnote p {
	font-size: .8em;
	margin: 0 0 0 1.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: 1em;
}
div.footnote a.noteback + p {
	page-break-before: avoid;
}

/* Tablas anexo */
table {
	border-collapse: collapse;
	margin: 0 auto;
	width: 100%;
	max-width: 100%;
}
table.end {
	border-bottom: 2px solid currentColor;
	margin-bottom: 1em;
}
table.head {
	margin: 1em auto 0;
}
table p {
	font-family: sans-serif;
	font-size: .6em;
	text-indent: 0;
}
p.prev {
	font-weight: bold;
	text-align: right;
}
td.value p {
	text-align: right;
}
tr.lead td,
tr.lead th {
	border: 1px solid currentColor;
}
tr.lead td.sides {
	border-left: 2px hidden;
	border-right: 2px hidden;
}
td {
	border-top: 0; 
	border-bottom: 0; 
	border-left: 1px solid currentColor;
	border-right: 1px solid currentColor;
}
tr.total td {
	border-top: 1px solid currentColor;
}
tr.total td p.actual {
	font-weight: bold;
	text-align: right;
}
table.head {
	border: 1px solid currentColor;
	break-before: always;
	page-break-before: always;
}
table.head td.icon {
}
table.head td.icon img {
	margin: 0 auto;
	width: 3em;
}
table.head td.code p {
	font-weight: bold;
	border: 1px solid currentColor;
	padding: .2em;
}
table.head td.code,
table.head td.from,
table.head td.extract {
	border: 0;
}
table.head td.extract p {
	font-weight: bold;
	text-align: center;
}
table.head td.from p {
	text-align: right;
}
table.head td.from p + p {
	margin-top: 1em;
}
table.head td.from span.data {
	border: 1px solid currentColor;
	padding: .2em;
}
table.head td.meta p {
	text-align: right;
}
table.head td.meta p.filename {
	margin-top: 2em;
	font-size: .4em;
	text-align: center;
}
table.head td.person p {
	font-weight: bold;
	border: 1px solid currentColor;
	padding: .2em;
	width: 18em;
	height: 5em;
}

/* Tablas capítulo */
.chapter table {
	border: 1px solid currentColor;
	margin: 1em auto;
}
.chapter th {
	border: 1px solid currentColor;
	background: #e7e7e8;
}
.chapter th p {
	font-weight: bold;
	text-align: center;
}
.chapter td {
	border: 1px solid currentColor;
}
.chapter td.fill {
	height: 1em;
}
.chapter th.empty {
	border-left: 2px hidden;
	border-top: 2px hidden;
	background: transparent;
}

/* Posfacio */
#afterwords {
	margin-top: 6em;
}
#afterwords p {
	text-indent: 0;
}
#afterwords p + p {
	text-indent: 1em;
}
#afterwords p.center {
	margin: 1em 0;
}
#afterwords p.valediction {
	margin-top: 1em;
}