:root {
  font-size: 10px;
  --bg-color: #f6f3ec;
  --bg-section-two: #572e6c;
  --font-second-color: #f3793a;
  --font-third-color: #676767;
  --font-title-form: #838383;
  --font-phone-color: #858590;
  --input-color: #f6f3ec;
  --form-color: #ffffff;
  --d: #58595b;
  --radius: 2.5rem;
}
/* normalizando estilos */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Lato", sans-serif;
}
input,
button {
  border: none;
  outline: none;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
body {
  width: 100vw;
  background-color: var(--bg-color);
  overflow-x: hidden;
}

/* HEADER */

header {
  width: 100%;
  height: 10rem;
  padding: 1.5rem 11rem;
}
header img {
  width: 20rem;
}

/* MAIN */
main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* SECTION 1 */
main > :nth-child(1) {
  padding: 0 8rem 7rem 8rem;
  display: flex;
  gap: 1rem;
  width: 100%;
  justify-content: space-between;
}

.poster {
  position: relative;
}
.poster h1 {
  color: var(--font-second-color);
  text-transform: uppercase;
  font-size: 2.8rem;
  font-weight: 800;
  position: absolute;
  top: 5rem;
  left: 6rem;
}
.poster img {
  width: 70rem;
}
.poster span {
  font-size: 2.7rem;
  position: absolute;
  bottom: 0rem;
  left: 17rem;
  font-family: "candelabold";
  width: 40rem;
  text-align: center;
}

form {
  background-color: var(--form-color);
  padding: 5rem 5rem 6rem 5rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 53rem;
}
form h2 {
  color: var(--font-title-form);
  font-size: 2.6rem;
  width: 28rem;
}
form span {
  color: var(--font-second-color);
  font-style: italic;
  font-size: 1.8rem;
  white-space: pre-line;
  margin-bottom: 1.5rem;
}
form label input {
  padding: 1rem;
  background-color: var(--input-color);
  border-radius: 0.5rem;
  border: 1px solid var(--font-second-color);
  width: 30rem;
}
form button {
  align-self: center;
}
form div {
  font-size: 1rem;
  color: var(--font-title-form);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
form div p {
  width: 25rem;
}
form div p a {
  font-weight: 600;
}
form div p a:visited {
  color: var(--font-third-color);
}

form div input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  width: 3.2rem;
}

form div input[type="checkbox"] + label::before {
  content: "";
  background-image: url("./assets/toggle-off.svg");
  background-size: cover;
  display: inline-block;
  width: 3.2rem;
  height: 1.6rem;
  margin-right: 0.4em;
  transition: all 0.3s linear;
}

    form div input[type="checkbox"]:checked + label::before {
        content: "";
        background-image: url("./assets/toggle-on.svg");
        background-size: cover;
        display: inline-block;
        width: 3.2rem;
        height: 1.6rem;
        margin-right: 0.4em;
        transition: all 0.3s linear;
    }

/* SECTION 2 */

main > :nth-child(2) {
  background-color: var(--bg-section-two);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  padding: 4rem;
}
main > :nth-child(2) div {
  width: 60rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
main > :nth-child(2) h1 {
  font-size: 3.4rem;
  font-weight: 500;
}
main > :nth-child(2) p {
  color: var(--form-color);
  font-size: 1.6rem;
  line-height: 2.5rem;
  font-weight: 500;
}
main > :nth-child(2) img {
  width: 25rem;
}

/* SECTION 3 */

main > :nth-child(3) {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  padding: 6rem;
}

main > :nth-child(3) .card-question {
  display: flex;
  background-color: var(--form-color);
  border-radius: var(--radius);
  padding: 4rem;
  width: 42rem;
  gap: 1.5rem;
  flex-direction: column;
}
main > :nth-child(3) .card-question h2 {
  font-size: 2.1rem;
  font-family: "candelabold";
  font-style: italic;
  font-weight: 500;
  text-align: center;
}
main > :nth-child(3) .card-question p {
  font-size: 1.5rem;
  font-weight: 500;
  text-align: center;
  color: var(--font-third-color);
  line-height: 2.5rem;
}

/* SECTION 4 */

main > :nth-child(4) {
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  justify-content: center;
  align-items: center;
}
main > :nth-child(4) h2 {
  font-size: 2.4rem;
  font-family: "candelabold";
  color: var(--font-third-color);
  width: 100%;
  font-weight: 500;
  text-align: center;
  font-style: italic;
}
main > :nth-child(4) h2::after {
  content: "";
  background-image: url(./assets/arrow-down.svg);
  background-repeat: no-repeat;
  width: auto;
  height: 1.6rem;
  background-size: contain;
  display: flex;
  margin: 1.2rem;
  background-position-x: center;
}
main > :nth-child(4) div {
  display: flex;
  gap: 6rem;
  justify-content: center;
  height: 3rem;
  margin-bottom: 5rem;
  align-items: flex-start;
}
main > :nth-child(4) div img {
  /* height: 100%; */
  width: 12rem;
}
main > :nth-child(4) a {
  padding: 0.8rem 2rem;
  background-color: var(--font-second-color);
  color: var(--form-color);
  border-radius: 0.7rem;
  font-size: 1.3rem;
  font-style: italic;
  width: fit-content;
  text-decoration: none;
}
/* FOOTER */

footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 3rem 12rem;
  color: var(--font-third-color);
  gap: 2rem;
}
footer .data {
  display: flex;
  justify-content: space-between;
  padding: 3rem 1.5rem;
  border-top: 0.1rem solid var(--font-second-color);
}
footer .data h3 {
  font-size: 1.4rem;
}
footer .data .office,
footer .data .details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
footer .data .office h3 {
  display: flex;
  align-items: center;
}
footer .data .office h3::before {
  display: flex;
  content: "";
  background-image: url(./assets/arrow-right.svg);
  width: 2rem;
  background-size: contain;
  background-repeat: no-repeat;
  height: 100%;
}
footer .data .office span {
  font-size: 1.2rem;
  letter-spacing: -.04rem;
}
footer .data .office .phone {
  text-decoration: none;
  color: var(--font-third-color);
  font-size: 1.2rem;
  font-weight: 700;
}
footer .data .office .phone:hover {
  color: var(--font-second-color);
}
footer .data .details {
  align-items: flex-start;
  display: flex;
}
footer .data .details .icon-a,
footer .data .details .socialmedia {
  align-items: center;
  justify-items: flex-start;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 1rem;
}
footer .data .details .icon-a img {
  width: 2.3rem;
}
footer .data .details a {
  font-weight: 600;
  font-size: 1.1rem;
  width: 100%;
  text-decoration: none;
}
footer .data .details a:visited {
  color: var(--font-third-color);
}
footer .data .details .socialmedia img {
  width: 1.6rem;
  height: 1.6rem;
}
footer .copy {
  width: 100%;
  text-align: center;
  font-size: 1.1rem;
}

/* CLASES */
.question {
  color: var(--font-second-color);
  font-family: "candelabook";
}

.button {
  padding: 0.8rem 3rem;
  background-color: var(--font-second-color);
  color: var(--form-color);
  border-radius: 0.7rem;
  font-size: 1.3rem;
  font-style: italic;
  width: fit-content;
  cursor: pointer;
}
.button:hover {
  filter: saturate(1.2) drop-shadow(1px 1px 2px var(--font-second-color));
}

/* RESPONSIVE */

/* MOBILE */
@media only screen and (min-width: 0px) and (max-width: 768px) {
  header {
    padding: 2rem 0 0 4rem;
  }
  header img {
    width: max(34vw, 16rem);
  }

  main > :nth-child(1) {
    flex-direction: column;
    padding: 0;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
  }
  .poster {
    padding: 4rem 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .poster h1 {
    font-size: 2rem;
    width: 4rem;
    top: 2rem;
    left: calc(20% - 4rem);
  }
  .poster img {
    width: 90vw;
  }
  .poster span {
    position: relative;
    width: max(55vw, 23rem);
    font-size: max(4vw, 1rem);
    display: flex;
    bottom: auto;
    left: auto;
  }

  form {
    align-items: center;
    padding: 4rem;
    gap: 2rem;
    height: auto;
  }
  form h2 {
    font-size: 2rem;
    width: 21rem;
    text-align: center;
  }
  form span {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    text-align: center;
  }
  form label input {
    width: max(47vw, 21rem);
  }
  form div p {
    width: max(38vw, 19rem);
  }

  main > :nth-child(2) {
    flex-direction: column;
    padding: 2rem 1rem;
  }
  main > :nth-child(2) div {
    width: 70%;
  }
  main > :nth-child(2) h1 {
    text-align: center;
    font-size: 2.5rem;
  }
  main > :nth-child(2) p {
    text-align: center;
    font-size: 1.3rem;
  }
  main > :nth-child(2) img {
    width: 20rem;
  }
  main > :nth-child(3) {
    flex-direction: column;
  }
  main > :nth-child(3) .card-question {
    width: 32rem;
  }
  main > :nth-child(4) div {
    flex-wrap: wrap;
    width: 47rem;
    height: auto;
    margin-bottom: 0;
  }
  main > :nth-child(4) h2 {
    font-size: 1.7rem;
  }
  main > :nth-child(4) h2::after {
    height: 1rem;
  }

  footer {
    padding: 2rem 0;
  }
  footer .data {
    display: grid;
    grid-template-columns: repeat(2, 14rem);
    grid-template-rows: repeat(2, 1fr);
    grid-row-gap: 1rem;
    width: 100%;
    padding: 2rem 0;
    justify-content: space-around;
  }
  footer .data > :nth-child(1) {
    grid-area: 1 / 1 / 2 / 2;
  }
  footer .data > :nth-child(2) {
    grid-area: 1 / 2 / 2 / 3;
  }
  footer .data > :nth-child(3) {
    grid-area: 2 / 1 / 3 / 2;
  }
  footer .data > :nth-child(4) {
    grid-area: 2 / 2 / 3 / 3;
  }
}
/* TABLET */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  header {
    padding: 2rem 0 0 4rem;
  }
  header img {
    width: 28rem;
  }
  main > :nth-child(1) {
    flex-direction: column;
    padding: 0;
    gap: 8rem;
    align-items: center;
    margin-bottom: 4rem;
  }
  .poster {
    padding: 4rem 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .poster h1 {
    width: 4rem;
    left: 10rem;
  }
  .poster span {
    position: relative;
    display: flex;
    bottom: auto;
    left: auto;
  }

  main > :nth-child(2) {
    /* height: 29rem; */
    flex-direction: column;
  }
  main > :nth-child(2) div {
    width: 70%;
  }
  main > :nth-child(2) h1 {
    text-align: center;
  }
  main > :nth-child(2) p {
    text-align: center;
  }
  main > :nth-child(3) {
    flex-direction: column;
  }
  main > :nth-child(3) .card-question {
    width: 36rem;
  }
  main > :nth-child(4) div {
    flex-wrap: wrap;
    width: 47rem;
    height: auto;
    margin-bottom: 0;
  }
  footer .data {
    display: grid;
    grid-template-columns: repeat(2, 18rem);
    grid-template-rows: repeat(2, 1fr);
    grid-row-gap: 1rem;
    width: 100%;
    padding: 2rem 0;
    justify-content: space-around;
  }
  footer .data > :nth-child(1) {
    grid-area: 1 / 1 / 2 / 2;
  }
  footer .data > :nth-child(2) {
    grid-area: 1 / 2 / 2 / 3;
  }
  footer .data > :nth-child(3) {
    grid-area: 2 / 1 / 3 / 2;
  }
  footer .data > :nth-child(4) {
    grid-area: 2 / 2 / 3 / 3;
  }
}
/* MEDIUM SIZE */
@media only screen and (min-width: 1024px) and (max-width: 1320px) {
  main > :nth-child(1) {
    flex-direction: column;
    padding: 0;
    gap: 14rem;
    align-items: center;
    margin-bottom: 4rem;
  }
  .poster h1 {
    width: 4rem;
    left: 5rem;
  }
  .poster img {
    width: 80rem;
  }
  .poster span {
    bottom: -9rem;
    left: 20rem;
  }
}
@media only screen and (min-width: 1600px) and (max-width: 8000px) {
  main > :nth-child(1) {
    justify-content: center;
    gap:6rem;
  }
}
