@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");

:root {
  --padding-container: 100px 0;
  --color-title: #001a49;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}

.contenedor {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: var(--padding-container);
}

.menu {
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 800px;
  position: relative;
  display: grid;
  grid-template-rows: 100px 1fr;
  color: #fff;
}

.menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(180deg, #0000008c 0%, #0000008c 100%),
    url("../img/principal.jpeg");
  background-size: cover;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 95%, 0 80%);
  z-index: -1;
}

/* Nav */

.nav {
  --padding-container: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-logo-img{
  display: block;
  width: 50px;
}

/* .nav-titulo {
  font-weight: 300;
} */

.nav-links {
  margin-left: auto;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 2em;
  transition: transform 0.3s ease-in-out;
}

.nav-items {
  list-style: none;
}

.nav-link {
  color: #fff;
  text-decoration: none;
}

.nav-menu {
  margin-left: auto;
  cursor: pointer;
  display: none;
}

.nav-menu-img{
  display: block;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0, 0, 0, .5);
}

.nav-close-img {
  display: var(--show, none);
}

/* Menu */

.menu-contenedor {
  max-width: 800px;
  --padding-container: 0;
  display: grid;
  grid-auto-rows: max-content;
  align-content: center;
  gap: 1em;
  padding-bottom: 100px;
  text-align: center;
}

.menu-titulo {
  /*white-space: nowrap;
  border-right: 3px solid transparent;
  width: 27ch;
  overflow: hidden; */
  font-size: 3rem;
  /*animation: texto 3s steps(27), cursor .5s infinite; */
}

/*@keyframes texto {0% {width: 0;}}
@keyframes cursor {50% {border-color: transparent}} */

.menu-parrafo {
  margin-bottom: 20px;
}

/* Nosotros */

.sobre {
  text-align: center;
}

.subtitulo {
  color: #1d293f;
  font-size: 2rem;
  margin-bottom: 25px;
}

.sobre-parrafo {
  line-height: 1.7;
}

.sobre-div {
  padding-top: 80px;
  display: grid;
  width: 90%;
  margin: 0 auto;
  gap: 1em;
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(260px, auto));
}

.sobre-icono {
  display: grid;
  gap: 1em;
  justify-items: center;
  width: 260px;
  overflow: hidden;
  margin: 0 auto;
}

.sobre-icono-img {
  width: 50px;
}

/* Servicios */

.servicio-titulo {
  text-align: center;
  color: #1d293f;
  font-size: 2rem;
  margin-bottom: 25px;
}

.servicio {
  /* background-color: #e5e5f7; */
  background-color: #ececf0;
}

.servicio-contenedor {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  gap: 1em;
  align-items: center;
}

.servicio-cuerpo {
  display: grid;
  grid-template-columns: 1fr max-content;
  justify-content: space-between;
  align-items: center;
  gap: 2em;
  grid-column: 2/3;
  grid-row: 1/2;
  opacity: 0;
  pointer-events: none;
}

.servicio-cuerpo-show {
  pointer-events: unset;
  opacity: 1;
  transition: opacity 1.5s ease-in-out;
}

.servicio-img-img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
}

.servicio-texto {
  max-width: 700px;
}

.servicio-flecha {
  width: 100%;
  cursor: pointer;
}

/* Experiencia */

.experiencia {
  text-align: center;
}

.experiencia-contenedor {
  display: grid;
  gap: 2em;
  padding-top: 50px;
  padding-bottom: 100px;
}

.experiencia-padding {
  padding: 0;
  transition: padding 0.3s;
  border: 1px solid #1d293f;
  border-radius: 6px;
}

.experiencia-padding--add {
  padding-bottom: 30px;
}

.experiencia-respuestas {
  padding: 0 30px 0;
  overflow: hidden;
}

.experiencia-titulo {
  text-align: left;
  display: flex;
  font-size: 20px;
  padding: 30px 0 30px;
  cursor: pointer;
  color: var(--color-title);
  justify-content: space-between;
}

.experiencia-flecha {
  border-radius: 50%;
  background-color: var(--color-title);
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: flex-end;
  margin-left: 10px;
  transition: transform 0.3s;
}

.experiencia-flecha--rotate {
  transform: rotate(180deg);
}

.experiencia-show {
  text-align: left;
  height: 0;
  transition: height 0.3s;
}

.experiencia-img {
  display: block;
}

/* CLIENTES */

.clientes-titulo {
  text-align: center;
  color: #1d293f;
  font-size: 2rem;
  margin-bottom: 25px;
}

.clientes {
  width: 100%;
  margin: auto;
  overflow: hidden;
}

.clientes ul {
  display: flex;
  padding: 0;
  width: 800%;

  animation: cambio 20s infinite alternate linear;
}

.clientes li {
  width: 100%;
  list-style: none;
}

.clientes img {
  width: 250px;
  height: 250px;
}

@keyframes cambio {
  0% {
    margin-left: 0%;
  }
  10% {
    margin-left: 0%;
  }

  12.5% {
    margin-left: -100%;
  }
  22.5% {
    margin-left: -100%;
  }

  25% {
    margin-left: -200%;
  }
  35% {
    margin-left: -200%;
  }

  37.5% {
    margin-left: -300%;
  }
  47.5% {
    margin-left: -300%;
  }

  50% {
    margin-left: -400%;
  }
  60% {
    margin-left: -400%;
  }

  62.5% {
    margin-left: -500%;
  }
  72.5% {
    margin-left: -500%;
  }

  75% {
    margin-left: -600%;
  }
  85% {
    margin-left: -600%;
  }

  87.5% {
    margin-left: -700%;
  }
  100% {
    margin-left: -700%;
  }
}

/* Footer */

footer {
  background: #1d293f;
  padding: 60px 0 30px 0;
  margin: auto;
  overflow: hidden;
}

.contenedor-footer {
  display: flex;
  width: 90%;
  justify-content: space-evenly;
  margin: auto;
  padding-bottom: 50px;
  border-bottom: 1px solid #ccc;
}

.content-foo {
  text-align: center;
}

.content-foo h4 {
  color: #fff;
  border-bottom: 3px;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.content-foo p {
  color: #ccc;
}

/* .titulo-final {
  text-align: center;
  font-size: 24px;
  margin: 20px 0 0 0;
  color: #9e9797;
} */

.footer-logo-img{
  margin-top: 30px;
  margin-left:48%;
  width: 50px;
}

/* Responsivo */

@media (max-width: 800px) {

  .nav-menu-img{
    position: fixed;
    top: 20px;
    right: 20px;
  }
  
  .nav-menu {
    display: block;
  }

  .nav-links-menu {
    position: fixed;
    background-color: #1d293f;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: 0.7s opacity;
  }

  .nav-links--show {
    --show: block;
    opacity: 1;
    pointer-events: unset;
  }

  .nav-close-img {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 30px;
    cursor: pointer;
  }

  .menu-titulo {
    font-size: 2.5rem;
  }

  .sobre-div {
    gap: 2em;
  }

  .sobre-icono:last-of-type {
    grid-column: 1/-1;
  }

  .servicio-contenedor {
    grid-template-columns: 30px 1fr 30px;
  }

  .servicio-cuerpo {
    grid-template-columns: 1fr;
    grid-template-rows: max-content max-content;
    gap: 3em;
    justify-items: center;
  }

  .servicio-img-img {
    width: 200px;
    height: 200px;
  }

  .experiencia-copy {
    width: 100%;
  }

  /*.clientes img {
    width: 150px;
    height: 150px;
  } */
}

@media (max-width: 600px) {

  .nav-menu-img{
    position: fixed;
    top: 20px;
    right: 20px;
  }

  .menu-titulo {
    font-size: 2rem;
  }

  .menu-parrafo {
    font-size: 1rem;
  }

  .subtitulo {
    font-size: 1.8rem;
  }

  .servicio {
    --padding-container: 60px 0;
  }

  .servicio-contenedor {
    grid-template-columns: 28px 1fr 28px;
    gap: 0.9em;
  }

  .servicio-flecha {
    width: 100%;
  }

  .servicio-course {
    margin-top: 15px;
  }

  .experiencia-titulo {
    font-size: 1rem;
  }
  
  /* .clientes img {
    width: 250px;
    height: 250px; 
  } */

  .contenedor-footer {
    flex-direction: column;
    border: none;
  }

  .content-foo {
    margin-bottom: 20px;
    text-align: center;
  }

  .content-foo h4 {
    border: none;
  }

  .content-foo p {
    color: #ccc;
    border-bottom: 1px solid #f2f2f2;
    padding-bottom: 20px;
  }

  /* .titulo-final {
    font-size: 20px;
  } */

  .footer-logo-img{
    margin-top: 1px;
    margin-left: 45%;
    width: 50px;
  }
}
