.header {
  background-image: url("../assets/ELEMENTS-ABOUT-US/Mesa_trabajo.png");
  background-repeat: no-repeat;
  background-size: cover;
}

.container-image {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  max-height: auto;
  height: 100vh;
  width: 100%;
  padding-top: 5rem;
}

.container-image__titles {
  font-weight: bold;
  height: auto;
  width: 50%;
}

.container-image__titles--green {
  color: var(--first-color);
  font-style: italic;
  font-size: clamp(2.5rem, 9vw, 5rem);
  font-weight: 900;
  font-family: var(--font);
}

.container-image__titles--white {
  color: white;
  font-style: italic;
}

.container-image__description {
  font-size: clamp(1.2rem, 3vw, 3rem);
  color: white;
  font-family: var(--font);
}

.container-image__img>div {
  width: clamp(22rem, 40vw, 40rem);
}


/* DESCRIPCION DE LA EMPRESA */

.description {
  background-image: url("../assets/ELEMENTS_HOME/ELEMENTS_HOME-17.png");
  background-repeat: no-repeat;
  background-size: cover;
}

.description__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100%;
}

.description__img {
  width: 5vw;
  height: auto;
}

.description__text {
  color: white;
  text-align: center;
  font-weight: 800;
  padding-top: 2rem;
  font-size: clamp(1.2rem, 1.65vw, 3rem);
  font-family: var(--font);
}

.description__text>span {
  background-color: var(--first-color);
}

/* Pilares de la empresa */
.pillars {
  width: 100%;
  height: auto;
  padding: var(--margen-top) 0;
}

.pillars__title {
  text-align: center;
  color: var(--first-color);
  font-family: var(--font);
  font-weight: 900;
  font-size: var(--font-titles-section);
}

.pillars__subtitle {
  font-family: var(--font);
  text-align: center;
  margin-top: 1rem;
  font-size: var(--font-subtitles-section);
}

.items {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  justify-content: center;
  align-items: baseline;
  gap: 2rem;
  margin-top: 2rem;
  /* border: 8px solid khaki; */
  overflow: hidden;
}

.pillars-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  /* border: 1px solid red; */
}

.pillars-item__container {
  position: relative;
  display: inline-block;
  text-align: center;
  width: clamp(12rem, 12vw, 20rem);
  height: auto;
}

.pillars-item__title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: 900;
  font-size: clamp(1rem, 1vw, 1.2rem);
  font-family: var(--font);
}

.pillars-item__description {
  color: #083434;
  text-align: left;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-family: var(--font);
  font-weight: 600;

}

/*  LINEA DE PRODUCCION */
.line {
  width: 100%;
  height: 100vh;
  background-image: url("../assets/ELEMENTS-ABOUT-US/ELEMENTS_ABOUT_US-10.png");
  background-size: cover;
  background-repeat: no-repeat;
  margin-top: var(--margen-top);
}

.line-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.line__title {
  color: var(--first-color);
  text-align: center;
  padding-top: 2rem;
  font-weight: 900;
  font-family: var(--font);
  font-size: var(--font-titles-section);
  /* border: 1px solid red; */
}

.line__subtitle {
  color: white;
  text-align: center;
  margin: 1rem 0;
  padding-top: 1rem;
  font-family: var(--font);
  font-size: var(--font-subtitles-section);
}

.list-lines {
  display: flex;
  justify-content: center;
  align-items: baseline;
  column-gap: 5rem;
  padding-top: 2rem;
}

.container-lines {
  position: relative;
  z-index: 1;
}

.line-production {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

.thin-line {
  width: 200%;
  height: 1px;
  background-color: transparent;
  border: 4px dashed var(--first-color);
  position: absolute;
  top: 40%;
  z-index: 0;
}

.line-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 20px;
}

.line-circle {
  width: 150px;
  height: 150px;
  border: 4px dashed var(--first-color);
  color: var(--first-color);
  font-size: 30px;
  background-color: #003333;
  font-weight: 900;
  text-align: center;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.line-item__title {
  text-align: center;
  font-family: var(--font);
  font-weight: 700;
  color: white;
  font-size: clamp(1rem, 1vw, 1.5rem);
}

.list-lines>li {
  margin: 0 2rem;
  width: 200px;
}

.list-lines {
  display: flex;
  animation: scroll 25s linear infinite;
  width: calc(200px * 15);
}

@keyframes scroll {
  0% {
    transform: translateX(40%);
  }

  100% {
    transform: translateX(calc(-200px * 14));
  }
}


/* DISEÑO RESPONSIVO */
@media only screen and (min-width: 668px) and (max-width: 1248px) {
  .items {
    grid-template-columns: repeat(2, 1fr);
  }

  .container-image {
    flex-direction: column;
  }

  .container-image__titles {
    width: 100%;
  }

  .container-image__titles--green,
  .container-image__titles--white {
    text-align: center;
    width: 100%;

  }

  .container-image__description {
    text-align: center;
  }
}

@media only screen and (max-width: 668px) {
  .container-image {
    flex-direction: column;
  }

  .container-image__titles {
    width: 100%;
  }

  .container-image__titles--green,
  .container-image__titles--white {
    text-align: center;
    width: 100%;

  }

  .container-image__description {
    text-align: center;
  }

  .line {
    height: auto;
  }

  .line-item {
    padding: 2rem 0;
  }

  .line-item__title {
    background-color: #003333;
    opacity: 0.8;
  }

  .thin-line {
    display: none;
  }

  .thin-line-2 {
    width: 1px;
    height: 100%;
    background-color: transparent;
    border: 4px dashed var(--first-color);
    position: absolute;
    left: 50%;
    z-index: 0;
  }

  .arrows {
    display: none;
  }

  .list-lines {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: none;
    width: 100%;

  }

  .pillars {
    height: auto;
  }

  .pillars-item__description {
    width: 50%;
  }

  .items {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
  }



}

@media (max-width: 30em) {
  .pillars {
    height: auto;
  }

  .items {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
  }

  .container-image {
    flex-direction: column;
  }

  .container-image__titles--green,
  .container-image__titles--white {
    text-align: center;
  }

  .container-image__description {
    text-align: center;
  }

  .pillars__subtitle {
    padding: 0 1rem;
  }

  .pillars-item__description {
    width: 80%;
  }

  .pillars-item__description {
    text-align: justify;
  }

  .vision__message,
  .container-image__description {
    padding: 0 1rem;
  }

  .galery__item {
    padding: 1rem 0;
  }
}