﻿/** BASE **/

/* Márgenes */
body {
	font-family: Baskerville, serif;
	margin: 0;
	padding: 0 20px;
}

/* 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;
}
p, li, td, dt, dd {
	-webkit-hyphenate-limit-before: 3;
	-webkit-hyphenate-limit-after: 1;
	-webkit-hyphenate-limit-lines: 2;
	orphans: 2;
	widows: 2;
}

/* Fuentes integradas */
@font-face {
	font-family: AlternateGothic;
	src:url('../fonts/AlternateGothicNo2BT-Regular.ttf');
}
@font-face {
	font-family: TradeGothic;
	font-style: normal;
	font-weight: bold;
	src:url('../fonts/TradeGothic-Bold.otf');
}
@font-face {
	font-family: TradeGothic;
	font-style: normal;
	font-weight: normal;
	src:url('../fonts/TradeGothicLTStd.otf');
}
@font-face {
	font-family: TradeGothic;
	font-style: italic;
	font-weight: bold;
	src:url('../fonts/TradeGothic-BoldOblique.otf');
}

/** 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 div.figure {
	text-align: left;
}
#copyright-page img {
	text-align: left;
	width: 5em;
}

/* Portada */
#titlepage {
	margin: 6em 0 0 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
#titlepage p {
	font-family: AlternateGothic;
}
#titlepage p.author {
	color: #e75f28;
	font-size: 2em;
	font-style: normal;
	font-weight: normal;
	margin: 8em 0 0 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
#titlepage p.title {
	font-size: 5em;
	font-style: normal;
	font-weight: normal;
	margin: 0 0 0 .94em;
	padding: 0;
	text-align: left;
	text-indent: -.94em;
}
#titlepage p.subtitle {
	color: #e75f28;
	font-size: 2em;
	font-style: normal;
	font-weight: normal;
	margin: 0 0 0 2.5em;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
#titlepage div.publisher {
	margin-top: 1em;
	text-align: left;
}
#titlepage div.publisher img {
	width: 4em;
	text-align: center;
}

/* Í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;
	text-align: center;
}
#summary p {
	margin: 0;
	text-align: justify;
	text-indent: 0;
}
#summary p + p {
	text-indent: 1em;
}

/* Dedicatoria */
#dedication {
	margin: 8em 0 0 25%;
}
#dedication p {
	font-family: sans-serif;
	font-style: normal;
	text-align: right;
}

/* BODYMATTER */
div.header + * {
	break-before: always;
	page-break-before: always;
	padding-top: 5em;
	text-indent: 0;
}
h1 {
	color: #e75f28;
	font-family: TradeGothic;
	font-size: 1.75em;
	font-weight: bold;
	margin: 2em 0 3em 0;
	text-align: center;
}
h2 {
	color: #e75f28;
	font-family: TradeGothic;
	font-size: 1.5em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.2;
	margin: 1em 0 1em 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
h3 {
	color: #e75f28;
	font-family: TradeGothic;
	font-size: 1.35em;
	font-style: normal;
	font-weight: bold;
	margin: 1.5em 0 1em 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
h4 {
	font-family: TradeGothic;
	font-size: 1.15em;
	font-style: normal;
	font-weight: bold;
	margin: 1em 0 0 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}

p {
	font-size: 1em;
	margin: 0;
	padding: 0;
	text-align: justify;
	text-indent: 1em;
}
h1 + p,
h2 + p,
h3 + p,
h4 + p,
h5 + p {
	text-indent: 0;
}

a {
	color: #00F;
	font-style: normal;
	font-weight: normal;
	text-decoration: none;
}
abbr {
	border: 0;
	text-decoration: none;
	white-space: nowrap;
}
blockquote {
	margin: 1em 0 1em 1em;
}
blockquote p {
	font-size: .9em;
}
i cite {
	font-style: normal;
}
cite {
	display: inline;
	font-style: italic;
}
hr {
	border: none !important;
	height: 1em;
	margin: .25em 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;
}

/* Listas */
ol {
	margin: 1.5em 0;
	padding: 0 0 0 2.5em;
}
ul {
	list-style: disc;
	margin: 1.5em 0;
	padding: 0 0 0 1.25em;
}
ul ul {
	list-style: disc;
}
ol ol ul {
	margin-left: 1em;
}
li {
	font-size: 1em;
	margin: 1em 0;
	padding: 0;
	text-align: justify;
	text-indent: 0;
}
.lower-alpha {
	list-style: lower-alpha;
}
.upper-alpha {
	list-style: upper-alpha;
}
ul.none {
	list-style: none;
	padding-left: 1em;
}


.fake {
	list-style: none;
	padding: 0;
}
.fake li span.symbol {
	display: inline;
	float: left;
	margin: 0;
	page-break-after: avoid;
	width: 1.5em;
}
.fake li span.number {
	display: inline;
	float: left;
	margin: 0;
	break-after: avoid;
	page-break-after: avoid;
	text-align: left;
	width: 2em;
}
.fake li span.text {
	display: block;
	margin-left: 2em;
}
.fake li p {
	display: block;
	margin-left: 2em;
}
.fake li span.number + span.text {
	display: block;
	margin-left: 2em;
	break-before: avoid;
	page-break-before: avoid;
}
.fake li span.symbol + p,
.fake li span.number + p {
	margin-top: 0;
	page-break-before: avoid;
}

/* Figuras y captions */
div.figure,
div.separator,
div.header {
	margin: 1em 0;
	page-break-inside: avoid;
	text-align: center;
	width: 100%;
}
div.header img,
div.separator img {
	max-height: 98%;
	page-break-inside: avoid;
	text-align: center;
}
div.separator + * {
	break-before: always;
	page-break-before: always;
}
div.figure img {
	max-height: 80%;
	page-break-inside: avoid;
	text-align: center;
}
div.figure img.w30 {
	width: 30%;
}
div.figure img.w50 {
	width: 50%;
}
div.figure img.w75 {
	width: 75%;
}
div.figcaption {
	margin: 1em 0 1.5em 0;
}
div.figcaption p {
	color: #e75f28;
	font-family: sans-serif;
	font-size: .9em;
	font-style: normal;
	text-align: justify;
	text-indent: 0;
}
div.figcaption p + p {
	text-indent: 1em;
}
div.figure p.credit {
	font-family: sans-serif;
	font-size: .7em;
	text-align: center;
	text-indent: 0;
}

span.inline-image img {
	display: inline;
	height: 1em;
	vertical-align: text-top;
}

/* Seudoversalitas */
span.sc {
	font-size: .8em;
}

/* Firmas */
div.signature {
	margin: 1em 0;
}
div.signature p {
	text-align: right;
}

/* Epígrafes */
div.epigraph {
	margin: 2em 0 2em 30%;
}
div.epigraph blockquote {
	margin: 1em 0;
}
div.epigraph p {
	font-family: sans-serif;
	font-size: .8em;
	text-align: right;
}
div.epigraph p.attrib {
	margin: 1em 0;
}
div.epigraph + p {
	text-indent: 0;
}

/* Cajas */
div.box {
	border: 1px solid #e9e9ea;
	border-radius: 1em;
	-webkit-border-radius: 1em;
	margin: 1.25em 0;
	padding: .25em .75em;
}
div.box p.bridgehead {
	font-family: NewellsHand_EB;
	font-size: 2em;
}
div.box p {
	font-family: sans-serif;
	font-size: .9em;
	text-align: left;
}
div.box p.attrib {
	text-align: right;
}

/* Tablas */
div.table {
	margin: 1em 0;
}
table {
	border: 1px solid currentColor;
	border-collapse: collapse;
	margin: 1em auto;
	vertical-align: top;
	max-width: 100%;
}
th, td {
	border: 1px solid currentColor;
	border-collapse: collapse;
	padding: .2em;
	vertical-align: top;
}
table p,
table li {
	font-size: .7em;
	text-align: left;
	text-indent: 0;
}
table ul {
	margin: 0;
	padding-left: 1em;
}
th {
	background: #cfd1d2;
}
th.empty {
	background: transparent;
	border-top: 2px hidden;
	border-left: 2px hidden;
}
td.scope {
	background: #ececed;
}
th p {
	font-style: normal;
	font-weight: bold;
	text-align: center;
	text-indent: 0;
}
th.side p {
	font-style: normal;
	font-weight: bold;
	text-align: left;
	text-indent: 0;
}
td p {
	text-align: left;
	text-indent: 0;
}
*[colspan="2"],
*[rowspan="2"] {
	vertical-align: middle;
}

/* Otros */
span.underline {
	text-decoration: underline;
}
span.label {
	font-family: TradeGothic;
	font-weight: bold;
}
span.finis {
    font-size: 3em;
    line-height: 0.6;
    vertical-align: middle;
}

/* Glosario */
#glossary {
	page-break-before: always;
	padding-top: 4em;
}
#glossary dt, 
#glossary dd {	
	font-size: .9em;
	margin-top: .2em;
	text-align: justify;
	text-indent: 0;
}
#glossary dt {
	float: left;
	font-style: normal;
	font-weight: bold;
	line-height: 1.3; /* Valor necesario para correcta presentación en ADE 1.7.2 */
	padding-right: .5em;
	margin-top: 1em;
}
#glossary dd {
	line-height: 1.5;
	margin-top: 1em;
	margin-left: 1.5em;
	text-indent: 0;
}
#glossary dd + dt {
	clear: left;
	margin-top: 1em;
}

/* Bibliografía */
.bibliography h2 {
	font-size: 1em;
	font-weight: bold;
	margin: 2em 0 1em 0;
	text-align: left;
}
.bibliography h2 span.label {
	font-family: serif;
	font-size: .8em;
	font-weight: normal;
}
.bibliography h3 {
	font-family: serif;
	font-size: 1em;
	font-weight: normal;
	margin: 1em 0 0 0;
}
.bibliography ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.bibliography li {
	margin: 0 0 0 1em;
	text-align: left;
	text-indent: -1em;
}

/* Notas | Llamadas */
a.noteref {
	font-size: .7em;
	vertical-align: top;
}

/* Notas | Notas al pie */
div.footnote {
	margin: 0 0 0 0;
	break-before: page;
	page-break-before: always;
	page-break-inside: avoid;
}
#footnotes h2 {
	break-before: page;
	page-break-before: always;
	page-break-inside: avoid;
}
#footnotes h2 + div.footnote {
	break-before: avoid;
	page-break-before: avoid;
	page-break-inside: avoid;
}
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;
}

/* Notas | Notas finales */
div.rearnotes h2 {
	font-size: 1em;
	font-family: sans-serif;
	font-weight: bold;
	margin: 1em 0 1em 0;
	text-align: left;
}
div.rearnotes h2.section {
	font-size: 1em;
	font-family: sans-serif;
	font-weight: bold;
	margin: 2em 0 1em 0;
	text-align: left;
}
div.rearnote {
	margin: 0 0 0 0;
	page-break-inside: avoid;
}
div.rearnote p {
	font-size: .8em;
	margin: 0 0 0 1.5em;
	overflow: hidden;
	text-indent: 0;
}
div.rearnote 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: 1.25em;
}
div.rearnote a.noteback + p {
	page-break-before: avoid;
}

/* Anexos */
#an01 p {
	text-indent: 0;
}

/* LOI */
#loi p {
	margin: .5em 0 .5em 2.3em;
	text-indent: -2.3em;
}
#loi div.footnote {
	margin-top: 3em;
}
#loi div.footnote a.noteback {
	text-align: left;
}
#loi div.footnote p {
	font-size: .8em;
	margin: 0 0 0 2.5em;
	overflow: hidden;
	text-indent: 0;
}

/* Sobre el autor */
.about div.contact {
	text-align: right;
	text-indent: 0;
}

/* Descargas */
.download {
	margin-top: 2em;
}
.download p {
	margin: 2em 0;
	text-align: center;
	text-indent: 0;
}
.download div.link {
	margin: 1em 0;
	text-align: center;
	text-indent: 0;
}
.download img.icon {
	text-align: center;
	text-indent: 0;
	width: 5em;
}