.textoambiente1 h1 {
    font-size: 1.5rem;
    /* Usa rem en lugar de vh para más consistencia */
    margin: 0 0 2vh 0;
    font-family: 'Mansfield Light';
}

.textoambiente1 h1 span {
    font-family: 'Mansfield Black';
    color: #68b02f;
    font-size: 2rem;
    /* Ajustado con rem */
}

.textoambiente1 p {
    font-size: 1rem;
    /* Ajustado con rem */
    color: #333;
    line-height: 1.8;
    /* Espaciado adecuado */
    margin: 10px 0;
    font-family: 'Mansfield Light';
    text-align: justify;
    /* Justifica el texto */
}


@media (min-width: 1200px) {
    .HeadAmbiente {
        background-image: url('/images/medioambiente/headambienteweb.png');
        /* Aquí colocarás la nueva imagen */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100%;
        /*min-height: 110vh; */
        /* Ajustar para que no sea tan grande */
        margin-bottom: 2vh;
    }

    .backgroundgeneralambiente {
        background: url('/images/medioambiente/fondogeneralweb1.png') center center / cover no-repeat;
        background-size: cover;
        /* Ajusta la imagen sin distorsionarse */
        background-position: center;
        /* Centra la imagen */
        background-repeat: no-repeat;
        /* No repetir la imagen */
        width: 100%;
        min-height: 70vh;
        /* Se expande según el contenido */
        display: grid;
        align-content: center;
        padding-bottom: 12vh;
    }

    .parte1 .textoambiente1 {
        display: grid;
        align-content: center;
    }


    .textoambiente1 h1 {
        font-size: 2.5rem;
        /* Usa rem en lugar de vh para más consistencia */
    }

    .textoambiente1 h1 span {
        font-size: 3rem;
        /* Ajustado con rem */
    }

    .textoambiente1 p {
        font-size: 1.25rem;
        /* Ajustado con rem */
        line-height: 1.5;
        /* Espaciado adecuado */
    }

    .aux {
        display: none;
    }

    .seccion3 {
        background: url('/images/medioambiente/fondoporcentajesweb.png');
        background-size: cover;
        /* Ajusta la imagen sin distorsionarse */
        background-position: center;
        /* Centra la imagen */
        background-repeat: no-repeat;
        /* No repetir la imagen */
        width: 100%;
        min-height: 100%;
        /* Se expande según el contenido */
        padding-bottom: 5vh;
    }

    .imgcompromiso {
        display: grid;
        justify-content: center;
        align-items: center;
        padding-top: 15vh;
    }

    .imgcompromiso img {
        width: 25vw;
        /*35*/
    }

    .porcentajes {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 5vh;
    }

    .progress-container {
        position: relative;
        width: 120px;
        /*150 */
        height: 280px;
        /*300*/
        border-radius: 45px;
        background: transparent;
        border: 2px solid #fff;
        overflow: hidden;
        text-align: center;
        font-family: Arial, sans-serif;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .progress-bar {
        width: 100%;
        border-radius: 0px 0px 0 0;
        transition: height 1s ease-in-out;
        justify-content: flex-end;
        /* Alinea el contenido hacia abajo */
        align-items: center;
        /* Centra horizontalmente */
        padding-bottom: 5px;
    }

    .progress-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translateX(-50%);
        font-size: 18px;
        font-weight: bold;
        color: white;
    }

    .progress-label {
        font-size: 14px;
        color: #333;
        margin-top: 10px;
    }

    .porcentajesbarra {
        display: flex;
        justify-content: center;
        /* Centrar horizontalmente */
        align-items: center;
        /* Centrar verticalmente */
        flex-direction: column;
        /* Asegurar que todo esté en columna */
        margin-top: 2vh;
    }

    .progress-info {
        margin-top: 10px;
        font-size: 20px;
        color: white;
        font-weight: bold;
        text-align: center;
        font-family: 'Mansfield Black';
    }

    .progress-meta {
        margin-top: 5px;
        font-size: 15px;
        background: white;
        color: #333;
        padding: 2px 6px;
        border-radius: 15px;
        display: inline-block;
        font-family: 'Mansfield Light';
        text-align: center;
    }

    .progress-icon {
        width: 50px;
        /* Ajusta el tamaño del icono */
        height: 50px;
        background-color: white;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        bottom: 10%;
    }

    .progress-icon img {
        width: 60%;
        /* Ajusta el tamaño del icono dentro del círculo */
        height: auto;
    }

    .col-xl-2 {
        flex: 0 0 auto;
        width: 20%;
    }

    .parte3 .row {
        display: flex;
        align-items: center;
        /* Centrar verticalmente */
    }

    /* Sección 1: Imagen del bote a la derecha */
    .parte3:nth-child(1) .textoambiente1 {
        order: 1;
        /* Texto a la izquierda */
    }

    .parte3:nth-child(1) img {
        order: 2;
        /* Imagen a la derecha */
    }

    /* Sección 2: Imagen de la bolsa a la izquierda */
    .parte3:nth-child(2) .textoambiente1 {
        order: 2;
        /* Texto a la derecha */
    }

    .parte3:nth-child(2) img {
        order: 1;
        /* Imagen a la izquierda */
    }

    .parte3 .textoambiente1 h1 {
        font-size: 2.6rem;
        /* Usa rem en lugar de vh para más consistencia */
    }

    .parte3 .textoambiente1 h1 span {
        font-size: 2.7rem;
        /* Ajustado con rem */
    }

    .parte3 .textoambiente1 p {
        font-size: 1.10rem;
        /* Ajustado con rem */
        line-height: 1.5;
        /* Espaciado adecuado */
    }

    .imgparte3 {
        display: grid;
        align-items: center;
    }

    .imgparte3 img {
        width: 100%;
        margin: auto;
    }


    .parte3 .row {
        display: flex;
        align-items: center;
        /* 🔹 Centra la imagen con el texto */
        justify-content: space-between;
        /* 🔹 Separa los elementos */
    }

    .parte3 img {
        max-width: 100%;
        height: 50vh;
        align-self: center;
        /* 🔹 Centra la imagen dentro de su contenedor */
    }

    .backgroundgeneralambientelargo1 {
        background: url('/images/medioambiente/fondobolsaboteweb1.png') center center / cover no-repeat;
        background-size: cover;
        /* Ajusta la imagen sin distorsionarse */
        background-position: center;
        /* Centra la imagen */
        background-repeat: no-repeat;
        /* No repetir la imagen */
        width: 100%;
        min-height: 100%;
        /* Se expande según el contenido */
        padding-bottom: 5vh;
        padding-top: 10vh;
    }

    .backgroundgeneralambientelargo2 {
        background: url('/images/medioambiente/fondobolsaboteweb2.png') center center / cover no-repeat;
        background-size: cover;
        /* Ajusta la imagen sin distorsionarse */
        background-position: center;
        /* Centra la imagen */
        background-repeat: no-repeat;
        /* No repetir la imagen */
        width: 100%;
        min-height: 100%;
        /* Se expande según el contenido */
        padding-bottom: 8vh;
        padding-top: 8vh;
    }

    .seccion4 {
        background: url('/images/medioambiente/fondo4web.png') center center / cover no-repeat;
        background-size: cover;
        /* Ajusta la imagen sin distorsionarse */
        background-position: center;
        /* Centra la imagen */
        background-repeat: no-repeat;
        /* No repetir la imagen */
        width: 100%;
        min-height: 100%;
        /* Se expande según el contenido */
        padding-bottom: 5vh;
    }

    .responsive {
        display: none;
    }

    .seccion4 .headimg {
        display: grid;
        justify-content: center;
        align-items: center;
        margin-top: 1vh;
        margin-bottom: 2vh;
    }

    .seccion4 .headimg img {
        height: 80%;
    }

    .seccion4 .imgmundo {
        display: grid;
        /* justify-content: center; */
        margin-top: 1vh;
        margin-bottom: 2vh;
        align-items: center;
    }

    .seccion4 .imgmundo img {
        width: 80%;
        margin-top: 1vh;
        margin-bottom: 2vh;
    }

    .seccion4text {
        margin-top: 4vh;
        color: #fff;
        font-size: 18px;
    }

    .bold {
        font-family: 'Mansfield Black' !important;
    }

    .nobold {
        font-family: 'Mansfield Light';
    }

}

/* Ajuste para iPads y tablets */
@media (max-width: 1199px) {
    .HeadAmbiente {
        background-image: url('/images/medioambiente/headambiente.png');
        background-size: cover;
        /* Se adapta al ancho de la pantalla */
        background-position: center top;
        /* Centra la imagen desde arriba */
        background-repeat: no-repeat;
        width: 100%;
        min-height: 90vh;
        /* Ajusta la altura sin que sea enorme */
    }

    .parte3 .row {
        display: flex;
        flex-direction: column;
    }

    .textoambiente1 {
        text-align: center;
        /* Centrar los textos en responsivo */
    }

    .textoambiente1 p {
        font-size: 1.6rem;
    }

    .body-medioambiente img {
        width: 80%;
        /* Ajustar el tamaño de las imágenes */
        margin: 20px auto;
        /* Centrar imágenes */
    }

    /*.textoambiente1{
                margin: 0;
                padding: 0;
                display: flex;
                justify-content: center;
                align-items: center;
                padding: 20px;
            }*/

    .backgroundgeneralambiente {
        background: url('/images/medioambiente/fondogeneral.png') center center / cover no-repeat;
        background-size: cover;
        /* Ajusta la imagen sin distorsionarse */
        background-position: center;
        /* Centra la imagen */
        background-repeat: no-repeat;
        /* No repetir la imagen */
        width: 100%;
        min-height: 100%;
        /* Se expande según el contenido */
        padding-bottom: 5vh;
        margin-bottom: 2vh;
    }

    .backgroundgeneralambientemedio {
        background: url('/images/medioambiente/fondogenerallargo2.png') center center / cover no-repeat;
        background-size: cover;
        /* Ajusta la imagen sin distorsionarse */
        background-position: center;
        /* Centra la imagen */
        background-repeat: no-repeat;
        /* No repetir la imagen */
        width: 100%;
        min-height: 100%;
        /* Se expande según el contenido */
        padding-bottom: 5vh;
        margin-bottom: 2vh;
    }

    .backgroundgeneralambientelargo {
        background: url('/images/medioambiente/fondogenerallargo2.png') center center / cover no-repeat;
        background-size: cover;
        /* Ajusta la imagen sin distorsionarse */
        background-position: center;
        /* Centra la imagen */
        background-repeat: no-repeat;
        /* No repetir la imagen */
        width: 100%;
        min-height: 100%;
        /* Se expande según el contenido */
    }

    .parte1 .textoambiente1 h1 {
        padding-top: 5vh;
    }

    .textoambiente1 h1 {
        font-size: 1.75rem;
        /* Usa rem en lugar de vh para más consistencia */
        text-align: center;
    }

    .textoambiente1 h1 span {
        font-size: 1.75rem;
        /* Ajustado con rem */
    }

    .textoambiente1 p {
        font-size: 1rem;
        /* Ajustado con rem */
    }

    .auxiliar {
        width: 16%;
    }

    .seccion3 {
        background: url('/images/medioambiente/fondoresponsivo2.png');
        background-size: cover;
        /* Ajusta la imagen sin distorsionarse */
        background-position: center;
        /* Centra la imagen */
        background-repeat: no-repeat;
        /* No repetir la imagen */
        width: 100%;
        min-height: 100%;
        /* Se expande según el contenido */
        padding-bottom: 5vh;
        margin-bottom: 2vh;
    }

    .imgcompromiso {
        display: grid;
        justify-content: center;
        align-items: center;
        padding-top: 10vh;
    }

    .porcentajes {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 5vh;
    }

    .progress-container {
        position: relative;
        width: 100px;
        height: 220px;
        border-radius: 45px;
        background: transparent;
        border: 2px solid #fff;
        overflow: hidden;
        text-align: center;
        font-family: Arial, sans-serif;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .progress-bar {
        width: 100%;
        border-radius: 0px 0px 0 0;
        transition: height 1s ease-in-out;
        justify-content: flex-end;
        /* Alinea el contenido hacia abajo */
        align-items: center;
        /* Centra horizontalmente */
        padding-bottom: 5px;
    }

    .progress-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translateX(-50%);
        font-size: 18px;
        font-weight: bold;
        color: white;
    }

    .progress-label {
        font-size: 14px;
        color: #333;
        margin-top: 10px;
    }

    .porcentajesbarra {
        display: flex;
        justify-content: center;
        /* Centrar horizontalmente */
        align-items: center;
        /* Centrar verticalmente */
        flex-direction: column;
        /* Asegurar que todo esté en columna */
        margin-top: 2vh;
    }

    .progress-info {
        margin-top: 10px;
        font-size: 15px;
        width: 110%;
        color: white;
        font-weight: bold;
        text-align: center;
        font-family: 'Mansfield Black';
    }

    .progress-meta {
        margin-top: 5px;
        font-size: 11px;
        background: white;
        color: #333;
        padding: 2px 6px;
        border-radius: 15px;
        display: inline-block;
        font-family: 'Mansfield Light';
        text-align: center;
    }

    .progress-icon {
        width: 50px;
        /* Ajusta el tamaño del icono */
        height: 50px;
        background-color: white;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        bottom: 5%;
    }

    .progress-icon img {
        width: 60%;
        /* Ajusta el tamaño del icono dentro del círculo */
        height: auto;
    }

    .seccion4 {
        background: url('/images/medioambiente/fondo4.png') center center / cover no-repeat;
        background-size: cover;
        /* Ajusta la imagen sin distorsionarse */
        background-position: center;
        /* Centra la imagen */
        background-repeat: no-repeat;
        /* No repetir la imagen */
        width: 100%;
        min-height: 100%;
        /* Se expande según el contenido */
        padding-bottom: 5vh;
    }

    .seccion4 .headimg {
        display: grid;
        justify-content: center;
        margin-top: 4vh;
    }

    .seccion4text {
        margin-top: 4vh;
        color: #fff;
        font-size: 18px;
    }

    .bold {
        font-family: 'Mansfield Black' !important;
    }

    .nobold {
        font-family: 'Mansfield Light';
    }

    .mundo {
        margin-top: 4vh;

    }

    .imgparte3 img {
        width: 100%;
        margin-top: 2vh;
    }

    .web {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .HeadAmbiente {
        background-image: url('/images/medioambiente/headambiente2.png');
        /* Imagen más grande */
        min-height: 150vh;
        /* Reduce la altura para evitar que el slider sea muy grande */
        margin-top: 10vh;
    }

    .textoambiente1 h1 {
        font-size: 3rem;
        /* Usa rem en lugar de vh para más consistencia */
    }

    .textoambiente1 h1 span {
        font-size: 3.5rem;
        /* Ajustado con rem */
    }

    .textoambiente1 p {
        font-size: 1.8rem;
        /* Ajustado con rem */
    }

    .seccion4text {
        font-size: 1.8rem;
        /* Ajustado con rem */
    }

    .progress-container {
        width: 140px;
        height: 350px;
    }

    .porcentajesbarra {
        margin-top: 5vh;
    }

    .progress-info {
        margin-top: 10px;
        font-size: 28px;
    }

    .progress-meta {
        font-size: 20px;
    }

    .progress-icon img {
        width: 60%;
        /* Ajusta el tamaño del icono dentro del círculo */
    }

    .progress-text {
        font-size: 30px;
    }

    .progress-icon {
        width: 70px;
        height: 70px;
    }

    .imgcompromiso img {
        width: 40vh;
    }
}