html {
  scroll-behavior: smooth;
}
:root {
  --padding-container: 100px 0;
  --color-title: #001a49;
}

body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
  background-color: #efeae6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: var(--padding-container);
}

.hero {
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 800px;
  position: relative;
  display: grid;
  grid-template-rows: 100px 1fr;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(180deg, #0000008c 0%, #0000008c 100%),
    url("../images/computer.jpg");
  background-size: cover;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 95%, 0 80%);
  z-index: -1;
}

/* Nav */

.nav {
  --padding-container: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav__link {
  margin-left: auto;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 2em;
}

.nav__items {
  list-style: none;
}

.nav__links {
  color: #fff;
  text-decoration: none;
}

.nav__menu {
  margin-left: auto;
  cursor: pointer;
  display: none;
}

.nav__img {
  display: block;
  width: 30px;
}

.nav__close {
  display: var(--show, none);
}
.nav__logo {
  margin-left: 20px;
  margin-top: 20px;
}

.nav__logo img {
  width: 80px;
  display: block;
}

/* Hero container */

.hero__container {
  max-width: 800px;
  --padding-container: 0;
  display: grid;
  grid-auto-rows: max-content;
  align-content: center;
  gap: 1em;
  padding-bottom: 100px;
  text-align: center;
}

.hero__title {
  font-size: 3rem;
  font-weight: 300;
  line-height: 0.6;
}

.hero__paragraph {
  margin-bottom: 20px;
}
.hero__paragraph1 {
  margin-bottom: 20px;
  line-height: 1.4;
}
.hero__consultora {
  font-weight: 300;
  line-height: 0.9;
}
.hero__quote {
  font-style: italic;
  line-height: 0.4;
}
.cta {
  display: inline-block;

  color: #1f3b4d;
  text-decoration: none;
  padding: 8px;
  border-radius: 10px;
}

/* About */

.subtitle {
  color: #1f3b4d;
  font-size: 3rem;
  margin-bottom: 15px;
  font-weight: 400;
  text-align: center;
}

/* Knowledge */

mark {
  background-color: #e0ccbb;
  color: #333;
  padding: 2px 4px;
  border-radius: 3px;
}

.knowledge {
  background-color: #b4ada3;
  background-image: radial-gradient(#1f3b4d 0.5px, transparent 0.5px),
    radial-gradient(#1f3b4d 0.5px, #b4ada3 0.5px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  overflow: hidden;
}

.knowledge__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2em;
  align-items: center;
  padding-top: 50px;
  padding-bottom: 50px;
}

.knowledge__picture {
  max-width: 500px;
}

.knowledge__paragraph {
  line-height: 1.7;
  margin-bottom: 10px;
}

.knowledge__img {
  width: 100%;
  display: block;
}

/* price */
.negrita-custom {
  font-weight: bold;
}

.price {
  text-align: center;
}

.price__table {
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  justify-content: center;
  align-items: stretch;
}

.price__element {
  text-align: left;
  border-radius: 10px;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 5px;
  --color-plan: #1f3b4d;
  --color-cta: #1f3b4d;
  --color-items: #1f3b4d;
}

.price__element--best {
  width: 340px;
  --color-plan: #1f3b4d;
  --bg-cta: #1f3b4d;
  --color-cta: #1f3b4d;
  --color-items: #1f3b4d;
}

.price__name {
  color: #7a7a7a;
  margin-bottom: 5px;
  font-weight: 300;
}

.price__price {
  font-size: 2rem;
  color: #1b2452;
}

.price__items {
  margin-top: 5px;
  display: grid;
  gap: 1em;
  font-weight: 300;
  font-size: 1rem;
  margin-bottom: 5px;
  color: var(--color-items);
  /*background-color: #ffffff; 
  border-radius: 10px; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
  border: 1px solid #ddd; 
  padding: 30px; 
  height: 100%;  
  box-sizing: border-box; */
}

.price__cta {
  display: block;
  padding: 20px 20px;
  border-radius: 10px;
  border: 1px solid #001a49;
  text-decoration: none;
  color: #1f3b4d;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
}

/* Questions */

.questions {
  text-align: center;
}

.questions__container {
  display: grid;
  gap: 2em;
  padding-top: 20px;
  padding-bottom: 20px;
}

.questions__padding {
  padding: 0;
  transition: padding 0.3s;
  border: 1px solid #1f3b4d;
  border-radius: 6px;
}

.questions__padding--add {
  padding-bottom: 30px;
}

.questions__answer {
  padding: 0 30px 0;
  overflow: hidden;
}

.questions__title {
  text-align: left;
  display: flex;
  font-size: 20px;
  padding: 30px 0 30px;
  cursor: pointer;
  color: #1f3b4d;
  justify-content: space-between;
}

.questions__arrow {
  border-radius: 50%;
  background-color: var(--color-title);
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: flex-end;
  margin-left: 10px;
  transition: transform 0.3s;
}

.questions__arrow--rotate {
  transform: rotate(180deg);
}

.questions__show {
  text-align: left;
  height: 0;
  transition: height 0.3s;
  color: #1f3b4d;
}

.questions__img {
  display: block;
}

/* --- Contact Section Styles --- */
.contact-section {
  background-color: #b4ada3;
  background-image: radial-gradient(#1f3b4d 0.5px, transparent 0.5px),
    radial-gradient(#1f3b4d 0.5px, #b4ada3 0.5px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.contact__container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  align-items: stretch;
  text-align: left;
  padding-top: 50px;
  padding-bottom: 50px;
  height: 100%;
}

.contact__paragraph {
  line-height: 1.7;
  margin-bottom: 30px;
  font-size: 1.5rem;
}

.contact__picture {
  max-width: 500px;
  justify-self: end;
  height: 100%;
  align-self: stretch;
}

.contact__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.contact__paragraph--centered {
  text-align: center;
}

.contact__call-to-action {
  text-align: center;
  margin-bottom: 90px;
}

.contact__social-links {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 20px;
}

.social-icon {
  display: inline-block;
  width: 35px;
  height: 50px;

  transition: transform 0.3s ease;
}

.social-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  fill: #1f3b4d;
}

.social-icon:hover svg {
  transform: translateY(-5px);
  fill: #e0ccbb;
}

/*Frase de cierre*/

.frase__title {
  font-weight: 300;
  font-size: 2.5rem;
  margin-top: 100px;
  margin-bottom: 100px;
  color: #1f3b4d;
  font-style: italic;
  text-align: center;
}

/* Footer */

.footer {
  background-color: #a8bda0;
}

.footer__title {
  font-weight: 300;
  font-size: 2rem;
  margin-bottom: 10px;
}

.footer__title,
.footer__newsletter {
  color: #fff;
}

.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #fff;
  padding-bottom: 60px;
}

.nav--footer {
  padding-bottom: 20px;
  display: grid;
  gap: 1em;
  grid-auto-flow: row;
  height: 100%;
}

.nav__link--footer {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin: 0;
  margin-right: 20px;
}

.footer__copy {
  --padding-container: 30px 0;
  text-align: center;
  color: #fff;
}

.footer__copyright {
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social-icon svg {
  fill: #fff;
  width: 30px;
  height: 30px;
  vertical-align: middle;
}

.footer-social-icon:hover svg {
  fill: #e0ccbb;
  transform: translateY(-2px);
}

/* Media queries */

@media (max-width: 800px) {
  .nav__menu {
    display: block;
  }

  .nav__link--menu {
    position: fixed;
    background-color: #a8bda0;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: 0.7s opacity;
  }

  .nav__link--show {
    --show: block;
    opacity: 1;
    pointer-events: unset;
  }

  .nav__close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 30px;
    cursor: pointer;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .about__main {
    gap: 2em;
  }

  .about__icons:last-of-type {
    grid-column: 1/-1;
  }

  .knowledge__container {
    grid-template-columns: 1fr;
    grid-template-rows: max-content 1fr;
    gap: 3em;
    text-align: center;
  }

  .knowledge__picture {
    grid-row: 1/2;
    justify-self: center;
  }

  .footer__container {
    flex-wrap: wrap;
  }

  .nav--footer {
    width: 100%;
    justify-items: center;
  }

  .nav__link--footer {
    width: 100%;
    justify-content: space-evenly;
    margin: 0;
  }

  .footer__form {
    width: 100%;
    justify-content: space-evenly;
  }

  .footer__input {
    flex: 1;
  }

  /* sección de Contacto */

  .contact__container {
    grid-template-columns: 1fr;
    grid-template-rows: max-content 1fr;
    gap: 3em;
    text-align: center;
    height: auto;
  }

  .contact-section {
    min-height: auto;
    display: block;
  }

  .contact__picture {
    grid-row: 1/2;
    justify-self: center;
  }

  .contact__texts {
    text-align: center;
  }
  .contact__social-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__paragraph {
    font-size: 1rem;
  }

  .subtitle {
    font-size: 1.8rem;
  }

  .price__element {
    width: 90%;
    max-width: 350px;
    margin: 0 auto;
  }

  .price__element--best {
    width: 90%;
    max-width: 350px;
    margin: 0 auto;
  }
  .price__table {
    flex-direction: column;
    align-items: center;
  }

  .price__price {
    font-size: 2rem;
  }

  .questions__title {
    font-size: 1rem;
  }

  .footer__title {
    justify-self: start;
    margin-bottom: 15px;
  }

  .nav--footer {
    padding-bottom: 60px;
  }

  .nav__link--footer {
    justify-content: space-between;
  }

  .footer__inputs {
    flex-wrap: wrap;
  }
}
