/* ================= CONTENEDOR ================= */
.banner-seccion {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* ================= IMAGEN ================= */
.banner-imagen {
    width: 42%;
}

.banner-imagen img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* muestra la imagen completa */
    border-radius: 10px;
    display: block;
}

/* ================= IMAGEN IZQUIERDA ================= */
.banner-seccion.img-left {
    flex-direction: row;
    text-align: justify;
}

/* ================= IMAGEN DERECHA ================= */
.banner-seccion.img-right {
    flex-direction: row-reverse;
    text-align: justify;
}

/* ================= IMAGEN CENTRADA ================= */
.banner-seccion.img-center {
    flex-direction: column;
    text-align: center;
}

.banner-seccion.img-center .banner-imagen {
    width: 100%;
    max-width: 1200px;
}

.banner-seccion.img-center .banner-imagen img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* imagen completa */
}

/* ================= CONTENIDO ================= */
.banner-contenido {
    width: 58%;
    max-width: 620px;
}

.banner-contenido h2 {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    color: black;
    line-height: 1.2;
}

.banner-contenido p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #222;
    max-width: 560px;
}

/* Si el texto viene en varios <p> */
.banner-contenido p+p {
    margin-top: 8px;
}

/* ================= CONTENEDOR DEL BOTÓN ================= */
.banner-boton-wrapper {
    text-align: center;
    margin-top: 25px;
}

/* ================= BOTÓN ================= */
.banner-boton {
    display: inline-block;
    padding: 18px 40px;
    background-color: #d9d9d9;
    color: #111;
    font-size: 18px;
    font-weight: 700;
    border-radius: 20px;
    text-decoration: underline;
    transition: all 0.2s ease;
}

.banner-boton:hover {
    background-color: #cfcfcf;
}

/* ================= IMAGEN POSITION ================= */
.img-left {
    flex-direction: row;
}

.img-right {
    flex-direction: row-reverse;
}

.img-center {
    flex-direction: column;
    align-items: center;
}

.img-center .banner-imagen,
.img-center .banner-contenido {
    width: 100%;
    text-align: center;
}

.img-center .banner-contenido p {
    margin-left: auto;
    margin-right: auto;
}

/* ================= TITLE ALIGN ================= */
.title-left h2 {
    text-align: left;
}

.title-center h2 {
    text-align: center;
}

.title-right h2 {
    text-align: right;
}

/* ================= TEXT ALIGN ================= */
.text-left .banner-contenido {
    text-align: justify;
}

.text-center .banner-contenido {
    text-align: center;
}

.text-right .banner-contenido {
    text-align: justify;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .banner-seccion {
        flex-direction: column;
        gap: 20px;
    }

    .banner-imagen,
    .banner-contenido {
        width: 100%;
    }

    .banner-imagen img {
        max-height: 220px;
    }

    .banner-contenido h2 {
        font-size: 22px;
        text-align: center;
    }

    .banner-contenido p {
        font-size: 14px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ================= CENTRAR CONTENIDO CUANDO TITLE Y TEXT SON CENTER ================= */

.banner-seccion.title-center.text-center .banner-contenido{
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.banner-seccion.title-center.text-center .banner-contenido h2{
    text-align: center;
}

.banner-seccion.title-center.text-center .banner-contenido p{
    text-align: center;
}