@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

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

:root {
  --pmcolor: #f5f5f5;
  --bgcolor: #d9d9d9;
  --sdcolor: #b9b9b9;
  --ttcolor: #1a1a1a;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  background-color: #c0d2e0;
  font-family: "Inter", sans-serif;
  overflow-y: scroll;
}

li {
  list-style: none;
}

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

img {
  width: 100%;
  padding: 0;
  margin: 0;
}

/* NAVBAR ------------------------------------------------------------------------*/

header {
  background-color: transparent;
  opacity: 1;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1;
  -webkit-transition: all ease-out .5s;
  -moz-transition: all ease-out .5s;
  -o-transition: all ease-out .5s;
  transition: all ease-out .5s;
}

.header_active{
  background-color: rgba( 255, 255, 255, 1 );
}

.nav {
  width: 90%;
  height: 4rem;
  font-size: 20px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: inline-flex;
  padding-top: 10px;
}

.nav-item {
  margin: 0 0.5rem;
}

.nav-link {
  text-transform: capitalize;
  color: var(--ttcolor) !important;
  padding: 0.5rem;
  transition: 0.3s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--sdcolor) !important;
}

.nav-img {
  width: 300px;
}

.grid4 {
  width: 22%;
  height: 300px;
  background-color: #b9b9b9;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  display: flex;
  align-items: center;
  justify-content: center;
}



/* BOTONES ----------------------------------------------------------------*/
.button {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: "Poppins";
  font-size: large;
  color: white !important;
  padding: 10px;
  width: max-content;
  height: 45px;
  border-radius: 20px;
  background-size: 300% 100%;
  background-image: linear-gradient(
    to right,
    #e4b551,
    #dfa21e,
    #000000,
    #000000
  );
  text-decoration: none;
  -moz-transition: all 0.6s ease-in-out;
  -o-transition: all 0.6s ease-in-out;
  -webkit-transition: all 0.6s ease-in-out;
  transition: all 0.6s ease-in-out;
  /* box-shadow: 0 4px 15px 0 rgba(255, 255, 255, 0.75); */
}

.button:hover {
  background-position: 100% 0;
  -moz-transition: all 0.6s ease-in-out;
  -o-transition: all 0.6s ease-in-out;
  -webkit-transition: all 0.6s ease-in-out;
  transition: all 0.6s ease-in-out;
}

.button a {
  text-decoration: none;
  color: white;
}

.whatsapp {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  font-size: 30px;
  text-decoration: none;
}

.whatsapp:hover {
  color: white;
  opacity: 0.8;
}

/* .botton_elevator {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  width: 40px;
  height: 40px;
  bottom: 100px;
  right: 30px;
  background-color: #707070;
  color: #fff;
  border-radius: 50%;
  font-size: 20px;
  text-decoration: none;
}

.botton_elevator:hover {
  color: #fff;
  opacity: 0.8;
} */

/* FOOTER -------------------------------------------------------------------*/
footer {
  margin-top: 2rem;
  bottom: 0;
  height: 340px;
  width: 100%;
  background-color: var(--ttcolor);
  padding: 2rem;
  text-align: center;
}

footer p {
  color: var(--sdcolor);
}

.grids4 {
  width: 85%;
  margin: 0 auto;
  display: grid;
  place-content: center;
  gap: 10px;
  grid-template-columns: 33% 33% 33%;
}

.col {
  color: var(--sdcolor);
}

.col ul {
  letter-spacing: 0.3rem;
  line-height: 2.5rem;
  font-size: larger;
  cursor: pointer;
}

.col img {
  background-color: var(--sdcolor);
  margin-bottom: 20px;
}

.container_icons {
  display: flex;
  justify-content: center;
  color: var(--sdcolor);
}

.container_icons i {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid #dfa21e;
  border-radius: 50%;
  margin: 0.5rem;
  color: #dfa21e;
}

i {
  font-size: larger;
}

.container_icons i:hover {
  cursor: pointer;
  border: 1px solid #dfa21e;
  color: var(--ttcolor);
  background-color: #dfa21e;
  transition: 1s;
}

/* ----------------------------------------------------------------------------------- */
/* ----------------------------------TABLET--------------------------------------------*/
/* ----------------------------------------------------------------------------------- */

@media (max-width: 1300px) {
  .wrapper {
    display: grid;    
    grid-template-columns: 50% 50%;
  }
  .nav-img {
    width: 200px;
  }
  .nav-item{
    display: flex;
    align-items: center;
    font-size: 12px;


  }
}

/* ----------------------------------------------------------------------------------- */
/* ----------------------------------MOVIL---------------------------------------------*/
/* ----------------------------------------------------------------------------------- */

@media (max-width: 768px) {
  body {
    width: 100vw !important;
    overflow-x: hidden;
  }
  header {
    width: 100vw;
  }  
  .nav {
    width: 90vw;
  }
  .wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: 100%;

  }

  .grids4 {
    display: block;
  }

  .col {
    width: 100%;
    margin-bottom: 20px;
  }

  .nav-menu {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
    width: 70vw;
    height: 100vh;
    padding: 4rem 0;
    background-color:rgb(20, 20, 20);
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: flex-start;
    transform: translateX(-100%);
    transition: transform 0.5s ease-in-out;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-item {
    padding: 0 1.25rem !important;
    font-size: 1.2rem;
  }

  .nav-link {
    display: block;
    margin: 0.5rem 0;
    color: whitesmoke !important;
  }

  .nav-item:last-child {
    border-left: 0;
    padding-left: 0;
  }

  .nav-img {
    width: 15rem;
  }

  .mobile-menu {
    position: relative;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
  }

  .mobile-menu--button {
    width: 30px;
    height: 2px;
    background-color: var(--ttcolor);
    border-radius: 0.25rem;
    transition: 0.3s ease-in-out;
  }

  .mobile-menu--button::before,
  .mobile-menu--button::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--ttcolor);
    border-radius: 0.25rem;
    transition: 0.3s ease-in-out;
  }

  .mobile-menu--button::before {
    transform: translateY(-10px);
  }

  .mobile-menu--button::after {
    transform: translateY(10px);
  }

  .mobile-menu.open .mobile-menu--button {
    transform: translateX(-5px);
    background-color: transparent;
  }

  .mobile-menu.open .mobile-menu--button::before {
    transform: rotate(45deg) translate(5px, -5px);
  }

  .mobile-menu.open .mobile-menu--button::after {
    transform: rotate(-45deg) translate(5px, 5px);
  }

  footer {
    height: max-content;
  }
}

/* ANIMATION-BORDER-RADIUS */

.grid4 {
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  margin: auto;
  background-color: #21d4fd;
  background-image: linear-gradient(19deg, #21d4fd 0%, #b721ff 100%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  box-shadow: 15px 15px 50px rgba(0, 0, 0, 0.2);
  animation: morphing 20s infinite;
  overflow: hidden;
}
.grid4:hover {
  animation-play-state: paused;
}

@keyframes morphing {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 15px 15px 50px rgba(0, 0, 0, 0.2);
  }
  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }
  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    box-shadow: -10px -5px 50px rgba(0, 0, 0, 0.2);
  }
  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
}

.ir-arriba {
  display: none;
  background-repeat: no-repeat;
  font-size: 20px;
  color: black;
  cursor: pointer;
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 2;
}
