* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "mazda-type";
}
/* seccion del header  */

.header-ambiental {
  position: relative;
  display: grid;
  place-content: center;
  place-items: center;
  width: 100%;
  height: auto;
}

.header-ambiental img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.header-ambiental h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  font-weight: 100;
  text-transform: uppercase;
  letter-spacing: 10px;
}

/* seccion vusion 2030  */

.visison-ambiental {
  position: relative;
  display: grid;
  place-content: center;
  place-items: center;
  width: 100%;
  height: auto;
  padding: 3%;
}
.visison-ambiental h2 {
  font-size: 5rem;
  font-weight: 500;
  background-image: url(https://www.mazda.com.co/globalassets/sostenibilidad/image/img-1.jpg);
  background-size: cover;
  background-position: center;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  line-height: 1.1;
}

.visison-ambiental p {
  font-size: 1.3rem;
  font-weight: 100;
  line-height: 1.5;
  text-align: center;
  width: 100%;
  margin: auto;
}

/* seccion 50-50 con video  */

.ambiental-50-50 {
  display: grid;
  place-content: center;
  place-items: center;
  width: 100%;
  height: auto;
}
.ambiental-50-50-contenedor {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  padding: 3% 3% 0% 3%;
}
.ambiental-50-50-texto {
  position: relative;
  width: 50%;
}
.ambiental-50-50-texto h2 {
  font-size: 1.3rem;
  font-weight: 100;
  margin-bottom: 1.3rem;
  border: solid 2px #000;
  padding: 2%;
  width: fit-content;
  letter-spacing: 2px;
}

.ambiental-50-50-texto p {
  border-left: solid 2px #000;
  padding: 2%;
  font-size: 1.3rem;
}
.ambiental-50-50-imagen {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
}
.ambiental-50-50-imagen img {
  width: 100%;
  height: auto;
  object-fit: cover;
  height: 400px;
}
.ambiental-subtittulo {
  font-size: 22px;
  font-weight: 400;
}
.sin-borde {
  border: none !important;
}

.btn-ambiental-video {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  width: 30%;
  background: #fff !important;
  color: #000 !important;
  padding: 13px !important;
  border-radius: 5px !important;
  border: none !important;
  text-transform: uppercase !important;
  position: absolute;
  cursor: pointer;
  top: 80%;
  overflow: hidden; /* Evita que el contenido salga del botón */
  transition: background-color 0.3s ease, color 0.3s ease; /* Transición suave para el fondo y el color */
}

.btn-ambiental-video::before {
  content: "VER VIDEO"; /* Texto duplicado para el efecto */
  position: absolute;
  top: 100%; /* Inicialmente está fuera del botón, en la parte inferior */
  left: 0;
  right: 0;
  text-align: center;
  color: #fff !important;
  transition: top 0.2s ease; /* Transición suave para el movimiento del texto */
  margin-top: 11px;
}

.btn-ambiental-video:hover::before {
  top: 0; /* El texto se mueve hacia arriba durante el hover */
}

.btn-ambiental-video:hover {
  background-color: #910a2d !important;
  color: transparent !important; /* El texto original desaparece al hacer hover */
}

.btn-ambiental-video span {
  transition: transform 0.1s ease, opacity 0.1s ease; /* Transición suave para el movimiento y la opacidad del texto */
}

.btn-ambiental-video:hover span {
  transform: translateY(
    -100%
  ); /* El texto original se mueve hacia arriba y desaparece */
  opacity: 0; /* El texto original se desvanece */
}
/* seccion de los textos centrados  */
.ambiental-texto-centrado {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  padding: 3% 3% 3% 3%;
}
.ambiental-texto-centrado p {
  width: 80%;
  font-size: 1.3rem;
  font-weight: 100;
  line-height: 1.5;
  text-align: center;
}

/* esta e sla seccion d e los cards  */

.ambiental-cards-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
  width: 100%;
  height: auto;
  padding: 3%;
  gap: 2%;
}
.ambiental-card {
  width: 470px;
  background-color: #0b2e41;
  padding: 4%;
  height: 560px;
}
.title-card-am {
  color: #d77b4a;
  font-size: 2rem;
  font-weight: 100;
  margin: 0;
  margin-bottom: 1rem;
}
.text-orange-am {
  color: #d77b4a;
  font-size: 0.9rem;
  font-weight: 100;
  margin-bottom: 1.3rem;
  text-align: center;
  line-height: 1.3;
  font-size: 1.1rem;
}
.año-am {
  color: #fff !important;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 100;
  margin-bottom: 1.3rem;
}

.list-am {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  color: #fff !important;
  font-size: 1.3rem;
  font-weight: 100;
  margin-bottom: 3rem;
}

.politics-am {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  width: 90%;
  text-align: center;
  padding: 1%;
  background-color: #d77b4a;
  color: #fff !important;
  margin-bottom: 3rem;
  position: relative; /* necesario para posicionar el ::after */
}

.politics-am::after {
  content: "";
  position: absolute;
  right: -35px; /* saca el triángulo a la derecha */
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 50px solid transparent;
  border-bottom: 50px solid transparent;
  border-left: 50px solid #d77b4a;
}

.politics-am p {
  font-size: 1.3rem;
  font-weight: 100;
  line-height: 1.5;
  text-align: center;
  width: 100%;
  margin: 0;
  color: #fff !important;
}

.ambiental-card.active {
  display: block;
}

.controlsWhiteCard {
  position: absolute;
  top: 49%;
  transform: translateY(-50%);
  width: 88%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: auto;
  padding: 0;
  cursor: pointer;
  display: none;
}

.controlsWhiteCard li {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10%;
  margin-left: 4px;
  background: #111;
  opacity: 0.9;
  cursor: pointer;
}

.controls li:hover,
.controlsWhiteCard li:hover {
  background: #111;
}

.controlsWhiteCard li:before {
  content: "";
  position: absolute;
  top: 14px;
  width: 10px;
  height: 10px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
}

.controls li:nth-child(2):before,
.controlsWhiteCard li:nth-child(2):before {
  transform: rotate(225deg);
  margin-right: 4px;
}

/* esta e sla seccion d elos 50 -50 con iamgen de fondo  */
.ambiental-img-background {
  display: grid;
  place-content: center;
  place-items: center;
  width: 100%;
  height: auto;
  background-image: url("https://www.mazda.com.co/globalassets/sostenibilidad/image/img-5.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.ambiental-img-background-sty {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
}
.ambiental-img-background-sty img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.ambiental-body-background-text {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  text-align: center;
  width: 100%;
  padding: 3%;
  z-index: 10;
}

.ambiental-50-50-palm {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  padding: 0%;
}
.palm-50-50-contenedor {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  padding: 1%;
  gap: 1%;
}
.palm-50-50-imagen {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.palm-50-50-imagen img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.palm-50-50-texto {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: justify;
  padding: 0 2%;
}
.palm-50-50-imagen-trasparent {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #0000005f;
  padding: 12% 5%;
}
.palm-text-header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70%;
  height: auto;
  flex-direction: column;
  margin: auto;
  padding: 2%;
}
.palm-text-title {
  font-size: 1.4rem;
  font-weight: 100;
  margin-bottom: 1.3rem;
  padding: 2%;
  text-align: center;
}
.palm-text-paragraph {
  font-weight: 100;
  line-height: 1.5;
  text-align: center;
  width: 100%;
  font-size: 1.3rem;
}
.box-gray-palm {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: auto;
  gap: 1%;
  color: #fff;
  margin-bottom: 1.3rem;
  text-align: left;
  gap: 3%;
}

.palm-sub-text-2 {
  font-size: 1.3rem;
  font-weight: 100;
  text-align: justify;
  width: 100%;
  margin: 0;
}

.box-gray-year {
  background-color: #0e0e0e5b;
  padding: 2% 5%;
  height: auto;
  text-align: center;
  border-top: solid 1px #fff;
  font-size: 1.3rem;
  letter-spacing: 4px;
  width: 20%;
}
.box-gray-year p {
  color: #fff !important;
  text-align: center;
  margin: 0;
}
.palm-50-50-subtext {
  text-align: left;
  width: 100%;
  margin-bottom: 1.3rem;
  font-size: 2rem;
  font-weight: 100;
}
.palm-title-iniciativa {
  text-align: left;
  width: 100%;
  font-size: 2rem;
  font-weight: 100;
}
.box-gray-text {
  font-size: 1.3rem;
  color: #fff;
  width: 80%;
}
.box-gray-text p {
  color: #fff !important;
  font-size: 1.3rem;
}

.palm-50-50-texto p {
  font-size: 1.3rem;
  font-weight: 100;
  line-height: 1.5;
  text-align: justify;
  width: 100%;
  margin-bottom: 1.3rem;
}
.palm-50-50-legal {
  font-size: 1rem !important;
  font-weight: 100;
  line-height: 1.5;
  text-align: justify;
  width: 100%;
  color: #000;
}

.img-degraded {
  display: grid;
  place-content: center;
  place-items: center;
  width: 100%;
  height: auto;
}
.img-degraded-container {
  display: grid;
  place-content: center;
  place-items: center;
  width: 100%;
  height: auto;
  position: relative;
}
.img-degraded-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.img-degraded-text {
  position: absolute;
  top: 55%;
  left: 29%;
  transform: translate(-50%, -50%);
  color: #000;
  text-align: justify;
  width: 50%;
  padding: 2% 2%;
  z-index: 10;
  background-color: #ffffffa4;
}
.img-degraded-text h2 {
  font-size: 1.4rem;
  font-weight: 100;
}
.img-degraded-text p {
  font-size: 1.1rem;
  font-weight: 100;
  line-height: 1.5;
  text-align: justify;
  width: 100%;
}
.img-degraded-title {
  position: absolute;
  font-size: 1.5rem;
  font-weight: 100;
  top: 8%;
  left: 9%;
}
.section-circle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  padding: 3%;
  gap: 5%;
  background: #fff;
}
.circle-container {
  width: 50%;
}
.circle-img {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.circle-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.circle-container-text {
  width: 50%;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.circle-container-text img {
  width: 70%;
  height: auto;
  object-fit: cover;
}
.circle-container {
  position: relative;
  height: auto;
}
.circle-text {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  text-align: center;
  width: 100%;
  padding: 3%;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.venn-container {
  position: absolute;
  width: 560px;
  height: 300px;
  margin: 50px auto;
  top: 10%;
  left: 6%;
}

.circle {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-family: sans-serif;
  font-weight: 100;
  line-height: 1.5;
  font-size: 1.2rem;
}

.circle.left {
  background-color: #8b592bbb; /* marrón */
  color: white;
  left: -3%;
}
.circle.left p {
  color: #fff !important;
  font-size: 1.2rem;
}

.circle.right {
  background-color: #ffffffa4; /* gris */
  color: #222;
  right: 0;
}
.circle.right p {
  color: #222 !important;
  font-size: 1.2rem;
}
.circle-container-text h2 {
  font-size: 1.4rem;
  font-weight: 100;
  margin-bottom: 3rem;
  text-align: left;
  width: 100%;
}

.text-h3-circle {
  font-size: 1.3rem;
  font-weight: 100;
  line-height: 1.5;
  text-align: justify;
  width: 100%;
}
.circle-container-text p {
  font-size: 1.3rem;
  font-weight: 100;
  line-height: 1.5;
  text-align: justify;
  width: 100%;
  margin-bottom: 1.3rem;
}
.section-slide h3 {
  font-size: 1.4rem;
  font-weight: 100;
  margin-bottom: 3rem;
  text-align: center;
  width: 100%;
}
.section-slide {
  background-color: #f5f5f4;
  padding: 3%;
}

/* seccion de acordeon  */

.accordion {
  width: 100%;
  max-width: 1200px;
  margin: 5% auto;
}

.accordion-item {
  border-bottom: 1px solid #ddd;
}

.accordion-header {
  background-color: #aaa;
  color: #fff;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
}

.accordion-header span {
  font-size: 2rem;
  transition: transform 0.3s;
}

.accordion-header.active span {
  transform: rotate(45deg);
}

.accordion-content {
  display: none;
  padding: 0;
  background-color: #d4d8d9;
}

.accordion-content img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .accordion-header {
    font-size: 1rem;
  }
}

/* secionnde los acordenones  */

.accordion-50-50 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
}
.accordion-50-50-text {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 3%;
}
.accordion-50-50-img {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.accordion-50-50-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.accordion-50-50-text h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.3rem;
  text-align: left;
}
.accordion-50-50-text p {
  font-size: 1.3rem;
  font-weight: 100;
  line-height: 1.5;
  text-align: justify;
  width: 100%;
}
.accordion-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.3rem;
  text-align: left;
  width: 100%;
}
.accordion-content p {
  font-size: 1.3rem;
  font-weight: 100;
  line-height: 1.5;
  text-align: justify;
  width: 100%;
}
.accordion-only-text {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 3%;
}
/* estos son los estilos dle modal */
.modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-iframe {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.close-video {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  border: solid 2px #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;

  /* Centrado total con flexbox */
  display: flex;
  align-items: center;
  justify-content: center;

  transition: background-color 0.3s ease, color 0.3s ease;
}
.close-video:hover {
  background-color: #fff;
  color: #000;
}

@media (max-width: 1483px) {
  .img-degraded-text {
    width: 88%;
    left: 50%;
  }
}
@media (max-width: 1200px) {
  .ambiental-video-iframe {
    width: 800px;
    height: 500px;
  }
  .img-degraded-title {
    top: 0%;
  }
}

@media (max-width: 900px) {
  .ambiental-50-50-contenedor {
    flex-direction: column;
  }

  .ambiental-50-50-texto {
    padding-bottom: 3%;
    width: 90%;
  }
  .header-ambiental h1 {
    width: 100%;
    text-align: center;
    font-size: 1rem;
  }
  .visison-ambiental h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3%;
  }
  .visison-ambiental p {
    font-size: 1rem;
    text-align: center;
  }
  .ambiental-50-50-imagen {
    width: 90%;
  }

  /* ---------------------------------------------- */

  .bannerSlideWhite {
    display: none;
  }
  .ambiental-body-background-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .palm-50-50-contenedor {
    flex-direction: column;
  }
  .palm-text-header {
    position: relative !important;
    width: 90%;
    padding: 0;
  }

  .palm-50-50-imagen-trasparent {
    width: 100%;
    margin-bottom: 3%;
  }
  .palm-50-50-texto {
    width: 100%;
  }
  .palm-50-50-imagen {
    width: 90%;
  }
  .politics-am {
    width: 80%;
    margin-left: 6%;
  }
  .politics-am::after {
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
    border-left: 43px solid #d77b4a;
  }
  .img-degraded-text {
    position: relative;
    top: 50%;
    left: 50%;
    width: 100%;
  }
  .accordion-50-50 {
    flex-direction: column-reverse;
  }
  .accordion-50-50-img {
    width: 100%;
  }
  .accordion-50-50-text {
    width: 100%;
  }
  .section-circle {
    flex-direction: column;
  }
  .circle {
    font-size: 0.8rem;
    width: 180px;
    height: 180px;
  }
  .circle-container {
    width: 100%;
  }
  .circle-container-text {
    width: 90%;
  }
  .circle-img {
    width: 100%;
  }
  .circle-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 3%;
  }
  .venn-container {
    width: 90%;
    left: 7%;
  }

  .ambiental-card {
    display: none;
    width: 90%;
    padding: 8%;
  }
  .controlsWhiteCard {
    width: 98%;
    display: flex;
  }
  .ambiental-video-iframe {
    width: 600px;
    height: 300px;
  }
  .ambiental-texto-centrado p {
    width: 90%;
    text-align: justify;
  }

  .img-degraded-title {
    top: 8%;
  }
  .btn-ambiental-video {
    width: 60%;
  }
  .circle.left p {
    margin: 0 !important;
    line-height: normal !important;
    font-size: 15px;
  }
  .circle.right p {
    margin: 0 !important;
    line-height: normal !important;
    font-size: 15px;
  }
}
@media (max-width: 500px) {
  .ambiental-video-iframe {
    width: 300px;
    height: 370px;
  }
  .ambiental-body-background-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
