﻿/** BASE **/

/* Márgenes */
body {
	font-family: sans-serif;
	font-size: .9em;
	margin: 0;
	padding: 0 20px;
}

body * {
	max-width: 100%;
	line-height: 1.5;
}

/* 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;
}

/** FRONTMATTER **/

/* Cubierta */
.cover {
	margin: 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
img.cover {
	height: 100%;
}

/* Contracubierta */
.backcover {
	margin: 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
img.backcover {
	max-height: 100%;
}

/* Portadilla */
#titlepage {
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	text-indent: 0;
}
#titlepage p {
	font-family: sans-serif;
	text-align: center;
	text-indent: 0;
}
#titlepage p.title {
	color: #e25960;
	font-size: 3.5em;
	font-style: normal;
	font-weight: normal;
	line-height: 1;
	margin: 1.5em 0 0 0;
	padding: 0;
	text-align: center;
}
#titlepage p.subtitle {
	font-family: serif;
	font-size: 2em;
	font-style: italic;
	font-weight: bold;
	margin: .5em 0 0 0;
	padding: 0;
	text-align: center;
}
#titlepage p.author {
	color: #87bc23;
	font-size: 2em;
	font-style: normal;
	font-weight: normal;
	line-height: 1;
	margin: 2.5em 0;
	padding: 0;
	text-align: center;
}
#titlepage p.publisher {
	margin: 12em 0 0 0;
	text-align: center;
}
#titlepage p.publisher img {
	width: 8em;
	text-align: center;
}

/* Créditos */
#copyright-page {
	margin: 4em 2em 0 0;
}
#copyright-page div + div {
	margin: 1em 0 0 0;
}
#copyright-page p {
	font-family: serif;
	font-size: .8em;
	margin: 0;
	text-align: left;
	text-indent: 0;
}

/* Nota */
#copyright-page div.notice {
	margin: 2em 0 3em;
}
#copyright-page div.notice p {
	font-size: .8em;
	font-family: sans-serif;
}
#copyright-page div.notice p.label {
	font-style: italic;
	margin: 1em 0;
}
#copyright-page div.notice p.sublabel {
	margin: 1em 0 0 0;
}
#copyright-page div.notice p.sublabel span.about {
	font-size: 1.1em;
}

/* Sinopsis */
#summary * {
	color: #000;
	font-family: serif;
}
#summary h1 {
	font-size: 1.3em;
	font-weight: bold;
	margin: 2em 0 1em;
	text-align: center;
}
#summary p {
	font-size: 1.1em;
	margin: 0;
}
#summary p + p {
	text-indent: 1em;
}

/* Índice */
#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;
}

/* Dedicatoria */
#dedicatoria {
	margin: 4em 0 0 3em;
	break-inside: avoid;
	page-break-inside: avoid;
}
#dedicatoria p {
	font-family: inherit;
	font-size: 1em;
	font-style: normal;
	margin: 1em 0;
	text-align: right;
	text-indent: 0;
}

/* BODYMATTER */

/* Estilos generales */
h1 {
	font-family: inherit;
	font-size: 2em;
	font-weight: bold;
	line-height: 1.2;
	margin: 2em 0 1em 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
h2 {
	font-family: inherit;
	font-size: 1.2em;
	font-style: normal;
	font-weight: bold;
	margin: 1em 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
h3 {
	font-family: inherit;
	font-size: 1.2em;
	font-style: normal;
	font-weight: bold;
	margin: 1em 0 0 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}

p {
	font-size: 1em;
	margin: 1em 0 0 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}

a {
	color: #00F;
	font-weight: bold;
	text-decoration: none;
}
abbr {
	border: 0;
	text-decoration: none;
	white-space: nowrap;
}
i cite,
cite i {
	font-style: normal;
}
cite {
	display: inline;
	font-style: italic;
}
hr {
	border: none !important;
	height: 1em;
	margin: .25em 0;
}
hr + p {
	text-indent: 0 !important;
}
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 1em 0;
	padding: 0 0 0 1.25em;
}
ul {
	list-style-position: inside;
	list-style: disc;
	margin: 1em 0 1em 0;
	padding: 0 0 0 1.25em;
}
ul ul {
	margin: 0 0 0 1em;
}
li {
	font-size: 1em;
	margin: 1em 0;
	padding: 0;
	text-align: justify;
	text-indent: 0;
}
li p {
	font-size: 1em;
	text-indent: 0;
}
.lower-alpha {
	list-style: lower-alpha;
	margin-left: 1em;
}
.upper-alpha {
	list-style: upper-alpha;
}
ol.indent {
	margin-left: 1em;
}
ul.none {
	list-style: none;
	margin: 1em 0 1em 1em;
	padding: 0;
}
ul.orange li span.text,
ul.blue li span.text,
ul.red li span.text,
ul.turquoise li span.text {
	color: #000;
}
ul.orange p.or {
	color: #000;
	font-weight: bold;
	margin: 1em 0;
	text-align: center;
	text-indent: 0;
}
ul + p,
ol + p {
	text-indent: 0;
}
ol li {
	font-weight: bold;
}
ul ol li {
	font-weight: normal;
}
ol li span.text {
	font-weight: normal;
}

/* Figuras y captions */
div.header {
	margin: 0 auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 100%;
}
div.figure {
	margin: 1em auto;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	width: 100%;
}
div.figure-50 {
	margin: 1em auto;
	width: 50%;
}
div.figure img {
	box-sizing: border-box;
	object-fit: contain;
	max-height: 100%;
	text-align: center;
}
span.inline-image img {
	height: 1em;
	padding-right: .1em;
	vertical-align: middle;
}

div.figure + p,
div.separator + p {
	text-indent: 0;
}

div.figcaption p {
	font-size: .8em;
	text-indent: 0;
}
div.figcaption p.question {
	font-family: sans-serif;
	font-size: .8em;
	font-weight: normal;
	text-align: center;
	text-indent: 0;
}

div.separator {
	margin: 1em 0;
	page-break-before: always;
	page-break-inside: avoid;
	page-break-after: always;
	text-align: center;
	width: 100%;
}
div.separator img {
	max-height: 100%;
	page-break-inside: avoid;
	text-align: center;
}

div.icon {
	break-after: avoid;
	page-break-after: avoid;
	margin: 1em 0;
	text-align: left;
	width: 100%;
}
div.icon img {
	max-height: 80%;
	page-break-inside: avoid;
	text-align: left;
	max-width: 30%;
	width: 4.5em;
}
div.icon img.w50 {
	width: 2.25em;
}

div.ornato {
	break-after: avoid;
	page-break-after: avoid;
	margin: 1em 0;
	text-align: center;
	width: 100%;
}
div.ornato img {
	max-height: 80%;
	page-break-inside: avoid;
	text-align: center;
	max-width: 30%;
}

/* Seudoversalitas */
span.sc {
	font-size: .8em;
}

/* Citas de bloque */
blockquote {
	margin: 1em 0 1em 1em;
}
blockquote p {
	font-size: 1em;
	text-indent: 0;
}

/* Firmas */
div.signature {
	break-before: avoid;
	page-break-before: avoid;
	break-inside: avoid;
	page-break-inside: avoid;
	margin-top: 1.5em;
	text-align: right;
}
div.signature img {
	width: 10em;
	margin: 0 0 0 auto;
}
div.signature p {
	font-weight: bold;
	margin: 0;
	text-align: right;
}

/* Recetas */
div.recipe {
	page-break-before: always;
	padding-top: 1em;
	margin: 4em 0;
}
div.recipe p.title {
	break-after: avoid;
	page-break-after: avoid;
	font-family: serif;
	font-size: 2em;
	line-height: 1.2;
	font-weight: bold;
	margin: 1em 0 .5em;
	text-align: center;
}
div.recipe p.bridgehead {
	page-break-after: avoid;
	font-size: 1em;
	font-weight: bold;
	margin: 3em 0 .5em;
}
div.recipe p.bridgehead span.scope {
	display: block;
}
div.recipe span.number {
	font-size: 1.3em;
	font-weight: bold;
}
div.recipe p.step {
	margin-top: .2em;
}
div.recipe p.for {
	break-after: avoid;
	page-break-after: avoid;
	font-style: normal;
	font-weight: normal;
	margin-top: .5em;
	margin-bottom: 0;
}
div.recipe p.for + ul.ingredients {
	margin-top: 0;
}
div.recipe div.ingredients ul {
	list-style: none;
	margin: 1em 0;
	padding: 0;
}
div.recipe div.ingredients li {
	font-style: normal;
	margin: 0 0 0 0;
	text-align: center;
	text-indent: 0;
}
div.recipe ul.ingredients li i {
	font-style: normal;
}
div.recipe div.meta {
	margin: 2em 0;
}
div.recipe div.meta img {
	display: inline;
	padding-right: .2em;
	width: 1.5em;
	vertical-align: middle;
}
div.recipe p.tags img {
	display: inline;
	padding-left: 1.2em;
	padding-right: .2em;
	width: 1.5em;
	vertical-align: middle;
}
div.recipe div.advice {
	border: 2px solid;
	margin: 2em auto;
	padding: 1em;
	width: 22em;
}
div.recipe div.advice p {
	font-family: serif;
	font-style: italic;
	margin: 0;
}
div.recipe div.advice i {
	font-style: normal;
}

/* Propios */
.frontmatter h1,
#ap01 h1,
#ap02 h1,
#ap03 h1,
#agradecimientos p.line,
#agradecimientos h1 {
	color: #3fa535;
}
#c01 h1,
#c01 div.recipe p.title,
#c01 div.recipe p.bridgehead,
#c01 div.recipe p.line,
#c01 div.recipe span.number {
	color: #87bc23;
}
#c01 div.advice {
	border: 2px solid #87bc23;
}

#c02 h1,
#c02 div.recipe p.title,
#c02 div.recipe p.bridgehead,
#c02 div.recipe p.line,
#c02 div.recipe span.number {
	color: #c46d1b;
}
#c02 div.advice {
	border: 2px solid #c46d1b;
}

#c03 h1,
#c03 div.recipe p.title,
#c03 div.recipe p.bridgehead,
#c03 div.recipe p.line,
#c03 div.recipe span.number {
	color: #ee7501;
}
#c03 div.advice {
	border: 2px solid #ee7501;
}

#c04 h1,
#c04 div.recipe p.title,
#c04 div.recipe p.bridgehead,
#c04 div.recipe p.line,
#c04 div.recipe span.number {
	color: #949c65;
}
#c04 div.advice {
	border: 2px solid #949c65;
}

#c05 h1,
#c05 div.recipe p.title,
#c05 div.recipe p.bridgehead,
#c05 div.recipe p.line,
#c05 div.recipe span.number {
	color: #ea5053;
}
#c05 div.advice {
	border: 2px solid #ea5053;
}

#c06 h1,
#c06 div.recipe p.title,
#c06 div.recipe p.bridgehead,
#c06 div.recipe p.line,
#c06 div.recipe span.number {
	color: #a1981c;
}
#c06 div.advice {
	border: 2px solid #a1981c;
}

#c07 h1,
#c07 div.recipe p.title,
#c07 div.recipe p.bridgehead,
#c07 div.recipe p.line,
#c07 div.recipe span.number {
	color: #00a4a3;
}
#c07 div.advice {
	border: 2px solid #00a4a3;
}

#c08 h1,
#c08 div.recipe p.title,
#c08 div.recipe p.bridgehead,
#c08 div.recipe p.line,
#c08 div.recipe span.number {
	color: #8782b8;
}
#c08 div.advice {
	border: 2px solid #8782b8;
}

#epilogo h1,
#epilogo p.line {
	color: #e25960;
}

img.inline {
	width: 1.2em;
	vertical-align: middle;
}


#agradecimientos p {
	margin: 1em 0;
}

.index p {
	margin-left: 1em;
	text-align: left;
	text-indent: -1em;
}
.appendix p.letter {
	color: #3fa535;
	font-weight: bold;
	page-break-after: avoid;
	-webkit-column-break-after: avoid;
	break-after: avoid;
	margin: 2em 0 0 0;
	text-indent: 0;
}

.appendix p {
	margin-top: 0;
	text-align: left;
}


div.intro {
	margin: 2em 4em;
}