/* General styles */
*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Colores base */
:root {
  --color-bg: hsl(75, 6%, 87%);
  --color-secundary: hsl(214, 23%, 56%);
  --color-accent: hsl(212, 29%, 36%);
  --color-text: hsl(219, 37%, 17%);
  --other-color: hsl(210, 54%, 11%);
}

/* modo oscuro */
.dark {
  --color-bg: hsl(219, 37%, 17%);
  --color-text: hsl(75, 6%, 87%);
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: "Open Sans", sans-serif;
}

/* header */
header {
  width: 100%;
  padding: 1rem 2.5rem;
  justify-content: space-between;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  color: hsl(75, 6%, 87%);
  background-color: var(--other-color);
}

.logotipo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  justify-self: start;
}

.logotipo p {
  padding: 0.5rem;
}

nav {
  display: none;
  gap: 1rem;
  background-color: var(--color-accent);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  align-content: center;
}

nav li {
  display: inline-block;
  border-radius: 1rem;
  padding: 0.5rem 1rem;
}

nav a {
  text-decoration: none;
  color: hsl(75, 6%, 87%);
}

nav li:hover,
nav li:active {
  background-color: var(--color-secundary);
}

.btn {
  display: flex;
  justify-content: flex-end;
}

.menu-btn {
  font-size: 2rem;
  cursor: pointer;
  position: relative;
  display: flex;
  border-radius: 50%;
  padding: 0.5rem;
  align-items: center;
  background-color: var(--other-color);
  color: hsl(75, 6%, 87%);
}

.social-toggle {
  display: none;
}

.social-toggle img {
  border: 2px solid hsl(75, 6%, 87%);
  margin: 0 0.5rem;
  padding: 0.2rem;
  border-radius: 10px;
}

.toggle {
  margin-left: 1rem;
  cursor: pointer;
  background: none;
  border: 1px solid var(--other-color);
  border-radius: 50%;
  padding: 0.4rem;
  font-size: 1rem;
}

/* menu mobile */
.menu {
  display: none;
  flex-direction: column;
  padding: 1rem;
  border-top: 1px solid #ddd;
  background-color: var(--other-color);
}

.menu a {
  margin: 0.5rem 0;
  text-decoration: none;
  color: white;
}

.menu.show {
  display: flex;
}

.socials img {
  border: 2px solid hsl(75, 6%, 87%);
  margin: 0 0.5rem;
  padding: 0.2rem;
  border-radius: 10px;
  background-color: var(--other-color);
}

/* main */
main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.header-work {
  border-bottom: 2px solid var(--color-text);
  padding-bottom: 2.5rem;
}

.title {
  font-size: max(2.4em, 2.4em + 3.4cqi);
  color: var(--color-text);
  margin-bottom: 0.5rem;
  justify-self: center;
  margin-top: 3.5rem;
}

.details {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  margin: 0 2.5rem;
}

.tags {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  font-size: max(1em, 1em + 1cqi);
}

.tags a {
  text-decoration: none;
  color: hsl(75, 6%, 87%);
  padding: 0.5rem 1rem;
  gap: 0.5rem;
  border: 1px solid var(--color-accent);
  background-color: var(--color-accent);
  border-radius: 999rem;
  line-height: 1.35;
  white-space: nowrap;
}

.main-work {
  max-width: 50rem;
  align-self: center;
}

.mockup {
  margin: 0 2.5rem;
}

.mockup img {
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  display: flex;
  justify-self: center;
}

.description {
  margin: 2.5rem;
  font-size: max(1em, 1em + 0.8cqi);
}
.description p {
  margin-top: 1rem;
}

/* footer*/
footer {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 1.5rem;
  padding: 3rem 2rem;
  border-top: 2px solid var(--color-text);
}

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

.socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.socials a {
  text-decoration: none;
  color: var(--color-text);
}

@media (min-width: 800px) {
  header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
  }

  .menu-btn {
    display: none;
  }

  nav {
    display: flex;
    border-radius: 1rem;
    padding: 0 1rem;
    --l: 50%;
    grid-column: 2;
    grid-row: 1;
    width: fit-content;
    justify-self: center;
  }

  .social-toggle {
    display: flex;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  main {
    gap: 2.5rem;
  }

  .details {
    flex-direction: row;
  }

  footer {
    flex-direction: row;
    justify-content: space-between;
    padding: 2.5rem 5rem;
  }

  .group {
    flex-direction: row;
    gap: 3rem;
  }
}
