.carousel-container {
    overflow: hidden;
    margin-top: 3.8rem;
    justify-content: center;
}

.carousel {
    display: flex;
    overflow-x: hidden; 
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    height: 30rem;
    margin: 3.8rem  10rem;
    line-height: 0.8rem;
    justify-content: center;
}

.card {
    flex: 0 0 calc(33.333% - 20px);
    margin-right: 20px;
    scroll-snap-align: start;
    background-color: #f0f0f0;
    padding: 20px;
    max-width: 400px;
    margin: 10px;
    position: relative;
    background-image: url('../img/noticia.jpeg');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    display: flex;
    flex-direction: column;
}

.card-content {
    padding: 20px;
}

.carousel-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
}

.carousel-arrow-left {
    left: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    padding: 8px;
    cursor: pointer;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    width: 45px;
    border-radius: 50%;
    margin: 20px;
}

.carousel-arrow-right {
    right: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    padding: 8px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    width: 45px;
    border-radius: 50%;
    margin: 20px;
}

.card-content {
    margin-top: auto; 
    background: rgba(255, 255, 255, 0.8); 
    padding: 10px;
    border-radius: 5px;
}

.card-content h2 {
    font-size: 1.5em;
    margin-bottom: 8px;
    line-height: 1.3rem;
}

.card-content p {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 16px;
}

.card-content a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}


.ver-mas-container {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.ver-mas-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit; 
    width: 100%; 
}

.ver-mas-container span {
    margin-right: 10px;
    transition: transform 0.3s;
}

.ver-mas-container i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #0D73BA;
    color: #ffffff;
    font-size: 16px;
    transition: transform 0.3s;
}

.ver-mas-container a:hover i {
    transform: translateX(10px); 
}


@media screen and (max-width: 1000px) {
    .card {
        flex:  auto; 
       
    }
    .carousel {
        margin: 0rem;
    }
    

    
  }
  
