/* ===== HERO ===== */
.util-hero {
  position: relative;
  margin-left: 3%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 100px 6% 80px;
}

.util-hero-bg {
  position: absolute;
  inset: 0;
  background-color: #3c3b3b;
  /* Gris oscuro sólido */
}

.util-hero-darken {
  display: none;
  /* No hace falta degradado si es sólido */
}

.util-hero-band {
  display: none;
  /* Limpiando bandas innecesarias en este diseño sólido */
}

.util-hero-mask {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 100px;
  background: #537780;
  /* Color de la siguiente franja util-intro-top */
  clip-path: polygon(0 85%, 100% 35%, 100% 101%, 0 101%);
  z-index: 2;
}

.util-hero-content {
  position: relative;
  z-index: 3;
}

.util-hero-content h1 {
  font-size: var(--fs-h1);
  font-weight: 300;
  color: #fff;
  line-height: 1.05;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.45);
  margin-bottom: 8px;
}

.util-hero-content .util-hero-sub {
  font-size: 19px;
  font-weight: 700;
  color: #ffa700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.4;
}

/* ===== INTRO SECTIONS ===== */
.util-intro-top {
  background: #537780;
  margin-left: 3%;
  padding: 30px 5% 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.util-intro-top-text {
  font-size: 19px;
  color: #fff;
  line-height: 1.6;
  font-weight: 300;
}

.util-challenges-wrap {
  background: #d4dadc;
  margin-left: 3%;
  padding: 30px 5% 50px;
}

.util-challenges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
}

.util-challenge h4 {
  font-size: 24px;
  font-weight: 700;
  color: #537780;
  margin-bottom: 25px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.util-challenge p {
  font-size: 19px;
  color: #333;
  line-height: 1.5;
  margin-bottom: 25px;
}

.util-challenge-bullets {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.util-challenge-item {
  font-size: 19px;
  color: #444;
  line-height: 1.45;
}

/* ===== GLOBAL TRENDS ===== */
.util-trends {
  background: #3c3b3b;
  margin-left: 3%;
  padding: 20px 1% 50px;
  /* Reducido para compensar el solape */
  color: #fff;
  position: relative;
  z-index: 10;
}

.util-trends-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: center;
}

.util-trends-circle-wrap {
  position: relative;
  width: 320px;
  height: 320px;
  margin-top: -260px;
  /* Pisar la sección de arriba (medio círculo) */
}

.util-trends-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  filter: brightness(0.6);
}

.util-trends-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.util-trends-label {
  position: absolute;
  top: 28%;
  /* Primer tercio superior */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  pointer-events: none;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.1;
}

.util-trends-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.util-trend-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.util-trend-block h5 {
  font-size: 19px;
  font-weight: 700;
  color: #ffa700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.util-trend-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.util-trend-block li {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin-bottom: 10px;
}

/* ===== LOCAL OPPORTUNITIES ===== */
.util-opps {
  background: #c9d1d3;
  margin-right: 3%;
  padding: 30px 5% 30px;
  color: #3c585f;
  margin-bottom: 30px;
}

.util-opps-layout {
  max-width: 1299px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 490px 300px;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.util-opps-col {
  position: relative;
  height: 620px;
  max-width: 200px;
}

.util-opps-col.right {
  margin-left: 60px;
  max-width: 400px;
}

.util-opps-group:nth-child(1) {
  position: absolute;
  top: 109px;
  transform: translateY(-50%);
  width: 100%;
}

.util-opps-group:nth-child(2) {
  position: absolute;
  top: 322px;
  transform: translateY(-50%);
  width: 100%;
}

.util-opps-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.util-opps-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.util-opps-group ul li {
  font-size: 19px;
  line-height: 1.3;
  color: #3c3b3b;
  margin-bottom: 8px;
}

/* Center Diagram */
.util-opps-diagram {
  position: relative;
  width: 490px;
  height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.util-opps-center-text {
  font-size: 26px;
  font-weight: 700;
  color: #537780;
  max-width: 200px;
  line-height: 1.1;
  text-align: center;
  /* Ensures the text is centered */
  z-index: 5;
  position: relative;
  bottom: 76px;
}

.util-opps-circle {
  position: absolute;
  width: 206px;
  height: 206px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  z-index: 2;
}

.util-opps-circle span {
  font-size: 18px;
  font-weight: 700;
  color: #ffa700;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Positions — top two circles touch at center (39 + 206 = 245 = 490/2) */
.util-opps-circle.top-left {
  top: 0;
  left: 29px;
}

.util-opps-circle.top-right {
  top: 0;
  right: 29px;
}

.util-opps-circle.mid-left {
  top: 52%;
  left: -30px;
  transform: translateY(-50%);
}

.util-opps-circle.mid-right {
  top: 52%;
  right: -30px;
  transform: translateY(-50%);
}

.util-opps-circle.bottom {
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

/* Bottom text under diagram */
.util-opps-footer-text {
  grid-column: 2;
  text-align: center;
  margin-top: -29px;
  margin-left: 151px;
  width: 220px;
}

.util-opps-footer-text ul {
  list-style: none;
  padding: 0;
  display: inline-block;
  text-align: left;
}

.util-opps-footer-text li {
  font-size: 19px;
  color: #3c3b3b;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* ===== UTILITIES SOLUTIONS ===== */
.util-solutions {
  position: relative;
  margin-left: 3%;
  min-height: 480px;
  overflow: hidden;
  padding: 60px 5% 70px;
}

.util-solutions-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/utilities-01.jpg');
  background-size: cover;
  background-position: center;
}

@supports (background-image: url('/assets/images/utilities-01.webp')) {
  .util-solutions-bg {
    background-image: url('/assets/images/utilities-01.webp');
  }
}

.util-solutions-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}

.util-solutions-inner {
  position: relative;
  z-index: 2;
}

.util-solutions-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 36px;
  letter-spacing: 0.3px;
}

/* Carousel wrapper */
.util-sol-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Stage: clipping window — panels slide inside here */
.util-sol-stage {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 280px;
}

/* Each panel holds 2 cards in a grid, covers the full stage */
.util-sol-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.util-sol-nav {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 28px;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 0 2px;
}

.util-sol-nav:hover {
  border-color: #ffa700;
  color: #ffa700;
}

.util-sol-nav[hidden] {
  visibility: hidden;
}

/* Card — trapezoidal white, same language as vmv-card */
.util-sol-card {
  background: rgba(255, 255, 255, 0.88);
  clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 calc(100% - 20px));
  padding: 36px 24px 44px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.25s ease;
}

.util-sol-card.card-alt {
  clip-path: polygon(0 0, 100% 20px, 100% calc(100% - 20px), 0 100%);
}

.util-sol-card:hover {
  background: rgba(255, 255, 255, 0.96);
}

.util-sol-sub {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffa700;
}

.util-sol-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #537780;
  line-height: 1.25;
  margin: 0;
}

.util-sol-card p {
  font-size: 19px;
  color: #333;
  line-height: 1.7;
  flex-grow: 1;
  margin: 0;
}

.util-sol-btn {
  display: inline-block;
  align-self: flex-start;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #ffa700;
  text-decoration: none;
  border: 1px solid #ffa700;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 14px;
  transition: background 0.2s ease;
  margin-top: 4px;
}

.util-sol-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

/* Dots */
.util-sol-dots {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  justify-content: center;
}

.util-sol-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.util-sol-dot.active {
  background: #ffa700;
}

/* ===== SUCCESSFUL CASES ===== */
.util-cases {
  background: #3c3b3b;
  /* Dark background to match blog context if needed, but let's see */
  margin-left: 3%;
  padding: 80px 6% 80px 6%;
}

.util-cases-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffa700;
  margin-bottom: 50px;
  letter-spacing: 0.3px;
}

.util-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.util-case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
}

.util-case-circle {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  position: absolute;
  top: 0;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  left: 0;
}

.util-case-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.util-case-card:hover .util-case-circle img {
  transform: scale(1.08);
}

.util-case-trapezoid {
  background: #ebeeefe0;
  width: 80%;
  margin-top: 90px;
  padding: 50px 15px 25px 20px;
  clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 calc(100% - 10px));
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: transform 0.3s ease;
  margin-left: 100px;
}

.util-case-logo {
  height: 24px;
  width: auto;
  margin-bottom: 12px;
  align-self: flex-start;
}

.util-case-title {
  font-size: 18px;
  font-weight: 700;
  color: #537780;
  line-height: 1.2;
  margin-bottom: 10px;
}

.util-case-excerpt {
  font-size: 18px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.util-case-readmore {
  font-size: 19px;
  font-weight: 700;
  color: #537780;
  text-decoration: none;
  transition: color 0.3s ease;
}

.util-opps-mobile {
  display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .util-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .util-opps-layout {
    display: none;
  }

  .util-opps-mobile {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px 0;
  }

  .util-opps-row {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .util-opps-row.reverse {
    flex-direction: row-reverse;
    text-align: right;
  }

  .util-opps-row .util-opps-circle {
    position: static;
    flex-shrink: 0;
    width: 108px;
    height: 108px;
  }

  .util-opps-row .util-opps-circle span {
    font-size: 10px;
  }

  .util-opps-row ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .util-opps-row ul li {
    font-size: 19px;
    margin-bottom: 5px;
    color: #3c3b3b;
  }
}

@media (max-width: 900px) {
  .util-intro-top {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 6%;
  }

  .util-challenges-wrap {
    padding: 30px 5% 40px;
  }

  .util-challenges {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .util-trends {
    padding: 60px 6%;
  }

  .util-trends-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 30px;
  }

  .util-trends-circle-wrap {
    width: 180px;
    height: 180px;
    margin-top: -80px;
    margin-left: -20px;
  }

  .util-trends-label {
    font-size: 19px;
    top: 50%;
  }

  .util-trends-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
  }

  .util-trend-block h5 {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .util-trend-block li {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 6px;
  }

  .util-sol-panel {
    grid-template-columns: 1fr;
  }

  .util-sol-stage {
    min-height: 480px;
  }
}

@media (max-width: 600px) {
  .util-hero {
    margin-left: 0;
    min-height: unset;
    padding: 80px 5% 60px 20px;
    align-items: flex-end;
  }

  .util-hero-mask {
    left: 3%;
    width: 97%;
  }

  .util-hero-content {
    top: 0px;
  }

  .util-intro-top,
  .util-challenges-wrap,
  .util-trends,
  .util-solutions,
  .util-cases {
    margin-left: 3%;
  }

  .util-opps {
    display: block;
    margin-left: 3%;
  }

  .util-hero-content h1 {
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: -1px;
  }

  .util-opps-diagram {
    width: 100%;
    height: auto;
    max-width: 320px;
  }

  .util-opps-circle {
    width: 100px;
    height: 100px;
    padding: 10px;
  }

  .util-opps-circle span {
    font-size: 9px;
  }

  .util-opps-center-text {
    font-size: 18px;
  }

  .util-cases-grid {
    grid-template-columns: 1fr;
  }

  .util-case-card {
    padding-bottom: 40px;
  }

  .util-case-trapezoid {
    width: 85%;
    margin-left: 15%;
  }

  .util-case-circle {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .util-hero-content h1 {
    font-size: 28px;
  }

  .util-opps-diagram {
    display: none;
  }
}