.trabajo {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: var(--color-gray);
  padding: 2em 6em;
  gap: 3em;
  overflow-x: hidden;
}

.trabajo-titulo {
  text-align: center;
  font-size: 1.2em;
  color: var(--color-pri);
}

.trabajo-contenedor {
  display: flex;
  justify-content: center;
  align-items: center;
}

.trabajo-contenedor-img {
  width: 60%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.trabajo-contenedor-img img {
  width: 350px;
  max-height: 100vh;
  min-height: 525px; /* Mínimo de altura */
  border-radius: 20px;
  object-fit: cover;
}

.trabajo-contenedor-textos {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-height: 100vh;
}

.trabajo-contenedor-textos h3 {
  color: var(--color-gray);
  font-size: 1.3em;
  font-weight: 300;
  letter-spacing: 2px;
}

.trabajo-contenedor-textos h3 span {
  color: var(--color-pri);
  font-weight: bold;
}

.trabajo-contenedor-textos h3 img {
  width: 25px;
  height: 25px;
  object-fit: cover;
  z-index: 100;
  transform: translate(0, 5px);
}

.trabajo-parrafos {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 80%;
  height: 100%;
  min-height: 445px; /* Mínimo de altura */
}

.trabajo-contenedor-textos p {
  width: 100%;
  font-size: 1.2em;
}

.trabajo-contenedor-textos p span {
  color: var(--color-pri);
  font-weight: 900;
  font-size: 1.3em;
}

.trabajo-wsp {
  text-align: center;
  width: 250px;
  margin-bottom: 20px; 
}

.trabajo-wsp a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2em;
}

.swiper-container-trabajo {
  height: 100vh;
  min-height: 100vh; /* Asegurar que siempre mantenga la altura de 100vh */
  position: relative;
  overflow: hidden; /* Ocultar los botones de swiper */
}

.swiper-button-next-trabajo,
.swiper-button-prev-trabajo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--color-pri);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 45%;
  color: var(--color-bg);
  font-size: 1em;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease-in-out;
}

.swiper-button-next-trabajo:hover,
.swiper-button-prev-trabajo:hover {
  transform: scale(1.1);
}

.swiper-button-next-trabajo {
  right: 10px;
}

.swiper-button-prev-trabajo {
  left: 10px;
}

@media (min-width: 1440px) {
  .swiper-container-trabajo {
    min-height: 100%;
    height: auto;
    max-height: 85vh; 
  }
}

@media (min-width: 1024px) and (max-width: 1440px) {
    .swiper-container-trabajo {
        font-size: .7em;
    }
}

@media (max-width: 1024px) {
  .trabajo {
    padding: 1em 1em;
    gap: 2em;
  }

  .trabajo-contenedor {
    flex-direction: column;
  }

  .trabajo-contenedor-img {
    display: none; /* Esconder las imágenes en móvil */
  }

  .trabajo-contenedor-textos {
    width: 100%;
    max-height: none;
    align-items: center;
  }

  .trabajo-contenedor-textos h3 {
    font-size: 1em;
  }

  .trabajo-parrafos {
    width: 100%;
    min-height: 100%; /* Ajustar el mínimo de altura para móvil */
    align-items: center;
    text-align: justify;
    gap: 1em;
    font-size: .9em;
   }

  .swiper-button-next-trabajo,
  .swiper-button-prev-trabajo {
      top: 96%;
    }
  
  .swiper-button-next-trabajo {
        right: 40%;
    }
   
   .swiper-button-prev-trabajo {
        left: 40%;
    }
}
