/* Single Article Page Styles */

.noticia-single {
    margin-top: 52px;
    margin-bottom: 64px;
}

.noticia-header {
    margin-bottom: 42px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
}

.noticia-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.noticia-meta .chip {
    margin: 0;
    padding: 6px 10px;
    min-height: auto;
}

.noticia-date {
    font-size: var(--font-sm);
    color: var(--color-muted);
    font-weight: 600;
}

.noticia-author {
    font-size: var(--font-sm);
    color: var(--color-secondary);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.noticia-title {
    margin: 0;
    font-size: clamp(28px, 5vw, 48px);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--color-ink);
    line-height: 1.2;
    animation: fadeInUp 600ms ease-out;
}

.noticia-excerpt {
    margin: 0;
    font-size: var(--font-lg);
    color: var(--color-muted);
    line-height: 1.6;
    max-width: 800px;
    animation: fadeInUp 600ms ease-out 100ms both;
}

.noticia-hero {
    margin-bottom: 42px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 600ms ease-out 200ms both;
    display: inline-block;
    width: auto;
    max-width: 100%;
}

.noticia-featured-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    display: block;
    object-fit: cover;
}

.noticia-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 42px;
    margin-bottom: 64px;
}

.noticia-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
}

.noticia-content p {
    margin: 0;
    font-size: var(--font-base);
    line-height: 1.8;
    color: var(--color-ink);
    text-align: justify;
}

.noticia-content p + p {
    margin-top: 5px;
}

.noticia-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sidebar-widget {
    background: var(--paper);
    border-radius: var(--radius);
    border: var(--line);
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.sidebar-widget h3 {
    margin: 0 0 16px;
    font-size: var(--font-lg);
    color: var(--color-ink);
    font-family: 'Playfair Display', serif;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 12px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    background: rgba(214, 40, 40, 0.08);
    color: var(--color-primary);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(214, 40, 40, 0.2);
    transition: all 200ms ease;
}

.tag-link:hover {
    background: rgba(214, 40, 40, 0.15);
    border-color: rgba(214, 40, 40, 0.4);
    transform: translateY(-2px);
}

.social-share {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    white-space: nowrap;
    min-height: 44px;
    transition: all 200ms ease;
    cursor: pointer;
    font-size: var(--font-sm);
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.facebook:hover {
    background: #0A66C2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.3);
}

.share-btn.twitter {
    background: #000000;
}

.share-btn.twitter:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.whatsapp:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.share-btn.telegram {
    background: #0088cc;
}

.share-btn.telegram:hover {
    background: #0077b5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3);
}

.share-btn.instagram {
    background: #E1306C;
}

.share-btn.instagram:hover {
    background: #c32154;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.3);
}

.noticia-related {
    margin-bottom: 52px;
}

.noticia-related h2 {
    margin: 0 0 28px;
    font-size: var(--font-2xl);
    font-family: 'Playfair Display', serif;
    color: var(--color-ink);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 16px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.story-link {
    color: var(--color-ink);
    text-decoration: none;
    transition: color 200ms ease;
}

.story-link:hover {
    color: var(--color-primary);
}

.readmore-link {
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
    text-decoration: none;
    transition: all 200ms ease;
    display: inline-block;
}

.readmore-link:hover {
    transform: translateX(4px);
}

.noticia-nav {
    display: flex;
    gap: 12px;
    margin-top: 48px;
    margin-bottom: 48px;
    justify-content: center;
    padding: 0 20px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: var(--color-secondary);
    transition: all 200ms ease;
    min-height: 48px;
    font-size: var(--font-base);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(29, 53, 87, 0.15);
}

.nav-link.back {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.nav-link.back:hover {
    background: linear-gradient(135deg, #5568d3 0%, #663a8f 100%);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    transform: translateY(-3px);
}

.no-related {
    padding: 32px;
    text-align: center;
    color: var(--color-muted);
    font-size: var(--font-base);
    background: var(--paper);
    border-radius: var(--radius);
    border: var(--line);
}

/* Tablet & Mobile Responsiveness */

@media (max-width: 1024px) {
    .noticia-single {
        margin-top: 40px;
        margin-bottom: 48px;
    }

    .noticia-body {
        gap: 32px;
    }

    .noticia-title {
        font-size: clamp(24px, 5vw, 40px);
    }

    .sidebar-widget {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .noticia-single {
        margin-top: 32px;
        margin-bottom: 40px;
    }

    .noticia-header {
        gap: 16px;
        margin-bottom: 32px;
    }

    .noticia-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .noticia-title {
        font-size: clamp(22px, 5vw, 32px);
    }

    .noticia-hero {
        margin-bottom: 32px;
    }

    .noticia-body {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 48px;
    }

    .noticia-content p {
        text-align: left;
        font-size: var(--font-sm);
        line-height: 1.7;
    }

    .noticia-sidebar {
        gap: 20px;
    }

    .sidebar-widget {
        padding: 14px;
    }

    .sidebar-widget h3 {
        font-size: var(--font-base);
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
    }

    .noticia-related h2 {
        font-size: var(--font-xl);
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
}

@media (max-width: 640px) {
    .noticia-single {
        margin-top: 24px;
        margin-bottom: 32px;
    }

    .noticia-header {
        gap: 14px;
        margin-bottom: 24px;
    }

    .noticia-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .noticia-meta .chip {
        padding: 4px 8px;
        font-size: 10px;
    }

    .noticia-title {
        font-size: clamp(20px, 5vw, 28px);
    }

    .noticia-excerpt {
        font-size: var(--font-base);
    }

    .noticia-hero {
        margin-bottom: 24px;
        border-radius: 8px;
    }

    .noticia-featured-image {
        max-height: 400px;
    }

    .noticia-body {
        gap: 20px;
        margin-bottom: 32px;
    }

    .noticia-content {
        gap: 14px;
    }

    .noticia-content p {
        font-size: 14px;
        line-height: 1.6;
    }

    .noticia-sidebar {
        gap: 16px;
    }

    .sidebar-widget {
        padding: 12px;
    }

    .sidebar-widget h3 {
        font-size: var(--font-sm);
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .tags-list {
        gap: 6px;
    }

    .tag-link {
        padding: 4px 8px;
        font-size: 11px;
    }

    .social-share {
        gap: 8px;
    }

    .share-btn {
        padding: 10px;
        font-size: 12px;
        min-height: 40px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .noticia-related h2 {
        font-size: var(--font-lg);
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    .noticia-nav {
        margin-top: 32px;
        flex-direction: column;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
    }
}
/* Secondary Images Gallery */
.noticia-galeria-secundaria {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #e0e0e0;
}

.noticia-galeria-secundaria h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 24px;
    color: #121212;
}

.noticia-galeria-secundaria > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.noticia-galeria-secundaria img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.noticia-galeria-secundaria > div > div {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.noticia-galeria-secundaria > div > div:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.noticia-galeria-secundaria img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .noticia-galeria-secundaria {
        margin-top: 32px;
        padding-top: 24px;
    }
    
    .noticia-galeria-secundaria h3 {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .noticia-galeria-secundaria > div {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .noticia-galeria-secundaria img {
        height: 180px;
    }
}
/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 48px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 36px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: -35px;
        font-size: 30px;
    }
}
