/* ==========================================================================
   ESTILOS PARA MANUALES EXTERNOS - Optimizado
   ========================================================================== */

.manual-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.manual-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.manual-header {
    background: linear-gradient(135deg, #1565C0, #1976D2);
    color: white;
    padding: 15px;
    text-align: center;
}

.manual-marca {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.manual-titulo {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.manual-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.manual-descripcion {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex-grow: 1;
    font-weight: 500;
}

.manual-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 15px;
    font-weight: 600;
}

.manual-origen {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
    border-left: 3px solid #27ae60;
}

.origen-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.origen-icon {
    color: #27ae60;
    font-size: 1rem;
}

.origen-texto {
    flex-grow: 1;
}

.origen-dominio {
    color: #666;
    font-size: 0.75rem;
    margin-top: 2px;
}

/* Enlace "Ver Manual" - Texto negro, fondo blanco */
.manual-enlace {
    display: block;
    text-align: center;
    padding: 10px 15px;
    background: white;
    color: black;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid #e1e5ee;
}

.manual-enlace:hover {
    background: linear-gradient(135deg, #1565C0, #1976D2);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.3);
    border-color: #1565C0;
}

.manuales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.resultados-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #1976D2;
}

.sin-resultados {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.sin-resultados i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ccc;
}

/* Botón de búsqueda */
.btn-buscar-manuales {
    background: linear-gradient(135deg, #1565C0, #1976D2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    width: 100%;
}

.btn-buscar-manuales:hover {
    background: linear-gradient(135deg, #0D47A1, #1565C0);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.3);
}

/* Responsive */
@media (min-width: 768px) {
    .btn-buscar-manuales {
        width: auto;
        min-width: 140px;
        padding: 10px 16px;
    }
}

@media (max-width: 767px) {
    .manuales-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .manual-header {
        padding: 12px;
    }
    
    .manual-content {
        padding: 12px;
    }
    
    .manual-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
 .paginacion-manuales {
            margin: 40px 0 20px 0;
            text-align: center;
        }
        
        .paginacion-contenedor-manuales {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: white;
            padding: 12px 20px;
            border-radius: 12px;
            box-shadow: 0 2px 12px rgba(42, 82, 152, 0.1);
            border: 1px solid #e1e8ed;
        }
        
        .paginacion-btn-manuales {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 10px 16px;
            background: #f8f9fa;
            color: #2a5298;
            text-decoration: none;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            border: 1px solid transparent;
        }
        
        .paginacion-btn-manuales:hover {
            background: #2a5298;
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(42, 82, 152, 0.2);
        }
        
        .paginacion-btn-manuales.paginacion-deshabilitado {
            background: #f8f9fa;
            color: #ccc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        .paginacion-numeros-manuales {
            display: flex;
            align-items: center;
            gap: 4px;
            margin: 0 8px;
        }
        
        .paginacion-numero-manuales {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 40px;
            height: 40px;
            padding: 0 8px;
            background: white;
            color: #2a5298;
            text-decoration: none;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            border: 1px solid #e1e8ed;
        }
        
        .paginacion-numero-manuales:hover {
            background: #2a5298;
            color: white;
            border-color: #2a5298;
            transform: translateY(-1px);
        }
        
        .paginacion-numero-manuales.paginacion-actual {
            background: #2a5298;
            color: white;
            border-color: #2a5298;
            box-shadow: 0 2px 8px rgba(42, 82, 152, 0.3);
        }
        
        .paginacion-puntos-manuales {
            padding: 0 8px;
            color: #999;
            font-weight: 600;
        }
        
        .paginacion-info-manuales {
            margin-top: 12px;
            color: #666;
            font-size: 0.85rem;
        }
        
        @media (max-width: 768px) {
            .paginacion-contenedor-manuales {
                flex-wrap: wrap;
                justify-content: center;
                gap: 6px;
                padding: 10px;
            }
            
            .paginacion-btn-manuales span {
                display: none;
            }
            
            .paginacion-btn-manuales {
                padding: 10px 12px;
            }
            
            .paginacion-numeros-manuales {
                margin: 0 4px;
            }
            
            .paginacion-numero-manuales {
                min-width: 36px;
                height: 36px;
                font-size: 0.85rem;
            }
        }