:root {
  --color-primary: rgb(203, 0, 209);
  --color-secondary: #f4f4f4;
  /* --color-secondary: #262424; */
  --color-text: black;
  --background-card: #80808030;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "LatoThin";
  src: url("/assets/font/Lato-Thin.ttf");
}
@font-face {
  font-family: "LatoLight";
  src: url("/assets/font/Lato-Light.ttf");
}
@font-face {
  font-family: "LatoRegular";
  src: url("/assets/font/Lato-Regular.ttf");
}
@font-face {
  font-family: "LatoBold";
  src: url("/assets/font/Lato-Bold.ttf");
}
@font-face {
  font-family: "Organo";
  src: url("/assets/font/Organo.ttf");
}
@font-face {
  font-family: "PureAndSimpleEverytime";
  src: url("/assets/font/pure_and_simple_everytime.ttf");
}

body {
  background-color: var(--color-secondary);
  font-family: -apple-system, BlinkMacSystemFont, "LatoRegular", "PureAndSimpleEverytime", "Organo", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",
    "Droid Sans", "Helvetica Neue", "Gilroy", sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.navbar {
  font-family: LatoBold;
  width: 100%;
  font-size: 1.5rem;
  padding-top: 0;
  height: 5rem;
  max-width: 1320px;
  align-self: center;
  position: fixed;
  top: 0;
  z-index: 3;

  nav {
    display: flex;
    flex-direction: row;
    width: 100%;
  }
}

main {
  max-width: 1320px;
  align-self: center;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
}

#inicio {
  display: flex;
  flex-direction: row;
  align-items: center;
  color: var(--color-text);
  font-size: 24px;
  position: relative;


  padding-top: 6rem;
}

#slider {
  padding-top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.btn {
  background-color: var(--color-primary);
  color: var(--color-secondary);
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  font-family: LatoBold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #a800a9;
}

#productos {
  padding-top: 6rem;
  padding-bottom: 5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#servicios {
  padding-top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#beneficios {
  padding-top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#nosotros {
  .bannerNosotros {
    width: 100%;
  }
}

#encuentranos {
  padding: 6rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  gap: 1rem;
}

.bannerRicky {
  width: 100%;
}


.text {
  color: var(--color-text);
  text-align: center;
}

.sectionLabel {
  font-size: 45px;
  color: var(--color-text);
  margin: 0 0 0 10px;
  text-align: center;
  font-weight: bold;
}

.sliderLabel {
  padding-bottom: 2rem;
  margin-top: 3rem;
}

.donRickyImg {
  height: 500px;
}

.carrusel {
  position: relative;
  height: 65vh;
  display: flex;
  justify-content: center;
}

.item {
  width: 200px;
  height: 300px;
  list-style-type: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background-position: center;
  background-size: cover;
  border-radius: 20px;
  box-shadow: 0 20px 30px rgba(255,255,255,0.3) inset;
  transition: transform 0.1s, left 0.75s, top 0.75s, width 0.75s, height 0.75s;

  &:nth-child(1), &:nth-child(2) {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
  }

  &:nth-child(3) { left: 65%; }
  &:nth-child(4) { left: calc(65% + 220px); }
}

.content {
  width: min(30vw,400px);
  position: absolute;
  top: 50%;
  left: 3rem;
  transform: translateY(-50%);
  font: 400 0.85rem helvetica,sans-serif;
  color: white;
  text-shadow: 0 3px 8px rgba(0,0,0,0.5);
  opacity: 0;
  display: none;

  & .title {
    font-family: 'LatoBold';
    text-transform: uppercase;
    font-size: 45px;
    color: var(--color-primary);
  }

  & .description {
    line-height: 1.7;
    margin: 1rem 0 1.5rem;
    font-size: 16px;
    text-shadow: 1px 1px 7px var(--color-secondary);
    background-color: rgba(0, 0, 0, 0.5);

    padding: 5px;
    border-radius: 10px;
  }
}

.item:nth-of-type(2) .content {
  display: block;
  animation: show 0.75s ease-in-out 0.3s forwards;
}

.nav {
  height: 2rem;
  position: relative;
  z-index: 2;
  align-self: flex-end;
  bottom: 1rem;
}

@keyframes show {
  0% {
    filter: blur(5px);
    transform: translateY(calc(-50% + 75px));
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

@media (width < 1250px) {
  .content {
    & .title        { font-size: 1rem; }
    & .description  { font-size: 0.7rem; }
    & #openmenu        { font-size: 0.7rem; }
  }
  .item {
    width: 160px;
    height: 270px;

    &:nth-child(3) { left: 68%; display: none; }
    &:nth-child(4) { left: calc(68% + 170px); display: none; }
  }
}

@media (width < 750px) {
  #sliderContainer {
    display: none;}
}

@media (width < 650px) {
  .content {
    & .title        { font-size: 0.9rem; }
    & .description  { font-size: 0.65rem; }
    & #openmenu        { font-size: 0.7rem; }
  }
  .item {
    width: 130px;
    height: 220px;

    &:nth-child(3) { left: 50%; }
    &:nth-child(4) { left: calc(50% + 140px); }
    &:nth-child(5) { left: calc(50% + 280px); }
    &:nth-child(6) { left: calc(50% + 420px); opacity: 0; }
  }
  .ServiceCard {
    width: 25rem !important;
    height: 32rem !important;
  }
  .mapResponsive {
    width: 400px !important;
    height: 250px !important;
  }
}

.cardsContainer {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 60px;
  row-gap: 100px;
}

.card {
  position: relative;
  width: 25rem;
  height: 40rem;
  border-radius: 15px;
  box-shadow: 0px 0px 4px var(--color-primary);
  padding: 1.87rem;
  color: var(--color-text);
  font-size: 19px;
}

.ServiceCard {
  width: 37.5rem;
  position: relative;
  height: 20rem;
  padding: 1.87rem;
  border-radius: 15px;
  color: var(--color-text);
  font-size: 19px;
  box-shadow: 0px 0px 4px var(--color-primary);
}

.card__logo {
  height: auto;
  position: absolute;
  right: 25px;
  width: 100px;
}

.card__img {
  width: 65px;
  align-self: center;
}

.cardImageContainer {
  height: auto;
  position: absolute;
  right: 25px;
  width: 100px;
  display: flex;
  flex-direction: column;
}

.card__title {
  margin-top: 5px;
  margin-bottom: 20px;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  /* font-family: "Organo"; */
  font-weight: bold;
  width: 70%;
}

.card__info {
  font-family: "LatoRegular";
  letter-spacing: 1.5px;
  color: var(--color-text);
  font-weight: bold;
}

.card__subtitle {
  display: block;
  font-weight: 300;
  color: var(--color-text);
  font-weight: bold;
  padding-top: 45px;
  text-align: justify;
}

.card__image {
  width: 10rem;
  position: absolute;
  bottom: -15%;
  right: 30%;
}

.benefitsContainer {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  font-size: 19px;

  div {
    display: flex;
    flex-direction: row;
    justify-content: center;

    div {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 50%;

      img {
        width: 50px;
        height: 50px;
      }

      p {
        width: 55%;
        text-align: center;
      }
    }
  }
}

@media (width < 600px) {
  .benefitsContainer {
    div {
      flex-direction: column;
      align-items: center;
      gap: 1rem;

      div {
        width: 100%;
      }
    }
  }
}

.whatsappLink {
  position: fixed;
  top: 70%;
  right: 1%;
  z-index: 4;
}

.whatsappIcon {
  width: 100px;
}

footer {
  background-color: var(--background-card);

  .footerLabel {
    font-size: 19px;
    color: var(--color-text);
    font-weight: bold;
  }

  .rrssContainer {
    display: flex;
    flex-direction: row;
    gap: 1rem;
  }
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.required {
  color: red;
  font-weight: bold;
}

@media (width < 950px) {
  footer {
    #encuentranos {
      flex-direction: column-reverse;

      div {
        padding-bottom: 1rem;
      }
    }
  }
}
@media (width < 450px) {
  .mapResponsive {
    width: 300px !important;
    height: 150px !important;
  }
}

@media (width < 435px) {
  .card__logo {
    display: none;
  }
  .cardImageContainer {
    display: none;
  }
  .sectionLabel {
    font-size: 25px;
  }
  .card {
    font-size: 16px;
    width: 80%;
  }
  .ServiceCard {
    width: 80% !important;
    height: auto !important;
  }
  footer {
    #encuentranos {

      div {
        width: 90%;
        align-self: center;
      }
    }
  }
}
