/* RESET */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

html {
    box-sizing: border-box;
    overflow-x: hidden;
}

*, *:before, *:after {
    box-sizing: border-box;
}


/* ESTRUCTURA */

section {
    max-width: 1360px;
    margin: 0 auto;
    font-size: 0;
}

@media (min-width: 1360px) {
    section.ancho {
        max-width: none !important;
        margin-left: calc( (100vw - 1360px) /2 );
    }

    section.full {
        max-width: none !important;
    }

    .exp {
        margin-left: calc( ((100vw - 1360px) / 2 ) * -1);
    }
}

.padding {
    padding: 60px 20px;
}

.izq, .der {
    width: 50%;
    display: inline-block;
    vertical-align: top;
    min-height: 700px;
}

.izq {
    padding: 60px 40px 60px 20px;
}

.der {
    padding: 60px 20px 60px 40px;
    border-left: 2px solid var(--negro);
}

.cabeza {
    padding: 40px 20px;
    overflow: hidden;
}

.cabeza h2,
.cabeza div,
.cabeza img {
    display: inline-block;
    vertical-align: middle;
}

.cabeza h2 {
    width: 52%;
    padding-top: 0.3em;
}

.cabeza div {
    width: 33%;
}

.cabeza .fuente {
    margin-bottom: 0;
}

.cabeza img {
    width: 14%;
}

@media (max-width: 768px) {
    .cabeza {
        padding: 40px 20px 60px 20px;
    }

    .cabeza h2 {
        width: 69%;
    }

    .cabeza img {
        width: 29%;
    }
}

.exp {
    width: 100vw;
}

.untercio {
    width: 34%;
}

.dostercios {
    width: 66%;
}

.uncuarto {
    width: 25%;
}

.trescuartos {
    width: 75%;
}

.tresdecimos {
    width: 30%;
}

.sietedecimos {
    width: 70%;
}

.cover {
    background-size: cover;
    background-position: center center;
}

@media (max-width: 768px) {
    .izq, .der {
        width: 100%;
        min-height: unset;
        padding: 40px 20px 40px 20px;
    }

    .der {
        border: 0;
        border-top: 2px solid var(--negro);
    }

    .cover {
        min-height: 400px;
    }
}

hr {
    border-width: 0;
    background: var(--negro);
    height: 2px;
    margin: 0;
}

hr.sec {
    background: var(--rojo);
    height: 20px;
    border-top: 2px solid var(--negro);
    border-bottom: 2px solid var(--negro);
}

hr.sec.gris {
    background: var(--gris);
    height: 20px;
}

div hr {
    background: var(--rojo);
    height: 4px;
    width: 125px;
    margin: 40px 0;
}

@media (min-width: 768px) {
    .portada h6 {
        width: 70%;
    }

    .portada hr ~ p,
    .portada hr ~ ol {
        margin-left: 125px;
        width: 50%;
    }

    .trescuartos h2,
    .trescuartos p,
    .trescuartos ol {
        width: 75%;
    }
}


/* FONTS */

@font-face {
    font-family: 'Scala';
    src: url('fonts/scala.woff2') format('woff2'),
        url('fonts/scala.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Scala';
    src: url('fonts/scala-italic.woff2') format('woff2'),
        url('fonts/scala-italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Scala';
    src: url('fonts/scala-bold.woff2') format('woff2'),
        url('fonts/scala-bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica';
    src: url('fonts/helvetica-bold.woff2') format('woff2'),
        url('fonts/helvetica-bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica';
    src: url('fonts/helvetica-bold-italic.woff2') format('woff2'),
        url('fonts/helvetica-bold-italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

html, div, p, ul, ol, li {
    font-family: Scala;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Helvetica;
}

h1, h2, h3 {
    font-size: 64px;
}

h6 {
    font-size: 16px;
}

sup {
    font-size: 10px;
    vertical-align: super;
}

small {
    font-size: 12px;
}

@media (max-width: 768px) {
    small {
        font-size: 9px;
    }
}

.fuente {
    font-size: 8px;
}

i, .italic {
    font-style: italic;
}

strong, .bold {
    font-weight: bold;
}

.nw {
    white-space: nowrap;
}

@media (max-width: 1360px) {
    h1, h2, h3 {
      font-size: calc(32px + 32 * ((100vw - 320px) / 1040));
    }
}


/* COLORES */

:root {
    --blanco: #ffffff;
    --gris: #e7e8e8;
    --negro: #000000; 
    --rojo: #e53219;
    --tinto: #b83218;
    --amarillo: #ffbe00;
    --cielo: #0089fa;
    --rosa: #ff64e1;
    --azul: #0000a3;
    --naranja: #ff7d00;
    --verde: #64c864;
    --morado: #6d1ec3;
    --azulo: #f2f3fa;
    --naranjao: #fff8f4;
    --verdeo: #f7fcf7;
    --moradoo: #f7f4fc;
  }

.cielo {
    color: var(--cielo) !important;
}

.amarillo {
    color: var(--amarillo) !important;
}

.rosa {
    color: var(--rosa) !important;
}


/* GENERAL */

img {
    max-width: 100%;
}

ol {
    counter-reset: item;
}

li {
    display: block;
    line-height: 1.2;
}

ol li:before {
    content: ""attr(num)"" "." counters(item, ".") " ";
    counter-increment: item;
    color: var(--rojo);
}

ul li:before {
    content: "– ";
    color: var(--rojo);
}

p {
    margin-bottom: 20px;
    line-height: 1.4;
}

em {
    color: var(--rojo);
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    opacity: 0.5;
}

.barra {
    width: 100%;
    background: var(--gris);
    color: var(--blanco);
    margin-bottom: 20px;
}

samp {
    background: var(--rojo);
    color: var(--blanco);
    display: inline-block;
    text-align: center;
    font-size: 12px;
    padding: 4px 0;
}

.tinto {
    background: var(--tinto);
}


p.fuente {
    margin-bottom: 10px;
}

.barney {
    animation: barney 4s infinite linear;
}

@keyframes barney {
    0% {
      transform: rotate(15deg);
    }
    
    50% {
      transform: rotate(-15deg);
    }
    100% {
      transform: rotate(15deg);
    }
  }

@media (max-width: 768px) {
    .hidem {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hided {
        display: none !important;
    }
}


/* MENU */

nav {
    background: var(--blanco);
    border-bottom: 2px solid var(--negro);
    max-width: none;
    width: 100%;
    position: fixed;
    padding: 20px 20px 15px 20px;
    z-index: 10;
}

nav small {
    float: right;
    padding: 4px 0;
}

nav sup {
    font-size: 6px;
}
 
 #hamburger {
   display: inline-block;
   width: 12%;
   position: relative;   
   -webkit-user-select: none;
   user-select: none;
 }
 
 #hamburger input {
   display: block;
   width: 80px;
   height: 60px;
   position: absolute;
   top: -20px;
   left: -20px;
   cursor: pointer;
   opacity: 0;
   z-index: 2;
   -webkit-touch-callout: none;
 }

 #hamburger input:checked {
    width: 100vw;
    height: 100vh;
  }

 #hamburger span {
   display: block;
   width: 33px;
   height: 2px;
   margin-bottom: 5px;
   position: relative;
   background: var(--negro);
   border-radius: 2px;
   z-index: 1;
   transform-origin: 2px 0px;
   transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
               background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
               opacity 0.55s ease;
 }
 
 #hamburger span:first-child {
   transform-origin: 0% 0%;
 }
 
 #hamburger span:nth-last-child(2) {
   transform-origin: 0% 100%;
 }
 
 #hamburger input:checked ~ span {
   opacity: 1;
   transform: rotate(45deg) translate(3px, -5px);
 }
 
 #hamburger input:checked ~ span:nth-last-child(3) {
   opacity: 0;
 }
 
 #hamburger input:checked ~ span:nth-last-child(2) {
   transform: rotate(-45deg) translate(0, 8px);
 }
 
 #menu {
   position: absolute;
   width: 360px;
   height: calc(100vh + 100px);
   margin: -100px 0 0 -40px;
   padding: 160px 30px 100px 50px;
   border-right: 2px solid var(--negro);
   background: var(--blanco);
   -webkit-font-smoothing: antialiased;
   transform-origin: 0% 0%;
   transform: translate(-100%, 0);
   transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
 }

 #menu li {
    font-family: Helvetica;
    position: relative;
    z-index: 10;
 }

 #menu li a {
    padding: 10px 0;
    display: inline-block;
 }

 #menu li:before {
    content: ""attr(num)"" ". ";
    counter-increment: item;
    color: var(--rojo);
}

#hamburger input:checked ~ #menu:after {
    content: '';
    height: calc( 100vh + 100px);
    width: 100vw;
    background: var(--blanco);
    opacity: 0.8;
    display: block;
    position: absolute;
    top: 0;
    left: 360px;
}

 #hamburger input:checked ~ ol {
   transform: none;
 }

section {
    position: relative;
}

.anchor {
    position: absolute;
    top: -60px;
}

.anchornav {
    position: absolute;
    bottom: 330px;
}


/* HERO */

#hero {
    padding-top: 120px;
}

#hero h6 {
    margin-top: 40px;
}

#hero img {
    width: 80%;
    margin-left: 20%;
}

@media (max-width: 768px) {
    #hero img {
        width: 100%;
        margin-left: 0;
        margin-top: 40px;
    }
}


/* ÍNDICE */

#indice li[num] {
    font-family: Helvetica;
    margin-bottom: 20px;
}

#indice li[num] ol {
    margin-top: 10px;
}

#indice li:before {
    content: ""attr(num)"" ". ";
}

#indice li li {
    margin-left: 12px;
}

#indice li li:before {
    content: counters(item, ".") " ";
}

@media (max-width: 768px) {
    #indice .der {
        border: 0;
    }
}


/* INTRODUCCIÓN */

#introduccion .der {
    background-image: url(img/introduccion.jpg);
}

#introduccion h2 {
    margin-bottom: 240px;
}


/* POR QUE */

#porque h6 {
    margin-bottom: 10px;
}


/* PARA QUE */

#paraque h6 {
    margin-bottom: 10px;
}

#paraque li {
    margin-left: 15px;
}

#paraque li:before {
    content: counters(item, ".") ". ";
    counter-increment: item;
    color: var(--rojo);
    margin-left: -15px;
}

#paraque .pip {
    height: 200px;
    background-image: url(img/paraque.jpg);
    position: relative;
    top: -60px;
    left: -40px;
    width: 25vw;
}

@media (min-width: 1360px) {
    #paraque .pip {
    width: calc((1360px * .25) + ((100vw - 1360px) / 2));
    }
}

@media (max-width: 768px) {
    #paraque .pip {
        top: -40px;
        left: -20px;
        width: 100vw;
    }
}


/* CODIGO */

#codigo h6 {
    padding-left: 100px;
}

#codigo hr {
    margin-bottom: 180px;
}

#codigo .der {
    padding-top: 350px;
}

#codigo .rosa {
    margin-bottom: 60px;
}

.color {
    height: 26px;
    position: relative;
    left: -40px;
    color: var(--negro) !important;
}

.color:before {
    content: '';
    display: inline-block;
    height: 100%;
    width: 120px;
    position: relative;
    top: 7px;
    margin-right: 20px;
}

.color.amarillo:before {
    background: var(--amarillo);
}

.color.cielo:before {
    background: var(--cielo);
}

.color.rosa:before {
    background: var(--rosa);
}

.color.azul:before {
    background: var(--azul);
}

.color.naranja:before {
    background: var(--naranja);
}

.color.verde:before {
    background: var(--verde);
}

.color.morado:before {
    background: var(--morado);
}


/* CAPITULO II */

#capituloii h2 {
    margin-bottom: 100px;
}

#capituloii .der {
    background-image: url(img/capituloii.jpg);
}


/* COCINEROS */

#aprendiz em,
#aprendiz li:before {
    color: var(--amarillo);
}

#habitual em,
#habitual li:before {
    color: var(--cielo);
}

#creativo em,
#creativo li:before {
    color: var(--rosa);
}

.cocineros em {
    margin-left: -3ch;
}

.cocineros h2 {
    margin-bottom: 80px;
    margin-left: 3ch;
}

.cocineros .der h6 {
    width: 29%;
    display: inline-block;
    vertical-align: top;
    padding-top: 5px;
}

.cocineros .der p,
.cocineros .der ul {
    width: 69%;
    display: inline-block;
    margin-bottom: 40px;
}

.cocineros li {
    margin-left: 15px;
}

.cocineros li:before {
    margin-left: -15px;
}

.cocineros .botones {
    width: 69%;
    margin-left: calc(30% + 5px);
    margin-top: 50px;
}

.fix .botones {
    margin-top: 120px;
}

.cocineros .habitual {
    border: 1px solid var(--cielo);
    color: var(--cielo);
}

.cocineros .habitual:hover {
    background: var(--cielo);
}

.cocineros .creativo {
    border: 1px solid var(--rosa);
    color: var(--rosa);
}

.cocineros .creativo:hover {
    background: var(--rosa);
}

.cocineros .aprendiz {
    border: 1px solid var(--amarillo);
    color: var(--amarillo);
}

.cocineros .aprendiz:hover {
    background: var(--amarillo);
}

.cocineros .botones a:hover {
    color: var(--blanco);
    opacity: 1;
}

.cocineros .botones a {
    display: inline-block;
    text-align: center;
    width: 47%;
    padding: 15px 0;
}

.cocineros .botones a:first-child {
    margin-right: 2%;
}

@media (max-width: 768px) {
    .cocineros .der h6 {
        width: 100%;
        display: block;
    }
    
    .cocineros .der p,
    .cocineros .der ul {
        width: 100%;
        display: block;
        margin-top: 20px;
        margin-bottom: 40px;
    }
}


/* CAPITULO III */

#capituloiii h2 {
    margin-bottom: 100px;
}

#capituloiii .der {
    background-image: url(img/capituloiii.jpg);
}

.bondades {
    text-align: center;
    position: relative;
    top: -10px;
    z-index: 1;
}

.bondades span {
    padding: 20px;
    background: var(--blanco);
}

@media (min-width: 769px) {
    .cocina .izq,
    .cocina .der {
        min-height: 350px;
    }
}

.cocina .izq h6,
.cocina .der h6 {
    width: 34%;
    display: inline-block;
    vertical-align: top;
    padding-top: 5px;
}

.cocina .izq p,
.cocina .der p {
    width: 64%;
    display: inline-block;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .cocina .izq h6,
    .cocina .der h6  {
        width: 100%;
        display: block;
    }
    
    .cocina .izq p,
    .cocina .der p {
        width: 100%;
        display: block;
        margin-top: 20px;
        margin-bottom: 40px;
    }

    .cocina .izq p:nth-of-type(2),
    .cocina .der p:nth-of-type(2) {
        margin-bottom: 0px;
    }
}

.imagenes .izq {
    position: relative;
    background-position: center center;
    position: relative;
}

.imagenes .der {
    padding: 0;
    border: 0;
}

.imagenes .der div {
    min-height: 350px;
    position: relative;
}

.imagenes span {
    text-align: right;
    color: var(--blanco);
    font-family: Helvetica;
    position: absolute;
    bottom: 40px;
    right: 40px;
    filter: drop-shadow(0 0 20px var(--negro));
}

#diaria em {
    color: var(--azul);
}

#diaria .bondades span {
    border: 1px solid var(--azul);
    color: var(--azul);
}

#diariaimg .izq {
    background-image: url(img/carne-asada.jpg);
}

#diariaimg .der .arriba {
    background-image: url(img/sopa-de-verduras.jpg);
}

#diariaimg .der .abajo {
    background-image: url(img/verduras-asadas.jpg);
}

#antojo em {
    color: var(--naranja);
}

#antojo .bondades span {
    border: 1px solid var(--naranja);
    color: var(--naranja);
}

#antojoimg .izq {
    background-image: url(img/crepas.jpg);
}

#antojoimg .der .arriba {
    background-image: url(img/papas.jpg);
}

#antojoimg .der .abajo {
    background-image: url(img/roles.jpg);
}

#saludable em {
    color: var(--verde);
}

#saludable .bondades span {
    border: 1px solid var(--verde);
    color: var(--verde);
}

#saludableimg .izq {
    background-image: url(img/ensalada-de-proteina.jpg);
}

#saludableimg .der .arriba {
    background-image: url(img/calabacin.jpg);
}

#saludableimg .der .abajo {
    background-image: url(img/ensalada-de-verduras.jpg);
}

#creativa em {
    color: var(--morado);
}

#creativa .bondades span {
    border: 1px solid var(--morado);
    color: var(--morado);
}

#creativaimg .izq {
    background-image: url(img/sopa-de-zanahoria.jpg);
}

#creativaimg .der .arriba {
    background-image: url(img/chilorio.jpg);
}

#creativaimg .der .abajo {
    background-image: url(img/bolonesa.jpg);
}


/* CAPITULO IV */

#capituloiv h2 {
    margin-bottom: 100px;
}

#capituloiv .der {
    background-image: url(img/capituloiv.jpg);
}

.cocinando .cabeza h2 {
    width: 85%;
}

#cdiario em {
    color: var(--azul);
}

#cantojos em {
    color: var(--naranja);
}

#csaludable em {
    color: var(--verde);
}

#ccreativamente em {
    color: var(--morado);
}

.tresdecimos h2 {
    margin-bottom: 150px;
}

.tresdecimos a {
    display: block;
    margin-bottom: 20px;
}

.ejemplos div {
    display: inline-block;
}

.ejemplos .dosexuno,
.ejemplos .dosexdos {
    width: 49%;
}

.dosexuno {
    padding: 0 4% 0 10%;
}

.dosexdos {
    padding: 0 10% 0 4%;
}

.ejemplos .tresexuno,
.ejemplos .tresexdos,
.ejemplos .tresextres {
    width: 32%;
    margin-top: 50px;
}

.tresexuno {
    padding: 0 0.6% 0 2%;
}

.tresexdos {
    padding: 0 1.3% 0 1.3%;
}

.tresextres {
    padding: 0 2% 0 0.6%;
}


.ejemplos a {
    margin-top: 20px;
    margin-bottom: 10px;
    display: block;
}


/* TABLAS */

table {
    width: 100%;
}

td {
    border: 2px solid var(--negro);
    padding: 20px 10px;
    text-align: center;
    vertical-align: middle;
}

td.titulo {
    text-align: left;
    font-family: Helvetica;
}

th:first-child,
td:first-child {
    border-left: 0 !important;
}

th:last-child,
td:last-child {
    border-right: 0 !important;
}

tr:last-child td {
    border-bottom: 0 !important;
}

table img {
    width: 40px;
    margin: -10px 10px;
}

.tuno .titulo {
    width: 20%;
}

.tuno [colspan="2"] {
    width: calc(80% / 6 * 2);
}

.tuno [colspan="3"] {
    padding: 20px calc(100% / 7 * 6 / 15);
}

.tuno [colspan="6"] {
    padding: 20px calc(100% / 7 * 6 / 5);
}

#cantojos .tuno .titulo {
    width: 20%;
}

#cantojos .tuno [colspan="3"] {
    width: calc(80% / 12 * 3);
    padding: 20px;
}

#cantojos .tuno [colspan="4"] {
    width: calc(80% / 12 * 4);
}

#csaludable .tdos .titulo,
#csaludable .ttres .titulo,
#csaludable .tcuatro .titulo {
    width: 20%;
}

#csaludable .tdos td,
#csaludable .ttres td {
    width: calc(80% / 3);
    padding: 10px 10px;
}

#csaludable .tcuatro td {
    width: calc(80% / 3);
    padding: 15px 10px;
}

#ccreativamente .tdos .titulo,
#ccreativamente .tcuatro .titulo {
    width: 20%;
}

#ccreativamente .tdos td {
    width: calc(80% / 3);
    padding: 10px 10px;
}

#ccreativamente .tcuatro td {
    width: calc(80% / 3);
    padding: 22px 10px;
}


.tdos {
    border-bottom: 2px solid var(--negro);
}

.tdos td {
    width: 40%;
}

.tdos .titulo {
    width: 20%;
}

.tdos tr:first-child td {
    border-top: 0 !important;
}

.tdos tr:first-child td:first-child {
    border-bottom: 0 !important;
}

.tdos tr:last-child td {
    border-bottom: 0 !important;
}

.ttres .titulo {
    width: 20%;
    border-bottom: 0 !important;
}

.ttres td {
    width: 16%;
    padding: 10px;
}

.ttres tr:first-child td {
    border-top: 0 !important;
}

.ttres tr:first-child td:nth-child(odd) {
    background: var(--blanco) !important;
}

.tcuatro .titulo {
    width: 20%;
    border-bottom: 0 !important;
    padding: 10px;
    padding-top: 25px;
    vertical-align: top;
    position: relative;
}

.tcuatro td {
    width: 20%;
    padding: 20px;
}

.tcuatro p {
    margin: 40px 0 50px 0;
}

.tcuatro img {
    width: 80%;
    margin-left: 10%;
    margin-bottom: 40px;
}

.tcuatro .pip {
    height: 300px;
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
}

.tcuatro tr:first-child td:nth-child(2),
.tcuatro tr:first-child td:nth-child(3),
.tcuatro tr:first-child td:nth-child(4),
.tcuatro tr:first-child td:nth-child(5) {
    font-family: Helvetica;
    border-bottom: 2px solid var(--negro) !important;
    background: var(--blanco) !important;
}

.tcuatro tr:first-child td {
    border-top: 0 !important;
}

#cdiario .tdos td {
    border-top: 1px solid var(--azul);
    border-bottom: 1px solid var(--azul);
}

#cdiario .ttres td {
    border-top: 1px solid var(--azul);
    border-bottom: 1px solid var(--azul);
}

#cdiario .ttres tr:nth-child(odd) td:nth-child(odd),
#cdiario .ttres tr:nth-child(even) td:nth-child(even) {
    background: var(--azulo);
}

#cdiario .ttres tr:first-child td:nth-child(even) {
    background: var(--azulo);
}

#cdiario .tcuatro tr:first-child td:nth-child(2),
#cdiario .tcuatro tr:first-child td:nth-child(3),
#cdiario .tcuatro tr:first-child td:nth-child(4),
#cdiario .tcuatro tr:first-child td:nth-child(5) {
    color: var(--azul);
}

#cdiario .tcuatro td {
    border-top: 1px solid var(--azul);
    border-bottom: 1px solid var(--azul);
}

#cdiario .tcuatro tr:nth-child(odd) td:nth-child(even),
#cdiario .tcuatro tr:nth-child(even) td:nth-child(odd) {
    background: var(--azulo);
}

#cdiario .pip {
    background-image: url(img/receta-diario.jpg);
}

#cdiario .tresdecimos hr {
    background: var(--azul);
}

#cantojos .tdos td {
    border-top: 1px solid var(--naranja);
    border-bottom: 1px solid var(--naranja);
}

#cantojos .ttres td {
    border-top: 1px solid var(--naranja);
    border-bottom: 1px solid var(--naranja);
}

#cantojos .ttres tr:nth-child(odd) td:nth-child(odd),
#cantojos .ttres tr:nth-child(even) td:nth-child(even) {
    background: var(--naranjao);
}

#cantojos .ttres tr:first-child td:nth-child(even) {
    background: var(--naranjao);
}

#cantojos .tcuatro tr:first-child td:nth-child(2),
#cantojos .tcuatro tr:first-child td:nth-child(3),
#cantojos .tcuatro tr:first-child td:nth-child(4),
#cantojos .tcuatro tr:first-child td:nth-child(5) {
    color: var(--naranja);
}

#cantojos .tcuatro td {
    border-top: 1px solid var(--naranja);
    border-bottom: 1px solid var(--naranja);
}

#cantojos .tcuatro tr:nth-child(odd) td:nth-child(even),
#cantojos .tcuatro tr:nth-child(even) td:nth-child(odd) {
    background: var(--naranjao);
}

#cantojos .pip {
    background-image: url(img/receta-antojos.jpg);
}

#cantojos .tresdecimos hr {
    background: var(--naranja);
}

#csaludable .tdos td {
    border-top: 1px solid var(--verde);
    border-bottom: 1px solid var(--verde);
}

#csaludable .ttres td {
    border-top: 1px solid var(--verde);
    border-bottom: 1px solid var(--verde);
}

#csaludable .ttres tr:nth-child(odd) td:nth-child(odd),
#csaludable .ttres tr:nth-child(even) td:nth-child(even) {
    background: var(--verdeo);
}

#csaludable .ttres tr:first-child td:nth-child(even) {
    background: var(--verdeo);
}

#csaludable .tcuatro tr:first-child td:nth-child(2),
#csaludable .tcuatro tr:first-child td:nth-child(3),
#csaludable .tcuatro tr:first-child td:nth-child(4),
#csaludable .tcuatro tr:first-child td:nth-child(5) {
    color: var(--verde);
}

#csaludable .tcuatro td {
    border-top: 1px solid var(--verde);
    border-bottom: 1px solid var(--verde);
}

#csaludable .tcuatro tr:nth-child(odd) td:nth-child(even),
#csaludable .tcuatro tr:nth-child(even) td:nth-child(odd) {
    background: var(--verdeo);
}

#csaludable .tresdecimos hr {
    background: var(--verde);
}

#csaludable .pip {
    background-image: url(img/receta-saludable.jpg);
}

#ccreativamente .tdos td {
    border-top: 1px solid var(--morado);
    border-bottom: 1px solid var(--morado);
}

#ccreativamente .ttres td {
    border-top: 1px solid var(--morado);
    border-bottom: 1px solid var(--morado);
}

#ccreativamente .ttres tr:nth-child(odd) td:nth-child(odd),
#ccreativamente .ttres tr:nth-child(even) td:nth-child(even) {
    background: var(--moradoo);
}

#ccreativamente .ttres tr:first-child td:nth-child(even) {
    background: var(--moradoo);
}

#ccreativamente .tcuatro tr:first-child td:nth-child(2),
#ccreativamente .tcuatro tr:first-child td:nth-child(3),
#ccreativamente .tcuatro tr:first-child td:nth-child(4),
#ccreativamente .tcuatro tr:first-child td:nth-child(5) {
    color: var(--morado);
}

#ccreativamente .tcuatro td {
    border-top: 1px solid var(--morado);
    border-bottom: 1px solid var(--morado);
}

#ccreativamente .tcuatro tr:nth-child(odd) td:nth-child(even),
#ccreativamente .tcuatro tr:nth-child(even) td:nth-child(odd) {
    background: var(--moradoo);
}

#ccreativamente .tresdecimos hr {
    background: var(--morado);
}

#ccreativamente .pip {
    background-image: url(img/receta-creativamente.jpg);
}


/* CAPITULO V */

#capitulov h2 {
    margin-bottom: 100px;
}

#capitulov .der {
    background-image: url(img/capitulov.jpg);
}


/* CAPITULO VI */

#capitulovi h2 {
    margin-bottom: 100px;
}

#capitulovi .der {
    background-image: url(img/capitulovi.jpg);
}

thead {
    position:-webkit-sticky;
    position:sticky;
    top: 60px;
}

thead:after {
    content: '';
    width: 100vw;
    height: 2px;
    background: var(--negro);
    position: absolute;
}

#territorios h2,
#terminos h2,
#glosario h2 {
    width: unset;
}

#territorios th {
    border: 2px solid var(--negro); 
    border-bottom: 0;
    margin: 0;
    padding: 12px 0;
    background-clip: padding-box !important;
    background: var(--blanco);
    font-family: Helvetica;
    padding-top: 1.2em;
    width: 20%;
}

#territorios th a {
    overflow: visible;
}

#territorios td {
    padding: 10px;
    border-top: 1px solid var(--negro); 
    border-bottom: 1px solid var(--negro); 
    width: 20%;
}

#territorios th:first-child {
    color: var(--rojo);
}

#territorios th:nth-child(2) {
    color: var(--azul);
}

#territorios th:nth-child(3) {
    color: var(--naranja);
}

#territorios th:nth-child(4) {
    color: var(--verde);
}

#territorios th:nth-child(5) {
    color: var(--morado);
}

#territorios .azul {
    background: var(--azul);
}

#territorios .naranja {
    background: var(--naranja);
}

#territorios .verde{
    background: var(--verde);
}

#territorios .morado {
    background: var(--morado);
}

#territorios .azul,
#territorios .naranja,
#territorios .verde,
#territorios .morado {
    padding: 0;
}

#territorios a:not(thead a) {
    padding: 18px;
    width: 100%;
    display: block;
}

#terminos h6,
#glosario h6 {
    width: 34%;
    display: inline-block;
    vertical-align: top;
    padding-top: 5px;
}

#terminos .texto,
#glosario p {
    width: 64%;
    display: inline-block;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
#terminos h6,
#glosario h6  {
        width: 100%;
        display: block;
    }
    
    #terminos .texto,
    #glosario p {
        width: 100%;
        display: block;
        margin-top: 20px;
        margin-bottom: 40px;
    }
}



/* CIERRE */

#cierre .logo {
    height: 120px;
}

#cierre .marcas {
    height: 140px;
    float: right;
}

@media (max-width: 768px) {
    
    #cierre {
        text-align: center;
    }
    
    #cierre .logo {
        width: 100%;
    }
    
    #cierre .marcas {
        height: unset;
        float: unset;
        width: 80%;
        margin-top: 40px;
    }
}


/* COCINANDO MOBILE */

.resumen {
    border-top: 2px solid var(--negro);
}

.resumen > div:not(.nav) {
    padding: 20px;
    border-bottom: 2px solid var(--negro);
}

.resumen h6 {
    width: 30%;
    display: inline-block;
    vertical-align: top;
    padding: 5px 5px 0px 0px;
}

.resumen p,
.resumen ul {
    width: 68%;
    display: inline-block;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .resumen h6  {
        width: 100%;
        display: block;
    }
    
    .resumen p,
    .resumen ul {
        width: 100%;
        display: block;
        margin-top: 20px;
        margin-bottom: 10px;
    }
}

.resumen p a {
    display: block;
    margin-bottom: 30px;
}

.resumen p a:last-child {
    display: block;
    margin-bottom: 0;
}

.resumen img {
    width: 40px;
    float: right;
    right: 20px;
    margin-top: -6px;  
}

#cdiario li:before {
    color: var(--azul);
}

#cdiario .scroll .nav a {
    border: 2px solid var(--azul);
}

#cdiario .scroll .nav a:hover {
    background: var(--azulo);
    opacity: 1;
}

#cantojos li:before {
    color: var(--naranja);
}

#cantojos .scroll .nav a {
    border: 2px solid var(--naranja);
}

#cantojos .scroll .nav a:hover {
    background: var(--naranjao);
    opacity: 1;
}

#csaludable li:before {
    color: var(--verde);
}

#csaludable .scroll .nav a {
    border: 2px solid var(--verde);
}

#csaludable .scroll .nav a:hover {
    background: var(--verdeo);
    opacity: 1;
}

#ccreativamente li:before {
    color: var(--morado);
}

#ccreativamente .scroll .nav a {
    border: 2px solid var(--morado);
}

#ccreativamente .scroll .nav a:hover {
    background: var(--moradoo);
    opacity: 1;
}

.scroll {
    overflow: scroll;
}

.scroll .nav {
    padding: 50px 0px 80px 20px;
    width: calc(((35vw + 10px) * 4) + 40px);
}

.scroll .nav:after {
    content: url(img/adelante.svg);
    display: block;
    width: 40px;
    position: absolute;
    right: 20px;
    margin-top: 20px;
}

.scroll .nav a {
    display: inline-block;
    padding: 15px 10px 10px 10px;
    width: 35vw;
    height: 160px;
    margin-right: 10px;
    text-align: center;
}

.scroll .nav a:not(a:nth-child(2)) h6 {
    padding-top: 1em;
}
 
.scroll.nav h6 {
    width: 100%;
    height: 40px;
    vertical-align: bottom;
    padding: 0;
}

.scroll .nav img {
    display: block;
    width: 50%;
    margin: 20px 0 10px 25%;
}

.scroll::-webkit-scrollbar {
    display: none;
  }

.scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


/* MOBILE FIXES */

@media (max-width: 768px) {
    #introduccion h2,
    #capituloii h2,
    #capituloiii h2,
    #capituloiv h2,
    #capitulov h2,
    #capitulovi h2 {
        margin-bottom: 80px;
    }

    #codigo hr {
        margin-bottom: 80px;
    }

    #codigo .der {
        padding: 40px 20px 40px 20px;
        border-top: 0;
    }

    .cocineros .botones {
        width: 100%;
        margin-left: 0;
    }

    .fix .botones {
        margin-top: 50px;
    }

    .hided.padding {
        padding: 0 20px 20px 20px;
    }

    .cocinando .cabeza {
        padding: 40px 0px 40px 20px;
    }

    .cocinando .cabeza h2 {
        width: 69%;
    }

    #terminos .izq,
    #glosario .izq {
        padding-bottom: 0;
    }

    #terminos .der,
    #glosario .der {
        border-top: 0;
        padding-top: 0;
    }

    div hr {
        width: 80px;
    }
}