/**
 * ========================================
 * 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;
    gap: 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;
    gap: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
}

.meta-item svg {
    opacity: 0.8;
}

.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;
    gap: 40px;
    padding: 60px 20px;
    position: relative;
}

/* ===== SIDEBAR DE ACCIONES ===== */
.sidebar-acciones {
    position: sticky;
    top: 100px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 60px;
    flex-shrink: 0;
}

.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;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.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;
    gap: 10px;
    z-index: 10;
}

.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;
    gap: 20px;
}

.archivo-card {
    flex: 1 1 calc(50% - 10px);
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 20px;
    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: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;
    gap: 12px;
    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: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;
    gap: 10px;
}

.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;
    gap: 30px;
    align-items: stretch;
}

.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;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    transition: all 0.3s ease;
}

.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%;
    }
    
    .nav-grid {
        flex-direction: column;
    }
    
    .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;
}

/* ===== PRINT ===== */
@media print {
    .sidebar-acciones,
    .nav-noticias,
    .alert-urgente {
        display: none !important;
    }
    
    .noticia-hero {
        height: 300px;
    }
    
    .noticia-articulo {
        box-shadow: none;
    }
}