@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
:root {
  --primary-color: #a50000;
  --light-color: #fff;
  --light-color-hover: #ffbbbb;
  --dark-color: #000;
  --gray: #8d8d8d;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
ul,
li {
  list-style: none;
}
a {
  text-decoration: none;
}
svg {
  width: 16px;
  height: 16px;
  fill: var(--light-color);
}
body {
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
header {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background-color: var(--primary-color);
  color: var(--light-color);
  font-weight: 600;
  a {
    color: var(--light-color);
  }
}
header #logo {
  width: 25%;
  background-color: var(--light-color);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
header #logo img {
  width: 100px;
  height: 100px;
  padding: 0.5rem;
}
header a:last-of-type {
  padding-right: 6rem;
}
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
main h1 {
  width: 50%;
  text-align: center;
  padding: 2rem;
  font-weight: 500;
}
form {
  padding: 2rem;
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
form div {
  width: 100%;
  display: flex;
  flex-direction: column;
}
form div input {
  padding: 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid black;
}
form div textarea {
  resize: none;
  padding: 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid black;
}
form button {
  background-color: var(--primary-color);
  padding: 0.7rem;
  color: var(--light-color);
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
}
footer {
  padding: 2rem 4rem 0rem 4rem;
  background-color: var(--primary-color);
  color: var(--light-color);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
footer div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 2.5rem;
  font-size: 14px;
}
footer div h2 {
  font-size: 16px;
}
footer div p,
a {
  color: var(--light-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
footer div a:hover {
  text-decoration: underline;
}
footer div .redes_sociales {
  padding: 0;
  display: flex;
  flex-direction: row;
  gap: 1rem;
}
footer div .redes_sociales a svg {
  width: 24px;
  height: 24px;
}
footer div .copyright {
  border-top: 1px solid var(--light-color);
  align-items: center;
  grid-column: span 3;
}
@media (max-width: 768px) {
  main h1 {
    width: 100%;
  }
  form {
    width: 100%;
  }

  footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
  }
  footer a {
    color: var(--light-color);
  }
  footer a:hover {
    text-decoration: underline;
  }
  footer div {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  footer div .redes_sociales {
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 1rem;
  }
  footer div .redes_sociales a svg {
    width: 24px;
    height: 24px;
  }
  footer div span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  footer div .copyright {
    border-top: 1px solid var(--light-color);
    display: flex;
    align-items: center;
  }
}
