﻿/** BASE **/

/* Márgenes */
body {
	font-family: sans-serif;
	font-size: .9em;
	margin: 0;
	padding: 0 20px;
}
body * {
	line-height: 1.5;
	max-width: 100%;
	box-sizing: border-box;
	object-fit: contain;
}

/* 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;
	-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: avoid;
	page-break-inside: avoid;
	text-align: center;
}
#titlepage * {
	font-family: inherit;
	line-height: 1.2;
}
#titlepage p.author {
	color: #e73929;
	font-family: serif;
	font-size: 1.5em;
	font-style: normal;
	font-weight: normal;
	margin: 3em 0 0 0;
	padding: 0 0 0 0;
	text-align: center;
	text-indent: 0;
}
#titlepage p.author span.name {
	font-size: 1.5em;
	font-weight: bold;
}
#titlepage p.title {
	color: #2f9b37;
	font-size: 6em;
	font-family: serif;
	font-style: normal;
	font-weight: bold;
	line-height: 1;
	margin: .5em 0 0 0;
	padding: 0 0 0 0;
	text-align: center;
	text-indent: 0;
}
#titlepage p.title span.small {
	font-size: .5em;
}
#titlepage p.subtitle {
	color: #e73929;
	font-size: 1.5em;
	font-style: normal;
	font-weight: normal;
	margin: 1em 0;
	padding: 0 0 0 0;
	text-align: center;
	text-indent: 0;
}
#titlepage div.publisher {
	margin: 5em auto;
	padding: 0;
	text-align: center;
	text-indent: 0;
	width: 5em;
}
#titlepage div.figure {
	margin: 0;
}
#titlepage span.mark {
	color: #ffcc00;
}

/* 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.logos {
	margin: 1.5em 0 0 0;
	text-align: left;
	width: 15em;
}

/* Sinopsis */
#summary * {
	font-family: serif;
}
#summary h1 {
	color: black;
	font-size: 1.3em;
	font-style: normal;
	font-weight: bold;
	margin: 2em 0 1em 0;
	text-align: center;
}
#summary p {
	font-size: 1.1em;
	margin: 0;
	text-align: justify;
}
#summary h1 + p {
	text-indent: 0;
}
#summary p + p {
	text-indent: 1em;
}

/* Índice */
#toc h1 {
	color: black;
	font-size: 1.3em;
	font-style: normal;
	font-weight: bold;
	margin: 2em 0 1em 0;
	text-align: center;
}
#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 a {
	font-weight: normal;
	page-break-inside: avoid;
	text-decoration: none !important;
}

/* Dedicatoria */
#dedicatoria {
	margin: 5em 3em;
}
#dedicatoria p {
	font-style: italic;
	margin: 1em 0;
	text-align: center;
}

/* BODYMATTER */

/* Estilos generales */
h1 {
	font-family: serif;
	font-size: 3em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.2;
	margin: 1em 0 1em 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
h1 span.label {
	color: #000 !important;
	display: block;
	font-family: sans-serif;
	font-weight: normal;
	font-size: .5em;
}
h1 span.subtitle {
	display: block;
	font-family: sans-serif;
	font-weight: normal;
	font-size: .7em;
}
h1 span.title {
	line-height: 1;
}
h2 {
	font-family: sans-serif;
	font-size: 1.3em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.2;
	margin: 2em 0 1em 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
h3 {
	font-family: sans-serif;
	font-size: 1.2em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.2;
	margin: 1.5em 0 .5em 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
h4 {
	font-family: sans-serif;
	font-size: 1.2em;
	font-style: normal;
	font-weight: normal;
	line-height: 1.2;
	margin: 1.5em 0 .5em 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
h5 {
	font-family: sans-serif;
	font-size: 1.2em;
	font-style: normal;
	font-weight: bold;
	line-height: 1.2;
	margin: 1.5em 0 .5em 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}

p {
	font-size: 1em;
	font-weight: normal;
	margin: 1em 0 0 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}

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.w30 {
	background: currentColor;
	height: 1px;
	margin: .25em 35%;
}
h1 + p,
h2 + p,
h3 + p,
hr + p {
	text-indent: 0;
}
hr.light + p {
	text-indent: 1em;
}
img {
	margin: 0;
	max-height: 100%;
	max-width: 100%;
	padding: 0;
	text-align: center;
}
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 1em;
	padding: 0 0 0 1.25em;
}
li {
	font-size: 1em;
	margin: 1em 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}
li p {
	font-family: inherit;
	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;
}
ul ul {
	list-style: circle;
}

/* Figuras y captions */
div.figure {
	margin: 1em auto;
	text-align: center;
}
div.figure-30 {
	margin: 1em auto;
	text-align: center;
	width: 30%;	
}
div.figure-50 {
	margin: 1em auto;
	text-align: center;
	width: 50%;	
}
div.figure-75 {
	margin: 1em auto;
	text-align: center;
	width: 75%;	
}
div.figure img {
	max-height: 100vh;
}

div.header {
	margin: 0 auto;
	width: 100%;
}
div.separator img {
	max-height: 100%;
	text-align: center;
}

/* Tablas */
table {
	border: 0;
	border-collapse: collapse;
	margin: 1em 0;
	width: 100%;
}
th, td {
	border: 0;
	border-collapse: collapse;
	padding: .25em;
	vertical-align: top;
}
table p {
	font-family: inherit;
	font-size: 1em;
	margin: 0;
	text-align: left;
	text-indent: 0;
}
th p {
	font-weight: bold;
	text-align: left;
}
p.value {
	text-align: center;
}
div.legend {
	margin: 1em 0 1em 1.2em;
}
div.legend p {
	font-size: 1em;
	text-indent: 0;
}

.empty {
	background: transparent;
	border-top: 3px hidden;
	border-left: 3px hidden;
}

/* Seudoversalitas */
span.sc {
	font-size: .8em;
}

/* Firmas */
div.signature {
	break-inside: avoid;
	page-break-inside: avoid;
	margin: 1em 0 1em 1em;
}
div.signature p {
	font-size: .8em;
	font-weight: bold;
	margin: 0;
	text-align: right;
	text-indent: 0;
}

/* Citas de bloque */
blockquote {
	margin: .5em 1em;
}
blockquote p {
	font-size: 1em;
	text-indent: 0;
}

/* Intros */
div.summary {
	border-top: 1px dotted currentColor;
}
div.summary p {
	margin: 1em 0;
	text-align: center;
	text-indent: 0;
}

/* Recetas */
div.recipe {
	page-break-before: always;
	-webkit-column-break-before: always;
	padding-top: 1em;
}
div.recipe div.meta {
	border-bottom: 1px solid #7a4f82;
	margin: 1em 0;
	padding: .2em 0;
}
div.recipe div.meta img {
	padding-right: .5em;
	width: 2.5em;
}
div.recipe p.title {
	border-bottom: 1px solid #7a4f82;
	color: #7a4f82;
	font-family: serif;
	font-size: 2.5em;
	font-style: normal;
	font-weight: bolder;
	line-height: 1.2;
	margin: .5em 0 .5em 0;
	text-align: left;
	text-indent: 0;
}
div.recipe p.title span.subtitle {
	display: block;
	font-size: .7em;
}
div.recipe div.intro p {
	color: #7a4f82;
	font-weight: bold;
}
div.recipe p.bridgehead {
	color: #7a4f82;
	font-family: sans-serif;
	page-break-after: avoid;
	-webkit-column-break-after: avoid;
	font-size: 1.1em;
	font-style: normal;
	font-weight: bold;
	margin-top: 2em;
	text-align: left;
	text-indent: 0;
}
div.recipe p.for {
	page-break-after: avoid;
	font-family: sans-serif;
	font-size: 1em;
	font-style: normal;
	font-weight: bold;
	margin-top: 1.5em;
	text-align: left;
	text-indent: 0;
}
div.recipe ul {
	list-style: disc;
	font-size: 1em;
	padding: 0;
	margin: .5em 0 0 0;
}
div.recipe ul.ingredients {
	list-style: disc;
	font-size: .9em;
	padding: 0;
	margin: .5em 10em 0 0;
}
div.recipe ul li {
	padding: 0;
	margin: .5em 0 .5em 1.25em;
	text-align: left;
	text-indent: 0;
}
div.recipe div.idea {
	border: 1px solid #7a4f82;
	margin: 0;
	padding: 1em;
}
div.recipe div.idea img {
	padding-right: .5em;
	width: 2.5em;
}
div.recipe div.note {
	margin-top: 3em;
}
div.recipe div.note p {
	font-size: .85em;
}

/* Notas | Llamadas */
a.noteref {
	font-size: .7em;
	vertical-align: top;
}

/* Notas | Notas al pie */
div.footnote {
	margin: .6em 0 0 0;
	break-inside: avoid;
	page-break-inside: avoid;
}
div.footnote p {
	font-family: inherit;
	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-family: inherit;
	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;
}

div.endnote {
	margin: .6em 0 0 0;
	break-inside: avoid;
	page-break-inside: avoid;
}
div.endnote p {
	font-family: inherit;
	font-size: .8em;
	margin: 0 0 0 2.5em;
	overflow: hidden;
	text-indent: 0;
}
div.endnote a.noteback {
	display: inline;
	float: left;
	clear: left;
	font-family: inherit;
	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.endnote a.noteback + p {
	page-break-before: avoid;
}

/* Propios */
img.inline {
	width: 1.5em;
	vertical-align: middle;
}

#introduccion h1,
.backmatter h1 {
	color: #e3a60a;
}
.backmatter h1 {
	font-size: 2.5em;
	text-align: left;
}
#introduccion p.destacado {
	color: #e3a60a;
}
p.destacado {
	font-family: serif;
	font-size: 1.4em;
	font-weight: bold;
	line-height: 1.2;
	width: 12em;
}

div.desc p {
	margin: 1em 0;
	text-align: center;
	text-indent: 0;
}

div.header + * {
	page-break-before: always;
	break-before: always;
	-webkit-column-break-before: always;
	padding-top: 4em;
	text-indent: 0;
}

span.label {
	font-weight: bold;
}

div.box {
	margin: 1em 0;
	padding: 1em;
}
div.box * {
	font-weight: bold;
}
div.box p.bridgehead {
	font-size: 1.2em;
}


#c01 h1 span.title, 
#c01 h1 span.subtitle, 
#c01 p.destacado, 
#c01 span.label {
	color: #88c697;
}

#c02 h1 span.title, 
#c02 h1 span.subtitle, 
#c02 p.destacado, 
#c02 h2,
#c02 h3,
#c02 h4,
#c02 div.box *,
#c02 span.label {
	color: #3864ad;
}
#c02 div.box {
	border: 2px solid #3864ad;
}

#c03 h1 span.title, 
#c03 h1 span.subtitle, 
#c03 p.destacado, 
#c03 h2,
#c03 h3,
#c03 h4,
#c03 div.box *,
#c03 span.label {
	color: #f4accb;
}
#c03 div.box {
	border: 2px solid #f4accb;
}

#c04 h1 span.title, 
#c04 h1 span.subtitle, 
#c04 p.destacado, 
#c04 h2,
#c04 h3,
#c04 h4,
#c04 div.box *,
#c04 span.label {
	color: #eb5d2f;
}
#c04 div.box {
	border: 2px solid #eb5d2f;
}

#c05 h1 span.title, 
#c05 h1 span.subtitle, 
#c05 p.destacado, 
#c05 h2,
#c05 h3,
#c05 h4,
#c05 h5,
#c05 div.box *,
#c05 span.label {
	color: #ebb40d;
}
#c05 div.box {
	border: 2px solid #ebb40d;
}

#c06 h1 span.title, 
#c06 h1 span.subtitle, 
#c06 p.destacado, 
#c06 h2,
#c06 h3,
#c06 h4,
#c06 h5,
#c06 div.box *,
#c06 span.label {
	color: #7a4f82;
}
#c06 div.box {
	border: 2px solid #7a4f82;
}

#c0601 h2,
#c0602 h2,
#c0603 h2,
#c0604 h2 {
	font-family: serif;
	font-size: 2.5em;
	color: #7a4f82;
}

p.desc {
	color: #c272ac;
	font-family: serif;
	font-size: 1.2em;
	font-style: italic;
	font-weight: bold;
}

p.entry {
	margin: 0;
}