.esg-hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  overflow: hidden;
}

.esg-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.esg-hero-title {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 3;
  color: #ffffff;
  font-size: 6rem;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0;
  width: 90%;
}

.esg-hero-highlight {
  font-size: 4rem;
}

.esg-wave {
  position: relative;
  display: block;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 15;
  margin-top: -26.2%;
  pointer-events: none;
  transform: translateY(26.2%);
  clip-path: inset(0 100% 0 0);
  animation: waveRevealESG 3s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}

@keyframes waveRevealESG {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

/* Compromiso Ambiental Section */
.esg-compromiso-section {
  display: flex;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  position: relative;
}

.esg-panel-left {
  width: 50%;
  height: 100%;
  position: relative;
  background-color: #fff;
  overflow: hidden;
}

.esg-left-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 0;
}

.esg-left-bg.bg-state-1 {
  opacity: 1;
}

.esg-left-title {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #80b029;
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  width: 80%;
}

.esg-panel-right {
  width: 50%;
  height: 100%;
  position: relative;
  background-color: #80b029;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5%;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1.5;
  overflow: hidden;
}

.esg-right-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
}

.esg-right-content {
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: 0;
  visibility: hidden;
  width: 80%;
  max-width: 600px;
  text-align: center;
}

.esg-right-content.content-state-1 {
  opacity: 1;
  visibility: visible;
}

.esg-right-content ol {
  text-align: left;
  padding-left: 20px;
}

.esg-right-content li {
  margin-bottom: 15px;
}

.esg-right-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.esg-trucks-img {
  max-width: 100%;
  max-height: 35vh;
  height: auto;
  margin-top: 30px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Caravana Section */
.esg-caravana-section {
  position: relative;
  width: 100%;
  height: 70vh;
  background: #000 url("../images/esg/esg-caravana-bg.png") center center /
    cover no-repeat !important;
  display: flex;
  z-index: 10;
}

.esg-caravana-section .caravana-panel-left {
  width: 50%;
  height: 100%;
  position: relative;
}

.esg-caravana-logo {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 80%;
  height: auto;
  z-index: 2;
}

.esg-caravana-section .caravana-panel-right {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 5% 10% 5% 5%;
  color: #fff;
}

.esg-caravana-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
}

.esg-caravana-text {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 30px;
  max-width: 80%;
}

.btn-switch-container.switch-red {
  border-color: #e22b29;
}

.btn-switch-container.switch-red:hover {
  border-color: #fff;
}

.switch-red .btn-switch-pill {
  background-color: #e22b29;
  color: #fff;
}

.switch-red:hover .btn-switch-pill {
  background-color: #fff;
  color: #e22b29;
}

/* Descanso Section */
.esg-descanso-section {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-image: url("../images/esg/descanso-truck.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .esg-descanso-section {
    background-image: url("../images/esg/descanso-truck-mob.jpg");
    background-position: left;
    background-attachment: scroll;
  }

  .esg-hero-title {
    font-size: 1.8rem;
    top: 30%;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
  }

  .esg-hero-highlight {
    font-size: 2.2rem;
  }

  .esg-compromiso-section {
    flex-direction: column;
  }

  .esg-trucks-img {
    margin-top: 0;
  }

  .esg-panel-left {
    width: 100%;
    height: 40vh;
  }

  .esg-panel-right {
    width: 100%;
    height: 60vh;
    padding: 10% 5%;
  }

  .esg-left-title {
    font-size: 2rem;
    top: 15%;
    transform: translateX(-50%);
  }

  .esg-right-title {
    font-size: 1.5rem;
  }

  .esg-right-content {
    font-size: 1rem;
  }

  .esg-right-content.content-state-1 {
    font-size: 0.9rem;
    width: 90%;
  }

  .esg-right-content.content-state-1 p {
    margin: 0;
    padding-bottom: 5%;
  }

  .esg-right-content.content-state-1 .esg-trucks-img {
    max-height: 20vh;
    width: auto;
    object-fit: contain;
  }

  /* Caravana Section Mobile */
  .esg-caravana-section {
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    background-position: left !important;
  }

  .esg-caravana-section .caravana-panel-left {
    width: 100%;
    height: 40%;
  }

  .esg-caravana-section .caravana-panel-right {
    width: 100%;
    height: 60%;
    padding: 10%;
    align-items: center;
    text-align: center;
  }

  .esg-caravana-title {
    font-size: 2rem;
    text-align: center;
  }

  .esg-caravana-text {
    font-size: 1.1rem;
    text-align: center;
    max-width: 100%;
  }

  .esg-left-bg.bg-state-1 {
    opacity: 0.5;
    object-position: 5% 20%;
  }
}

@media (max-width: 375px) {
  .esg-right-content.content-state-2 {
    font-size: 0.9rem;
  }

  .esg-left-title {
    top: 20%;
  }

  .esg-left-bg.bg-state-8 {
    object-position: center;
  }

  .btn-switch-container.switch-red {
    margin: unset;
  }
}

@media (min-width: 1480px) {
  .esg-panel-right,
  .esg-right-content {
    font-size: 2rem;
  }
}
