div.media{
    position: relative;
    width: 100%;
}

div.home_serv {
    position: relative;
    display: flex;
    justify-content: space-around;
    margin-bottom: 5%;
    flex-wrap: wrap;
}

div.serv_background {
    width: 100%;
}

div.serv_background img {
    width: 100%;
}

div.serv_txt {
    position: absolute;
    text-align: center;
    left: 50%;
    top: 80%;
    font-size: 20px;
    width: 50%;
}

div.serv_txt h1 span {
    color: var(--color-font);
    margin-left: 20%;
}

.carrusel {
    position: relative;
    display: flex;
    gap: 63px;
    width: 90%;
    margin: auto;
    margin-bottom: .5rem;
    padding: 15px;
}

.carrusel > div {
    scroll-snap-align: center;
    margin: 30px;
    border-radius: 50px;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);

}


h1 {
    margin: 1rem;
    padding: 0 0.5rem;
}

p {
    margin: 1rem;
    padding: 0 0.5rem;
    font-size: medium;
}

div.eslogan_1 h1 span,
div.eslogan_2 h1 span,
div.eslogan_3 h1 span,
div.eslogan_4 h1 span,
div.eslogan_5 h1 span {
    color: var(--color-font);
}

.botones-carrusel {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.btn-flecha {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: var(--color-font);
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
}


@media (max-width: 992px) {
    div.serv_txt {
        left: 45%;
        top: 80%;
        font-size: 20px;
    }
    
    div.serv_txt h1 span {
        margin-left: 10%;
    }
    
.carrusel {
    display: flex;
    overflow-x: auto;
    width: 83%;
    margin: 0 auto 2rem;
    padding: 15px 0px;
}

.carrusel > div {
    min-width: 260px;
    height: auto;
    margin: 0 10px;
    border-radius: 25px;
    flex-shrink: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}


div.eslogan_1,
div.eslogan_2,
div.eslogan_3,
div.eslogan_4,
div.eslogan_5 {
    margin: .5rem;
    text-align: center;
}

h1 {
    font-size: 1.4rem;
    margin: 1rem 0.5rem;
    color: #333;
    font-weight: 600;
}

p {
    font-size: 0.95rem;
    margin: 0.8rem 0.5rem;
    color: #666;
    line-height: 1.5;
}
}

@media (max-width: 768px) {
    div.home_serv {
        margin-bottom: 8%;
    }
    
    div.serv_txt {
       position: absolute;
        left: 45%;
        top: 80%;
        width: 55%;
        text-align: center;
        h1{
            font-size: 12px;
        }
    }
         
.carrusel {
    display: flex;
    overflow-x: auto;
    width:80%;
    margin: 0 auto .5rem;
    padding: 5px 5px;
    gap:5px;
}

.carrusel > div {
    min-width: 260px;
    height: auto;
    margin: 0 10px;
    border-radius: 25px;
    flex-shrink: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

div.eslogan_1,
div.eslogan_2,
div.eslogan_3,
div.eslogan_4,
div.eslogan_5 {
    margin: 1rem;
    text-align: center;
}

h1 {
    font-size: 1.4rem;
    margin: 1rem 0.5rem;
    color: #333;
    font-weight: 600;
}

p {
    font-size: 0.95rem;
    margin: 0.8rem 0.5rem;
    color: #666;
    line-height: 1.5;
}

    .botones-carrusel {
        margin-top: 15px;
        margin-bottom: 25px;
    }
    
    .btn-flecha {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

