@import url("https://use.typekit.net/wyq6uda.css");
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@1,6..72,200..800&display=swap');

:root {
  --color-dark-pink: #8C5E5E;
  --color-dark-pink-bold: #714647;
  --color-soft-pink: #FBD7D5;
  --color-black: #1F1A1B;
  --color-dark-gray: #514443;
  --color-gray: #57534E;
  --color-white-gray: #F5F5F4;
  --color-white: #FFF;
  --color-bg: #FFF8F7;
  --max-width: 1280px;
}

/* Reset Global */
html, body {
  font-size: 16px;
  font-family: 'liberation-serif', Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: var(--color-bg);
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

p {
  padding: 0;
  margin: 0;
}

*, *::before, *::after {
  box-sizing: inherit;
}

main {
  width: 100%;
}

/* CONTAINER - mobile */
.container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* CONTAINER - desktop */
@media (min-width: 768px) {
  .container {
    padding: 0;
  }
}

/* ================================
   HERO
================================ */

/* mobile */
.hero {
  min-height: 100vh;
  width: 100%;
  background-color: var(--color-bg);

  .container{
    min-height: 100vh;
    justify-content: center;
  }
}

header {
  height: 80px;
  width: 100%;
  flex-shrink: 0;
  border-bottom: var(--color-white-gray) 1px solid;
  display: grid;
  grid-template-columns: 1fr 1fr;  /* mobile: logo + botón */
  align-items: center;
  justify-items: center;
}

/* desktop */
@media (min-width: 768px) {
  header {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.logo {
  color: var(--color-dark-pink);
  justify-self: flex-start;
  font-size: 1.5rem;
  font-style: italic;
}

nav {
  color: var(--color-gray);
  font-family: "Manrope";
  display: none; /* oculto en mobile */
}

/* desktop */
@media (min-width: 768px) {
  nav {
    display: block;
  }
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

nav li {
  display: inline-block;
  padding: 0 0.5rem;
}

.turn {
  justify-self: end;
}

/* PROFILE - mobile */
.profile {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  padding: 2rem 0;
}

.profile__content {
  display: flex;
  flex-direction: column;  /* mobile: apilado */
  width: 100%;
  align-items: center;
  gap: 2rem;
}

/* PROFILE - desktop */
@media (min-width: 768px) {
  .profile__content {
    flex-direction: row;
    gap: 0;
  }

  .profile {
    padding: 0;
  }
}

.photocontainer {
  flex-basis: auto;
  display: grid;
  place-items: center;
}

@media (min-width: 768px) {
  .photocontainer {
    flex-basis: 50%;
  }
}

.photo {
  border-radius: 50%;
  height: 240px;   /* más chica en mobile */
  width: 240px;
  border: 3px solid #FFF;
  object-fit: cover;
}

@media (min-width: 768px) {
  .photo {
    height: 385px;
    width: 385px;
  }
}

.profile__details {
  flex-basis: auto;
  text-align: center;
}

@media (min-width: 768px) {
  .profile__details {
    flex-basis: 50%;
    text-align: left;
  }
}

.profile__name {
  font-family: "Newsreader";
  font-weight: 400;
  font-size: 2rem;   /* mobile */
  color: var(--color-black);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .profile__name {
    font-size: 3rem;
  }
}

.profile__tuition {
  font-family: "Newsreader";
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--color-dark-pink-bold);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .profile__tuition {
    font-size: 1.5rem;
  }
}

.profile__description {
  font-family: "Manrope";
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-dark-gray);
  line-height: 28px;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .profile__description {
    font-size: 1.125rem;
  }
}

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

@media (min-width: 768px) {
  .profile__calltoactions {
    justify-content: flex-start;
  }
}

/* ================================
   QUOTES
================================ */

/* mobile */
.quotes {
  width: 100%;
  padding: 60px 0;
  background-color: #fcf1f1;
}

@media (min-width: 768px) {
  .quotes {
    padding: 80px 0;
  }
}

.quotes h2 {
  font-family: "Newsreader";
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 3rem;
  color: var(--color-black);
  text-align: center;
  position: relative;
}

@media (min-width: 768px) {
  .quotes h2 {
    font-size: 2rem;
    margin-bottom: 5rem;
  }
}

.quotes h2::after {
  content: "";
  position: absolute;
  top: 50px;
  width: 64px;
  height: 4px;
  background-color: var(--color-dark-pink-bold);
  left: 50%;
}

/* mobile: 1 columna */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* tablet: 2 columnas */
@media (min-width: 600px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* desktop: 3 columnas */
@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.card {
  padding: 2rem;
  background-color: var(--color-white);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0px 0px 8px -6px;
}

@media (min-width: 768px) {
  .card {
    padding: 3rem;
  }
}

.card__quote {
  font-family: "Manrope";
  font-style: italic;
  font-size: 1.125rem;
  line-height: 32px;
  color: var(--color-dark-gray);
}

.card__author {
  display: block;
  margin-top: 1rem;
  font-family: "Manrope";
  font-weight: 700;
  color: var(--color-dark-pink-bold);

  &::before {
    content: "";
    display: inline-block;
    height: 1px;
    width: 16px;
    background-color: var(--color-dark-pink-bold);
    vertical-align: middle;
    margin-right: 8px;
  }
}

/* ================================
   CONTACT
================================ */

/* mobile */
.contact {
  width: 100%;
  padding: 60px 0;
  background-color: var(--color-bg);
  color: var(--color-dark-gray);

  h3 {
    margin: 0;
    padding: 0;
    text-align: center;
    font-family: "Newsreader";
    font-weight: 500;
    font-size: 1.75rem;
    padding-bottom: 12px;
    color: var(--color-black);
  }

  p {
    margin: 0;
    padding: 0;
    font-family: "Manrope";
    text-align: center;
    font-weight: 400;
    padding-bottom: 40px;
    color: var(--color-dark-gray);
  }

  /* mobile: 1 columna */
  .contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;

    & > *:last-child {
      margin-top: 1rem;
    }
  }

  .full {
    grid-column: 1 / -1;
  }

  .field {
    display: flex;
    flex-direction: column;

    label {
      font-weight: 600;
      line-height: 20px;
      font-size: 14px;
      padding-bottom: 4.5px;
      letter-spacing: 0.7px;
    }
  }

  a {
    text-align: center;
    width: fit-content;
    align-self: center;
    font-size: 14px;
  }

  textarea {
    min-height: 122px;
  }

  .button {
    width: fit-content;
    justify-self: center;
    cursor: pointer;
    border: none;
  }


}

/* contact: desktop */
@media (min-width: 650px){
  .contact {
    .container{
      align-items: center;
    }

    .card{
      width: 66%;
    }
  }
}

@media (min-width: 768px) {
  .contact {
    padding: 80px 0;

    h3 {
      font-size: 2rem;
    }

    p {
      padding-bottom: 80px;
    }

    .contact-form {
      grid-template-columns: repeat(2, 1fr);

      & > *:last-child {
        margin-top: 2rem;
      }
    }
  }
}

/* ================================
   COMPONENTES
================================ */
.input {
  background-color: #FBD7D533;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  color: #6B7280;
  border: none;
  border-bottom: 2px solid #E2D8D7;
  min-height: 22px;
  padding: 0.75rem;
  outline: none;
  font-family: "Manrope";
  font-weight: 400;
}

.button {
  display: inline-block;
  background-color: var(--color-dark-pink-bold);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: 9999px;
  font-family: "Manrope";
  text-decoration: none;
  transition: opacity 0.2s;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.7px;

  &:hover{
    color: var(--color-white);
  }
}

@media (min-width: 768px) {
  .button {
    font-size: 1.125rem;
  }
}

.button-inverted {
  display: inline-block;
  background-color: var(--color-white);
  color: var(--color-dark-pink-bold);
  border: 1px solid var(--color-dark-pink-bold);
  padding: 12px 24px;
  border-radius: 9999px;
  font-family: "Manrope";
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.7px;

  &:hover{
    color: var(--color-dark-pink-bold);
  }
}

@media (min-width: 768px) {
  .button-inverted {
    font-size: 1.125rem;
  }
}

.button:hover::after,
.button-inverted:hover::after {
  content: none;
}

a {
  text-decoration: none;
  color: var(--color-gray);
  transition: color 0.2s;
}

a:hover {
  color: var(--color-dark-pink);
  position: relative;
}

a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: var(--color-dark-pink-bold);
}

/* ================================
   FOOTER
================================ */

/* mobile */
.footer {
  width: 100%;
  padding: 40px 0;
  background-color: #FAFAF9;

  .container {
    display: grid;
    grid-template-columns: 1fr;  /* mobile: apilado */
    gap: 2rem;
    place-items: center;
    text-align: center;
  }

  .footer__details {
    color: var(--color-dark-pink);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    width: 100%;

    p:first-child {
      font-size: 18px;
    }
  }

  .footer__socials {
    color: #78716C;
    text-align: center;

    ul li {
      display: inline-block;
      margin-right: 1.5rem;
    }
  }
}

/* footer: desktop */
@media (min-width: 768px) {
  .footer {
    padding: 60px 0;

    .container {
      grid-template-columns: 1fr 1fr;
      text-align: left;
    }

    .footer__details {
      text-align: left;
    }

    .footer__socials {
      text-align: right;
    }
  }
}