/* Restablece los márgenes y rellenos */
:root {
  --gris-suave: #1d252c;
  --blanco-suave: #ebebeb;
  --blue-link: #25a8e0;
  --blue-button: #3291c6;
  --blue-hover: #25a8e0;
  --blue-clarito: #b3e4fa;
}
*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  position: relative;
  font-family: "Raleway", sans-serif;
}
button {
  cursor: pointer;
  letter-spacing: 1px;
  font-family: inherit;
}
a {
  width: max-content;
  text-decoration: none;
}
/* HEADER */
.header__tel-container {
  background: var(--gris-suave);
  top: 0;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1000;
}

.header__tel {
  margin: auto;
  font-size: 14px;
  width: min(100%, 1400px);
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanco-suave);
}

.headerTwo {
  margin-top: 31px;
  position: fixed;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding-inline: 8vw;
  height: 80px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  animation: scrollMenu ease-in-out both;
  animation-timeline: scroll(root block);
  animation-range: entry 0% cover 200px;
}
@keyframes scrollMenu {
  to {
    background: var(--gris-suave);
  }
}

.header__containerTwo {
  width: min(100%, 1400px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.header__logoTwo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 64px;
  height: 64px;
}
.header__logo__figcaptionTwo {
  font-size: minMax(14px, 20px);
  color: var(--blanco-suave);
  text-transform: uppercase;
  font-weight: bold;
}
.header__logo__imgTwo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  object-position: center;
}
.header__nav__containerTwo {
  width: 60%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}
.header__navTwo {
  width: 65%;
  display: flex;
  justify-content: center;
}

.header__listTwo {
  width: 100%;
  height: min-content;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header__liTwo {
  position: relative;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  list-style: none;
  padding: 8px 16px;
  border-radius: 16px;
}
.header__liTwo a {
  text-decoration: none;
  color: var(--blanco-suave);
}
.header__liTwo::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  margin: auto;
  bottom: -8px;
  width: 10px;
  height: 2px;
  background: var(--blue-link);
  opacity: 0;
  transition: transform 300ms ease, opacity 500ms ease;
}
.header__liTwo:hover::after {
  transform: scaleX(6);
  opacity: 1;
}

.header__containerButtonsTwo {
  display: flex;
  justify-content: flex-start;
  width: 35%;
  align-items: center;
  gap: 20px;
}
.header__buttonTwo {
  font-size: 0.85rem;
  font-weight: bold;
  border: none;
  border-radius: 20px;
  padding: 12px 20px;
  background: var(--blue-button);
  color: var(--gris-suave);
  transition: transform 300ms ease;
  letter-spacing: 1px;
}

.header__buttonTwo:hover {
  transform: translateY(-4px);
}
.header__menuTwo {
  display: none;
}

/* FIN HEADER*/
/* BANNER */
.banner {
  position: relative;
  width: 100%;
  height: 92vh;
  background: var(--gris-suave);
  z-index: 0;
}
.banner__container {
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(29, 37, 44), transparent),
    url("img/fondoBanner.webp");
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 180px, cover;
  background-position: top, center;
}
.banner__fondo {
  position: absolute;
  width: 55%;
  height: 100%;
  background: var(--gris-suave);
  clip-path: polygon(0 0, 45% 0, 100% 100%, 0% 100%);
}
.banner__text {
  margin: auto;
  position: absolute;
  width: 40%;
  height: 60vh;
  z-index: 1000;
  left: 8vw;
  bottom: 12.5vh;
  color: var(--blanco-suave);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-wrap: balance;
  gap: 30px;
}
h1 {
  font-size: clamp(38px, 4.5vw, 80px);
  line-height: clamp(34px, 4.2vw, 76px);
  text-shadow: 0 0 10px #1d252c;
}
.banner__paragraph {
  font-size: clamp(14px, 15px, 30px);
  text-shadow: 0 0 10px #1d252c;
}
.banner__button,
.services__text button,
.modal__contact {
  background: var(--blue-button);
  color: var(--gris-suave);
  border: none;
  font-size: clamp(20px, 2vw, 24px);
  width: min(100%, 300px);
  height: 60px;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.3s ease-in-out;
  padding: 12px;
  margin-top: 20px;
}
.banner__button:hover,
.services__text button:hover {
  background: var(--blue-hover);
  transform: translateY(-4px);
}
/* BANNER END*/

/* SERIVCES */
.services {
  padding-inline: 8vw;
  width: 100%;
  height: calc(100vh - 110px);
  display: flex;
  justify-content: center;
  align-items: center;
}
.services-container {
  width: 100%;
  height: 90%;
  max-width: 1400px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.services__text {
  flex: 0 0 35%;
  display: flex;
  gap: 20px;
  flex-direction: column;
  justify-content: center;
  color: var(--gris-suave);
}

.services__text h2 {
  text-transform: uppercase;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.services__text p {
  margin-bottom: 20px;
}

.services__text button {
  font-size: clamp(18px, 1.8vw, 20px);
  width: 230px;
}

.carousel-container {
  height: 90%;
  flex: 1;
  position: relative;
  overflow: hidden;
}

.carousel-track {
  height: 100%;
  display: flex;
  gap: 15px;
  transition: transform 0.5s ease;
}

.card {
  flex: 0 0 calc(100% / 2.5); /* muestra 2.5 tarjetas */
  height: 100%;
  max-height: 80vh;
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: none;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}
.card:hover .card__text-container {
  background: var(--blue-button);
}

.card:hover .card__text-container p {
  color: var(--blanco-suave);
}

.card__text-container {
  background: var(--gris-suave);
  width: 100%;
  height: 33%;
  clip-path: polygon(0 0, 100% 32%, 100% 100%, 0% 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 30px 20px;
  text-align: left;
}
.card-1 {
  background-image: url("img/headhunting.jpg");
}
.card-2 {
  background-image: url("img/nomina.jpg");
}
.card-3 {
  background-image: url("img/socioeconomicos.jpg");
}
.card-4 {
  background-image: url("img/investigacion.jpg");
}
.card-5 {
  background-image: url("img/selecciona.jpg");
}
.card-6 {
  background-image: url("img/busqueda.jpg");
}
.card h3 {
  color: var(--blanco-suave);
  font-weight: bold;
  font-size: 26px;
  line-height: 24px;
}
.card p {
  color: #8b919c;
}
.card i {
  padding-right: 6px;
}
.nav {
  position: absolute;
  top: 0;
  left: 0;
  background: #00000088;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 25px;
  width: 50px;
  height: 70px;
  z-index: 1;
}
.nav:hover {
  background: var(--gris-suave);
}
.nav:active {
  scale: 0.9;
}
.nav.right {
  top: 74px;
}
/* SERVICES END*/
/* FOOTER */
/* CSS */

.footer {
  height: auto;
  min-height: 50vh;
  background-color: var(--gris-suave);
  color: var(--blanco-suave);
  padding: 100px 20px 20px;
  font-family: "Arial", sans-serif;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-section h2,
.footer-section h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.footer-section p,
.footer-section a {
  font-size: 14px;
  color: var(--blanco-suave);
  text-decoration: none;
  margin-bottom: 6px;
  display: block;
}

.footer-section a:hover {
  color: #ffffff;
}

.social-icons a {
  margin-right: 10px;
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 30px;
  padding-top: 15px;
  text-align: center;
  font-size: 12px;
  color: #aaa;
}
/* whatsapp button*/
.btn__whatsapp {
  width: 64px;
  height: 64px;
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: transparent;
  border: none;
  border-radius: 32px;
}
.btn__whatsapp:hover {
  scale: 1.05;
}
.btn__whatsapp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1000;
}

/* FOOTER END */

/*movil*/
@media (max-width: 1025px) {
  /* menu hamburquesa*/
  .header__containerTwo {
    justify-content: space-between;
  }

  .header__nav__containerTwo {
    justify-content: flex-end;
  }
  .header__containerButtonsTwo {
    justify-content: flex-end;
    width: 100%;
  }
  .header__menuTwo {
    display: inline;
    font-size: 1.8rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    padding: 6px 14px;
  }
  .header__menuTwo:hover {
    background: var(--blue-clarito);
  }
  .header__navTwo {
    display: none;
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    height: calc(100vh - 80px);
  }
  .header__nav02-hide {
    display: flex;
    animation: headerNav02 600ms ease both;
    transform-origin: top right;
  }
  @keyframes headerNav02 {
    0% {
      scale: 0.2;
      opacity: 0;
    }
  }
  .header__listTwo {
    padding-top: 50px;
    height: 100%;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    gap: 30px;
    background: var(--gris-suave);
  }

  .header__liTwo {
    font-size: 1.2rem;
    font-weight: bold;
  }
  .services {
    height: 140vh;
  }
  .services-container {
    flex-direction: column;
  }

  .services__text {
    width: 100%;
    height: 45%;
  }
  .carousel-container {
    width: 100%;
    height: 55%;
  }
  .card {
    flex: 0 0 calc(100% / 2); /* muestra 2.5 tarjetas */
    height: 85%;
  }
}
@media (max-width: 767px) {
  .header__containerButtonsTwo {
    width: max-content;
    .header__buttonTwo {
      display: none;
    }
  }
  .card {
    flex: 0 0 calc(100% / 1); /* muestra 2.5 tarjetas */
    height: 85%;
  }

  .banner__text {
    width: 55%;
    height: 100%;
    justify-content: center;
    bottom: 0;
    gap: 14px;
  }
  .banner__fondo {
    width: 70%;
  }
  .banner__button {
    height: 50px;
    padding: 8px;
  }
}
@media (max-width: 475px) {
  .header__containerTwo {
    justify-content: space-between;
    gap: 20px;
    padding: 0 16px;
  }
  .headerTwo {
    padding-inline: 2vw;
  }
  .banner__text {
    align-items: center;
    justify-content: center;
    height: 78%;
    width: 100%;
    bottom: 5vh;
    left: 0;
    padding: 50px 8vw;
  }
  .banner__text p {
    font-size: 17px;
  }
  .banner__container {
    background-image: linear-gradient(rgba(29, 37, 44), transparent),
      url("img/fondoBanner.webp");
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, cover;
  }
  .card__text-container {
    height: 38%;
  }
  .btn__whatsapp {
    width: 56px;
    height: 56px;
  }
}

.modal {
  display: none;
  top: 0;
  position: fixed;
  z-index: 1200;
  backdrop-filter: blur(2px);
  width: 100%;
  height: 100vh;
  background-color: rgba(50, 146, 198, 0.2);
  justify-content: center;
  align-items: center;
  color: var(--gris-suave);
  animation: modalHide 0.3s ease;
}
@keyframes modalBom {
  from {
    transform: translateY(100px);
  }
}
@keyframes modalHide {
  from {
    opacity: 0;
  }
}

.modal__container {
  width: 95%;
  max-width: 800px;
  height: 80%;
  background: var(--blanco-suave);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 20px 4vw;
  animation: modalBom 0.35s ease-out;
}

.modal__close {
  width: 64px;
  height: 32px;
  background-color: var(--blue-button);
  border: none;
  border-radius: 2px;
  align-self: flex-end;
  font-size: 28px;
  color: var(--gris-suave);
}
.modal__text {
  white-space: pre-line;
}
.modal__contact {
  font-size: 18px;
  width: 180px;
}
/* Configuración base */
.scroll-fade,
.scroll-left,
.scroll-right,
.scroll-up,
.scroll-down {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
  visibility: hidden;
}

/* Cuando entran en la vista */
.scroll-fade.show,
.scroll-left.show,
.scroll-right.show,
.scroll-up.show,
.scroll-down.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Movimiento específico */
.scroll-left {
  transform: translateX(-100px);
}

.scroll-right {
  transform: translateX(50px);
}

.scroll-up {
  transform: translateY(50px);
}

.scroll-down {
  transform: translateY(-50px);
}
