/* noticia.css */
.noticia-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.noticia-header {
    margin-bottom: 2rem;
}

.noticia-titulo {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.noticia-meta {
    display: flex;
    justify-content: space-between;
    color: var(--grey-color);
    font-size: 0.9rem;
}

.noticia-imagen {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.noticia-contenido {
    line-height: 1.6;
}

.noticia-contenido h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.noticia-compartir {
    margin-top: 2rem;
    text-align: center;
}

.noticia-compartir h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.compartir-botones {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.compartir-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.compartir-boton:hover {
    transform: scale(1.1);
}

.facebook { background-color: #3b5998; }
.twitter { background-color: #1da1f2; }
.linkedin { background-color: #0077b5; }
.whatsapp { background-color: #25d366; }

.noticias-relacionadas {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.noticias-relacionadas h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.noticia-relacionada {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.noticia-relacionada:hover {
    transform: translateY(-5px);
}

.noticia-relacionada img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.noticia-relacionada-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.noticia-relacionada-content p {
    font-size: 0.9rem;
    color: var(--grey-color);
}

@media (max-width: 768px) {
    .noticia-container,
    .noticias-relacionadas {
        padding: 1rem;
    }

    .noticia-titulo {
        font-size: 2rem;
    }

    .noticia-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .compartir-botones {
        flex-wrap: wrap;
    }
}