/* ========================================
   BOLETÍN OFICIAL UNAL - CSS OPTIMIZADO
   ======================================== */

/* Hero Section Boletín - Reducido */
.boletin-hero {
    background: linear-gradient(135deg, #2D7A4A 0%, #00B8E6 50%, #5B2D91 100%);
    padding: 40px 20px 35px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-shape-bg {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -30px) rotate(180deg); }
}

.boletin-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.boletin-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 3px 15px rgba(0,0,0,0.3);
}

.boletin-hero p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-stats .stat {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-stats .stat:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Filtros y Búsqueda - Más compacto */
.filtros-section {
    background: white;
    padding: 20px 20px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.filtros-container {
    max-width: 1200px;
    margin: 0 auto;
}

.search-box-boletin {
    position: relative;
    margin-bottom: 15px;
}

.search-box-boletin input {
    width: 100%;
    padding: 12px 50px 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-box-boletin input:focus {
    outline: none;
    border-color: #2D7A4A;
    box-shadow: 0 0 0 3px rgba(45, 122, 74, 0.1);
}

.search-icon-boletin {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.5;
}

.filter-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.chip-btn {
    padding: 8px 18px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #555;
}

.chip-btn:hover {
    border-color: #2D7A4A;
    color: #2D7A4A;
    transform: translateY(-2px);
}

.chip-btn.active {
    background: #2D7A4A;
    border-color: #2D7A4A;
    color: white;
    box-shadow: 0 3px 12px rgba(45, 122, 74, 0.3);
}

/* Documentos Destacados - Optimizado */
.destacados-section {
    padding: 35px 20px;
    background: #f8f8f8;
}

.destacados-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title-boletin {
    font-size: 1.8rem;
    color: #2C2C2C;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-icon {
    font-size: 2rem;
}

.destacados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.doc-destacado {
    background: white;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.07);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.doc-destacado::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2D7A4A, #00B8E6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.doc-destacado:hover::before {
    transform: scaleX(1);
}

.doc-destacado:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.doc-destacado-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #2D7A4A;
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.doc-destacado-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.doc-icon-large {
    flex-shrink: 0;
}

.pdf-icon-3d {
    width: 65px;
    height: 80px;
    background: linear-gradient(135deg, #2D7A4A, #00B8E6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(45, 122, 74, 0.3);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.doc-destacado:hover .pdf-icon-3d {
    transform: rotateY(10deg) rotateX(5deg);
}

.pdf-icon-3d::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 18px solid rgba(255,255,255,0.3);
    border-left: 18px solid transparent;
}

.pdf-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    z-index: 1;
}

.doc-destacado-info h3 {
    font-size: 1.2rem;
    color: #2C2C2C;
    margin-bottom: 8px;
    line-height: 1.3;
}

.doc-categoria {
    margin-bottom: 6px;
}

.categoria-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.categoria-badge.bienestar {
    background: #e8f5e9;
    color: #2D7A4A;
}

.categoria-badge.academico {
    background: #fff3e0;
    color: #FF8C1A;
}

.categoria-badge.administrativo {
    background: #f3e5f5;
    color: #5B2D91;
}

.categoria-badge.normativa {
    background: #ffebee;
    color: #FF3333;
}

.doc-fecha {
    font-size: 0.8rem;
    color: #666;
}

.doc-destacado-preview {
    margin: 15px 0;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 10px;
}

.doc-descripcion {
    line-height: 1.6;
    color: #555;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.doc-detalles {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.detalle-item {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.doc-destacado-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-primary-doc {
    flex: 1;
    min-width: 140px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #2D7A4A, #00B8E6);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary-doc:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(45, 122, 74, 0.3);
}

.btn-secondary-doc {
    flex: 1;
    min-width: 110px;
    padding: 10px 16px;
    background: white;
    color: #2D7A4A;
    border: 2px solid #2D7A4A;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-secondary-doc:hover {
    background: #2D7A4A;
    color: white;
}

.btn-share-doc {
    padding: 10px 13px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-share-doc:hover {
    background: #FFE500;
    transform: scale(1.08);
}

.btn-icon {
    font-size: 1rem;
}

/* Lista de Documentos - Compacta */
.documentos-section {
    padding: 35px 20px;
    background: white;
}

.documentos-container {
    max-width: 1200px;
    margin: 0 auto;
}

.documentos-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: #fafafa;
    border-radius: 12px;
    border-left: 4px solid #2D7A4A;
    transition: all 0.3s ease;
    opacity: 1;
}

.doc-item:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateX(5px);
}

.doc-item-icon {
    flex-shrink: 0;
}

.mini-pdf-icon {
    width: 50px;
    height: 62px;
    background: #2D7A4A;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(45, 122, 74, 0.2);
}

.doc-item-content {
    flex: 1;
}

.doc-item-content h4 {
    font-size: 1.05rem;
    color: #2C2C2C;
    margin-bottom: 8px;
}

.doc-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.doc-item-fecha {
    font-size: 0.8rem;
    color: #666;
}

.doc-item-descripcion {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.5;
}

.doc-item-actions {
    display: flex;
    gap: 8px;
}

.btn-icon-action {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-action:hover {
    background: #2D7A4A;
    border-color: #2D7A4A;
    transform: scale(1.08);
}

/* Mensaje sin resultados */
.no-results {
    text-align: center;
    padding: 45px 20px;
    color: #999;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.no-results h3 {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 8px;
}

/* Paginación - Compacta */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #2D7A4A;
    color: #2D7A4A;
}

.pagination-btn.active {
    background: #2D7A4A;
    border-color: #2D7A4A;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Sección de Ayuda - Optimizada */
.ayuda-section {
    padding: 35px 20px;
    background: linear-gradient(135deg, #f0f8f5, #e8f4f8);
}

.ayuda-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.ayuda-card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
}

.ayuda-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.ayuda-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.ayuda-card h3 {
    font-size: 1.25rem;
    color: #2C2C2C;
    margin-bottom: 12px;
}

.ayuda-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.btn-ayuda {
    display: inline-block;
    padding: 10px 25px;
    background: #2D7A4A;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-ayuda:hover {
    background: #00B8E6;
    transform: scale(1.05);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .boletin-hero {
        padding: 30px 15px 25px;
    }

    .boletin-hero h1 {
        font-size: 1.8rem;
    }

    .boletin-hero p {
        font-size: 0.95rem;
    }

    .hero-icon {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 18px;
    }

    .hero-stats .stat {
        padding: 12px 20px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .destacados-grid {
        grid-template-columns: 1fr;
    }

    .doc-destacado {
        padding: 18px;
    }

    .doc-destacado-header {
        flex-direction: column;
        text-align: center;
    }

    .doc-destacado-info h3 {
        font-size: 1.1rem;
    }

    .doc-destacado-actions {
        flex-direction: column;
    }

    .doc-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .doc-item-meta {
        justify-content: center;
    }

    .doc-item-actions {
        justify-content: center;
    }

    .ayuda-container {
        grid-template-columns: 1fr;
    }

    .section-title-boletin {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .section-title-boletin {
        font-size: 1.4rem;
    }

    .filter-chips {
        justify-content: flex-start;
    }

    .chip-btn {
        font-size: 0.8rem;
        padding: 7px 14px;
    }

    .pdf-icon-3d {
        width: 55px;
        height: 70px;
    }

    .pagination {
        gap: 5px;
    }

    .pagination-btn {
        padding: 7px 10px;
        font-size: 0.85rem;
    }

    .doc-destacado-preview {
        padding: 12px;
    }

    .ayuda-card {
        padding: 22px;
    }
}