﻿/** BASE **/

/* Márgenes */
@page {
  padding: .5em;
}
body {
  font-family: Sabon, Athelas, Georgia, serif;
  margin: 0 20pt;
	padding: 0;
}

/* Sin fuentes integradas */

/* Control partición silábica */
#titlepage p,
#copyright-page p,
#dedication p,
h1,
h2,
h3,
h4,
p.bridgehead {
	page-break-after: avoid;		/* Impedir partición de página a posteriori */
	-webkit-hyphens: none;		/* Impedir partición de sílabas en iBooks */
	adobe-hyphenate: none;		/* Impedir partición de sílabas en ADE */
	-moz-hyphens: none;		/* Impedir partición de sílabas en Mozilla */
	hyphens: none;		/* Impedir partición de sílabas en W3C */
}
p, 
li, 
td, 
dt, 
dd {
	hyphens: auto;
	-webkit-hyphens: 	auto;
	-webkit-hyphenate-limit-after: 3;
	-webkit-hyphenate-limit-before: 3;
	-webkit-hyphenate-limit-lines: 1;
  orphans: 2;
  widows: 2;
}

/** FRONTMATTER **/

/* Cubierta */
.cover {
	margin: 0;
	padding: 0;
	text-align: center;
}
img.cover {
	height: 100%;
}

/* Portada */
#titlepage {
	page-break-inside: avoid;
	text-align: center;
	text-indent: 0;
}
#titlepage p {
  text-align: center;
	text-indent: 0;
}
#titlepage p.title {
  font-size: 1.75em;
	font-weight: bold;
	margin: 1.5em 0 0 0;
}
#titlepage p.subtitle {
  font-size: 1.2em;
	font-weight: normal;
	margin: .2em 0 0 0;
}
#titlepage p.author {
	font-size: 1.2em;
  font-style: normal;
	margin: 1.5em 0 0 0;
}
#titlepage div.publisher {
	margin: 10em 0 0 0;
}
#titlepage div.publisher p.logo {
	display: inline-block;
	max-width: 8em;
	text-align: center;
	width: 8em;
}
#titlepage div.publisher p.logo img {
	text-align: center;
}
#titlepage div.publisher p.date {
	font-size: smaller;
	margin: 0 0 0 0;
}

/* Créditos */
#copyright-page {
	margin: 2em 1em 0 0;
}
#copyright-page div + div {
	margin: 1em 0 0 0;
}
#copyright-page p {
	font-size: .8em;
	text-align: left;
	text-indent: 0;
}
#copyright-page div.legal-notice p {
	font-size: .7em;
  font-style: italic;
  text-align: justify;
}
#copyright-page span.label {
	display: inline;
}

/* Dedicatoria */
#dedication {
	margin: 4em 0 0 0;
}
#dedication p {
	text-align: right;
	text-indent: 0;
}

/* Epígrafe */
#epigraph {
	margin: 4em 0 0 0;
}
#epigraph blockquote + blockquote {
	margin-top: 2em;
}
div.attrib {
  margin-top: .5em;
}
div.attrib p {
  text-align: right;
}
div.attrib span.cite,
div.attrib cite {
  display: block;
}

/* BODYMATTER */

/* Secciones */
div.hoja-ruta,
div.voces-viajeras,
div.perfil-viajero {
	page-break-before: always;
}

div.voces-viajeras *,
div.perfil-viajero * {
	font-family: Helvetica, Tahoma, sans-serif;
}
div.voces-viajeras blockquote {
	margin-left: 0;
}
div.voces-viajeras blockquote + blockquote {
	margin-top: 1.7em;
}
div.voces-viajeras p.attrib {
	font-weight: bold;
	margin-top: .5em;
	text-align: right;
}

div.perfil-viajero blockquote p {
	font-weight: bold;
	text-align: right;
}
div.perfil-viajero blockquote p.cite {
	padding-top: .5em;
}
div.perfil-viajero blockquote.poem p {
	font-weight: normal;
	text-align: left;
}
div.perfil-viajero span.verse {
	font-style: italic;
}

/* Encabezados */
h1 {
	font-family: inherit;
	font-size: 1.5em;
	font-style: normal;
	font-variant: normal;
	font-weight: 500;
	line-height: 1.5em;
	margin: 1.5em 0 4em 0;
	padding: 0 0 0 0;
	text-align: center;
	text-indent: 0;
}
h2 {
	font-family: inherit;
	font-size: 1.25em;
	font-style: normal;
	font-variant: normal;
	font-weight: 500;
	line-height: 1.5em;
	margin: 1.5em 0 4em 0;
	padding: 0 0 0 0;
	text-align: center;
	text-indent: 0;
}
h3 {
	font-family: inherit;
	font-size: 1.15em;
	font-style: normal;
	font-variant: normal;
	font-weight: normal;
	line-height: 1.5em;
	margin: 1em 0 1em 0;
	padding: 0 0 0 0;
	text-align: left;
	text-indent: 0;
}
h4 {
	font-family: inherit;
	font-size: 1em;
	font-style: normal;
	font-variant: normal;
	font-weight: normal;
	line-height: 1.5em;
	margin: 1em 0 1em 0;
	padding: 0 0 0 0;
	text-align: left;
	text-indent: 0;
}
span.label {
	display: block;
	font-style: normal;
	padding-bottom: .5em;
}
div.perfil-viajero span.label {
	font-size: .7em;
	padding-bottom: 2em;
	text-align: right;
}
div.perfil-viajero span.title {
	font-size: 1.3em;
}
span.title {
	font-style: italic;
}
.part span.title,
div.perfil-viajero span.title {
	font-style: normal;
}

/* Elementos comunes */
p {
	font-family: inherit;
	font-size: .9em;
	line-height: 1.5em;
	margin: 0 0 0 0;
	padding: 0 0 0 0;
	text-align: justify;
	text-indent: 1em;
}

a {
	color: #00F;
	font-style: normal;
	font-weight: bolder;
	text-decoration: none;
}
abbr {
  border: 0;
  text-decoration: none;
  white-space: nowrap;
}
hr {
	border: none !important;
  height: 1em;
	margin: .4em 0;
}
img {
	margin: 0;
	max-width: 100%;
	padding: 0;
}
q {
  font-style: italic;
}
q:before {
  content: "";
}
q:after {
  content: "";
}
sub,
sup {
  font-size: .7em;
}

/* Citas de bloque */
blockquote {
  margin: 1em 0 1em 1.5em;
}
blockquote p {
  font-size: .8em;
  text-indent: 0;
}
blockquote p + p {
  text-indent: 1em;
}

blockquote.epigraph {
	margin-left: 40%;
}
blockquote.epigraph p {
	text-indent: 0;
}
blockquote.highlight {
	border-left: 1px solid black;
	border-right: 1px solid black;
	margin-left: 2em;
	margin-right: 2em;
	padding: 0 .5em;
}
blockquote.highlight p {
	font-family: Helvetica, Tahoma, sans-serif;
	font-size: .7em;
	font-weight: bold;
}
blockquote.highlight + p {
	text-indent: 1em;
}

div.card-template {
	margin: 1em 20%;
	width: 60%;
}
div.card-template p {
	text-indent: 0;
}

/* Listas */
ul {
	margin: 1em 0;
	padding: 0;
}
li {
	font-family: inherit;
	font-size: .9em;
	line-height: 1.5em;
	margin: 0 0 0 .7em;
	padding: 0 0 0 0;
	text-align: justify;
	text-indent: 0;
}
li + li {
	margin-top: 1em;
}
li span.description {
	display: block;
	font-size: .8em;
}

/* Estilos particulares */
abbr.acronym,
span.fake-sc,
span.sc {
  font-size: 80%;
}
p.bridgehead {
  font-weight: bold;
  margin: 1em 0;
  text-align: left;
  text-indent: 0;
}

span.verse {
  display: block;
  margin-left: 1em;
  text-indent: -1em;
}

/* Estilos consecuentes */
h1 + p,
h2 + p,
h3 + p,
h4 + p,
blockquote + p,
p.bridgehead + p,
hr + p {
  text-indent: 0;
}

/* BACKMATTER */

/* Notas */
#footnotes p {
  margin-top: .5em;
  text-indent: 0;
}