@import url("./reset.css");
@import url("./colors.css");
@import url("./fonts.css");


:root {
  --padding-block-big: clamp(8rem, 7.1818rem + 3.6364vw, 10rem);
  --padding-block-small: clamp(6rem, 5.1818rem + 3.6364vw, 8rem);
  --padding-inline-big: 2rem;
  --padding-inline-small: 1rem;
}

body {
  color: var(--negro);
  background-color: var(--blanco);
  overflow-x: hidden;
}

/* HERO SECTION START */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  grid-template-columns: minmax(15px, 60px) auto minmax(15px, 60px);
  column-gap: 0.2rem;
  background-color: var(--amarillo);
  text-align: center;
  clip-path: var(--wavy-bottom);
}


.hero-pretitle {
  grid-column: 2/3;
  font-size: 2.5rem;
  line-height: 1.1;
  margin: 3rem 0 2rem;
  text-shadow: var(--text-shadow-headers);
  font-variation-settings:
    "wght" 600,
    "wdth" 75,
    "opsz" 100;

  & span {
    position: relative;
    color: var(--purpura);
    text-decoration: underline wavy 0.05em;
    text-underline-offset: 0.1em;
  }

  & .emoji-transparent {
    position: absolute;
    top: -30px;
    left: 55px;
    max-width: 70px;
    transform: rotate(20deg) scale(70%);
  }
}


.hero-lang {
  grid-column: 3/4;
  grid-row: 2/3;
  writing-mode: vertical-rl;
  align-self: start;
  justify-self: end;
  border-radius: 14px 0 0 14px;
  box-shadow: var(--box-shadow);
  background-color: var(--purpura-oscura);
  color: var(--blanco);
  padding-left: 0.2em;
  padding-inline: 1.6em;
  text-transform: uppercase;
  overflow: hidden;
  font-variation-settings:
    "wght" 700,
    "wdth" 100,
    "opsz" 10;
}


.hero-title {
  grid-column: 2/3;
  font-size: 22vw;
  line-height: 0.85;
  font-variation-settings:
    "wght" 900,
    "wdth" 75,
    "opsz" 100;
  paint-order: stroke fill;
  -webkit-text-stroke: 0.20em var(--blanco);
  filter: drop-shadow(1px 10px 10px rgba(0, 0, 0, 0.5));
  margin: 2rem 0 3rem;
}


.hero-subtitle {
  grid-column: 2/3;
  font-variation-settings:
    "wght" 500,
    "wdth" 100,
    "opsz" 100;

  & span {
    color: var(--purpura-oscura);
    font-variation-settings:
      "wght" 800,
      "wdth" 100,
      "opsz" 100;
  }
}

.hero-ubicacion {
  grid-column: 2/3;
  margin-block: 2rem;
  transform: rotate(2deg);
  font-variation-settings:
    "wght" 700,
    "wdth" 95,
    "opsz" 90;
}



.hero-call {
  grid-column: 2/3;
  justify-self: center;
  font-size: 2rem;
  background-color: var(--azul);
  color: var(--blanco);
  padding: 0.4em 1.4em;
  border-radius: 50px;
  border: 0.2em solid var(--blanco);
  box-shadow: var(--box-shadow);
  margin-bottom: calc(var(--padding-block-big) + 2rem);
  z-index: 1;
  transform: rotate(-4deg);
  font-variation-settings:
    "wght" 700,
    "wdth" 75,
    "opsz" 30;
}

.hero-fotograf {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 15rem;
  overflow: hidden;
}

/* Hero section media query */
@media (min-width: 47rem) {
  .hero-pretitle {
    margin-top: 4rem;
    font-size: clamp(2.5rem, 1.9886rem + 2.2727vw, 3.75rem);
  }

  .hero-lang {
    padding-left: 0.6em;
    padding-inline: 2em;
  }

  .hero-title {
    font-size: 10rem;
    max-width: 80rem;
  }

  .hero-subtitle {
    max-width: 40rem;
  }

  .hero-ubicacion {
    margin-block: 4rem;
    max-width: 60rem;
  }

  .hero-fotograf {
    right: 20vw;
    width: initial;
  }
}

/* HERO SECTION END */
/* COMO FUNCIONA SECTION START */

.como-funciona {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--blanco);
  padding-block: var(--padding-block-small);

  & .pitch {
    padding-inline: var(--padding-inline-small);
  }
}

.cards-container {
  display: flex;
  flex-direction: column;
  align-items: center;

  & .como-funciona-card:first-of-type {
    margin-top: 2.5rem;
  }

  & .como-funciona-card:last-of-type {
    margin-bottom: 1.5rem;
  }
}


.bckg-img {
  position: absolute;
  font-size: 10rem;
  line-height: 0;
  top: 120px;
  left: 20px;
  opacity: 20%;
  transform: rotate(-25deg);
  font-variation-settings:
    "wght" 700,
    "wdth" 100,
    "opsz" 100;
}

.como-funciona-card {
  display: grid;
  grid-template-columns: minmax(10%, 25%) auto;
  grid-template-rows: repeat(5, auto);
  margin-block: 0.5rem;
  align-content: start;
}


.cfc-fondo-amarillo {
  background-color: var(--amarillo);
  grid-column: 1/2;
  grid-row: 2/5;
  border-top-right-radius: 1em;
  border-bottom-right-radius: 1em;
}

.cfc-number {
  font-size: 6rem;
  grid-column: 1/2;
  grid-row: 2/5;
  align-self: center;
  justify-self: center;
  font-variation-settings:
    "wght" 900,
    "wdth" 75,
    "opsz" 100;
}

.upper-title {
  display: flex;
  grid-column: 2/3;
  grid-row: 1/3;
  justify-content: space-between;
}

.cfc-title {
  font-variation-settings:
    "wght" 700,
    "wdth" 75,
    "opsz" 100;
  align-self: end;
  padding: 0.2em;
}

.cfc-image-container {
  display: flex;
  align-items: flex-end;
}

.cfc-sombra-1 {
  max-width: 2.5rem;
  align-self: center;
  opacity: 80%;
}

.cfc-sombra-2 {
  height: 6.6rem;
  margin-right: clamp(0.375rem, -0.0852rem + 2.0455vw, 1.5rem);
  opacity: 80%;
  align-self: flex-end;
}

.barra-horisontal {
  grid-row: 3/4;
  grid-column: 2/3;
  height: 1.6rem;
  background-color: var(--amarillo);
}

.cfc-parafo {
  grid-column: 2/3;
  grid-row: 4/6;
  padding: 0.5em;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.barco {
  position: absolute;
  bottom: -14px;
  left: 5vw;
  opacity: 80%;
  height: 150px;
  transform: rotate(3deg);
}

/* Como funciona section media query */
@media (min-width: 47rem) {
  .cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    column-gap: 1rem;
    align-items: stretch;
    margin-top: 5rem;
    max-width: 80rem;

    .como-funciona-card {
      margin-block: 0rem;
    }

    & .como-funciona-card:first-of-type {
      margin-block: 0rem;
    }


    & .como-funciona-card:last-of-type {
      margin-block: 0rem;
    }

    & .flash-shit {
      transform: scaleX(-1);
      margin-left: clamp(0.375rem, -0.0852rem + 2.0455vw, 1.5rem);
      margin-right: 0;
    }
  }

  .bckg-img {
    left: 10vw;
    top: 180px;
    font-size: 18rem;
  }


  & .como-funciona-card:nth-of-type(2),
  .como-funciona-card:nth-of-type(4) {
    grid-template-columns: auto minmax(10%, 25%);

    & .cfc-fondo-amarillo {
      grid-column: 2/-1;
      border-radius: 0;
      border-top-left-radius: 1em;
      border-bottom-left-radius: 1em;
    }

    & .cfc-number {
      grid-column: -1/-2;
    }

    & .upper-title {
      flex-direction: row-reverse;
      grid-column: 1/2;
    }

    & .cfc-title {
      text-align: right;
    }

    & .cfc-sombra-1 {
      margin-right: 0;
      margin-left: clamp(0.375rem, -0.0852rem + 2.0455vw, 1.5rem);
    }

    & .barra-horisontal {
      grid-column: 1/2;
    }

    & .cfc-parafo {
      grid-column: 1/2;
    }
  }
}

/* COMO FUNCIONA SECTION END */
/* CALIDAD PROFESIONAL SECTION START */

.calidad-pro {
  display: flex;
  flex-direction: column;
  background-color: var(--negro);
  clip-path: var(--wavy-both);
  padding-block: var(--padding-block-big);
  padding-inline: var(--padding-inline-small);
  overflow: hidden;

  & h2 {
    color: var(--amarillo);
    text-align: center;
  }

  & .pitch {
    color: var(--amarillo);
    text-align: center;
    text-shadow: var(--text-shadow-headers);
    margin-bottom: 3rem;
  }

}

.calidad-cards-container {
  display: flex;
  flex-direction: column;

  & .card-uno,
  .card-tres {
    align-self: flex-end;
  }
}

.calidad-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  max-width: 75vw;
  width: fit-content;
  margin-block: 1.6rem;


  & .calidad-card-number {
    position: absolute;
    opacity: 30%;
    font-size: 10rem;
    font-variation-settings:
      "wght" 900,
      "wdth" 90,
      "opsz" 100;
    color: var(--blanco);
  }


  & .num-uno,
  .num-dos,
  .num-tres,
  .num-cuatro {
    line-height: 0.8;
    filter: blur(4px);
    overflow: hidden;
  }

  & .num-uno {
    left: -40px;
    top: 20px;
    transform: rotate(15deg);
  }

  & .num-dos {
    right: -40px;
    top: 20px;
    transform: rotate(-20deg);
  }

  & .num-tres {
    left: -40px;
    top: 20px;
    transform: rotate(65deg);
  }

  & .num-cuatro {
    right: -40px;
    top: 20px;
    transform: rotate(-75deg);
  }

  & h3 {
    color: var(--purpura);
    /* font-size: 2.4rem; */
    font-variation-settings:
      "wght" 700,
      "wdth" 75,
      "opsz" 100;
  }

  & .linea-amarilla {
    height: 0.5rem;
    background-color: var(--amarillo);
  }

  & p {
    color: var(--blanco);
  }
}

/* Calidad profesional section media query */
@media (min-width: 55rem) {
  .calidad-cards-container {
    align-self: center;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    align-items: strech;
    margin-top: var(--padding-inline-big);
    max-width: 60rem;
    align-content: start;
  }

  .calidad-card {
    gap: 0.8em;
    max-width: 30rem;
    padding-inline: var(--padding-inline-small);
    margin-block: 0;


    & .calidad-card-number {
      font-size: 12rem;
    }

    & .num-uno {
      left: -70px;
      top: 30px;
    }

    & .num-dos {
      right: -70px;
      top: 30px;
    }

    & .num-tres {
      left: -70px;
      top: 30px;
    }

    & .num-cuatro {
      right: -70px;
      top: 30px;
    }
  }

  .calidad-card.card-uno,
  .calidad-card.card-tres {
    text-align: right;
    align-self: stretch
  }
}

/* CALIDAD PROFESIONAL SECTION END */
/* BIOMETRIA SECTION START */

.biometria {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--blanco);
  text-align: center;
  padding-block: var(--padding-block-small);
  padding-inline: var(--padding-inline-small);
  overflow: hidden;

  & p {
    max-width: 60rem;
  }

  & p:first-of-type {
    margin-top: 2rem;
  }

  & .diana {
    position: absolute;
    top: 10px;
    right: -50px;
    max-width: 16rem;
    opacity: 20%;
    transform: scaleX(-1);
  }
}

.images {
  display: flex;
  margin-block: 2rem;
  align-items: end;
  justify-content: center;
  position: relative;

  & img {
    box-sizing: content-box;
    border: 12px solid white;
    box-shadow: var(--box-shadow);
  }

  & .zur {
    max-height: 125px;
    z-index: 8;
    margin-bottom: 1rem;
    transform: translate(16px) rotate(-10deg);
  }

  & .popo {
    max-height: 180px;
    z-index: 10;
  }

  & .olentzero {
    max-height: 125px;
    z-index: 9;
    margin-bottom: 1rem;
    transform: translate(-16px) rotate(10deg);
  }
}

/* Biometria section media query */
@media (min-width: 33rem) {
  .images {
    & .zur {
      max-height: 170px;
      margin-bottom: 2rem;
    }

    & .popo {
      max-height: 260px;
    }

    & .olentzero {
      max-height: 170px;
      margin-bottom: 2rem;
    }
  }
}

/* Biometria section media query */
@media (min-width: 49rem) {
  .biometria {
    padding-block: var(--padding-block-big);
    padding-inline: var(--padding-inline-small);


    & p:first-of-type {
      margin-top: 5rem;
    }

    & .diana {
      top: 80px;
      right: 10rem;
      max-width: 20rem;
    }
  }

  .images {
    margin-block: 4rem;


    & img {
      border: 16px solid white;
    }

    & .zur {
      max-height: 250px;
      margin-bottom: 2rem;
      transform: translate(10px) rotate(-10deg);
    }

    & .popo {
      max-height: 350px;
    }

    & .olentzero {
      max-height: 250px;
      margin-bottom: 2rem;
      transform: translate(-10px) rotate(10deg);
    }
  }
}

/* BIOMETRIA SECTION END */
/* UBICACION SECTION START */

.ubicacion {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--negro);
  clip-path: var(--wavy-both);
  color: var(--blanco);
  padding-block: var(--padding-block-big);
  padding-inline: var(--padding-inline-small);

  & .pin-mapa {
    position: absolute;
    max-width: 70vw;
    opacity: 20%;
    top: 40px;
    left: 20px;
    z-index: -1;
  }

  & .pitch,
  h2 {
    color: var(--rojo);
  }

  & .mapa-osm {
    margin-top: 4rem;
    max-width: 85vw;
    align-self: end;
    border: 0.5rem solid var(--amarillo);
    border-radius: 0.6rem;
    rotate: 5deg;
  }

  & .action-btn-ubicacion {
    align-self: center;
    font-size: 1.5rem;
    background-color: var(--azul);
    color: var(--blanco);
    padding: 0.6em 1.6em;
    border-radius: 50px;
    border: 0.3em solid var(--blanco);
    box-shadow: var(--box-shadow);
    transform: rotate(-4deg);
    translate: -40px -20px;
    font-variation-settings:
      "wght" 600,
      "wdth" 75,
      "opsz" 30;
  }

  & p {
    margin-top: 2rem;
    text-align: center;
  }

  & .pin-shit {
    margin-top: 2rem;
  }
}

/* Ubicacion section media query */
@media (min-width: 47rem) {
  .ubicacion {
    align-items: center;

    & .pin-mapa {
      top: 60px;
      left: 10rem;
    }

    & .mapa-osm {
      margin-top: 6rem;
      align-self: center;
      border-width: 1rem;
      border-radius: 0.8rem;
    }

    & .action-btn-ubicacion {
      font-size: 1.8rem;
    }

    & p {
      margin-top: 4rem;
      max-width: 60rem;
    }

    & .pin-shit {
      margin-top: 3rem;
    }

  }
}

/* UBICACION SECTION END */
/* RESUME SECTION START */

.resume {
  padding-inline: var(--padding-inline-small);
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--amarillo);
  clip-path: var(--wavy-both);
  padding-block: var(--padding-block-big);

  & .repasamos-lista {
    max-width: 80vw;
    align-self: center;
    margin-block: 2rem;
    padding-left: 0;
    font-variation-settings:
      "wght" 500,
      "wdth" 100,
      "opsz" 80;
  }

  & .action-btn-resume {
    align-self: center;
    font-size: 1.5rem;
    background-color: var(--azul);
    color: var(--blanco);
    padding: 0.6em 2em;
    border-radius: 50px;
    border: 0.3em solid var(--blanco);
    box-shadow: var(--box-shadow);
    margin-top: 1rem;
    min-width: 15rem;
    transform: rotate(4deg);
    translate: -40px;
    font-variation-settings:
      "wght" 600,
      "wdth" 75,
      "opsz" 30;
  }

  & .action-btn-resume:nth-of-type(2) {
    translate: 0px;
  }

  & .action-btn-resume:nth-of-type(3) {
    translate: 40px;
    rotate: 6deg;
  }

  & .pitch-resume {
    margin-top: 4rem;
    font-variation-settings:
      "wght" 800,
      "wdth" 125,
      "opsz" 100;
  }
}

/* Resume section media query */
@media (min-width: 47rem) {
  .resume {

    & .repasamos-lista {
      font-size: 2rem;
    }

    & .action-btn-resume {
      font-size: 1.8rem;
      margin-top: 1.4rem;

    }

    & .pitch-resume {
      max-width: 60rem;
    }
  }
}

/* RESUME SECTION END */

/* FOOTER SECTION START */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--negro);
  clip-path: var(--wavy-top);
  padding-block: var(--padding-block-big);
  padding-inline: var(--padding-inline-small);
  text-align: center;

  & h2 {
    color: var(--amarillo);
  }

  & h3 {
    color: var(--amarillo);
    margin: 3rem 0 0.5rem;
    font-size: 2rem;
  }

  & p {
    color: var(--blanco);
  }

  & .separator-rojo {
    width: min(100%, 30rem);
    background-color: var(--rojo);
    margin-top: 3rem;
    border-radius: 8px;
    padding: 0.8rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
  }


  & .copyright {
    margin-top: 1rem;
    font-size: 0.8rem;
    line-height: 1.3;
  }
}

/* Resume section media query */
@media (min-width: 50rem) {
  .footer {

    .footer-text-container {
      display: flex;
      gap: 2rem;
      padding-inline: var(--padding-inline-small);
      width: min(100%, 63rem);
      justify-content: center;
    }

    .footer-text-container>div {
      flex: 1 1 0;
      min-width: 0;
    }

    & h3 {
      margin: 3rem 0 0.5rem;
    }


  }
}

/* FOOTER SECTION END */
/* SECTIONS FINISH */