.miIberdrola {
    display: flex;
    padding: 20px 16px 40px 16px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    flex: 1 0 0;
}

.primary_section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    align-self: stretch;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
    padding: 0;
    margin: 0;
    text-align: center;
}

h2.ibd_banner__titulo.title_m {
    margin-bottom: 0;
    padding-bottom: 0;
}

p.ibd_banner_descripcion.body_regular_l {
    margin-bottom: 0;
}

.secundary_section {
    display: flex;
    justify-content: center;
    /* centra el .control horizontalmente */
    width: 100%;
}

.play-imgs {
    border-radius: 16px;
    background: var(--Color-Surface-General-1, #FFF);
}

.icono-overlay {
    border-radius: 100%;
    width: 32px;
    height: 32px;
}

.control {
    height: 313px;
    width: 329.9px;
}

.imagenesMI {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.img-uno,
.img-dos,
.img-tres,
.img-cuatro {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: fadeSlide 16s infinite;
    z-index: 1;
}

.img-uno img.play-imgs,
.img-dos img.play-imgs,
.img-tres img.play-imgs,
.img-cuatro img.play-imgs {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

img.play-imgs {
    position: relative;
    display: inline-block;
}

.banner_uno,
.banner_dos,
.banner_tres,
.banner_cuatro {
    position: absolute;
    left: 50%;
    /* ← empieza en el centro */
    transform: translateX(-50%);
    /* ← se desplaza la mitad de su propio ancho */
    bottom: 16px;
    top: auto;
    border-radius: 16px;
    background: var(--Color-Surface-General-1, #FFF);
    z-index: 2;
    width: calc(100% - 32px);
    /* ← margen de 16px a cada lado */
    max-width: 299px;
    height: auto;
    min-height: 77px;
    color: var(--Color-Content-General-1, #2C2C2C);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}


.cabecera {
    display: flex;
    min-width: 267px;
    align-items: center;
    gap: 13px;
    align-self: stretch;
    justify-content: space-between;
    padding: 16px 21px 0 21px;
}

.titleMI {
    margin-bottom: 0;
}

.subtitleMI {
    padding-left: 21px;
}

.icono_pausa {
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    transition: opacity 0.2s;
}

.icono_pausa:hover {
    opacity: 0.7;
}

.img-uno {
    animation-delay: 0s;
}

.img-dos {
    animation-delay: 4s;
}

.img-tres {
    animation-delay: 8s;
}

.img-cuatro {
    animation-delay: 12s;
}

@keyframes fadeSlide {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    30% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.imagenesMI.paused .img-uno,
.imagenesMI.paused .img-dos,
.imagenesMI.paused .img-tres,
.imagenesMI.paused .img-cuatro {
    animation-play-state: paused;
}

.button_main_unirme {
    display: inline-flex;
    background: #2F6852;
    color: #FFFFFF;
    padding: 12px 40px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 16px;
    width: 212px;
    height: 56px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

@media (min-width: 576px) {
    .miIberdrola {
        padding: 20px 42px 40px 42px;
    }

    .control {
        width: 492px;
    }

}

@media (min-width: 768px) {
    .miIberdrola {
        padding: 20px 48px 40px 48px;
    }

    .control {
        width: 672px;
    }

}


@media (min-width: 992px) {

    .miIberdrola {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 20px 48px 40px 48px;
    }

    .primary_section {
        flex: 1;
        align-items: flex-start;
        text-align: left;
        order: 2;
        justify-content: center;
        padding-left: 24px;
    }

    .header {
        text-align: left;
    }

    .secundary_section {
        flex: 1;
        order: 1;
        display: flex;
        justify-content: center;
    }

    .control {
        width: 100%;
        max-width: 399px;
        height: 468px;
    }

    .banner_uno,
    .banner_dos,
    .banner_tres,
    .banner_cuatro {
        max-width: 367px;

    }


}

@media (min-width: 1200px) {

    .miIberdrola {
        padding: 40px 102px 80px 102px;
    }

    .imagenesMI {
        max-width: 486px;
    }

    .control {
        max-width: 486px;
        height: 550px;
    }

    .banner_uno,
    .banner_dos,
    .banner_tres,
    .banner_cuatro {
        max-width: 454px;

    }
}

@media (min-width: 1920px) {

    .miIberdrola {
        padding: 40px 324px 80px 324px;
    }

    .imagenesMI {
        max-width: 624px;
    }

    .control {
        max-width: 624px;
    }

    .banner_uno,
    .banner_dos,
    .banner_tres,
    .banner_cuatro {
        max-width: 590px;

    }
}