/**
 * ========================================
 * ESTILOS REDISEÑADOS - SISTEMA DE NOTICIAS
 * Casa de la Cultura
 * Diseño moderno, limpio y profesional
 * ========================================
 */

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.noticia-wrapper {
    background: #f5f5f5;
    min-height: 100vh;
}

/* ===== CONTENEDOR ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-articulo {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ALERTA URGENTE ===== */
.alert-urgente {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    padding: 15px 0;
    position: relative;
    overflow: hidden;
    animation: alertSlideDown 0.5s ease;
}

@keyframes alertSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.container-alert {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.container-alert .alert-icon {
    margin-right: 15px;
}

.alert-icon {
    font-size: 32px;
    animation: alertPulse 2s ease-in-out infinite;
}

@keyframes alertPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.alert-content strong {
    display: block;
    font-size: 16px;
    margin-bottom: 3px;
    letter-spacing: 1px;
}

.alert-content p {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}

/* ===== HERO SECTION ===== */
.noticia-hero {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 0;
    width: 100%;
}

.hero-categoria {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cat-eventos { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); color: #fff; }
.cat-talleres { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); color: #fff; }
.cat-exposiciones { background: linear-gradient(135deg, #e67e22 0%, #d35400 100%); color: #fff; }
.cat-actividades { background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%); color: #fff; }
.cat-comunicados { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); color: #fff; }
.cat-convocatorias { background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); color: #fff; }

.hero-titulo {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 20px 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-width: 900px;
}

.hero-subtitulo {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 30px 0;
    max-width: 800px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.hero-meta .meta-item {
    margin-right: 30px;
    margin-bottom: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
}

.meta-item i {
    margin-right: 8px;
}

.meta-item svg {
    opacity: 0.8;
    margin-right: 8px;
}

.hero-credito {
    position: absolute;
    bottom: 80px;
    right: 40px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* ===== ARTÍCULO ===== */
.noticia-articulo {
    background: #fff;
    margin-top: -40px;
    position: relative;
    z-index: 3;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

.container-articulo {
    display: flex;
    padding: 60px 20px;
    position: relative;
}

.container-articulo .sidebar-acciones {
    margin-right: 40px;
}

.container-articulo .articulo-contenido {
    flex: 1;
}

/* ===== SIDEBAR DE ACCIONES ===== */
.sidebar-acciones {
    position: sticky;
    top: 100px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    width: 60px;
    flex-shrink: 0;
}

.sidebar-acciones .accion-btn {
    margin-bottom: 10px;
}

.accion-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    position: relative;
}

.accion-btn:hover {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.compartir-popup {
    position: absolute;
    left: 60px;
    top: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 10px;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.compartir-popup .share-link {
    margin-right: 8px;
}

.compartir-popup .share-link:last-child {
    margin-right: 0;
}

.compartir-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.share-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-link.facebook {
    background: #1877f2;
    color: #fff;
}

.share-link.twitter {
    background: #1da1f2;
    color: #fff;
}

.share-link.whatsapp {
    background: #25d366;
    color: #fff;
}

.share-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===== CONTENIDO ARTÍCULO ===== */
.articulo-contenido {
    flex: 1;
    max-width: 800px;
}

.lead-paragraph {
    font-size: 22px;
    line-height: 1.7;
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid #3498db;
    border-radius: 12px;
}

.lead-paragraph p {
    margin: 0;
}

.texto-articulo {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 50px;
}

.texto-articulo p {
    margin-bottom: 25px;
}

.texto-articulo h2,
.texto-articulo h3,
.texto-articulo h4 {
    margin-top: 45px;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 700;
}

.texto-articulo h2 { font-size: 36px; }
.texto-articulo h3 { font-size: 28px; }
.texto-articulo h4 { font-size: 22px; }

.texto-articulo ul,
.texto-articulo ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.texto-articulo li {
    margin-bottom: 12px;
}

.texto-articulo img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 40px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.texto-articulo blockquote {
    margin: 40px 0;
    padding: 25px 35px;
    background: #f8f9fa;
    border-left: 5px solid #3498db;
    border-radius: 12px;
    font-style: italic;
    color: #555;
    font-size: 20px;
}

.contenido-extra {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 3px solid #f0f0f0;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 28px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
    display: inline-block;
}

/* ===== SLIDER DE IMÁGENES ===== */
.slider-imagenes-section {
    margin: 60px 0;
}

.imagen-slider {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: #000;
}

.slider-container {
    position: relative;
    height: 500px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: #fff;
    font-size: 16px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    color: #2c3e50;
}

.slider-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.slider-dots .dot {
    margin: 0 5px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: #fff;
    transform: scale(1.3);
}

/* ===== VIDEO ===== */
.video-section {
    margin: 60px 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== ARCHIVOS ===== */
.archivos-section {
    margin: 60px 0;
}

.archivos-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.archivo-card {
    flex: 1 1 calc(50% - 20px);
    margin: 0 10px 20px 10px;
    min-width: 250px;
    display: flex;
    align-items: center;
    padding: 25px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    position: relative;
}

.archivo-card .file-icon {
    margin-right: 20px;
}

.archivo-card .archivo-info-card {
    margin-right: 15px;
}


.archivo-card:hover {
    border-color: #3498db;
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.2);
    transform: translateY(-5px);
}

.file-icon {
    width: 60px;
    height: 70px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.file-icon::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-top: 12px solid rgba(255, 255, 255, 0.3);
    border-top-right-radius: 8px;
}

.file-pdf { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.file-doc,
.file-docx { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }
.file-xls,
.file-xlsx { background: linear-gradient(135deg, #27ae60 0%, #229954 100%); }
.file-jpg,
.file-jpeg,
.file-png { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); }

.extension {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.archivo-info-card {
    flex: 1;
}

.archivo-info-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.archivo-size {
    font-size: 13px;
    color: #999;
}

.download-icon {
    color: #3498db;
    transition: transform 0.3s ease;
}

.archivo-card:hover .download-icon {
    transform: translateY(3px);
}

/* ===== CTA BUTTON ===== */
.cta-section {
    margin: 60px 0;
    text-align: center;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 18px 40px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.3);
}

.btn-cta i {
    margin-right: 12px;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(52, 152, 219, 0.4);
}

/* ===== TAGS ===== */
.tags-section {
    margin: 60px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 20px;
}

.tags-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
}

.tags-container .tag {
    margin: 0 10px 10px 0;
}

.tag {
    padding: 8px 18px;
    background: #fff;
    color: #555;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
    transform: translateY(-2px);
}

/* ===== NAVEGACIÓN ===== */
.nav-noticias {
    background: #2c3e50;
    padding: 60px 0;
}

.nav-grid {
    display: flex;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-grid .nav-card {
    margin-right: 30px;
}

.nav-grid .nav-archive {
    margin-right: 30px;
}

.nav-grid > *:last-child {
    margin-right: 0;
}

.nav-card {
    flex: 1;
    background: #34495e;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    min-height: 120px;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.nav-image {
    width: 120px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.nav-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-label {
    font-size: 13px;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.nav-archive {
    flex: 0 0 180px;
    background: #3498db;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    transition: all 0.3s ease;
}

.nav-archive i {
    margin-bottom: 10px;
}

.nav-archive:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.nav-empty {
    background: transparent;
    border: 2px dashed #34495e;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-titulo {
        font-size: 42px;
    }
    
    .hero-subtitulo {
        font-size: 18px;
    }
    
    .container-articulo {
        flex-direction: column;
    }
    
    .sidebar-acciones {
        flex-direction: row;
        position: relative;
        top: 0;
        width: 100%;
        justify-content: center;
        margin-bottom: 30px;
    }
    
    .compartir-popup {
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .compartir-popup.show {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .noticia-hero {
        height: 500px;
    }
    
    .hero-titulo {
        font-size: 32px;
    }
    
    .hero-subtitulo {
        font-size: 16px;
    }
    
    .hero-credito {
        bottom: 20px;
        right: 20px;
    }
    
    .slider-container {
        height: 350px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .slider-btn.prev {
        left: 10px;
    }
    
    .slider-btn.next {
        right: 10px;
    }
    
    .archivo-card {
        flex: 1 1 100%;
        margin: 0 10px 20px 10px;
    }
    
    .nav-grid {
        flex-direction: column;
    }
    
    .nav-grid .nav-card,
    .nav-grid .nav-archive {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .nav-card {
        min-height: 100px;
    }
    
    .nav-image {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .container-articulo {
        padding: 40px 15px;
    }
    
    .noticia-hero {
        height: 400px;
    }
    
    .hero-titulo {
        font-size: 26px;
    }
    
    .lead-paragraph {
        font-size: 18px;
        padding: 20px;
    }
    
    .texto-articulo {
        font-size: 16px;
    }
    
    .slider-container {
        height: 250px;
    }
    
    .section-title {
        font-size: 22px;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.articulo-contenido > * {
    animation: fadeInUp 0.6s ease;
}

/* Animación para elementos al entrar en vista */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== ICONOS FONT AWESOME EN TITULOS ===== */
.section-title i,
.tags-title i {
    margin-right: 10px;
    color: #3498db;
}

.page-title i {
    margin-right: 15px;
    color: #3498db;
}

/* ===== MEJORAS META ITEMS ===== */
.meta-item i {
    font-size: 14px;
    opacity: 0.8;
}

.hero-credito i {
    margin-right: 5px;
}

/* ===== SIDEBAR ACCIONES MEJORADO ===== */
.accion-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.accion-btn:hover i {
    transform: scale(1.1);
}

/* ===== SHARE LINKS CON ICONOS ===== */
.share-link i {
    font-size: 18px;
}

.share-link.copy-link {
    background: #95a5a6;
    color: #fff;
    border: none;
    cursor: pointer;
}

.share-link.copy-link:hover {
    background: #7f8c8d;
}

/* ===== ARCHIVO CARD CON ICONOS ===== */
.file-icon i {
    font-size: 24px;
    color: #fff;
    margin-bottom: 5px;
}

.file-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.download-icon {
    font-size: 20px;
    color: #3498db;
    transition: transform 0.3s ease;
}

.archivo-card:hover .download-icon {
    transform: translateY(3px);
}

/* ===== NAVEGACIÓN CON ICONOS ===== */
.nav-label i {
    margin: 0 5px;
}

.nav-archive i {
    font-size: 24px;
    margin-bottom: 8px;
}

/* ===== FILTROS CON ICONOS ===== */
.filtro-btn i {
    margin-right: 6px;
    font-size: 14px;
}

.filtro-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filtro-btn:hover {
    border-color: #3498db;
    color: #3498db;
}

.filtro-btn.active {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}

.filtros-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 30px 20px;
}

.filtros-container .filtro-btn {
    margin: 5px;
}

/* ===== BADGE URGENTE ===== */
.badge-urgente {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    z-index: 10;
    animation: urgentePulse 2s ease-in-out infinite;
}

.badge-urgente i {
    font-size: 12px;
    margin-right: 5px;
}

@keyframes urgentePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
}

/* ===== NOTICIA CARD META ===== */
.noticia-card-fecha i {
    margin-right: 5px;
    color: #999;
}

.noticia-card-leer-mas i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.noticia-card-leer-mas:hover i {
    transform: translateX(5px);
}

/* ===== NO NOTICIAS ===== */
.no-noticias {
    text-align: center;
    padding: 80px 20px;
}

.no-noticias i {
    display: block;
    margin-bottom: 20px;
}

.no-noticias h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.no-noticias p {
    color: #666;
    font-size: 16px;
}

/* ===== PAGE HEADER ===== */
.page-header {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: #fff;
}

.page-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-description {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== NOTICIAS GRID ===== */
.noticias-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    padding: 40px 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.noticia-card {
    flex: 0 0 calc(33.333% - 30px);
    margin: 0 15px 30px 15px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.noticia-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.noticia-card-imagen {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.noticia-card-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.noticia-card:hover .noticia-card-imagen img {
    transform: scale(1.05);
}

.noticia-card-categoria {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.noticia-card-contenido {
    padding: 25px;
}

.noticia-card-titulo {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.noticia-card-titulo a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.noticia-card-titulo a:hover {
    color: #3498db;
}

.noticia-card-resumen {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.noticia-card-fecha {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
}

.noticia-card-leer-mas {
    font-size: 14px;
    font-weight: 600;
    color: #3498db;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* ===== RESPONSIVE PARA ARCHIVE ===== */
@media (max-width: 1024px) {
    .noticia-card {
        flex: 0 0 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
        flex-direction: column;
    }
    
    .page-title i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .noticia-card {
        flex: 0 0 calc(100% - 30px);
    }
    
    .noticias-grid {
        padding: 20px;
    }
    
    .filtros-container {
        padding: 20px;
    }
    
    .filtro-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}

/* ===== PRINT ===== */
@media print {
    .sidebar-acciones,
    .nav-noticias,
    .alert-urgente,
    .noticias-filtros {
        display: none !important;
    }
    
    .noticia-hero {
        height: 300px;
    }
    
    .noticia-articulo {
        box-shadow: none;
    }
}

/* ========================================
 * SHORTCODE [mostrar_noticias] - Grid Cards
 * ======================================== */

.noticias-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.noticias-archive-container .noticias-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.noticias-archive-container .noticia-card {
    width: calc(33.333% - 30px);
    margin: 0 15px 30px 15px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.noticias-archive-container .noticia-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.noticias-archive-container .noticia-card.noticia-urgente {
    border: 3px solid #e74c3c;
}

.noticias-archive-container .noticia-card.noticia-destacada {
    border: 3px solid #f39c12;
}

/* Card Image - Altura fija */
.noticias-archive-container .noticia-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.noticias-archive-container .noticia-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.noticias-archive-container .noticia-card:hover .noticia-card-image img {
    transform: scale(1.1);
}

.noticias-archive-container .noticia-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.noticias-archive-container .noticia-badge.urgente {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.noticias-archive-container .noticia-badge.destacada {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

/* Card Content - Flex grow para altura consistente */
.noticias-archive-container .noticia-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.noticias-archive-container .noticia-categoria {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    align-self: flex-start;
    flex-shrink: 0;
}

.noticias-archive-container .noticia-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px 0;
    flex-shrink: 0;
}

.noticias-archive-container .noticia-card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.noticias-archive-container .noticia-card-title a:hover {
    color: #3498db;
}

.noticias-archive-container .noticia-card-resumen {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 15px 0;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Card Meta - Footer fijo */
.noticias-archive-container .noticia-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    margin-top: auto;
}

.noticias-archive-container .noticia-fecha {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.noticias-archive-container .noticia-fecha i {
    margin-right: 6px;
    color: #bbb;
}

.noticias-archive-container .noticia-leer-mas {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.noticias-archive-container .noticia-leer-mas i {
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.noticias-archive-container .noticia-leer-mas:hover {
    color: #2c3e50;
}

.noticias-archive-container .noticia-leer-mas:hover i {
    transform: translateX(4px);
}

/* Empty state */
.noticias-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 16px;
}

.noticias-empty p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Responsive para shortcode */
@media (max-width: 1024px) {
    .noticias-archive-container .noticia-card {
        width: calc(50% - 30px);
    }
}

@media (max-width: 640px) {
    .noticias-archive-container .noticias-grid {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .noticias-archive-container .noticia-card {
        width: calc(100% - 20px);
        margin: 0 10px 20px 10px;
    }
    
    .noticias-archive-container .noticia-card-image {
        height: 180px;
    }
}