a.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.news-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.news-img {
    height: 180px;
    object-fit: cover;
}

.noticia-image-detalle {
    max-height: 300px;
    max-width: 90%; 
    object-fit: scale-down;                
}

.news-date {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.news-card:hover .card-title {
    color: #0d6efd;
}

.card-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
}

/** REDES SOCIALES **/

a.facebook { background-color: #1877f2; }
a.twitter  { background-color: #000000; }
a.linkedin { background-color: #0077b5; }
a.whatsapp { background-color: #25d366; }

a.facebook:hover {
    opacity: 0.8;
    transform: scale(1.05);
    transition: all 0.8s ease;
    background-color: #1877f2;
}

a.twitter:hover {
    opacity: 0.8;
    transform: scale(1.05);
    transition: all 0.8s ease;
    background-color: #000000;
}

a.linkedin:hover {
    opacity: 0.8;
    transform: scale(1.05);
    transition: all 0.8s ease;
    background-color: #0077b5;
}

a.whatsapp:hover {
    opacity: 0.8;
    transform: scale(1.05);
    transition: all 0.8s ease;
    background-color: #25d366;
}
