/* ================================
   BANNER – versión optimizada
   ================================ */

#banner{
    margin-top: 25px;
    position: relative;
    width: 100%;
}

/* Imagen del banner */
#banner img{
    width: 100%;
    height: auto;       /* Mantiene proporción y evita recortes */
    display: block;
}

/* Contenedor centrado */
#banner .contenedor{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
}

/* Textos */
#banner h1{
    font-size: 12px;
    margin: 0 0 5px 0;
}

#banner h2{
    font-size: 32px;
    background: rgba(51,51,51,0.5);
    padding: 5px 10px;
    display: inline-block;
}

#banner p{
    font-size: 18px;
    background: rgba(51,51,51,0.4);
    padding: 5px 10px;
    display: inline-block;
}

/* Botón */
#banner a{
    display: inline-block;
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    margin-top: 12px;
    border: 3px solid #fff;
    background: rgba(51,51,51,0.4);
    font-size: 16px;
}

#banner a:hover{
    background: rgba(51,51,51,0.6);
}

/* =============== MOBILE ================= */
@media(max-width:480px){

    #banner h2{
        font-size: 20px;
    }

    #banner h1{
        font-size: 10px;
    }

    #banner p{
        font-size: 14px;
    }

    #banner a{
        font-size: 14px;
        padding: 6px 12px;
    }

    #banner .contenedor{
        top: 55%;
        transform: translate(-50%, -50%);
    }
}

/* =============== TABLET ================= */
@media(min-width:768px){
    #banner h2{
        font-size: 36px;
    }
}

/* =============== ESCRITORIO ============= */
@media(min-width:1024px){
    #banner h2{
        font-size: 42px;
    }
}