.contenedor2 {
    background-color: black;
    display: flex;
    color: white;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    align-items: center;
}

.slider h2 {
    font-size: 15px;
    display: block;
    font-weight: bold;
    margin: 0;
    padding: 5px 0;
    white-space: nowrap;
}

.slider {
    width: max-content;
    animation-name: slider;
    animation-duration: 15s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-play-state: running;
}

.slider:hover {
    animation-play-state: paused;
}

@keyframes slider {

    0%,
    100% {
        transform: translateX(0%);
    }

    50% {
        transform: translateX(calc(100vw - 100% - 5px));
    }


}

main {
    margin: 0;
    padding: 0;
}


.servicios-hero {
    text-align: center;
    padding: 30px 20px;
    background-color: #f9f9f9;
}

.servicios-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 30px; 
    padding: 30px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    flex: 1 1 300px; 
    max-width: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.card:hover {
    transform: translateY(-10px); transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.451);
}



.card h2 {
    margin-top: 20px;
    color: #1a1a1a;
    font-size: 1.4rem;
}

.card p {
    color: #666;
    margin: 15px 0 25px 0;
    flex-grow: 1;
}

.card a {
    margin-bottom: 25px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
    align-self: center;
}

.card a:hover {
    border-color: #007bff;
}

.card-image-container {
    width: 100%;
    height: 200px; 
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}