/* =============================================================================
   COMUNICADOS Y NOTAS DE PRENSA - DISEÑO MODERNO
   Sección unificada para noticias y notas de prensa con badges distintivos
   ============================================================================= */

/* Container principal */
.comunicados-container {
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 40px 0 60px;
    position: relative;
}

/* Header de la sección */
.comunicados-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 1rem;
}

.comunicados-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.comunicados-title i {
    color: #0ea5e9;
    font-size: 2.2rem;
}

.comunicados-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Estadísticas rápidas */
.comunicados-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
    text-decoration: none;
    color: inherit;
}

/* Filtros interactivos */
.filtro-stat {
    cursor: pointer;
    user-select: none;
}

.filtro-stat.active {
    border: 2px solid #f97316;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.05) 0%, rgba(234, 88, 12, 0.05) 100%);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.2);
}

.filtro-hint {
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filtro-stat:hover .filtro-hint {
    opacity: 1;
}

.filtro-stat.active .filtro-hint {
    opacity: 1;
    color: #f97316;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.noticia-icon {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
}

.nota-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.total-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Grid de comunicados */
.comunicados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Card de comunicado */
.comunicado-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.comunicado-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.2);
}

/* Badge de tipo (Noticia / Nota de prensa) */
.comunicado-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.badge-noticia {
    background: rgba(14, 165, 233, 0.95);
    color: white;
}

.badge-nota {
    background: rgba(139, 92, 246, 0.95);
    color: white;
}

/* Imagen del comunicado */
.comunicado-imagen {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.comunicado-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.comunicado-card:hover .comunicado-imagen img {
    transform: scale(1.1);
}

.comunicado-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 50%);
}

/* Contenido del comunicado */
.comunicado-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.comunicado-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.comunicado-meta i {
    color: #0ea5e9;
}

.comunicado-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comunicado-resumen {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Botón leer más */
.btn-leer-mas {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-leer-mas:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3);
    color: white;
    text-decoration: none;
}

.btn-leer-mas i {
    transition: transform 0.3s ease;
}

.btn-leer-mas:hover i {
    transform: translateX(5px);
}

/* Estado vacío */
.comunicados-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.comunicados-empty h3 {
    font-size: 1.5rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

.comunicados-empty p {
    color: #94a3b8;
    font-size: 1rem;
}

/* Paginación moderna */
.paginacion-moderna {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 2rem 1rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.paginacion-info {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

.paginacion-controles {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-pagina {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: white;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0 0.75rem;
}

.btn-pagina:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    border-color: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    text-decoration: none;
}

.btn-pagina.active {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border-color: #f97316;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.paginacion-puntos {
    color: #cbd5e1;
    padding: 0 0.25rem;
    font-weight: 700;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .comunicados-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .comunicados-subtitle {
        font-size: 1rem;
    }

    .comunicados-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .comunicados-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .comunicado-title {
        font-size: 1.1rem;
    }
    
    .paginacion-moderna {
        margin-top: 2rem;
        padding: 1.5rem 0.5rem;
    }
    
    .btn-pagina {
        min-width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .comunicados-container {
        padding: 20px 0 40px;
    }

    .comunicados-header {
        margin-bottom: 2rem;
        padding: 1rem 0.5rem;
    }

    .comunicado-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        top: 0.75rem;
        right: 0.75rem;
    }

    .comunicado-content {
        padding: 1rem;
    }
}
