.hamburger-button {
  position: relative;

  width: 2rem;
  height: 2rem;

  display: grid;
  place-items: center;
}

.hamburger-button div,
.hamburger-button div::after,
.hamburger-button div::before {
  content: "";
  width: 100%;
  height: 20%;

  background-color: var(--primary-color);
  border-radius: 100px;
  transition:
    background-color 0.3s ease-in-out,
    transform 0.3s ease-in-out;
}

.hamburger-button div::after {
  position: absolute;
  left: 0;
  top: 0;
}

.hamburger-button div::before {
  position: absolute;
  left: 0;
  bottom: 0;
}

input[type="checkbox"]:checked + .hamburger-button div {
  background-color: transparent;
}

input[type="checkbox"]:checked + .hamburger-button div::after {
  transform: translateY(200%) rotate(45deg);
}

input[type="checkbox"]:checked + .hamburger-button div::before {
  transform: translateY(-200%) rotate(-45deg);
}

.header {
  position: sticky;
  top: 0;
  height: 5rem;

  padding: 0.5rem var(--page-margin);
  display: flex;
  justify-content: space-between;

  background-color: #ffffff80;
  backdrop-filter: blur(10px);

  z-index: 999;
}

.header__main-logo {
  max-width: 75%;
  height: 100%;
  display: inline-block;
}

.header__side {
  position: absolute;
  top: 0;
  right: 100%;

  width: 100%;
  max-width: 600px;
  height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  list-style: none;

  background-color: #ffffff;
  padding: 1rem;
  padding-bottom: 3rem;

  font-family: "Poppins";
  font-weight: 400;
  font-size: 1.25rem;
  transition: transform 200ms ease-in-out;
}

.header input:checked ~ .header__side {
  transform: translateX(100%);
}

.header__icon-cross {
  --size: 1.5rem;
  width: var(--size);
  height: var(--size);

  position: relative;
  right: 0;
  top: 0;
  display: grid;
  place-items: center;

  transform-origin: center;
  border-radius: 100px;
  align-self: flex-end;
}

.header__icon-cross:active {
  background-color: #0002;
}

.header__icon-cross::after,
.header__icon-cross::before {
  content: "";
  position: absolute;

  width: var(--size);
  height: calc(var(--size) * 0.2);

  background-color: #000;
  transform: rotate(45deg);
  transform-origin: center;
  border-radius: 100px;
}

.header__icon-cross::before {
  transform: rotate(-45deg);
}

.header__side-div {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.header__logo-menu {
  width: 80%;
  height: auto;
}

.header__links {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 1rem;
}

.header__links a {
  display: inline-block;
  width: 100%;
  text-decoration: none;
  color: black;
  border-bottom: solid 1px #0005;
  padding-bottom: 1rem;
  white-space: nowrap;
}

.header__social-links {
  width: 100%;
  max-width: 200px;
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.header__social-links li,
.header__social-links a {
  display: contents;
}

.header__social-links img {
  width: 100%;
  border-radius: 50%;
  aspect-ratio: 1/1;
  background: #fff;
  box-shadow: 0px 4px 8px 2px rgba(0, 124, 251, 0.16);
}

.header__link {
  text-decoration: none;
  font-weight: 600;
  color: var(--a-title-secondary);
}

@media (min-width: 1100px) {
  .header--secondary {
    padding: 0;
    justify-content: center;
    backdrop-filter: none;
    background-color: transparent;
  }

  .header__side {
    max-width: 300px;
  }

  .header--secondary .header__main-logo {
    display: none;
  }

  .header--secondary .header__navbar {
    position: relative;
    top: 50%;

    width: 100%;
    max-width: 1100px;
    height: 100%;

    display: flex;
    flex-direction: row;
    align-items: center;
    flex-flow: row-reverse;
    gap: 4rem;

    background-color: #fff8;
    backdrop-filter: blur(10px);
    box-shadow: 0px 0px 30px 2px rgba(0, 0, 0, 0.08);
    padding: 0 3rem;
  }

  .header--secondary .hamburger-button {
    display: none;
  }

  .header--secondary .header__links {
    height: 100%;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
  }

  .header--secondary .header__links a {
    display: grid;
    place-items: center;
    height: 100%;

    font-size: 1rem;
  }

  .header--secondary .header__links li,
  .header--secondary .header__side,
  .header--secondary .header__side-div {
    display: contents;
  }

  .header--secondary .hamburger-button,
  .header--secondary .header__icon-cross,
  .header--secondary .header__social-links,
  .header--secondary .header__logo-menu,
  .header--secondary .header__link {
    display: none;
  }

  .header--secondary .header__links a {
    border-bottom: none;
    padding-bottom: 0;
    text-align: center;
  }
}

/* --- SECTION --- */

/* SECTION */
.section {
  width: 100%;
  height: auto;
  padding: 5rem var(--page-margin);
  background-color: var(--a-section-bg);
  gap: 5rem;
}

/* LAYOUTS */
/* A dos columnas */
.section--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  align-items: center;
  justify-items: center;
}

/* A una columna */
.section--mono {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* SIZES */
.section--full-width {
  padding-left: 0;
  padding-right: 0;
}

.section--full-height {
  min-height: calc(100vh - 5rem);
}

/* BG COLORS */
.section--secondary {
  background-color: var(--b-section-bg);
}

.section--tertiary {
  background-color: var(--c-section-bg);
}

.section--mono * {
  text-align: center;
}

/* MODIFIERS */

.section--no-y-pd {
  padding-top: 0;
  padding-bottom: 0;
}

/* CONTAINERS */
.section__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.section__header--limit {
  max-width: 600px;
}

.section--full-width .section__header {
  padding-left: var(--page-margin);
  padding-right: var(--page-margin);
}

.section--full-width .section__header--limit {
  box-sizing: content-box;
}

.section__main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section__image {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* TEXTS */
.section__title {
  font-size: 2.25rem;
  font-family: "Mulish";
  font-weight: 700;
  line-height: 1.2;

  color: var(--a-title-main);
}

.section--secondary .section__title {
  color: var(--b-title-main);
}

.section__subtitle {
  font-size: 1.5rem;
  font-family: "Poppins";
  font-weight: 400;
  line-height: 1.2;

  color: var(--a-title-secondary);
}

.section--secondary .section__subtitle {
  color: var(--b-title-secondary);
}

.section__text {
  font-size: 1.25rem;
  color: var(--a-text-main);
}

.section--secondary .section__text {
  color: var(--b-text-main);
}

@media screen and (max-width: 768px) {
  .section--duo {
    grid-template-columns: 1fr;
    grid-template-rows: min-content min-content;
    grid-template-areas: "main" "image";
    gap: 3rem;
  }

  .section__main {
    grid-area: main;
  }
}

/* --- FOOTER --- */
.footer {
  padding-top: 5rem;
  background-color: var(--d-section-bg);
  color: var(--d-text-main);
  font-size: 20px;
}

.footer__section {
  padding: 2rem var(--page-margin);
  display: flex;
  justify-content: space-between;
}

.footer__section:nth-child(2) {
  border-top: solid white 1px;
}

.footer__container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer__logo {
  width: 100%;
  max-width: 250px;
}

.footer__title {
  font-size: 2.25rem;
  font-family: "Mulish";
  font-weight: 700;
  line-height: 1.2;
  color: var(--d-title-main);
}

.footer__social-media-links {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
}

.footer__social-media-links li,
.footer__social-media-links a {
  display: contents;
}

.footer__social-media-links img {
  width: 100%;
  max-width: 3rem;
  aspect-ratio: 1/1;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__list-row {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.footer__list-row > *:nth-child(2) {
  border-left: solid var(--d-text-main) 1px;
  padding: 0 1rem;
}

.footer__link {
  font-size: 1.25rem;
  font-family: "Poppins";
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;

  color: var(--d-text-main);
}

.footer__link:visited {
  color: var(--d-text-main);
}

.footer__info {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
}

.footer__icon {
  width: 1em;
  height: 1em;

  object-fit: contain;
}

.footer__icon-social {
  display: inline-block;
  width: 4rem;
  height: 4rem;

  object-fit: contain;
}

.footer__content {
  width: 100%;
  max-width: 280px;
}

@media (max-width: 768px) {
  .footer {
    text-align: center;
  }

  .footer__section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .footer__container {
    align-items: center;
  }

  .footer__logo {
    max-width: 300px;
  }

  .footer-hidden-in-mobile {
    display: none;
  }
}
