/* === ESTILO GENERAL DEL BANNER === */
.bannernoti {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 3px solid #ffffff;
    border-radius: 10px;
}

/* Contenedor de los elementos */
.banner-content {
    display: flex;
    flex-wrap: wrap; /* 👈 permite que los elementos se bajen */
    justify-content: center;
}

/* Elemento individual */
.banner-item {
    flex: 1 1 30%; /* 👈 ocupa 30% del ancho, pero se adapta */
    min-width: 300px; /* 👈 ancho mínimo para evitar colapso */
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
    flex-wrap: wrap;
    background: linear-gradient(180deg, #808080, #3a3a3a);
    color: white;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Lado derecho */
.banner-item-derecha {
    flex: 1;
    padding: 20px;
}

.banner-item-derecha h2 {
    font-size: 1rem;
    margin-bottom: 10px;
    font-family: "Montserrat", sans-serif;
}

.banner-item-derecha h6 {
    font-size: 1rem;
    margin-bottom: 15px;
    font-family: "Montserrat", sans-serif;
    font-weight: lighter;
}

.banner-item-derecha .banner-boton {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: white;
    border-bottom: solid #e20000 2.5px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: normal;
    margin-top: 10px;
}

.banner-item-derecha .banner-boton:hover {
    background-color: #3d3c3c;
}

/* Lado izquierdo */
.banner-item-izquierda {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.banner-noti-img {
    width: 80%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* === RESPONSIVE DESIGN === */

/* 📱 En pantallas medianas */
@media screen and (max-width: 992px) {
    .banner-content {
        flex-direction: column; /* 👈 hace que se apilen verticalmente */
        align-items: center;
    }

    .banner-item {
        flex-direction: column;
        width: 90%;
        min-width: unset;
    }

    .banner-item-izquierda {
        width: 100%;
        height: 220px;
    }

    .banner-noti-img {
        width: 90%;
        height: 200px;
    }

    .banner-item-derecha {
        text-align: center;
    }
}

/* 📱 En pantallas pequeñas */
@media screen and (max-width: 600px) {
    .banner-item {
        width: 100%;
        padding: 20px 10px;
    }

    .banner-item-derecha h2 {
        font-size: 0.95rem;
    }

    .banner-item-derecha h6 {
        font-size: 0.9rem;
    }

    .banner-noti-img {
        width: 100%;
        height: 180px;
    }
}
