﻿/** BASE **/

/* Márgenes */
body {
	font-family: Sanchez, serif;
	font-size: 1em;
	line-height: 1.5;
	margin: 0;
	padding: 0 20px;
}
body * {
	box-sizing: border-box;
	line-height: inherit;
	max-width: 100%;
	object-fit: contain;
}
.hidden {
	display: none;
}
@supports (max-height: 100vh) {
	img {
		max-height: 100vh !important;
	}
}
b {
	font-family: SanchezBlack;
}

/* Fuentes */
@font-face {
	font-family: Pacifico;
	font-style: normal;
	font-weight: normal;
	src:url('../fonts/Pacifico.otf');
}
@font-face {
	font-family: PacificoAlternate;
	font-style: normal;
	font-weight: normal;
	src:url('../fonts/PacificoAlternate.otf');
}
@font-face {
	font-family: Sanchez;
	font-style: normal;
	font-weight: normal;
	src:url('../fonts/Sanchez.otf');
}
@font-face {
	font-family: Sanchez;
	font-style: italic;
	font-weight: normal;
	src:url('../fonts/Sanchez-Italic.otf');
}
@font-face {
	font-family: Sanchez;
	font-style: italic;
	font-weight: bold;
	src:url('../fonts/SanchezBold-Italic.otf');
}
@font-face {
	font-family: Sanchez;
	font-style: normal;
	font-weight: bold;
	src:url('../fonts/SanchezBold.otf');
}
@font-face {
	font-family: Sanchez;
	font-style: normal;
	font-weight: 500;
	src:url('../fonts/SanchezSemibold.otf');
}
@font-face {
	font-family: SanchezBlack;
	font-style: normal;
	font-weight: bold;
	src:url('../fonts/SanchezBlack.otf');
}
@font-face {
	font-family: Sanchez;
	font-style: normal;
	font-weight: 200;
	src:url('../fonts/SanchezLight.otf');
}
@font-face {
	font-family: Sanchez;
	font-style: italic;
	font-weight: 200;
	src:url('../fonts/SanchezLight-Italic.otf');
}
@font-face {
	font-family: Calavera;
	font-style: normal;
	font-weight: normal;
	src:url('../fonts/Calavera_Pattern1.otf');
}

/* Control partición silábica */
#titlepage p,
h1,
h2,
h3,
h4 {
	page-break-after: avoid;
	hyphens: none;
	adobe-hyphenate: none;
	-moz-hyphens: none;
	-webkit-hyphens: none;
	-epub-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;
}

/* Portadilla */
#titlepage {
	break-inside: page;
	page-break-inside: avoid;
	margin-top: 5em;
}
#titlepage * {
	text-align: center;
	text-indent: 0;
}
#titlepage p.title {
	font-family: PacificoAlternate;
	font-size: 3em;
	font-style: normal;
	font-weight: normal;
	line-height: 1.2;
	margin: 1.2em 0 0 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
#titlepage div.author {
	margin: 1em 0 0 0;
}
#titlepage div.author p {
	font-size: .8em;
	margin: 0;
}
#titlepage p.subtitle {
	color: #001;
	font-family: inherit;
	font-size: .7em;
	font-style: normal;
	font-weight: normal;
	line-height: 1.2;
	margin: .5em 0 0 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
#titlepage div.contrib p {
	font-size: .85em;
	font-style: normal;
	font-weight: normal;
	line-height: 1.2;
	margin: 0 0 0 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
#titlepage p.trl {
	font-family: sans-serif;
	font-size: .8em;
	font-style: normal;
	font-weight: normal;
	line-height: 1.2;
	margin: .5em 0 0 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
#titlepage div.publisher {
	margin: 8em auto 0;
	padding: 0;
	text-indent: 0;
	width: 4em;
}
#titlepage div.figure {
	margin: 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;
}

/* Sinopsis */
#summary * {
	font-family: sans-serif;
}
#summary h1 {
	font-size: 1.2em;
	font-style: normal;
	font-weight: bold;
	margin: 2em 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 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;
}
#toc li.chapter a {
	font-style: italic;
	font-weight: bold;
}
#toc li.chapter li a {
	font-style: normal;
	font-weight: normal;
}

/* Dedicatoria */
#dedication p {
	font-family: sans-serif;
	font-style: normal;
	font-size: 1em;
	margin: 0;
	padding-top: 6em;
	text-align: right;
}

/* BODYMATTER */

/* Estilos generales */
h1 {
	font-family: Pacifico;
	font-size: 2em;
	font-style: normal;
	font-weight: normal;
	line-height: 1.2;
	margin: 1em 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
h2 {
	font-family: Pacifico;
	font-size: 1.75em;
	font-style: normal;
	font-weight: normal;
	line-height: 1.2;
	margin: 1em 0 0 0;
	text-align: left;
	text-indent: 0;
}
h2 span.title {
	display: block;
	font-size: 1.8em;
	font-weight: bold;
}
h3 {
	font-family: serif;
	font-size: 1.15em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.2;
	margin: 2em 0 1em 0;
	text-align: left;
	text-indent: 0;
}

p {
	font-size: 1em;
	font-weight: 200;
	margin: 0 0 0 1.8em;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
h1 + p,
h2 + p,
h3 + p {
	text-indent: 0;
}
li {
	font-size: 1em;
	margin: 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}

a {
	color: #00F;
	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 !important;
	height: 1em;
	margin: 0;
}
hr + p {
	text-indent: 0;
}
hr.light + p {
	text-indent: 1em;
}
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: disc;
	margin: 1em 0 1em 0;
	padding: 0 0 0 1.25em;
}
li {
	font-size: 1em;
	font-weight: 200;
	margin: 0;
	padding: 0;
	text-align: left;
	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 1em 1em;
	padding: 0;
}

.fake {
	list-style: none;
	padding: 0;
}
.fake li {
	margin: 1em 0;
}
.fake li span.symbol {
	display: inline;
	float: left;
	font-family: inherit;
	font-style: normal;
	font-weight: 600;
	line-height: 1.8;
	margin: 0;
	page-break-after: avoid;
	text-align: right;
	width: 1em;
}
.fake li span.symbol + span.text {
	margin-top: 0;
	page-break-before: avoid;
}
.fake li span.text {
	display: block;
	margin-left: 1.2em;
}
.fake li span.text span.label {
	font-family: inherit;
	font-style: normal;
	font-weight: 600;
}


/* Figuras y captions */
div.figure {
	margin: 1em auto;
	text-align: center;
	width: 100%;
}
div.figure-30 {
	margin: 1em auto;
	text-align: center;
	width: 40%;
}
div.figure-50 {
	margin: 1em auto;
	text-align: center;
	width: 50%;
}
div.figure-50-l {
	margin: 1em 0;
	text-align: center;
	width: 50%;
}
div.figure-75 {
	margin: 1em auto;
	text-align: center;
	width: 75%;
}

div.figcaption {
	margin: 0 0 2em 0;
}
div.figcaption p {
	font-size: .7em;
	font-style: italic;
	font-weight: bold;
	margin: .5em 0 0 0;
	text-align: left;
	text-indent: 0;
}

/* Seudoversalitas */
span.sc {
	font-size: .8em;
}

/* Firmas */
div.signature {
	margin: 1.7em 0 0 33%;
}
div.signature p {
	font-family: inherit;
	font-size: 1em;
	font-weight: bold;
	margin: 0;
	text-align: right;
	text-indent: 0;
}

/* Otros */
blockquote {
	margin: 1em 0;
}
blockquote p {
	font-size: .9em;
	font-style: normal;
	text-align: left;
	text-indent: 0;
}
blockquote p.quote {
	font-style: italic;
}
blockquote p.attrib {
	font-size: .7em;
	font-weight: bold;
	margin-top: 0;
}

/* Bibliografía */
.bibliography ul {
	list-style: none;
	margin: 1em 0;
	padding: 0;
}
.bibliography li {
	margin: 0 0 0 1em;
	text-align: left;
	text-indent: -1em;
}
.bibliography span.biblioauthor {
	font-variant: small-caps;
}
.bibliography span.name {
	display: block;
	margin-left: 1.5em;
}

/* Notas | Llamadas */
a.noteref {
	font-size: .7em;
	vertical-align: top;
}

/* Notas | Notas al pie */
div.footnote {
	margin: .6em 0 0 0;
	page-break-before: always;
	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;
}

/* Propios */
div.header {
	margin-top: 6em;
}
div.header + * {
	page-break-before: always;
}
div.subchapter {
	page-break-before: always;
} 

div.highlight {
	margin: 3em 50% 3em 0;
}
div.highlight p {
	font-size: 1.5em;
	text-align: left;
}

div.card {
	margin: 1em 0;
}
div.card p.title {
	font-size: 1.1em;
	font-weight: bold;
	page-break-after: avoid;
}
div.card p {
	font-size: .9em;
	text-align: left;
}
div.card + div.card {
	border-top: 1px solid currentColor;
}

div.cenefa + div.recipe {
	page-break-before: always;
}
div.recipe {
	margin: 2em 0;
}
div.recipe p {
	margin: 0 0 0 1.8em;
	text-align: left;
}
div.recipe p.top {
	margin-top: 1em;
}
div.recipe p.title {
	font-family: Pacifico;
	font-size: 1.3em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.2;
	margin: 1em 0 0 0;
	text-align: left;
	text-indent: 0;
}
div.recipe p.section {
	border-bottom: 3px solid currentColor;
	font-family: Pacifico;
	font-size: 1em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.2;
	margin: 1em 0 0 0;
	text-align: left;
	text-indent: 0;
}
div.recipe p.desc {
	font-size: 1em;
	font-style: italic;
	margin: 0 0 1em 0;
}
div.recipe p.scope {
	font-family: SanchezBlack;
	font-weight: bold;
	margin: 1em 0 0 1.8em;
}
div.recipe p.step {
	margin-top: 1em;
	margin-left: 1.8em;
}
div.recipe p.step span.label {
	font-family: SanchezBlack;
	font-weight: bold;
	display: block;
}
div.recipe p.for-step {
	font-size: .9em;
	font-weight: bold;
	margin: 1em 0 0 0;
}
div.recipe p.for-step + p {
	margin: 0 0 0 0;
}
div.recipe ul {
	list-style: none;
	margin: 0 5em 0 1.8em;
	padding: 0;
}
div.recipe ul li {
	list-style: none;
	font-size: 1em;
	margin-top: 0;
	margin-bottom: 0;
	margin-left: 1em;
	text-indent: -1em;
}

span.dotted {
	border-bottom: 1px dotted currentColor;
}

#foreword h1 {
	border-bottom: 1px dotted currentColor;
}
h1 span.title {
	display: block;
	border-bottom: 1px solid currentColor;
	font-family: PacificoAlternate;
	font-size: 2em;
	padding-top: 2em;
	text-align: center;
}
h1 span.title span.antetitle {
	display: block;
	font-family: Pacifico;
	font-size: .4em;
}
h1 span.subtitle {
	display: block;
	font-family: SanchezBlack;
	font-size: .4em;
	padding-top: .7em;
	text-align: center;
}

p.ornato {
	color: #23baed;
	font-family: Calavera;
	font-size: 1.3em;
	margin: 1em 0;
	text-align: center;
	text-indent: 0;
}
span.ornato {
	color: #23baed;
	font-family: Calavera;
}

p.subtitle {
	color: #23baed;
	font-size: .8em;
	font-weight: bold;
	margin: 0;
}

div.subchapter {
	page-break-before: always;
}
div.subchapter + h2 {
	padding-top: 1em;
}

div.intro {
	margin: 1em 0;
	padding-bottom: .8em;
	border-bottom: 1px dotted currentColor;
}
div.intro p {
	font-size: 1.1em;
}

p + div.cenefa {
	margin-top: 1em;
}

div.box {
	border: 5px double #23baed;
	margin: 1em 0;
	padding: 1em;
}
div.box p {
	margin: 0;
}
div.box p.desc {
	font-style: italic;
	margin-bottom: 1em;
}
div.box p.desc i {
	font-style: normal;
}
div.box p.listhead {
	margin-top: 1em;
}
div.box p.title {
	font-family: Sanchez;
	font-size: 1em;
	font-weight: 200;
}
div.box p.title-center {
	font-family: Sanchez;
	text-align: center;
}
div.box p.lead {
	font-family: PacificoAlternate;
	font-weight: normal;
	font-size: 2.5em;
	text-align: center;
}
div.box p.note {
	font-size: .8em;
	margin-top: 1em;
}

div.recipe div.box ul,
div.recipe div.box p {
	margin-left: 0;
}

p.indent {
	text-indent: 1em;
}

div.recipe div.figcaption p {
	font-size: .7em;
	font-style: italic;
	font-weight: bold;
	margin: .5em 0 0 0;
	text-align: left;
	text-indent: 0;
}