/* =================================
   NOTICIAS.CSS (solo sección Noticias)
   ================================= */

   .news-grid {
    display: grid;
    gap: 15px;
    padding: 10px;
    margin-top: 10px;
}

.news-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
}

.news-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(0,0,0,0.05);
}

.news-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--primary);
}

.news-date {
    font-size: 0.8rem;
    color: var(--muted);
}

.news-content {
    padding: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
    max-height: 100px;
    overflow: hidden;
    position: relative;
}

.news-content:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, var(--card-bg));
}

.news-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 0 10px 10px 10px;
}

.news-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: opacity 0.2s ease;
}

.news-image:hover {
    opacity: 0.85;
}

/* Imagen única centrada en card */
.news-images[style*="justify-content: center"] .news-image {
    width: auto;
    max-width: 260px;
    height: 160px;
    object-fit: cover;
}

.read-more {
    display: block;
    text-align: center;
    padding: 10px;
    background-color: rgba(88, 101, 242, 0.1);
    color: var(--primary);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.read-more:hover {
    background-color: rgba(88, 101, 242, 0.2);
}

.news-image-wrapper {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.news-full-image {
    width: auto;
    max-width: min(420px, 90%);
    height: auto;
    max-height: 520px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    cursor: pointer;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.text-content {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text);
}

.news-full-content {
    padding: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive para Noticias */
@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-images {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =================================
   NUEVOS ELEMENTOS DEL JSON
   ================================= */

/* Separator */
.news-separator {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 18px 0;
    opacity: 0.5;
}

/* Highlight (título de sección dentro del contenido) */
.news-highlight {
    display: inline-block;
    background: rgba(88, 101, 242, 0.15);
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    padding: 4px 14px;
    border-radius: 20px;
    border-left: 3px solid var(--primary);
    margin: 14px 0 8px 0;
}

/* Tags */
.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.news-tags-detail {
    justify-content: center;
    margin-bottom: 10px;
}

.news-tag {
    display: inline-block;
    background: rgba(88, 101, 242, 0.12);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid rgba(88, 101, 242, 0.25);
}

/* Categoría */
.news-categoria {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-categoria-detail {
    display: block;
    text-align: center;
    margin-bottom: 6px;
    font-size: 0.8rem;
}

/* Author en card */
.news-author {
    font-size: 0.78rem;
    color: var(--muted);
}

/* Author en detalle */
.news-author-detail {
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 8px;
}

