﻿/** BASE **/

/* Márgenes */
body {
	font-family: sans-serif;
	font-size: 1em;
	line-height: 1.5;
	margin: 0;
	padding: 0 20px;
}
body * {
	font-family: inherit;
	line-height: inherit;
}

/* Fuentes */
@font-face {
	font-family: Caferus;
	src:url('../fonts/Caferus-Normal.otf');
}
@font-face {
	font-family: Hillda;
	src:url('../fonts/Hillda.ttf');
}
@font-face {
	font-family: Hudson-NY;
	src:url('../fonts/Hudson-NY-Regular.otf');
}

/* 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 * {
	font-family: sans-serif;
	text-align: center;
	text-indent: 0;
}
#titlepage p.author {
	font-family: Hudson-NY;
	font-size: 1.7em;
	font-style: normal;
	font-weight: normal;
	margin: 2em 0 0 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
#titlepage p.title {
	font-family: Caferus;
	font-size: 6em;
	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.title span {
	font-family: Caferus;
	display: block;
	font-size: 1.35em;
}
#titlepage p.publisher {
	margin: 4em 0 0 0;
	text-align: center;
}
#titlepage p.publisher img {
	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 * {
	color: #000;
	font-family: sans-serif;
}
#summary h1 {
	font-size: 1.2em;
	font-style: normal;
	font-weight: bold;
	text-align: center;
}
#summary p {
	text-align: justify;
}

/* Í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 {
	color: #000;
	font-weight: normal;
	page-break-inside: avoid;
	text-decoration: none !important;
}

/* BODYMATTER */

/* Estilos generales */
h1 {
	font-family: Hudson-NY;
	font-size: 2em;
	font-style: normal;
	font-weight: normal;
	margin: 1em 0;
	padding: 0;
	text-align: center;
	text-indent: 0;
}
h1 img {
	height: 1.5em;
	vertical-align: text-bottom;
}
h1.big {
	font-size: 3em;
	text-align:  left;
}
h2 {
	font-family: Hudson-NY;
	font-size: 1.25em;
	font-style: normal;
	font-weight: normal;
	line-height: 1.2;
	margin: 2em 0 0 0;
	padding: 0;
	text-align: left;
	text-indent: 0;
}

p {
	font-size: 1em;
	margin: 0;
	padding: 0;
	text-align: justify;
	text-indent: 1em;
}
h1 + p,
h2 + p,
h3 + p,
h4 + p {
	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: .25em 0;
}
hr + p {
	text-indent: 0;
}
hr.light + p {
	text-indent: 1em;
}
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 {
	margin: 1em 0 1em 1em;
	padding: 0 0 0 1.25em;
}
li {
	font-size: 1em;
	margin: 0;
	padding: 0;
	text-align: justify;
	text-indent: 0;
}
li p {
	font-size: 1em;
	margin: 0;
	text-indent: 1em;
}
li p.label {
	font-family: sans-serif;
	font-size: 1em;
	font-weight: bold;
	margin: 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.none li {
	margin: 1em 0;
}
ul.french {
	list-style: none;
	margin: 1em 0;
	padding: 0;
}
ul.french li {
	margin-left: 1em;
	text-indent: -1em;
}
.separated li {
	margin: 1em 0;
}
ol.continue {
	margin-top: 0;
}
ol + p {
	text-indent: 0;
}

/* Figuras y captions */
div.figure {
	margin: 1em auto;
	text-align: center;
	max-width: 100%;
}
div.figure img {
	max-height: 80%;
	page-break-inside: avoid;
	text-align: center;
}
div.figure img.w30 {
	width: 30%;
	max-width: 30%;
}
div.figure img.w50 {
	width: 50%;
	max-width: 50%;
}
div.figure img.w75 {
	width: 75%;
	max-width: 75%;
}

div.figcaption {
	break-before: avoid;
	page-break-before: avoid;
}
div.figcaption p {
	font-size: .9em;
	text-align: center;
	text-indent: 0;
}

div.icon {
	margin: 1em 0;
	break-inside: avoid;
	page-break-inside: avoid;
	break-after: avoid;
	page-break-after: avoid;
	text-align: left;
	width: 100%;
}
div.icon img {
	max-height: 80%;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	max-width: 10rem;
	width: 8em;
}
div.icon + p {
	text-indent: 0;
}

div.separator {
	margin: 0;
	break-before: page;
	page-break-before: always;
	break-after: always;
	page-break-after: always;
	break-inside: avoid;
	page-break-inside: avoid;
	text-align: center;
	max-width: 100%;
}
div.separator img {
	max-height: 99%;
	page-break-inside: avoid;
	text-align: center;
}
div.separator p.credit {
	font-size: .8em;
	font-style: italic;
	font-weight: bold;
	text-align: right;
}

/* Tablas */
table {
	border: 1px solid #03b8aa;
	border-collapse: collapse;
	margin: 1em 0;
	width: 100%;
}
th, td {
	border: 1px solid #03b8aa;
	border-collapse: collapse;
	vertical-align: top;
}
table p,
table li {
	font-size: .6em;
	margin: 1em 0;
	text-align: center;
	text-indent: 0;
}
table ul {
	margin: 0;
}
th p {
	font-family: sans-serif;
	font-size: .6em;
	text-align: center;
}

/* Seudoversalitas */
span.sc {
	font-size: .8em;
}

/* Firmas */
div.signature {
	margin: 1em 0;
}
div.signature p {
	text-align: right;
}
div.signature img {
	height: .7em;
}

/* Textos */
span.underline {
	text-decoration: underline;
}
span.big {
	font-size: 2.5em;
}
span.deco {
	font-family: Hillda;
	font-size: 1.25em;
}
span.dropcap {
	font-family: Hillda;
	font-size: 2.5em;
	line-height: 1.2;
}
h1 span.deco {
	font-size: 1em;
}
h1 span.hudson {
	font-size: 2em;
}
span.hudson {
	font-family: Hudson-NY;
}

p.author {
	font-weight: bold;
	margin-top: 1em;
	text-indent: 0;
}
p.first {
	text-indent: 0;
}
p.intro {
	font-family: Caferus;
	font-size: 1.2em;
	margin: 1.5em 0;
	text-align: left;
	text-indent: 0;
}
p.message {
	margin: 1.5em 2.5em;
	text-align: center;
	text-indent: 0;
}
p.solve {
	margin: 1em 0;
	text-align: right;
}

div.download {
	margin: 1em 0;
	text-align: center;
}
div.download img {
	width: 6em;
}

ul.word-list {
	list-style: none;
	padding: 0;
}

/* Citas de bloque */
blockquote {
	margin: .3em 0 .3em 1em;
}
blockquote p {
	font-style: italic;
	text-indent: 0;
}
blockquote p + p {
	text-indent: 1em;
}

/* Asteriscos */
p.asterisks {
	margin: 1.5em 0;
	text-align: center;
	text-indent: 0;
}
p.asterisks img {
	height: 2em;
}

/* Recetas */
div.recipe {
	break-before: always;
	page-break-before: always;
}
div.recipe p.title {
	font-family: Hudson-NY;
	font-size: 3.5em;
	margin: 2em 0 0 0;
	line-height: 1.2;
	text-align: left;
	text-indent: 0;
}
div.recipe p.title-main {
	font-family: Hudson-NY;
	font-size: 2em;
	line-height: 1.2;
	margin: 2em 0 0 0;
	text-align: left;
	text-indent: 0;
}
div.recipe p {
	text-indent: 0;
}
div.recipe p + p {
	text-indent: 1em;
}
div.recipe p.bridgehead {
	font-family: Caferus;
	font-size: 1.5em;
	margin: 1.25em 0 .25em 0;
	text-indent: 0;
}
div.recipe p.bridgehead + p {
	text-indent: 0;
}
div.recipe ul {
	padding-left: .5em;
}
div.recipe div.meta {
	margin: 1em 0;
}
div.recipe div.meta p {
	text-indent: 0;
}
div.recipe p.for {
	break-after: avoid;
	page-break-after: avoid;
	font-weight: bold;
	text-indent: 0;
}
div.recipe p.for + ol,
div.recipe p.for + ul {
	margin-top: 0;
}
div.recipe li p.for {
	margin: 1em 0 0 -1em;
}

/* Backmatter */
.backmatter p {
	margin-top: 1em;
	text-indent: 0;
}
.backmatter p.bridgehead {
	font-size: 1.25em;
	font-style: italic;
	font-weight: bold;
	margin-bottom: 1.25em;
	text-align: left;
}

/* Agradecimientos */
#acknowledgments p {
	text-align: center;
}

/* Notas | Llamadas */
a.noteref {
	font-size: .7em;
	line-height: 1;
	vertical-align: super;
}
p.title a.noteref {
	font-size: .7em;
	line-height: 1;
	vertical-align: super;
}

/* 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;
}

/* Notas | Notas finales */
div.rearnote {
	margin: .6em 0 0 0;
	page-break-inside: avoid;
}
div.rearnote p {
	font-size: .8em;
	margin: 0 0 0 2.5em;
	overflow: hidden;
	text-indent: 0;
}
div.rearnote 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.rearnote a.noteback + p {
	page-break-before: avoid;
}