:root {
  --font-playfair-display: "Playfair Display", sans-serif;
  --font-montserrat: "Montserrat", sans-serif;
  --body-bg: #181719;
  --white: #ffffff;
  --black: #000000;
}

html {
  font-size: 62.5%; /* font-size base a nivel de html */
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-size: 16px; /* font-size base a nivel del documento (1rem  = 10px) */
  padding-left: calc(15.4rem + 5vw);
  padding-right: calc(15.7rem + 5vw);
}

@media (max-width: 767px) {
  body {
    padding-left: 1.1rem;
    padding-right: 1.2rem;
  }
}

/* general */

img {
  max-width: 100%;
}

/* header */

.header {
  padding-bottom: 4.8rem;
}

.header h1 {
  margin: 5.2rem 0 0 0;
}

.header-title {
  font-family: var(--font-playfair-display);
  font-style: normal;
  font-weight: bold;
  font-size: calc(4.8rem + 0.25vw);
  line-height: calc(6.4rem + 0.25vw);
  color: #000000;
  width: fit-content;
}

.header-text-container {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  gap: 1.2rem;
  padding-bottom: 3rem;
}

.header-6dots {
  height: 0.8rem;
}

.header-text {
  font-family: var(--font-montserrat);
  font-style: italic;
  font-weight: 500;
  font-size: calc(1.4rem + 0.09vw);
  line-height: calc(1.7rem + 0.05vw);
  color: #4f4f4f;
  width: calc(55rem + 5vw);
}

@media (max-width: 767px) {
  .header {
    padding-bottom: 2rem;
  }

  .header h1 {
    margin: 3.2rem 0 0 0;
  }

  .header-title {
    font-size: calc(2.4rem + 0.25vw);
    line-height: calc(3.2rem + 0.25vw);
  }

  .header-text-container {
    gap: 0.8rem;
    padding-bottom: 1.5rem;
  }

  .header-6dots {
    height: 0.8rem;
  }

  .header-text {
    font-size: calc(1.2rem + 0.25vw);
    line-height: calc(1.5rem + 0.25vw);
    padding-right: 1rem;
  }
}

/* main */
.main {
  display: grid;
  grid-template-columns: 75% 20%;
  column-gap: 5rem;
  /* display: flex;
  flex-direction: row;
  gap: 1rem; */
}

.recipe-keys {
  margin-top: 4rem;
  background: #ffffff;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  border-radius: 1.2rem;
  padding: 4rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  height: fit-content;
}

.rk-block-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

.text-01,
.text-02 {
  font-family: var(--font-montserrat);
  font-style: normal;
  margin: 0;
}

.text-01 {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2rem;
  text-transform: uppercase;
  color: #bdbdbd;
}

.text-02 {
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.7rem;
  color: #333333;
}

@media (max-width: 1200px) {
  .main {
    display: flex;
    flex-direction: column-reverse;
  }
}

@media (max-width: 767px) {
  .recipe-keys {
    border-radius: unset;
    background: unset;
    box-shadow: none;
    padding: 1rem 0.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1rem;
  }

  #item01 {
    grid-column: 1 / 3;
    grid-row: 1 / 1;
  }

  #item02 {
    grid-column: 1 / 1;
    grid-row: 2 / 2;
  }

  #item03 {
    grid-column: 2 / 2;
    grid-row: 2 / 2;
  }

  #item04 {
    grid-column: 3 / 3;
    grid-row: 2 / 2;
  }

  .rk-block-row {
    align-items: flex-start;
  }

  .text-01 {
    font-size: 0.8rem;
    line-height: 1rem;
  }

  .text-02 {
    font-size: 1rem;
    line-height: 1.2rem;
  }
}

/* receta - listas no ordenadas */

.ib-title {
  font-family: var(--font-playfair-display);
  font-style: normal;
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 3.2rem;
  color: #333333;
}

.ib-subtitle {
  font-family: var(--font-playfair-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.8rem;
  line-height: 2.4rem;
  color: #333333;
}

.ib-list-item-text {
  font-family: var(--font-montserrat);
  font-style: normal;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 2.5rem;
  color: #333333;
  margin-top: -2.5rem;
}

.ib-list {
  list-style-type: none;
  list-style-position: inside;
}

@media (min-width: 768px) {
  .ib-list {
    width: calc(52rem + 2vw);
  }
}

.ib-list li {
  display: block;
  height: fit-content;
}

.ib-list li::before {
  /* Uso Google Material Icons para estilizar los íconos */
  font-family: "Material Symbols Outlined";
  content: "\e3c6";
  margin: 0 0 0 -4rem;
}

/* instrucciones */

.instructions {
  list-style-type: none;
  counter-reset: items;
}

@media (min-width: 768px) {
  .instructions {
    width: calc(52rem + 2vw);
  }
}

.instructions li:not(:last-child) {
  /* espacio entre items de lista */
  padding-bottom: 2rem;
}

.instructions li::before {
  /* personalizar número de item */
  margin: 0 0 0 -4rem;
  content: counter(items);
  counter-increment: items;
  font-family: var(--font-playfair-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 2.8rem;
  color: var(--white);
  background: #f2994a;
  border-radius: 6px;
  padding: 0 1rem;
}

.ib-title,
.source {
  padding: 2rem 0;
}

.inb-list-item-text {
  font-family: var(--font-montserrat);
  font-style: normal;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 2.4rem;
  color: #333333;
  margin-top: -3.5rem;
}

.source {
  font-family: var(--font-montserrat);
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 2.4rem;
  color: #bdbdbd;
}

/* footer */

footer {
  margin-top: 9.5rem;
  padding-bottom: 2rem;
}

.footer-text {
  font-family: var(--font-montserrat);
  font-style: normal;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.7rem;
  text-align: center;
  color: #a9a9a9;
}

.username {
  text-decoration: underline;
  font-weight: bold;
}
