/* ===========================
   NUESTROS VALORES
=========================== */

.page-heading-valores {
  /* Base .page-heading defaults to "center bottom" — show more of the top
     of the photo instead */
  background-position: center 20%;
  padding: 60px 0px;
  min-height: 370px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero style — no gray box, bold white title over the photo (overrides the
   inline style="" on the h3, which is why this needs !important) */
.page-heading-valores h3 {
  font-weight: 500;
  font-size: 36px !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.75),
    0 0 16px rgba(0, 0, 0, 0.6),
    0 0 32px rgba(0, 0, 0, 0.45);
}

@media (max-width: 767px) {
  .page-heading-valores {
    padding: 30px 0px;
    min-height: 0;
  }

  .page-heading-valores h3 {
    font-size: 20px !important;
  }
}

.bloque-valores {
  display: flex;
  align-items: flex-start;
  padding-top: 20px;
  padding-bottom: 100px;
}

.bloque-valores-text {
  flex: 1 1 62%;
  max-width: 62%;
  padding: 80px 20px 80px 60px;
  font-size: 32px;
}

.bloque-valores-text p {
  width: 100%;
  margin-bottom: 18px;
  font-size: 19px;
  line-height: 1.7;
  color: #c3d0e4;
}

.bloque-valores-text h2 {
  line-height: 1.3;
  margin-bottom: 10px;
}

.bloque-valores-text h4 {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
}

.bloque-valores-text p:last-child {
  margin-bottom: 0;
}

.valor-block {
  background-color: #142b4d;
  border: 1px solid rgba(79, 154, 255, 0.1);
  border-radius: 14px;
  padding: 26px 32px;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.valor-block:last-child {
  margin-bottom: 0;
}

.valor-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bloque-valores-gear {
  flex: 1 1 38%;
  max-width: 58%;
  position: sticky;
  top: 90px;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

/* Gear cluster: five cogs of different sizes packed tightly together like a
   watch mechanism, each a slightly different shade of gray for depth. Sized
   and positioned as percentages of .gear-cluster (kept clear of the left
   edge) so it never reaches into the text column next to it. */
.gear-cluster {
  position: relative;
  width: 100%;
  height: 70vh;
  max-height: 560px;
}

.gear-cluster .gear {
  position: absolute;
  display: block;
  will-change: transform;
  transform: translate(-50%, -50%) rotate(0deg);
}

.gear-xlarge {
  top: 52%;
  left: 62%;
  font-size: clamp(190px, 21vw, 300px);
  color: #eef2f8;
}

.gear-upper {
  top: 22%;
  left: 34%;
  font-size: clamp(130px, 14.5vw, 208px);
  color: #9aa8bf;
  filter: drop-shadow(-5px 4px 6px rgba(6, 14, 28, 0.3));
}

.gear-right {
  top: 24%;
  left: 84%;
  font-size: clamp(90px, 10vw, 150px);
  color: #d6dde8;
  filter: drop-shadow(-4px 3px 5px rgba(6, 14, 28, 0.25));
}

.gear-lower {
  top: 82%;
  left: 36%;
  font-size: clamp(80px, 9vw, 138px);
  color: #c1cadb;
  filter: drop-shadow(-4px 3px 5px rgba(6, 14, 28, 0.25));
}

.gear-tiny {
  top: 84%;
  left: 68%;
  font-size: clamp(46px, 5.2vw, 78px);
  color: #eef2f8;
  opacity: 0.8;
  filter: drop-shadow(-3px 2px 4px rgba(6, 14, 28, 0.25));
}

@media (max-width: 991px) {
  .bloque-valores {
    flex-direction: column;
  }
  .bloque-valores-text,
  .bloque-valores-gear {
    max-width: 100%;
    flex: 1 1 auto;
  }
  .bloque-valores-gear {
    position: relative;
    width: 100%;
    height: 260px;
  }
  .gear-cluster {
    height: 100%;
    max-height: none;
  }
  .gear-xlarge {
    top: 50%;
    left: 58%;
    font-size: clamp(150px, 34vw, 220px);
  }
  .gear-upper {
    top: 18%;
    left: 32%;
    font-size: clamp(100px, 23vw, 150px);
  }
  .gear-right {
    top: 20%;
    left: 82%;
    font-size: clamp(70px, 16vw, 108px);
  }
  .gear-lower {
    top: 84%;
    left: 34%;
    font-size: clamp(62px, 14vw, 98px);
  }
  .gear-tiny {
    top: 86%;
    left: 66%;
    font-size: clamp(36px, 8vw, 56px);
  }
  .bloque-valores-text {
    font-size: 24px;
    padding: 50px 24px;
  }
  .bloque-valores-text p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
  }
  .bloque-valores-text h4 {
    font-size: 18px;
    margin-bottom: 6px;
  }
  .valor-block {
    padding: 20px 22px;
    margin-bottom: 16px;
    border-radius: 12px;
  }
}

@media (max-width: 767px) {
  .bloque-valores-gear {
    display: none;
  }
}
