@font-face {
  font-family: "Calibri";
  src: url("../assets/fonts/calibri-regular.ttf");
}

@font-face {
  font-family: "Calibri";
  src: url("../assets/fonts/calibri-bold.ttf");
  font-weight: bold;
}


:root {
  --red: #F00;
  --light-grey: #DDDBDB;
  --dark-grey: #464646;

  --padding-v: 5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  font-family: "Calibri", sans-serif;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

header,
section,
footer {
  width: 100%;
  min-height: 150px;

}

section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: var(--padding-v) 0;
}

h2,
h3,
p,
a {
  color: var(--dark-grey);
}

h2 {
  text-transform: uppercase;
  margin-bottom: 2rem;
  text-align: center;
}

p {
  margin-bottom: 2rem;
  font-size: 1.25rem;
  font-weight: 300;
  text-align: center;
}

a {
  font-size: 1.25rem;
  text-align: center;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* GENERAL */

.btn-join {

  padding: .5rem 2rem;
  border: 0;
  outline: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 2rem;
  font-weight: bold;

  color: white;
  background-color: var(--red);

  border-radius: 500px;

  cursor: pointer;

  transition: .1s;
}

.btn-join:hover {
  scale: 1.1;
}

/* HEADER */

header {
  height: 100vh;
  min-height: 800px;

  padding: 0 15%;

  background-image: url("../assets/images/Foto\ cabecera.png");
  background-position: center center;
  background-size: cover;
}

.language-selector {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1rem;
}

.language-selector select {
  padding: .25rem;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 1rem;
  border-radius: .5rem;
}

.language-selector option {
  font-size: 1rem;
}

.header-info {
  height: 100%;
  width: 40%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
}

.header-info>img {
  width: 250px;
  max-width: 100%;
}

.header-info>h1 {
  font-size: 3rem;
  color: white;
}


/* WHO WE ARE  */

.who-we-are {
  padding-left: 15%;
  padding-right: 15%;
  text-align: center;
}

/* WHAT WE LOOK FOR */

.what-we-look-for {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;

  color: white;

  background-color: red;
}

.what-we-look-for__info {
  width: 100%;

  padding: var(--padding-v) 8rem var(--padding-v) 12rem;
}

.what-we-look-for__info * {
  color: white;
  text-align: left;
}

.what-we-look-for__image {
  width: 100%;
  background-image: url("../assets/images/Foto\ 2.png");
  background-position: center center;
  background-size: cover;
}

/* SELECTION PROCESS */

.selection-process {

  padding: var(--padding-v) 15%;

}

.selection-process>.steps {
  margin-bottom: 3rem;

  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}

.steps>article {
  width: 20%;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}


.steps>article>img {
  height: 125px;
}

.steps>article>h3 {
  width: 100%;
  text-align: center;
  font-size: 1.5rem;
}

.steps>article>p {
  width: 100%;
}

/* FOR YOU */

.for-you {
  background-color: var(--light-grey);
}

.for-you>p {
  padding: 0 20%;
}

.perks {
  margin: 0 10%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 1rem;
}

.perk {
  padding: 2rem;

  min-height: 0;
  height: fit-content;

  background-color: white;
  border-radius: 2rem;

  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.perk__title {
  flex-shrink: 0;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1.4rem;
  margin-bottom: 0;
  white-space: nowrap;
  display: flex;
  justify-content: center;
  align-items: center;
}

.arrow-expand {
  flex-shrink: 0;
  margin-left: 1rem;
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;

  clip-path: polygon(0% 100%, 100% 100%, 50% 0%);

  background-color: var(--dark-grey);

  transition: rotate .5s;

  cursor: pointer;
}


.perk__text[data-visible="0"] {
  display: none;
}

/* POSITIONS */

.positions {
  background-image: url("../assets/images/Foto\ 3.jpg");
  background-size: cover;
  background-position: center;
}

.positions h3 {
  width: 100%;

  text-align: center;
  font-size: 1.5rem;
}

.positions * {
  color: white;
}

.positions-highlighted {
  width: 100%;

  margin-bottom: 1rem;
  padding: 0 5%;

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

.positions-highlighted .position {
  border-right: 4px solid var(--red);
  border-bottom: 4px solid var(--red);
}

.positions-highlighted .position__name {
  border-bottom: 1px solid var(--red);
}

.positions-grid {
  width: 100%;
  padding: 0 5%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.position {
  position: relative;
  width: 350px;
  min-width: 200px;
  background-color: white;
  border-radius: 1rem;
  transition: scale .5s, box-shadow .5s;
}

.position * {
  color: var(--dark-grey);
  width: 100%;
}

.position>a {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0rem;

}

.position:hover {
  scale: 1.05;
  box-shadow: 3px 3px 3px 3px rgba(0, 0, 0, .3);
}

.position>a>* {
  text-align: left;
}

.position__name {
  border-bottom: 1px solid var(--light-grey);

  grid-area: name;

  padding-bottom: .25rem;
  margin-bottom: .5rem;

  font-size: 1.5rem;
  font-weight: bold;
  text-align: left;
}

.position__desc {
  margin: 0;
  text-align: left;
  grid-area: desc;
  align-self: start;
  font-size: 1.15rem;
}


.position__loc {
  margin: 0;
  grid-area: loc;
  align-self: end;
  font-size: 1rem;
}


.position__fun {
  margin: 0;
  grid-area: fun;
  align-self: end;
  font-size: 1rem;
}



/* TESTIMONIALS */

.testimonials {

  padding: var(--padding-v) 10%;

  background-color: var(--red);
}

.testimonials * {
  color: white;
}

.testimonials__slider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15%;
  height: 30ch;
}

.btn-prev {
  flex-shrink: 0;
  background-color: white;
  border: 0;
  outline: 0;

  width: 2rem;
  height: 2rem;

  clip-path: polygon(0% 50%, 100% 0%, 100% 100%);

  cursor: pointer;
}


.btn-next {
  flex-shrink: 0;
  background-color: white;
  border: 0;
  outline: 0;

  width: 2rem;
  height: 2rem;

  clip-path: polygon(100% 50%, 0% 0%, 0% 100%);
  cursor: pointer;
}

.testimonial {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
}

.testimonial__photo {
  height: 125px;
}

.testimonial__name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: left;
}

.testimonial__text {
  text-align: left;
}

/* FOOTER */

footer {
  display: flex;
  justify-content: center;
  align-items: center;
}

footer h2 {
  color: var(--dark-grey);
  text-align: center;
}

/* MEDIA QUERIES */

@media (max-width: 1080px) {

  .header-info {
    width: 100%;
  }

  .who-we-are {
    padding: 2rem;
  }

  .what-we-look-for {
    grid-template-columns: 1fr;
    grid-template-rows: auto 150px;
    gap: 2rem;
  }

  .what-we-look-for__info {
    padding: 2rem 2rem 0 2rem;
  }

  .what-we-look-for__image {
    background-position: -10px 20%;
  }

  .steps>article {
    width: 45%;
  }

  .perks {
    margin: 0 1rem;
  }

  .perks {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
  }

  .perk__title {
    white-space: normal;
  }

  .positions-grid,
  .positions-highlighted {
    width: 100%;
    padding: 0 1rem;
  }

  .testimonials {
    padding: 3rem 1rem;
  }


  .testimonials__slider {
    height: 40ch;
    gap: 1rem;
  }


  .testimonial {
    flex-direction: column;
    align-items: center;
  }


  .testimonial__name {
    text-align: center;
  }


  .testimonial__text {
    text-align: center;
  }

}


@media (max-width: 720px) {
  .selection-process>.steps {
    flex-direction: column;
    align-items: center;
  }

  .steps>article {
    width: 100%;
  }

  .perks {
    grid-template-columns: 100%;
  }

  .position {
    width: 100% !important;
  }

  .testimonials__slider {
    height: auto;
  }
}

.fade-out {
  animation: fade-out .25s linear forwards;
}

.fade-in {
  animation: fade-in .25s linear forwards;
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}