:root {
  --negro: #333333;
  --gris: #999999;
  --blanco: #ffffff;
  --verde: #3c591e;
  --verde-claro: #7cbc3f;
  --verde-clarito: #a9c950;
  --tipo-principal: "Fira-sans", Helvetica, Arial, sans-serif;
  --tipo-secundaria: "Abril Fatface", serif;
  --tipo-destacada: "Abril Fatface", serif;
}

/* Reseteamos los margin y paddings de todas las etiquetas */
* {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: middle;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  width: 100%;
  display: block;
}

/* Reseteamos los enlaces para funcionar como cajas... */
a {
  display: inline;
  text-decoration: none;
  color: var(--negro);
  font-family: var(--tipo-principal);
}

/* Quitamos los puntos de los <li> */
li {
  list-style-type: none;
}

/* Configuramos anclas suaves */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--blanco);
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

/* Configuramos el texto que seleccionamos */
::selection {
  background-color: var(--negro);
  color: var(--verde-clarito);
}
/* ////////////////// FUENTES TIPOGRAFICAS */

h1 {
  font-family: var(--tipo-principal);
  font-size: 1rem;
  line-height: 1.4rem;
  font-weight: 300;
}

h2 {
  font-family: var(--tipo-principal);
  font-size: 1.2rem;
  line-height: 1.6rem;
  font-weight: 300;
}

h3 {
  font-family: var(--tipo-principal);
  font-size: 1rem;
  line-height: 1.2rem;
  text-transform: uppercase;
  font-weight: 600;
}

@media (max-width: 768px) {
  h3 {
    font-family: var(--tipo-principal);
    font-size: 0.6rem;
    line-height: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
  }
}

h4 {
  font-family: var(--tipo-secundaria);
  font-size: clamp(3rem, 4rem, 48px);
  line-height: 3rem;
}

/*h4 {
  font-family: var(--tipo-secundaria);
  font-size: clamp(3rem, 4rem, 48px);
  line-height: 3rem;
}

h4 {
  font-family: var(--tipo-secundaria);
  font-size: clamp(2rem, 2.8rem, 48px);
  line-height: 2.6rem;
}*/

h5 {
  font-family: var(--tipo-principal);
  font-size: 1rem;
  line-height: 1.2rem;
  text-transform: uppercase;
  font-weight: 600;
}

@media (max-width: 1024px) {
  h5 {
    font-family: var(--tipo-principal);
    font-size: 1rem;
    line-height: 1.2rem;
    text-transform: uppercase;
    font-weight: 600;
  }
}

h6 {
  font-family: var(--tipo-principal);
  font-size: 0.8rem;
  line-height: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
}

p {
  font-family: var(--tipo-principal);
  font-size: 1rem;
  line-height: 1.2rem;
  font-weight: 300;
}

/* main {
  padding: 4rem;
}

@media (max-width: 768px) {
  main {
    padding: 1rem;
  }
} */

/* HEADER /////////////////////////////////// */
nav {
  width: 100%;
  padding: 0 4rem;
  height: 130px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 8vw;
  cursor: pointer;
  z-index: 3;
}

@media (min-width: 768px) and (max-width: 1024px) {
  /* nav {
    position: fixed;
    background: #fafafada;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  } */

  .logo {
    width: 10vw;
  }
}

@media (max-width: 768px) {
  nav {
    height: 90px;
    padding: 0 2rem;

    /* position: fixed;
    background: #fafafada;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); */
  }

  .logo {
    width: 15vw;
  }
}

@media (max-width: 540px) {
  .logo {
    width: 20vw;
  }
}

/* ANIMACION DEL MENU */
.link {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: 1px;
  margin: 0 20px;
  transition: 0.5s;
}
.link:hover {
  color: var(--verde-clarito);
}
/* FIN ANIMACION MENU */

.burger {
  display: block;
  position: relative;
  z-index: 2;
  user-select: none;
  appearance: none;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
}

.burger span {
  display: block;
  /* width: 30px; */
  height: 3px;
  margin-bottom: 5px;
  position: relative;
  background-color: var(--negro);
  z-index: 2;
  transform-origin: 0 0;
  transition: 0.5s;
}

.burger span:nth-child(1) {
  width: 25px;
}

.burger span:nth-child(2) {
  width: 15px;
}

.burger span:nth-child(3) {
  width: 30px;
}

.burger:hover span:nth-child(1) {
  width: 30px;
}

.burger:hover span:nth-child(2) {
  width: 30px;
}

.burger.is-active span:nth-child(1) {
  transform: translate(0, -2px) rotate(45deg);
  width: 30px;
}

.burger.is-active span:nth-child(3) {
  transform: translate(-3px, 3px) rotate(-45deg);
}

.burger.is-active span:nth-child(2) {
  opacity: 0;
  transform: translateX(15px);
}

.burger.is-active:hover span {
  background-color: var(--gris);
}

.menu {
  display: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  max-width: 1366px;
  padding-top: 8rem;
  height: 35vh;
  font-size: 12px;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(-100%);
  background: #fafafade;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* border-bottom: 2px solid var(--negro); */
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(0.25turn, #7cbc3f, #c3e75f, #a9c950);
  border-image-slice: 1;

  transition: 0.5s;
  z-index: 1;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a {
  display: block;
  padding: 5px 0;
  margin-right: 10vw;
  text-align: right;
  text-transform: uppercase;
  transition: 0.3s;
}

.mobile-menu a:hover {
  color: var(--verde-clarito);
}

@media (min-width: 768px) {
  .mobile-menu,
  .burger {
    display: none;
  }
  .menu {
    display: block;
  }
}

/* HOME /////////////////////////////////// */
.banner-container {
  background: url(../images/natural_health_banner.jpg);
  box-shadow: inset 0 0 0 2000px #3c591e4d;
  background-size: cover;
  background-position: center;
  height: 70vh;
  padding: 100px 5%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: space-around;
}

.home-title {
  font-family: var(--tipo-secundaria);
  font-weight: 900;
  font-size: 10vw;
  line-height: 8vw;
  color: var(--blanco);
}

@media (max-width: 768px) {
  .home-title {
    font-size: 15vw;
    line-height: 12vw;
  }
}

/* SOBRE NH /////////////////////////////////// */
.nh-container {
  background: #fafafa;
  padding: 100px 5%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10rem;
}

.nh-title {
  /* filter: blur(1rem);
  background-blend-mode: multiply;
  mix-blend-mode: multiply; */
}

.nh-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nh-img img {
  width: 100%;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 2px 40px rgba(0, 0, 0, 0.2);
  display: flex;
}

hr {
  height: 2rem;
}

@media (max-width: 1024px) {
  .nh-container {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nh-container {
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
  }
}

/* SERVICIOS /////////////////////////////////// */
.servicios-container {
  background: linear-gradient(45deg, #bdd3c1, #effbf1);
  padding: 100px 5%;
  display: grid;
  flex-direction: column;
  gap: 3rem;
}

.servicios-title {
  color: var(--verde);
}

.servicios-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: space-between;
}

.card {
  height: fit-content;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  -webkit-transform: scale(1);
  transform: scale(1);
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}

.card:hover {
  -webkit-transform: scale(1.1);
  transform: scale(1.02);
}

.card h3 {
  color: var(--verde);
  -webkit-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

@media (max-width: 768px) {
  .servicios-cards {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 3rem;
  }

  .card {
    gap: 1.5rem;
  }
}

.img-card {
  /* width: 15vw;
  height: 15vw; */
  width: clamp(125px, 15vw, 25vw);
  height: clamp(125px, 15vw, 25vw);
  border-radius: 30px;
  position: relative;
  background-size: cover;
  margin: 0;
}

.img-card:before {
  content: "";
  position: absolute;
  width: 90%;
  height: 100%;
  background-image: inherit;
  background-size: cover;
  border-radius: var(--radius);
  z-index: -1;
  filter: blur(12px);
  opacity: 0.6;
  left: 50%;
  transform: translate(-50%, 10%);
}

/* LABORATORIOS /////////////////////////////////// */
.laboratorio-container {
  background: #fafafa;
  padding: 100px 5%;
  display: grid;
  gap: 3rem;
}

@media (max-width: 1024px) {
  .laboratorio-container {
    /* background-color: #368ca4; */
  }
}

.laboratorio-article {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: space-between;
  align-items: stretch;
  gap: 5rem;
}

article {
  background: linear-gradient(-180deg, #fff, #ffffff3b);
  width: 100%;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 2px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  -webkit-transform: scale(1);
  transform: scale(1);
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}

article:hover {
  -webkit-transform: scale(1.1);
  transform: scale(1.02);
}

.txt-article {
  padding: 3rem;
}

@media (max-width: 1024px) {
  .laboratorio-article {
    grid-template-columns: repeat(3, 1fr);
    padding: 25px;
    gap: 1rem;
  }

  article {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .laboratorio-article {
    grid-template-columns: repeat(1, 1fr);
    padding: 25px;
    row-gap: 3rem;
  }

  article {
    gap: 1rem;
  }
}

.img-article {
  width: 100%;
  border-radius: 30px 30px 0 0;
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(0.25turn, #7cbc3f, #c3e75f, #a9c950);
  border-image-slice: 1;
  width: 100%;
}

.spacer {
  background: var(--negro);
  height: 2px;
  width: 25px;
  margin: 1rem 0;
}

/* FOOTER /////////////////////////////////// */
.contacto-container {
  background: url(../images/natural_health_footer.jpg);
  background-size: cover;
  background-position: center;
  height: 90vh;
  padding: 100px 5%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: space-around;
}

.contacto-title {
  font-family: var(--tipo-secundaria);
  font-size: 2rem;
}

.contacto-info {
  font-family: var(--tipo-principal);
  font-size: 1.2rem;
  line-height: 1.4rem;
  font-weight: 300;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .contacto-container {
    background-size: cover;
    background-position-x: right;
    background-repeat: no-repeat;
  }

  .info-container {
    background-color: #fafafa;
    border-radius: 2rem;
    opacity: 0.9;
    padding: 2rem;
  }
}
