@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

body {
  font-family: 'Poppins', sans-serif;
}


/* ======= SECCIÓN HERO ======= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  padding: 4rem 8%;
  overflow: hidden;
}

/* Fondo con opacidad independiente */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0, #ffffff 12px), repeating-linear-gradient(#2c629755, #2c6297);
  opacity: 0.2;
  /* ahora solo afecta al fondo */
  z-index: 0;
}

/* Contenido principal */
.hero-contenido {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1200px;
  width: 100%;
  z-index: 1;
  /* se muestra por encima del fondo */
  position: relative;
}

/*titles de secciones*/
.title {
  font-weight: bold;
  color: #2c6297;
}

/* ===== HERO TEXTO ===== */
.hero-texto {
  flex: 1;
}

.hero-texto h1 {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1.2;
  color: #2c6297;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.hero-texto p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 480px;
  color: #444;
}

/* ===== ANIMACIÓN DE LA ÚLTIMA PALABRA ===== */
.loader {
  display: inline-block;
  position: relative;
  height: 45px;
  overflow: hidden;
  vertical-align: bottom;
}

.words {
  overflow: hidden;
  position: relative;
  display: inline-block;
}

.words::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
}

.word {
  display: block;
  color: #2c6297;
  font-weight: bold;
  animation: spin_4991 4s infinite;
}

/* Animación de desplazamiento vertical */
@keyframes spin_4991 {
  10% {
    transform: translateY(-102%);
  }

  25% {
    transform: translateY(-100%);
  }

  35% {
    transform: translateY(-202%);
  }

  50% {
    transform: translateY(-200%);
  }

  60% {
    transform: translateY(-302%);
  }

  75% {
    transform: translateY(-300%);
  }

  85% {
    transform: translateY(-402%);
  }

  100% {
    transform: translateY(-400%);
  }
}

/* BOTON DE CONTACTANOS DE HERO*/
.btn-index {
  padding: 10px 20px;
  border: none;
  font-size: 17px;
  color: #fff;
  border-radius: 7px;
  letter-spacing: 4px;
  font-weight: 700;
  text-transform: uppercase;
  transition: 0.5s;
  transition-property: box-shadow;
}

.btn-index {
  background: rgb(44, 98, 151);
  box-shadow: 0 0 25px rgb(44, 98, 151);
}

.btn-index:hover {
  box-shadow: 0 0 5px rgb(44, 98, 151),
    0 0 25px rgb(44, 98, 151),
    0 0 50px rgb(44, 98, 151),
    0 0 100px rgb(44, 98, 151);
}

/* Imagen */
.hero-imagen {
  flex: 1;
  text-align: right;
}

.hero-imagen img {
  width: 115%;
  /* antes estaba en 90% */
  max-width: none;
  /* permite que sobrepase el límite normal */
  transform: translateX(5%);
  /* la centra un poco si se agranda demasiado */
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ======= SECCIÓN SEVICIOS ======= */
.section-servicios {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5f5f5;
  padding: 60px 0;
  gap: 15px;
}

/* ======= CONTENEDOR ======= */
.slider-container {
  width: 90%;
  max-width: 1100px;
  overflow: hidden;
}

/* ======= SLIDER ======= */
.slider {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease-in-out;
}

/* ======= TARJETAS ======= */
.card {
  flex: 0 0 calc((100% - 60px) / 3);
  padding: 20px;
  border-radius: 20px;
  background: #e8e8e8;
  box-shadow: 5px 5px 6px #dadada,
    -5px -5px 6px #f6f6f6;
  transition: 0.4s;
}

.card:hover {
  transform: translateY(-10px);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #2e54a7;
  margin: 15px 0 0 10px;
}

.card-image {
  min-height: 170px;
  background-color: #c9c9c9;
  border-radius: 15px;
  box-shadow: inset 8px 8px 10px #c3c3c3,
    inset -8px -8px 10px #cfcfcf;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* mantiene proporciones sin deformar */
  border-radius: 15px;
  display: block;
}

.card-body {
  margin: 13px 0 0 10px;
  color: rgb(31, 31, 31);
  font-size: 15px;
}

.footer {
  float: right;
  margin: 28px 0 0 18px;
  font-size: 13px;
  color: #636363;
}

.by-name {
  font-weight: 700;
}

/* ======= BOTONES ======= */
.slider-btn {
  background: #2e54a7;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 26px;
  transition: background 0.3s ease;
}

.slider-btn:hover {
  background: #1d3d82;
}



/* CARRUSEL DE LOGOS DE CLIENTES */
#clients-logo {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 100px;
}


.clients-container {
  display: flex;
  justify-content: center;
  /* centra horizontal */
  align-items: center;
  /* centra vertical dentro de la sección */
  overflow: hidden;
}

.text-clients {
  font-weight: bold;
  color: #2c6297;
  font-size: 2rem;
}

.scroll {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent);
}

.scroll div {
  white-space: nowrap;
  animation: animate 30s linear infinite;
}

.scroll:hover div {
  animation-play-state: paused;
}

.scroll img {
  width: 220px;
  margin: 0 30px;
  transition: .5s;
  cursor: pointer;
}

.scroll img:not(:hover) {
  filter: grayscale(100%);
}

.scroll img:hover {
  transform: scale(1.1);
  filter: none;
}

/* Animación */
@keyframes animate {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

.scroll.reverse div {
  animation: animateReverse 30s linear infinite;
}

.scroll.reverse:hover div {
  animation-play-state: paused;
}

@keyframes animateReverse {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(0);
  }
}

/* Espaciado entre carruseles */
.mt-4 {
  margin-top: 40px;
}

/* SECCION DE PORQUE ELEGIRNOS */
.knowledge {
  background-color: #2A3F54;
  opacity: 0.8;
  background-image: radial-gradient(circle at center center, #ffffff, #2A3F54), repeating-radial-gradient(circle at center center, #ffffff, #ffffff, 10px, transparent 20px, transparent 10px);
  background-blend-mode: multiply;
  background-position: 0 0,10px 10px;
  overflow: hidden;
  margin-top: 150px;
  margin-bottom: 100px;
}

.subtitle {
  font-weight: bold;
  color: #2c6297;
  margin-bottom: 50px;
}

.knowledge__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  align-items: center;
}

.knowledge__paragraph {
  line-height: 1.7;
  margin-bottom: 15px;
  color: #fff;
}

.knowledge__picture {
  max-width: 500px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.knowledge__video {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}


/* ESTILOS PARA MOBILES */
@media (max-width: 768px) {

  .hero {
    padding: 3rem 5%;
  }

  .hero-contenido {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  .hero-texto h1 {
    flex-direction: column;
    text-align: center;
    font-size: 2rem;
  }

  .loader {
    display: block;
    text-align: center;
    width: 100%;
  }

  .words {
    display: inline-block;
    text-align: center;
  }

  .hero-texto p {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-imagen {
    text-align: center;
  }

  .hero-imagen img {
    width: 100%;
    transform: none;
  }

  .btn-index {
    font-size: 15px;
    letter-spacing: 2px;
  }

  .title {
    font-size: 2.5rem;
  }

  .section-servicios {
    gap: 5px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .card {
    flex: 0 0 100%;
    /* 1 visible */
  }

  .slider-container {
    width: 95%;
  }

  #clients-logo {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
  }

  .scroll img {
    width: 200px;
    /* un poco más grande */
    margin: 0 20px;
  }

  .clients-container {
    padding: 10px 0;
    /* más espacio vertical para que no se vean tan apretados */
  }

  /* SECCION DE ELEGINOS EN MOVILES */
  .knowledge__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .knowledge__picture {
    margin-top: 2em;
  }

  .knowledge__video {
    max-width: 90%;
  }
}