﻿/** BASE **/

/* Márgenes */
body {
	font-family: serif;
	font-size: 1em;
	margin: 0;
	padding: 0 20px;
}
body * {
	line-height: 1.5;
}

/* 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 {
	height: 100%;
	margin: 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}

/* Portadilla */
#titlepage {
	break-inside: avoid;
	page-break-inside: avoid;
	margin-top: 3.5em;
	text-align: center;
}
#titlepage p.title {
	font-size: 2.5em;
	font-style: normal;
	font-weight: bold;
	line-height: inherit;
	margin: 0 0 .5em 0;
	padding: 0 0 0 0;
	text-align: center;
	text-indent: 0;
}
#titlepage p.author {
	color: #d64a36;
	font-size: 1.25em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.2;
	margin: .5em 0 0 0;
	padding: 0 0 0 0;
	text-align: center;
	text-indent: 0;
}
#titlepage p.subtitle {
	font-size: 1.25em;
	font-style: normal;
	font-weight: normal;
	line-height: 1.2;
	margin: 1em 0 0 0;
	padding: 0 0 0 0;
	text-align: center;
	text-indent: 0;
}
#titlepage p.publisher {
	margin: 10em 0 0 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
#titlepage p.publisher img {
	width: 10em;
}
#titlepage div.ornato img {
	max-width: 10em;
}

/* 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;
}

/* Sinopsis */
#summary * {
	font-family: sans-serif;
}
#summary h1 {
	color: black;
	font-size: 1.2em;
	font-style: normal;
	font-weight: bold;
	margin: 1em 0;
	text-align: center;
}
#summary p {
	margin: 0;
	text-align: justify;
}
#summary h1 + p {
	text-indent: 0;
}
#summary p + p {
	text-indent: 1em;
}

/* Í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 {
	font-weight: normal;
	page-break-inside: avoid;
	text-decoration: none !important;
}

/* Dedicatoria */
#dedication {
	margin: 5em 0 0 40%;
}
#dedication p {
	font-style: italic;
	margin: 1em 0;
	text-align: right;
	text-indent: 0;
}

/* BODYMATTER */

/* Estilos generales */
h1 {
	color: #006e89;
	font-family: serif;
	font-size: 1.5em;
	font-style: normal;
	font-weight: bold;
	margin: 1em 0 1em 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
div.chapter h1 {
	text-align: right;
	font-size: 2em;
}
div.chapter div.ornato {
	text-align: center;
}
div.chapter div.ornato img {
	width: 50%;
	text-align: center;
}
div.chapter div.ornato + * {
	break-before: always;
	page-break-before: always;
}
div.header h1 {
	margin-bottom: 0;
}
div.header p.byline {
	color: #006e89;
	margin: 0;
}
h1 + p,
h2 + p {
	text-indent: 0;
}
h2 {
	color: #006e89;
	font-size: 1em;
	font-style: normal;
	font-weight: bold;
	margin: 1.5em 0 1em 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
h3 {
	font-family: serif;
	font-size: 1em;
	font-style: normal;
	font-weight: bold;
	margin: 1em 0 0 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
p.bridgehead {
	font-weight: bold;
	margin: 1em 0;
	text-indent: 0;
}

p {
	font-size: 1em;
	margin: 0;
	padding: 0;
	text-align: justify;
	text-indent: 1em;
}

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.dot {
	border-bottom: 1px dotted #006e89;
	margin: 1.5em 0;
	width: 8em;
}
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: 1em 0 1em 0;
	padding: 0 0 0 1.25em;
}
ul {
	list-style: disc;
	margin: 1em 0;
	padding: 0 0 0 1.25em;
}
li {
	font-size: 1em;
	margin: 1em 0;
	padding: 0;
	text-align: justify;
	text-indent: 0;
}
li p {
	font-size: 1em;
	margin: 1em 0;
	text-indent: 0;
}
.lower-alpha {
	list-style: lower-alpha;
	margin-left: 1em;
}
.upper-alpha {
	list-style: upper-alpha;
}
ul.none {
	list-style: none;
	margin: 1em 0;
	padding: 0;
}
.continue li {
	margin: 0;
}

/* Figuras y captions */
div.figure {
	margin: 1em 0;
	page-break-inside: avoid;
	text-align: center;
	width: 100%;
}
div.figure img {
	max-height: 80%;
	page-break-inside: avoid;
	text-align: center;
}
img.w30 {
	max-width: 30% !important;
}
img.w50 {
	max-width: 50% !important;
}
img.w75 {
	max-width: 75% !important;
}
img.inline {
	width: 1em;
	padding: 0 .1em;
	vertical-align: text-bottom;
}

div.icon {
	margin: 1em 0;
	page-break-inside: avoid;
	text-align: center;
	width: 100%;
}
div.icon img {
	max-height: 80%;
	page-break-inside: avoid;
	text-align: center;
	max-width: 4rem;
	width: auto;
}

div.separator {
	margin: 0;
	break-before: always;
	page-break-before: always;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 100%;
}
div.separator img {
	max-height: 99%;
	text-align: center;
}

/* Tablas */
table {
	border: 1px solid currentColor;
	border-collapse: collapse;
	margin: 1em 0;
	width: 100%;
}
th, td {
	border: 1px solid currentColor;
	border-collapse: collapse;
	padding: .3em;
	vertical-align: top;
}
table p,
table li {
	font-size: .7em;
	margin: 0;
	text-align: left;
	text-indent: 0;
}
td.scope p {
	font-weight: bold;
}
table p.more {
	font-weight: bold;
	margin-top: 1em;
}
div.legend p {
	font-size: .8em;
	margin: 0;
	text-align: left;
	text-indent: 0;
}

/* Seudoversalitas */
span.sc {
	font-size: .8em;
}

/* Firmas */
div.signature {
	break-inside: avoid;
	page-break-inside: avoid;
	margin: 1em 0;
}
div.signature p {
	font-family: serif;
	font-size: 1em;
	font-weight: normal;
	margin: 0;
	text-align: right;
}
div.signature p.name {
	font-weight: bold;
}

/* Contacto */
div.contact {
	margin: 1em 0;
}
div.contact p {
	margin: 0;
}
div.contact p img {
	height: 1em;
	padding-right: .25em;
	vertical-align: text-bottom;
}

/* Epígrafes */
div.epigraph {
	break-before: always;
	page-break-before: always;
	padding-top: 2em;
}
div.epigraph blockquote {
	margin: 0;
}
div.epigraph blockquote p {
	font-family: sans-serif;
	font-size: 2.5em;
	margin: 0;
	text-align: center;
}
div.epigraph p.attrib {
	font-family: sans-serif;
	font-style: italic;
	margin: 0;
	text-align: right;
}

p.note {
	font-family: serif;
	font-size: .9em;
	font-weight: normal;
	margin-top: 1.5em;
	text-align: left;
	text-indent: 0;
}
p.note-cont {
	font-family: serif;
	font-size: .9em;
	font-weight: normal;
	margin-top: 0;
	text-align: left;
	text-indent: 0;
}

/* Citas de bloque */
blockquote {
	margin: .5em 1em;
}
blockquote p {
	font-size: 1em;
	text-indent: 0;
}

p.continue {
	margin-top: 0;
}

div.author {
	break-inside: avoid;
	page-break-inside: avoid;
	margin: 1.5em 0;
}
div.author p.name {
	font-size: 1.3em;
	text-indent: 0;
}
div.author p.rol {
	font-size: 1em;
	text-indent: 0;
}
div.author p.quote {
	font-size: .85em;
	text-indent: 0;
}
div.author p.quote span.attrib {
	font-weight: bold;
}
div.author p.quote + p {
	margin-top: 1em;
	text-indent: 0;
}

div.interview {
	margin: 1.5em 0;
}
div.interview p {
	text-indent: 0;
}
div.interview p.title {
	break-after: avoid;
	page-break-after: avoid;
	font-size: 1.3em;
	font-weight: bold;
}
div.interview p.question {
	break-after: avoid;
	page-break-after: avoid;
	font-weight: bold;
	margin-top: 1em;
}
div.interview p.question + p {
	margin-top: 0;
}
div.interview p {
	margin-top: 1em;
}
div.interview p.continue {
	margin-top: 0;
}


/* Recetas */
div.recipes {
	break-before: always;
	page-break-before: always;
}
div.recipes h2 {
	color: #9ac43c;
	font-size: 2em;
}
div.recipes div.box {
	border: 2px solid #006e89;
	border-radius: 1em;
	-webkit-border-radius: 1em;
	padding: 1em;
}
div.recipes div.box p {
	text-align: left;
	text-indent: 0;
}
div.recipes div.box p.label {
	font-size: 1.2em;
	font-weight: bold;
}
div.recipes div.box p.aliments {
	margin-left: 2em;
}
div.recipe {
	break-before: always;
	page-break-before: always;
	margin: 1em 0;
}
div.recipe p.title {
	break-after: avoid;
	page-break-after: avoid;
	font-size: 1.5em;
	font-style: normal;
	font-weight: bold;
	margin: 0 0 0 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
div.recipe div.ingredients {
	margin: 1em 0;
	padding: 0;
}
div.recipe div.ingredients ul {
	margin: 1em;
	padding: 0;
}
div.recipe div.ingredients li {
	font-size: 1em;
	font-style: normal;
	margin: 0;
}
div.recipe p.for {
	break-after: avoid;
	page-break-after: avoid;
	font-size: 1em;
	font-style: normal;
	font-weight: bold;
	margin-top: 1em;
	text-indent: 0;
}
div.recipe div.steps {
	margin: 2em 0;
}
div.recipe div.steps p {
	margin: 1em 0 0 0;
	text-indent: 0;
}
div.recipe div.steps p.for + p {
	margin: 0;
	text-indent: 0;
}
div.recipe div.steps p.continue {
	margin: 0;
}

/* Agradecimientos */
#acknowledgments {
	margin-top: 5em;
}
#acknowledgments p {
	margin-top: 1em;
	text-align: left;
	text-indent: 0;
}