/* Estilos para escritorio */
.hero2 {
    background-image: url('https://esmideseo.net/images/fondo3.jpeg');
    background-size: 100% auto;
    /* cover; */
    background-position: center;
    background-repeat: no-repeat;
    /* background-color: ;
  blue; */
    height: 270px;
    /* Ajusta la altura seg�n necesites */

}

#cover2 {
    width: 70%;
}

/* #categorias {
  margin-top: ;
  -30px;
} */

.categoria2 {
    display: inline-block;
    /* margin-right: : 20px; */
}

.categoria2 img {
    width: 150px;
    height: 150px;
    border-radius: 5px;
}

.categoria2 button {
    display: block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#sugerencias2 {
    margin-top: -20px;
}

.categoria2 {
    position: relative;
    margin-right: 20px;
}

.categoria2 img {
    width: 100%;
    height: 150px;
    /* auto; */
    border-radius: 5px;
}

.categorias-scroll2 {
    width: 112%;
    /* auto; */
    margin-left: -48px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    /* Asegura el desplazamiento suave en iOS */
}

.overlay2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: #AD83FF;
    /* rgba(0, 0, 0, 0.5); */
    /* color de fondo semi-transparente */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* inicialmente oculto */
    transition: opacity 0.3s ease;
    /* transici�n suave */
    border-radius: 5px;
}

.overlay2:hover {
    opacity: 1;
    /* mostrar el overlay al pasar el mouse */
    background-color: #AD83FF;
}

.overlay2 h3 {
    color: #fff;
    font-size: 24px;
}


/* Estilos para m�vil */
@media (max-width: 768px) {
    .hero2 {
        background-image: url('https://esmideseo.net/images/mobilecoverMAKE.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-color: white;
        height: 400px;
        /* Ajusta la altura seg�n necesites */
    }

    #cover2 {
        width: 100%;
        margin-bottom: 30px;
    }

    .categoria2 {
        display: inline-block;
        /* margin-right: : 20px; */
    }

    .categoria2 button {
        display: block;
        margin-top: 10px;
        padding: 8px 16px;
        background-color: #007bff;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    #sugerencias2 {
        margin-top: -20px;
    }

    .categoria2 {
        position: relative;
        margin-right: 20px;

    }

    .categoria2 img {
        width: 100%;
        height: 100px;
        /* auto; */
        border-radius: 5px;
    }

    .categorias-scroll2 {
        width: 100%;
        /* auto; */
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        /* Asegura el desplazamiento suave en iOS */
        margin-left: 0px;
    }

    .overlay2 {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100px;
        background-color: #AD83FF;
        /* rgba(0, 0, 0, 0.5); */
        /* color de fondo semi-transparente */
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        /* inicialmente oculto */
        transition: opacity 0.3s ease;
        /* transici�n suave */
        border-radius: 5px;
    }

    .overlay2:hover {
        opacity: 1;
        /* mostrar el overlay al pasar el mouse */
        background-color: #AD83FF;
    }

    .overlay2 h3 {
        color: #fff;
        font-size: 16px;
    }

    h2 {
        font-size: 17px;
    }

}