/* Noticias Specific Styles */
.news-category-badge {
    transition: background-color 0.3s;
}

.news-category-badge:hover {
    background-color: var(--primary);
    color: var(--white);
}

.file-upload-wrapper {
    transition: border-color 0.3s;
}

.file-upload-wrapper:hover {
    border-color: var(--primary);
}

/* Article Hero */
.noticia-hero {
    position: relative;
    min-height: 480px;
    margin-top: 80px;
    display: flex;
    align-items: flex-end;
    background-color: var(--sec-dark);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.noticia-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(20, 14, 16, 0.92) 0%, rgba(77, 78, 77, 0.6) 55%, rgba(187, 53, 139, 0.35) 100%);
}

.noticia-hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 60px 20px 50px;
}

.noticia-breadcrumb {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
}

.noticia-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.noticia-breadcrumb a:hover {
    color: var(--white);
    text-decoration: underline;
}

.noticia-category {
    margin-bottom: 18px;
}

.noticia-hero-content h1 {
    font-size: 2.6rem;
    line-height: 1.25;
    max-width: 850px;
    margin-bottom: 22px;
    font-weight: 700;
}

.noticia-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.noticia-meta i {
    color: var(--light);
    margin-right: 6px;
}

/* Back link */
.noticia-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 35px;
    transition: gap 0.2s ease;
}

.noticia-back-link:hover {
    gap: 12px;
}

/* Article Body */
.noticia-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
    max-width: 780px;
    margin: 0 auto 50px;
}

/* Gallery */
.noticia-gallery-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    max-width: 780px;
    margin: 0 auto 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.noticia-gallery-header h3 {
    color: var(--sec-dark);
    font-size: 1.3rem;
}

.noticia-gallery-header h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.noticia-gallery-header span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    max-width: 780px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--very-light);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 10, 20, 0.35);
    color: var(--white);
    font-size: 1.4rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-item-zoom {
    opacity: 1;
}

/* Lightbox */
.noticia-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 5, 10, 0.94);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.noticia-lightbox.active {
    display: flex;
}

.noticia-lightbox img {
    max-width: 88vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightboxFade 0.25s ease;
}

@keyframes lightboxFade {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: var(--primary);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-nav:hover {
    background: var(--primary);
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

.lightbox-counter {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

/* Related news cards */
.noticia-related-card {
    display: block;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.noticia-related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(187, 53, 139, 0.12);
}

@media (max-width: 768px) {
    .noticia-hero {
        min-height: 380px;
    }
    .noticia-hero-content h1 {
        font-size: 1.8rem;
    }
    .noticia-meta {
        gap: 15px;
        font-size: 0.8rem;
    }
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}
